tst-ttyname: Fix namespace setup for Fedora
[glibc.git] / ChangeLog
blobb78f6722e269bbb0712de71e4f69a02c84c85bf9
1 2017-11-18  Florian Weimer  <fweimer@redhat.com>
3         * sysdeps/unix/sysv/linux/tst-ttyname.c
4         (become_root_in_mount_ns): Remove.
5         (do_in_chroot_1): Call support_enter_mount_namespace.
6         (do_in_chroot_2): Likewise.
7         (do_test): Call support_become_root early.
9 2017-11-18  Florian Weimer  <fweimer@redhat.com>
11         * support/namespace.h (support_enter_mount_namespace): Declare.
12         * support/support_enter_mount_namespace.c: New file.
13         * support/Makefile (libsupport-routines): Add
14         support_enter_mount_namespace.
16 2017-11-18  Florian Weimer  <fweimer@redhat.com>
18         * support/temp_file.c (support_create_temp_directory): Use
19         test_dir and do not rely on the presence of the XXXXXX suffix.
20         * support/temp_file.h (support_create_temp_directory): Update
21         comment.
22         * support/tst-xreadlink.c (do_test): Adjust.
23         * support/support_chroot.c (support_chroot_create): Likewise.
25 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
28         macro.
29         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
30         htm-no-suspend.
32 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
34         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
35         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
36         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
37         (ceill): Define using libm_alias_ldouble.
38         * sysdeps/x86_64/fpu/s_copysignl.S: Include
39         <libm-alias-ldouble.h>.
40         (copysignl): Define using libm_alias_ldouble.
41         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
42         (fabsl): Define using libm_alias_ldouble.
43         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
44         (floorl): Define using libm_alias_ldouble.
45         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
46         (fmaxl): Define using libm_alias_ldouble.
47         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
48         (fminl): Define using libm_alias_ldouble.
49         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
50         (llrintl): Define using libm_alias_ldouble.
51         (lrintl): Likewise.
52         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
53         <libm-alias-ldouble.h>.
54         (nearbyintl): Define using libm_alias_ldouble.
55         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
56         (truncl): Define using libm_alias_ldouble.
57         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
58         <libm-alias-ldouble.h>.
59         (lrintl): Define using libm_alias_ldouble.
61         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
62         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
63         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
64         (asinhl): Define using libm_alias_ldouble.
65         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
66         (atanl): Define using libm_alias_ldouble.
67         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
68         (cbrtl): Define using libm_alias_ldouble.
69         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
70         (ceill): Define using libm_alias_ldouble.
71         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
72         (copysignl): Define using libm_alias_ldouble.
73         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
74         (fabsl): Define using libm_alias_ldouble.
75         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
76         (floorl): Define using libm_alias_ldouble.
77         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
78         (fmaxl): Define using libm_alias_ldouble.
79         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
80         (fminl): Define using libm_alias_ldouble.
81         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
82         (frexpl): Define using libm_alias_ldouble.
83         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
84         (llrintl): Define using libm_alias_ldouble.
85         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
86         (logbl): Define using libm_alias_ldouble.
87         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
88         (lrintl): Define using libm_alias_ldouble.
89         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
90         (nearbyintl): Define using libm_alias_ldouble.
91         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
92         (nextafterl): Define using libm_alias_ldouble.
93         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
94         (remquol): Define using libm_alias_ldouble.
95         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
96         (rintl): Define using libm_alias_ldouble.
97         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
98         (truncl): Define using libm_alias_ldouble.
99         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
100         (fmaxl): Define using libm_alias_ldouble.
101         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
102         (fminl): Define using libm_alias_ldouble.
104         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
105         to C syntax instead of availability and properties of types.
106         * bits/floatn.h [!__ASSEMBLER]: Likewise.
107         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
108         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
109         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
110         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
111         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
113 2017-11-17  Florian Weimer  <fweimer@redhat.com>
115         support_become_root: Enable file creation in namespaces.
116         * support/support_become_root.c (setup_mapping): New function.
117         (support_become_root): Call it.
119 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
121         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
122         macro.
124 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
126         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
127         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
129 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
131         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
133         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
134         version to 4.14.
136 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
138         * INSTALL: Fix botched up regeneration.
140         * NEWS: Update sourceare link to https.
141         * configure.ac: Likewise.
142         * crypt/md5test-giant.c: Likewise.
143         * dlfcn/bug-atexit1.c: Likewise.
144         * dlfcn/bug-atexit2.c: Likewise.
145         * localedata/README: Likewise.
146         * malloc/tst-mallocfork.c: Likewise.
147         * manual/install.texi: Likewise.
148         * nptl/tst-pthread-getattr.c: Likewise.
149         * stdio-common/tst-fgets.c: Likewise.
150         * stdio-common/tst-fwrite.c: Likewise.
151         * sunrpc/Makefile: Likewise.
152         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
153         * wcsmbs/tst-mbrtowc2.c: Likewise.
154         * configure: Regenerate.
155         * INSTALL: Regenerate.
157 2017-11-15  Martin Sebor  <msebor@redhat.com>
159         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
160         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
161         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
163 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
165         [BZ #22145]
166         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
167         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
169         [BZ #22145]
170         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
171         Defer is_pty check until end of the function.
172         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
174         [BZ #22145]
175         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
176         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
177         (ttyname): Likewise.
178         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
179         (__ttyname_r): Likewise.
181         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
182         int to bool.
184         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
186         * manual/terminal.texi (Is It a Terminal):
187         Mention ENODEV for ttyname and ttyname_r.
189 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
191         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
192         constant and macro.
194         * sysdeps/unix/sysv/linux/bits/mman-linux.h
195         [__USE_MISC] (MADV_WIPEONFORK): New macro.
196         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
197         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
198         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
199         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
201 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
203         * signal/sigrelse.c (sigrelse): Optimize implementation.
205         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
206         (__sigpause): Rely on __sigsuspend to implement single thread
207         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
209 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
211         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
212         kernel version to 4.14.
214 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
216         [BZ #22442]
217         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
218         Check if ifname is too long.
220 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
222         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
224 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
226         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
227         was accidentally lost.
229 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
231         * localedata/locales/az_IR: Add standard copyright header.
233 2017-11-15  Florian Weimer  <fweimer@redhat.com>
235         [BZ #22439]
236         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
237         not just the top one.  Output a new "subheaps" statistic.
239 2017-11-15  Florian Weimer  <fweimer@redhat.com>
241         [BZ #22408]
242         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
243         under the per-arena lock.
244         * malloc/Makefile (tests): Add tst-malloc_info.
245         (tst-malloc_info): Link with libpthread.
246         * malloc/tst-malloc_info.c: New file.
248 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
250         [BZ #21660]
251         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
252         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
253         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
254         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
255         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
256         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
257         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
258         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
259         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
260         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
261         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
262         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
263         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
264         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
265         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
266         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
267         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
268         (__floating_type): Likewise.
269         (__real_integer_type): Likewise.
270         (__complex_integer_type): Likewise.
271         (__expr_is_real): Likewise.
272         (__tgmath_real_type_sub): Likewise.
273         (__tgmath_real_type): Likewise.
274         (__tgmath_complex_type_sub): Likewise.
275         (__tgmath_complex_type): Likewise.
276         (__TGMATH_F128): Likewise.
277         (__TGMATH_CF128): Likewise.
278         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
279         new macros.
280         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
281         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
282         Likewise.
283         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
284         Likewise.
285         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
286         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
287         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
288         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
289         Likewise.
290         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
291         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
292         Likewise.
293         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
294         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
295         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
296         Likewise.
297         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
298         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
299         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
300         (cimag): Likewise.
301         (creal): Likewise.
303 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
305         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
306         for stpncpy calls for GCC 8.
307         (test_strncat): Disable -Wstringop-truncation warning for strncat
308         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
309         strncat call for GCC 7.
310         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
311         calls for GCC 8.
312         (test_memcmp): Use memcpy instead of strncpy for calls not copying
313         trailing NUL.
315         * string/bug-strncat1.c: Include <libc-diag.h>.
316         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
318 2017-11-13  Claude Paroz <claude@2xlibre.net>
320         [BZ #22387]
321         * localedata/locales/aa_DJ: Improved readibility by replacing
322         <Uxxxx> sequences in the ASCII printable range by their ASCII
323         character equivalents.
324         * localedata/locales/aa_ER: Likewise.
325         * localedata/locales/aa_ER@saaho: Likewise.
326         * localedata/locales/aa_ET: Likewise.
327         * localedata/locales/af_ZA: Likewise.
328         * localedata/locales/agr_PE: Likewise.
329         * localedata/locales/ak_GH: Likewise.
330         * localedata/locales/am_ET: Likewise.
331         * localedata/locales/anp_IN: Likewise.
332         * localedata/locales/ar_AE: Likewise.
333         * localedata/locales/ar_BH: Likewise.
334         * localedata/locales/ar_DZ: Likewise.
335         * localedata/locales/ar_EG: Likewise.
336         * localedata/locales/ar_IN: Likewise.
337         * localedata/locales/ar_IQ: Likewise.
338         * localedata/locales/ar_JO: Likewise.
339         * localedata/locales/ar_KW: Likewise.
340         * localedata/locales/ar_LB: Likewise.
341         * localedata/locales/ar_LY: Likewise.
342         * localedata/locales/ar_MA: Likewise.
343         * localedata/locales/ar_OM: Likewise.
344         * localedata/locales/ar_QA: Likewise.
345         * localedata/locales/ar_SA: Likewise.
346         * localedata/locales/ar_SD: Likewise.
347         * localedata/locales/ar_SS: Likewise.
348         * localedata/locales/ar_SY: Likewise.
349         * localedata/locales/ar_TN: Likewise.
350         * localedata/locales/ar_YE: Likewise.
351         * localedata/locales/as_IN: Likewise.
352         * localedata/locales/ast_ES: Likewise.
353         * localedata/locales/ayc_PE: Likewise.
354         * localedata/locales/az_AZ: Likewise.
355         * localedata/locales/az_IR: Likewise.
356         * localedata/locales/be_BY: Likewise.
357         * localedata/locales/be_BY@latin: Likewise.
358         * localedata/locales/bem_ZM: Likewise.
359         * localedata/locales/ber_DZ: Likewise.
360         * localedata/locales/ber_MA: Likewise.
361         * localedata/locales/bg_BG: Likewise.
362         * localedata/locales/bhb_IN: Likewise.
363         * localedata/locales/bho_IN: Likewise.
364         * localedata/locales/bi_VU: Likewise.
365         * localedata/locales/bn_BD: Likewise.
366         * localedata/locales/bn_IN: Likewise.
367         * localedata/locales/bo_CN: Likewise.
368         * localedata/locales/bo_IN: Likewise.
369         * localedata/locales/br_FR: Likewise.
370         * localedata/locales/brx_IN: Likewise.
371         * localedata/locales/bs_BA: Likewise.
372         * localedata/locales/byn_ER: Likewise.
373         * localedata/locales/ca_AD: Likewise.
374         * localedata/locales/ca_ES: Likewise.
375         * localedata/locales/ca_FR: Likewise.
376         * localedata/locales/ca_IT: Likewise.
377         * localedata/locales/ce_RU: Likewise.
378         * localedata/locales/chr_US: Likewise.
379         * localedata/locales/cmn_TW: Likewise.
380         * localedata/locales/crh_UA: Likewise.
381         * localedata/locales/cs_CZ: Likewise.
382         * localedata/locales/csb_PL: Likewise.
383         * localedata/locales/cv_RU: Likewise.
384         * localedata/locales/cy_GB: Likewise.
385         * localedata/locales/da_DK: Likewise.
386         * localedata/locales/de_AT: Likewise.
387         * localedata/locales/de_BE: Likewise.
388         * localedata/locales/de_CH: Likewise.
389         * localedata/locales/de_DE: Likewise.
390         * localedata/locales/de_IT: Likewise.
391         * localedata/locales/de_LI: Likewise.
392         * localedata/locales/de_LU: Likewise.
393         * localedata/locales/doi_IN: Likewise.
394         * localedata/locales/dv_MV: Likewise.
395         * localedata/locales/dz_BT: Likewise.
396         * localedata/locales/el_CY: Likewise.
397         * localedata/locales/el_GR: Likewise.
398         * localedata/locales/en_AG: Likewise.
399         * localedata/locales/en_AU: Likewise.
400         * localedata/locales/en_BW: Likewise.
401         * localedata/locales/en_CA: Likewise.
402         * localedata/locales/en_DK: Likewise.
403         * localedata/locales/en_GB: Likewise.
404         * localedata/locales/en_HK: Likewise.
405         * localedata/locales/en_IE: Likewise.
406         * localedata/locales/en_IL: Likewise.
407         * localedata/locales/en_IN: Likewise.
408         * localedata/locales/en_NG: Likewise.
409         * localedata/locales/en_NZ: Likewise.
410         * localedata/locales/en_PH: Likewise.
411         * localedata/locales/en_SG: Likewise.
412         * localedata/locales/en_US: Likewise.
413         * localedata/locales/en_ZA: Likewise.
414         * localedata/locales/en_ZM: Likewise.
415         * localedata/locales/en_ZW: Likewise.
416         * localedata/locales/eo: Likewise.
417         * localedata/locales/es_AR: Likewise.
418         * localedata/locales/es_BO: Likewise.
419         * localedata/locales/es_CL: Likewise.
420         * localedata/locales/es_CO: Likewise.
421         * localedata/locales/es_CR: Likewise.
422         * localedata/locales/es_CU: Likewise.
423         * localedata/locales/es_DO: Likewise.
424         * localedata/locales/es_EC: Likewise.
425         * localedata/locales/es_ES: Likewise.
426         * localedata/locales/es_GT: Likewise.
427         * localedata/locales/es_HN: Likewise.
428         * localedata/locales/es_MX: Likewise.
429         * localedata/locales/es_NI: Likewise.
430         * localedata/locales/es_PA: Likewise.
431         * localedata/locales/es_PE: Likewise.
432         * localedata/locales/es_PR: Likewise.
433         * localedata/locales/es_PY: Likewise.
434         * localedata/locales/es_SV: Likewise.
435         * localedata/locales/es_US: Likewise.
436         * localedata/locales/es_UY: Likewise.
437         * localedata/locales/es_VE: Likewise.
438         * localedata/locales/et_EE: Likewise.
439         * localedata/locales/eu_ES: Likewise.
440         * localedata/locales/eu_ES@euro: Likewise.
441         * localedata/locales/fa_IR: Likewise.
442         * localedata/locales/ff_SN: Likewise.
443         * localedata/locales/fi_FI: Likewise.
444         * localedata/locales/fil_PH: Likewise.
445         * localedata/locales/fo_FO: Likewise.
446         * localedata/locales/fr_BE: Likewise.
447         * localedata/locales/fr_CA: Likewise.
448         * localedata/locales/fr_CH: Likewise.
449         * localedata/locales/fr_FR: Likewise.
450         * localedata/locales/fr_LU: Likewise.
451         * localedata/locales/fur_IT: Likewise.
452         * localedata/locales/fy_DE: Likewise.
453         * localedata/locales/fy_NL: Likewise.
454         * localedata/locales/ga_IE: Likewise.
455         * localedata/locales/gd_GB: Likewise.
456         * localedata/locales/gez_ER: Likewise.
457         * localedata/locales/gez_ET: Likewise.
458         * localedata/locales/gl_ES: Likewise.
459         * localedata/locales/gu_IN: Likewise.
460         * localedata/locales/gv_GB: Likewise.
461         * localedata/locales/ha_NG: Likewise.
462         * localedata/locales/hak_TW: Likewise.
463         * localedata/locales/he_IL: Likewise.
464         * localedata/locales/hi_IN: Likewise.
465         * localedata/locales/hif_FJ: Likewise.
466         * localedata/locales/hne_IN: Likewise.
467         * localedata/locales/hr_HR: Likewise.
468         * localedata/locales/hsb_DE: Likewise.
469         * localedata/locales/ht_HT: Likewise.
470         * localedata/locales/hu_HU: Likewise.
471         * localedata/locales/hy_AM: Likewise.
472         * localedata/locales/i18n: Likewise.
473         * localedata/locales/ia_FR: Likewise.
474         * localedata/locales/id_ID: Likewise.
475         * localedata/locales/ig_NG: Likewise.
476         * localedata/locales/ik_CA: Likewise.
477         * localedata/locales/is_IS: Likewise.
478         * localedata/locales/it_CH: Likewise.
479         * localedata/locales/it_IT: Likewise.
480         * localedata/locales/iu_CA: Likewise.
481         * localedata/locales/ja_JP: Likewise.
482         * localedata/locales/ka_GE: Likewise.
483         * localedata/locales/kk_KZ: Likewise.
484         * localedata/locales/kl_GL: Likewise.
485         * localedata/locales/kn_IN: Likewise.
486         * localedata/locales/ko_KR: Likewise.
487         * localedata/locales/kok_IN: Likewise.
488         * localedata/locales/ks_IN: Likewise.
489         * localedata/locales/ks_IN@devanagari: Likewise.
490         * localedata/locales/ku_TR: Likewise.
491         * localedata/locales/kw_GB: Likewise.
492         * localedata/locales/ky_KG: Likewise.
493         * localedata/locales/lb_LU: Likewise.
494         * localedata/locales/lg_UG: Likewise.
495         * localedata/locales/li_BE: Likewise.
496         * localedata/locales/li_NL: Likewise.
497         * localedata/locales/lij_IT: Likewise.
498         * localedata/locales/ln_CD: Likewise.
499         * localedata/locales/lo_LA: Likewise.
500         * localedata/locales/lt_LT: Likewise.
501         * localedata/locales/lv_LV: Likewise.
502         * localedata/locales/lzh_TW: Likewise.
503         * localedata/locales/mag_IN: Likewise.
504         * localedata/locales/mai_IN: Likewise.
505         * localedata/locales/mg_MG: Likewise.
506         * localedata/locales/mhr_RU: Likewise.
507         * localedata/locales/mi_NZ: Likewise.
508         * localedata/locales/mk_MK: Likewise.
509         * localedata/locales/ml_IN: Likewise.
510         * localedata/locales/mn_MN: Likewise.
511         * localedata/locales/mni_IN: Likewise.
512         * localedata/locales/mr_IN: Likewise.
513         * localedata/locales/ms_MY: Likewise.
514         * localedata/locales/mt_MT: Likewise.
515         * localedata/locales/my_MM: Likewise.
516         * localedata/locales/nan_TW: Likewise.
517         * localedata/locales/nan_TW@latin: Likewise.
518         * localedata/locales/nb_NO: Likewise.
519         * localedata/locales/nds_DE: Likewise.
520         * localedata/locales/nds_NL: Likewise.
521         * localedata/locales/ne_NP: Likewise.
522         * localedata/locales/nhn_MX: Likewise.
523         * localedata/locales/niu_NU: Likewise.
524         * localedata/locales/niu_NZ: Likewise.
525         * localedata/locales/nl_AW: Likewise.
526         * localedata/locales/nl_BE: Likewise.
527         * localedata/locales/nl_NL: Likewise.
528         * localedata/locales/nn_NO: Likewise.
529         * localedata/locales/nr_ZA: Likewise.
530         * localedata/locales/nso_ZA: Likewise.
531         * localedata/locales/oc_FR: Likewise.
532         * localedata/locales/om_ET: Likewise.
533         * localedata/locales/om_KE: Likewise.
534         * localedata/locales/or_IN: Likewise.
535         * localedata/locales/os_RU: Likewise.
536         * localedata/locales/pa_IN: Likewise.
537         * localedata/locales/pa_PK: Likewise.
538         * localedata/locales/pap_AW: Likewise.
539         * localedata/locales/pap_CW: Likewise.
540         * localedata/locales/pl_PL: Likewise.
541         * localedata/locales/ps_AF: Likewise.
542         * localedata/locales/pt_BR: Likewise.
543         * localedata/locales/pt_PT: Likewise.
544         * localedata/locales/quz_PE: Likewise.
545         * localedata/locales/raj_IN: Likewise.
546         * localedata/locales/ro_RO: Likewise.
547         * localedata/locales/ru_RU: Likewise.
548         * localedata/locales/ru_UA: Likewise.
549         * localedata/locales/rw_RW: Likewise.
550         * localedata/locales/sa_IN: Likewise.
551         * localedata/locales/sat_IN: Likewise.
552         * localedata/locales/sc_IT: Likewise.
553         * localedata/locales/sd_IN: Likewise.
554         * localedata/locales/sd_IN@devanagari: Likewise.
555         * localedata/locales/se_NO: Likewise.
556         * localedata/locales/sgs_LT: Likewise.
557         * localedata/locales/shs_CA: Likewise.
558         * localedata/locales/si_LK: Likewise.
559         * localedata/locales/sid_ET: Likewise.
560         * localedata/locales/sk_SK: Likewise.
561         * localedata/locales/sl_SI: Likewise.
562         * localedata/locales/sm_WS: Likewise.
563         * localedata/locales/so_DJ: Likewise.
564         * localedata/locales/so_ET: Likewise.
565         * localedata/locales/so_KE: Likewise.
566         * localedata/locales/so_SO: Likewise.
567         * localedata/locales/sq_AL: Likewise.
568         * localedata/locales/sq_MK: Likewise.
569         * localedata/locales/sr_ME: Likewise.
570         * localedata/locales/sr_RS: Likewise.
571         * localedata/locales/sr_RS@latin: Likewise.
572         * localedata/locales/ss_ZA: Likewise.
573         * localedata/locales/st_ZA: Likewise.
574         * localedata/locales/sv_FI: Likewise.
575         * localedata/locales/sv_SE: Likewise.
576         * localedata/locales/sw_KE: Likewise.
577         * localedata/locales/sw_TZ: Likewise.
578         * localedata/locales/szl_PL: Likewise.
579         * localedata/locales/ta_IN: Likewise.
580         * localedata/locales/ta_LK: Likewise.
581         * localedata/locales/tcy_IN: Likewise.
582         * localedata/locales/te_IN: Likewise.
583         * localedata/locales/tg_TJ: Likewise.
584         * localedata/locales/th_TH: Likewise.
585         * localedata/locales/the_NP: Likewise.
586         * localedata/locales/ti_ER: Likewise.
587         * localedata/locales/ti_ET: Likewise.
588         * localedata/locales/tig_ER: Likewise.
589         * localedata/locales/tk_TM: Likewise.
590         * localedata/locales/tl_PH: Likewise.
591         * localedata/locales/tn_ZA: Likewise.
592         * localedata/locales/to_TO: Likewise.
593         * localedata/locales/tpi_PG: Likewise.
594         * localedata/locales/tr_CY: Likewise.
595         * localedata/locales/tr_TR: Likewise.
596         * localedata/locales/ts_ZA: Likewise.
597         * localedata/locales/tt_RU: Likewise.
598         * localedata/locales/tt_RU@iqtelif: Likewise.
599         * localedata/locales/ug_CN: Likewise.
600         * localedata/locales/uk_UA: Likewise.
601         * localedata/locales/unm_US: Likewise.
602         * localedata/locales/ur_IN: Likewise.
603         * localedata/locales/ur_PK: Likewise.
604         * localedata/locales/uz_UZ: Likewise.
605         * localedata/locales/uz_UZ@cyrillic: Likewise.
606         * localedata/locales/ve_ZA: Likewise.
607         * localedata/locales/vi_VN: Likewise.
608         * localedata/locales/wa_BE: Likewise.
609         * localedata/locales/wae_CH: Likewise.
610         * localedata/locales/wal_ET: Likewise.
611         * localedata/locales/wo_SN: Likewise.
612         * localedata/locales/xh_ZA: Likewise.
613         * localedata/locales/yi_US: Likewise.
614         * localedata/locales/yo_NG: Likewise.
615         * localedata/locales/yue_HK: Likewise.
616         * localedata/locales/yuw_PG: Likewise.
617         * localedata/locales/zh_CN: Likewise.
618         * localedata/locales/zh_HK: Likewise.
619         * localedata/locales/zh_SG: Likewise.
620         * localedata/locales/zh_TW: Likewise.
621         * localedata/locales/zu_ZA: Likewise.
623 2017-11-13  Florian Weimer  <fweimer@redhat.com>
625         * support/next_to_fault.h, support/next_to_fault.c: New files.
626         * support/Makefile (libsupport-routines): Add next_to_fault.
627         * resolv/tst-inet_pton.c (struct next_to_fault)
628         (next_to_fault_allocate, next_to_fault_free): Remove.
629         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
631 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
633         * elf/dl-support.c: Include <dl-procruntime.c>.
634         * include/link.h: Include <link_map.h>.
635         * sysdeps/generic/dl-procruntime.c: New file.
636         * sysdeps/generic/link_map.h: Likewise.
637         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
638         the writable ld.so namespace.
640 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
642         timezone: pacify GCC -Wstringop-truncation
643         Problem reported by Martin Sebor in:
644         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
645         * timezone/zic.c (writezone): Use memcpy, not strncpy.
647 2017-11-12  Florian Weimer  <fweimer@redhat.com>
649         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
650         tst-xreadlink.
651         (tests): Add tst-xreadlink.
652         * support/support.h (xstrndup): Declare.
653         * support/xunistd.h (xunlink, xreadlink): Declare.
654         * support/temp_file.h (support_create_temp_directory): Declare.
655         * support/temp_file.c (support_create_temp_directory): New function.
656         * support/support_chroot.c (support_chroot_create): Use it.
657         * support/xreadlink.c: New file.
658         * support/xstrndup.c: Likewise.
659         * support/xunlink.c: Likewise.
660         * support/tst-xreadlink.c: Likewise.
662 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
664         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
666 2017-11-11  Florian Weimer  <fweimer@redhat.com>
668         [BZ #22409]
669         [BZ #22412]
670         * resolv/res_comp.c (printable_string, binary_hnok)
671         (binary_leading_dash): New functions.
672         (res_hnok): Reimplement using these functions and ns_name_pton.
673         (res_ownok): Likewise.
674         (res_mailok): Reimplement using printable_string, ns_name_pton and
675         binary_hnok.
676         (res_dnok): Reimplement using printable_string and ns_name_pton.
677         * resolv/tst-res_hnok.c (tests): Add additional tests.
678         (LETTERDIGITS, PRINTABLE): Define.
679         (do_test): Adjust one_char results.
681 2017-11-11  Florian Weimer  <fweimer@redhat.com>
683         [BZ #22413]
684         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
685         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
687 2017-11-11  Florian Weimer  <fweimer@redhat.com>
689         * resolv/tst-ns_name_pton.c: New file.
690         * resolv/Makefile (tests): Add tst-ns_name_pton.
691         (tst-ns_name_pton): Link against libresolv.
693 2017-11-11  Florian Weimer  <fweimer@redhat.com>
695         * resolv/tst-res_hnok.c: New file.
696         * resolv/Makefile (tests): Add tst-res_hnok.
697         (tst-res_hnok): Link against libresolv.
699 2017-11-11  Florian Weimer  <fweimer@redhat.com>
701         * resolv/tst-resolv-network.c: Use test framework instead explicit
702         main function.
704 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
706         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
707         <jmp_buf-macros.h>.
708         [!_ISOMAC] (STR_HELPER): New.
709         [!_ISOMAC] (STR): Likewise.
710         [!_ISOMAC] (TEST_SIZE): Likewise.
711         [!_ISOMAC] (TEST_ALIGN): Likewise.
712         [!_ISOMAC] (TEST_OFFSET): Likewise.
713         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
714         field offsets of jmp_buf as well as sigjmp_buf.
715         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
716         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
717         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
718         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
719         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
720         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
721         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
722         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
723         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
724         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
725         Likewise.
726         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
727         Likewise.
728         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
730         Likewise.
731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
732         Likewise.
733         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
734         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
735         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
736         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
737         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
738         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
739         Likewise.
740         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
741         Likewise.
742         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
743         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
744         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
746 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
748         * include/float.h
749         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
750         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
751         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
752         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
753         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
754         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
755         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
756         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
757         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
758         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
759         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
760         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
761         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
762         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
763         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
764         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
765         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
766         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
767         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
768         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
769         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
770         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
771         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
772         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
773         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
774         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
775         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
776         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
777         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
778         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
779         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
780         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
781         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
782         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
783         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
784         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
785         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
786         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
787         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
788         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
789         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
790         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
791         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
792         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
793         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
794         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
795         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
796         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
797         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
798         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
799         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
800         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
801         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
802         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
803         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
804         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
805         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
806         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
807         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
808         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
809         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
810         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
811         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
812         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
813         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
814         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
815         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
816         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
817         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
818         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
819         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
820         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
821         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
822         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
823         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
824         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
825         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
826         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
827         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
828         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
829         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
830         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
831         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
832         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
833         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
834         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
835         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
836         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
838         * stdlib/tst-strtod.h (F16): New macro.
839         (F32): Likewise.
840         (F64): Likewise.
841         (F32X): Likewise.
842         (F64X): Likewise.
843         (F128X): Likewise.
844         (IF_FLOAT16): Likewise.
845         (IF_FLOAT32): Likewise.
846         (IF_FLOAT64): Likewise.
847         (IF_FLOAT32X): Likewise.
848         (IF_FLOAT64X): Likewise.
849         (IF_FLOAT128X): Likewise.
850         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
851         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
852         (STRTOD_TEST_FOREACH): Likewise.
853         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
854         (CHOOSE_f64): Likewise.
855         (CHOOSE_f32x): Likewise.
856         (CHOOSE_f64x): Likewise.
858 2017-11-07  Andreas Schwab  <schwab@suse.de>
860         * nptl/Makefile (tests-internal): Remove tst-typesizes.
862 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
864         [BZ #22403]
865         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
866         to be escaped.
867         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
868         to be escaped.
870 2017-11-07  Claude Paroz <claude@2xlibre.net>
872         [BZ #22403]
873         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
874         to be escaped.
875         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
876         to be escaped.
877         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
878         to be escaped.
880 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
882         [BZ #22298]
883         * nptl/allocatestack.c (allocate_stack): Check if
884         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
885         __PTHREAD_MUTEX_HAVE_PREV is defined.
886         * nptl/descr.h (pthread): Likewise.
887         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
888         Likewise.
889         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
890         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
891         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
892         * sysdeps/nptl/bits/thread-shared-types.h
893         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
894         defines.
895         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
896         of __WORDSIZE for internal layout.
897         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
898         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
899         instead of __WORDSIZE whether to use an union for __spins and __list
900         fields.
901         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
902         case.
903         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
904         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
905         defines.
906         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
907         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
908         Likewise.
909         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
910         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
911         Likewise.
912         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
913         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
914         Likewise.
915         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
916         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
917         Likewise.
918         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
919         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
920         Likewise.
921         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
922         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
923         Likewise.
924         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
925         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
926         Likewise.
927         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
928         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
929         Likewise.
930         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
931         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
932         Likewise.
933         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
934         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
935         Likewise.
936         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
937         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
938         Likewise.
939         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
940         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
941         Likewise.
942         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
943         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
944         Likewise.
945         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
946         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
947         Likewise.
949         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
950         New macros.
951         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
952         checks for expected input type size.
953         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
954         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
955         Likewise.
956         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
957         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
958         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
959         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
960         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
961         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
962         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
963         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
964         superflous runtime assert check.
965         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
966         Likewise.
967         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
968         Likewise.
969         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
970         Likewise.
971         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
972         Likewise.
973         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
974         Likewise.
975         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
976         Likewise.
977         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
978         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
979         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
980         Likewise.
981         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
982         Likewise.
983         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
984         Likewise.
985         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
986         Likewise.
987         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
988         Likewise.
989         * nptl/pthread_attr_setinheritsched.c
990         (__pthread_attr_setinheritsched): Likewise.
991         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
992         Likewise.
993         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
994         Likewise.
995         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
996         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
997         __old_pthread_attr_setstack): Likewise.
998         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
999         Likewise.
1000         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
1001         Likewise.
1002         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
1003         Likewise.
1004         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
1005         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
1006         Likewise.
1007         * nptl/tst-typesizes.c: Remove file.
1009         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
1010         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
1011         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
1012         checks for internal pthread_mutex_t offsets.
1013         * sysdeps/aarch64/nptl/pthread-offsets.h
1014         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
1015         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
1016         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
1017         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
1018         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
1019         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
1020         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
1021         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
1022         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
1023         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
1024         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
1025         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
1026         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
1027         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
1028         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
1029         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
1030         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
1031         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
1033 2017-11-07  Florian Weimer  <fweimer@redhat.com>
1035         * bits/mman-linux.h: Move ...
1036         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
1037         comment.
1038         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
1039         outdated comment.
1041 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1043         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
1044         Redefine STRNLEN as __strnlen_power8.
1046 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1048         * signal/sighold.c (sighold): Optimize implementation.
1050         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
1051         __NR_rt_sigqueueinfo.
1053         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1054         __sigtimedwait.
1055         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
1056         assume __NR_rt_sigtimedwait.
1057         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
1058         and add LIBC_CANCEL_HANDLED for cancellation marking.
1059         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1061         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1062         (sysdeps_routines): Add memchr_noneon.
1063         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
1064         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
1065         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
1066         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
1067         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
1068         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
1069         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
1071         * sysdeps/arm/arm-ifunc.h: New file.
1072         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
1073         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
1074         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
1075         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
1076         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
1077         (__memcpy_neon): Avoid create hidden alias.
1078         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
1079         (__memcpy_vfp): Likewise.
1080         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1081         (sysdep_routines): Add memcpy_arm.
1082         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
1084 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
1086         [BZ #22362]
1087         * Makerules (make-link-multidir): New.
1088         * config.make.in (multidir): New.
1089         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
1090         * configure: Regenerated.
1091         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
1092         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
1093         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
1094         New target.
1096 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
1098         [BZ #22402]
1099         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
1100         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
1102 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
1104         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
1105         to be escaped.
1107 2017-11-04  Florian Weimer  <fweimer@redhat.com>
1109         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
1111 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1113         * math/math.h [__HAVE_DISTINCT_FLOAT16
1114         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1115         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1116         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1117         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
1118         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
1119         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
1120         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1121         (__MATH_TG_F32): New macro.
1122         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1123         (__MATH_TG_F64X): Likewise.
1124         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1125         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
1127 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
1129         * po/de.po: Update translations.
1130         * po/ru.po: Likewise.
1132 2017-11-03  Florian Weimer  <fweimer@redhat.com>
1134         * manual/filesys.texi (Hard Links): Document linkat.
1136 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1138         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
1139         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1140         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1141         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1142         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1143         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1144         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
1145         the same as _Float128.
1146         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1147         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1148         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
1150         * stdlib/stdlib.h
1151         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
1152         Declare.
1153         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
1154         Likewise.
1155         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
1156         Likewise.
1157         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1158         (strtof32x): Likewise.
1159         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1160         (strtof64x): Likewise.
1161         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1162         (strtof128x): Likewise.
1163         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1164         (strfromf16): Likewise.
1165         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1166         (strfromf32): Likewise.
1167         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1168         (strfromf64): Likewise.
1169         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1170         (strfromf32x): Likewise.
1171         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1172         (strfromf64x): Likewise.
1173         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1174         (strfromf128x): Likewise.
1175         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1176         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1177         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1178         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1179         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1180         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1182 2017-11-03  Richard Henderson  <rth@twiddle.net>
1184         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1186 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1188         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1190 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1192         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1193         DT_TLSDESC_GOT initialization.
1194         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1195         (_dl_tlsdesc_resolve_hold): Likewise.
1196         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1197         (_dl_tlsdesc_resolve_hold): Likewise.
1198         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1199         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1201 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1203         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1205 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1207         [BZ #18572]
1208         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1209         non-lazily for R_ARM_TLS_DESC.
1211 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1213         [BZ #17078]
1214         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1215         R_ARM_TLS_DESC case.
1216         (elf_machine_lazy_rel): Remove the prelink check.
1218 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1220         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1221         DT_TLSDESC_GOT initialization.
1222         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1223         (_dl_tlsdesc_resolve_rela): Likewise.
1224         (_dl_tlsdesc_resolve_hold): Likewise.
1225         (_dl_tlsdesc_undefweak): Remove ldar.
1226         (_dl_tlsdesc_dynamic): Likewise.
1227         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1228         (_dl_tlsdesc_resolve_rela): Likewise.
1229         (_dl_tlsdesc_resolve_hold): Likewise.
1230         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1231         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1232         (_dl_tlsdesc_resolve_rela): Likewise.
1233         (_dl_tlsdesc_resolve_hold): Likewise.
1235 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1237         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1238         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1240 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1242         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1243         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1245 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1247         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1248         Declare.
1249         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1250         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1251         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1252         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1253         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1254         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1255         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1256         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1257         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1258         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1259         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1261 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1263         [BZ #22382]
1264         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1265         * localedata/locales/tpi_PG: Add standard header.
1267 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1269         test-errno-linux: quotactl can fail with EPERM in containers.
1270         * sysdeps/unix/sysv/linux/test-errno-linux.c
1271         (LIST, LIST_FORWARD): New macros.
1272         (check_error_in_list): New function.
1273         (test_wrp_rv): Accept list of permitted error codes.
1274         (test_wrp_rv2): Remove.
1275         (test_wrp): Call test_wrp_rv with list of error codes.
1276         (test_wrp2): Accept list of error codes.
1277         (do_test): Adjust.  Allow EPERM for quotactl.
1279 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1281         * stdio-common/bug16.c (do_test): Use array_length.
1282         * stdio-common/errlist.c (_sys_nerr): Likewise.
1283         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
1284         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
1285         * stdio-common/psiginfo.c (psiginfo): Use array_length.
1286         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
1287         (do_test): Use array_length.
1288         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
1289         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
1290         * stdio-common/tst-printf-round.c (do_test): Likewise.
1291         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
1292         (CHECK): Use array_length.
1293         * stdio-common/tstdiomisc.c (t3, F): Likewise.
1294         * stdio-common/tstscanf.c (main): Likewise.
1295         * stdio-common/vfprintf.c (process_string_arg): Likewise.
1297 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1299         Add array_length and array_end macros.
1300         * include/array_length.h: New file.
1302 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1304         [BZ #22332]
1305         * posix/tst-glob-tilde.c (do_noescape): New variable.
1306         (one_test): Process it.
1307         (do_test): Set do_noescape.  Add unescaping test case.
1309 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
1311         * math/complex.h
1312         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
1313         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
1314         with appropriate macros defined and undefined.
1315         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
1316         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1317         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
1318         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1319         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
1320         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1321         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
1322         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1323         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
1324         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1326         * math/complex.h
1327         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
1328         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
1329         that for long double.  Do not condition define and undefine of
1330         _Mdouble_complex_ on [__CFLOAT128].
1332 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1334         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1335         of <sysdeps/generic/sysdep.h>.
1336         (ALIGNARG): Removed.
1337         (ASM_SIZE_DIRECTIVE): Likewise.
1338         (ENTRY): Likewise.
1339         (END): Likewise.
1340         (ENTRY_CHK): Likewise.
1341         (END_CHK): Likewise.
1342         (syscall_error): Likewise.
1343         (mcount): Likewise.
1344         (PSEUDO_END): Likewise.
1345         (L): Likewise.
1346         (atom_text_section): Likewise.
1347         * sysdeps/x86/sysdep.h: New file.
1348         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1349         of <sysdeps/generic/sysdep.h>.
1350         (ALIGNARG): Removed.
1351         (ASM_SIZE_DIRECTIVE): Likewise.
1352         (ENTRY): Likewise.
1353         (END): Likewise.
1354         (ENTRY_CHK): Likewise.
1355         (END_CHK): Likewise.
1356         (syscall_error): Likewise.
1357         (mcount): Likewise.
1358         (PSEUDO_END): Likewise.
1359         (L): Likewise.
1360         (atom_text_section): Likewise.
1362 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
1364         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
1365         category of LC_CTYPE set to "i18n:2012".
1366         * localedata/locales/i18n_ctype: Regenerate.
1368 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
1370         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
1371         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1372         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1373         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1375         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
1376         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1377         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1378         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
1380 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
1382         * math/complex.h
1383         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
1384         New macro.
1385         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
1386         Likewise.
1387         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
1388         Likewise.
1389         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1390         (CMPLXF32X): Likewise.
1391         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1392         (CMPLXF64X): Likewise.
1393         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1394         (CMPLXF128X): Likewise.
1396         * math/math.h
1397         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
1398         (__MATH_EVAL_FMT2): Define to add 0.0f.
1400 2017-10-31  Alan Modra  <amodra@gmail.com>
1402         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
1403         include sysdep.h.
1404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1405         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
1407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
1408         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
1409         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
1410         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
1411         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
1412         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
1413         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1414         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
1415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
1416         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
1417         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1418         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
1419         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
1420         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
1421         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1422         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
1423         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
1424         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1425         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1426         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1427         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1428         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1429         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1430         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1431         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1432         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
1433         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
1434         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
1435         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
1436         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
1437         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
1438         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
1439         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
1440         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
1441         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
1442         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
1443         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
1444         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
1445         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
1446         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
1447         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
1448         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
1449         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
1450         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
1451         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
1452         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1453         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1454         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
1455         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
1456         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
1457         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
1458         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1459         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
1460         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
1461         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
1462         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1463         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1464         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1465         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
1466         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
1467         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
1468         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
1469         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
1470         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
1471         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
1472         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
1474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
1475         include sysdep.h and math_ldbl_opt.h.
1477         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
1478         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
1479         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
1481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
1482         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
1483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
1484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
1485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
1486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
1487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
1488         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
1489         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
1490         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
1491         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
1492         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
1493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
1494         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
1495         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
1496         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
1497         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
1498         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
1499         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
1500         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1501         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
1502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1504 2017-10-31  Alan Modra  <amodra@gmail.com>
1506         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
1507         string/strncase_l.c, not string/strncase.c.
1508         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
1509         (libc_hidden_def): Redefine.
1511 2017-10-31  Alan Modra  <amodra@gmail.com>
1513         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
1514         (__STRCMP, STRCMP, __strcasecmp_l): Define.
1515         (__strcasecmp): Don't define.
1517 2017-10-31  Alan Modra  <amodra@gmail.com>
1519         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
1520         IS_IN (libc).
1521         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1522         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1523         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1525 2017-10-31  Alan Modra  <amodra@gmail.com>
1527         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
1528         USE_AS_STPNCPY.
1530 2017-10-31  Alan Modra  <amodra@gmail.com>
1532         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
1533         Redefine only when SHARED.
1535 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1537         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1538         Include <bits/math-finite.h> with appropriate macros defined and
1539         undefined.
1540         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1541         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1542         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1543         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1544         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1546         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
1547         [!_Mlong_double_] (_Mlong_double_): Likewise.
1548         [!_Mfloat16_] (_Mfloat16_): Likewise.
1549         [!_Mfloat32_] (_Mfloat32_): Likewise.
1550         [!_Mfloat64_] (_Mfloat64_): Likewise.
1551         [!_Mfloat128_] (_Mfloat128_): Likewise.
1552         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
1553         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
1554         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
1555         (_Mdouble_): Define without indirection through those macros.
1556         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
1557         [!_Mfloat128_] (_Mfloat128_): Likewise.
1558         [_Mlong_double_] (_Mlong_double_): Likewise.
1559         (_Mdouble_): Define without indirection through those macros.
1560         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
1561         not add -D_Mlong_double_=double.
1562         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
1563         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
1565 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1567         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
1569 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1571         * sysdeps/x86/libc-start.c: Reformat.
1573 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1575         [BZ #22353]
1576         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
1577         (1): Renamed to ...
1578         (L(Src0)): This.
1579         (L(Src1)): New.
1580         (L(Src2)): Likewise.
1581         (L(1)): Renamed to ...
1582         (L(Src3)): This.
1584 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1586         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
1587         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
1588         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
1589         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
1590         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
1591         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
1592         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
1593         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
1594         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
1595         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
1596         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
1597         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
1598         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
1599         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
1600         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
1601         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
1602         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
1603         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
1604         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
1605         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
1606         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
1607         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
1608         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
1609         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
1610         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
1611         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
1612         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
1613         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
1614         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
1615         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
1616         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
1617         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
1618         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
1619         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
1620         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
1621         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
1622         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
1623         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
1624         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
1625         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
1626         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
1627         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
1628         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
1629         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
1630         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
1631         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
1632         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
1633         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
1634         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
1635         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
1636         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
1637         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
1638         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
1639         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
1640         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
1641         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
1642         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
1643         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
1644         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
1645         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
1646         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
1647         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
1648         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
1649         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
1650         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
1651         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
1653 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1655         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
1656         always defined.
1657         * io/tst-mkdirat.c (do_test): Likewise.
1658         * io/tst-mkfifoat.c (do_test): Likewise.
1659         * io/tst-mknodat.c (do_test): Likewise.
1660         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
1661         * locale/programs/locale.c (select_dirs): Likewise.
1662         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
1663         * posix/bug-glob2.c (my_readdir): Likewise.
1664         * posix/tst-dir.c (main): Likewise.
1665         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
1666         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
1668 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1670         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
1671         just __USE_GNU.
1673 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1675         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
1676         Convert to support/test-driver.c.
1677         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
1678         New macro parameters.
1679         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
1680         * posix/tst-gnuglob.c: New file.
1681         * posix/tst-gnuglob64.c: Likewise.
1682         * posix/Makefile (tests): Add tst-gnuglob64.
1684 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
1686         [BZ #19485]
1687         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
1688         and use a better translation for March in “mon”.
1689         * localedata/locales/csb_PL: Use more ASCII to improve the
1690         readability of the source.
1692 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
1694         [BZ #13953]
1695         * localedata/locales/km_KH: Use ASCII as much
1696         as possible for better readability of the source and
1697         remove useless comments.
1698         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
1699         was commented out and apparently wrong anyway because it was
1700         using Lao characters. If Buddhist era should be used
1701         for km_KH, a native speaker should write the correct formaat
1702         for Khmer.
1703         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
1704         (According to CLDR, the first weekday for Cambodia is Sunday).
1705         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
1706         (These were using Lao characters which must be wrong. If we get
1707         the correct data from a native speaker, we could add it back, until
1708         then it is better not to have name_mr and name_mrs at all than
1709         having it wrong).
1711 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
1713         * locale/loadlocale.c: Correct size of
1714         _nl_value_type_LC_<category> arrays.
1716 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
1718         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1719         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
1720         with appropriate macros defined and undefined.
1721         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1722         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1723         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1724         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1725         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1727 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1729         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
1730         "-O2 -march=i586".
1732 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1734         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
1735         with lowercase letters to make it agree with CLDR.
1737 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1739         [BZ #15260]
1740         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
1741         first letters of yesstr and nostr in yesexpr and noexpr,
1742         not for the full words.
1743         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1744         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
1745         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
1746         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
1747         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
1748         first letters of yesstr and nostr in yesexpr and noexpr,
1749         until now only English was matched in yesexpr and noexpr.
1750         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
1751         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
1752         fil but not for tl. As tl and fil are very similar, using fil
1753         is probably better than using English.
1755 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
1757         [BZ #21706]
1758         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
1759         in yesstr and nostr.
1761 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
1763         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1764         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
1765         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
1766         Likewise.
1767         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
1768         Likewise.
1769         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
1770         Likewise.
1771         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
1772         Likewise.
1773         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1774         (SNANF128X): Likewise.
1776         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1777         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
1778         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1779         (HUGE_VAL_F32): Likewise.
1780         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1781         (HUGE_VAL_F64): Likewise.
1782         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1783         (HUGE_VAL_F32X): Likewise.
1784         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1785         (HUGE_VAL_F64X): Likewise.
1786         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1787         (HUGE_VAL_F128X): Likewise.
1789 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1791         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
1792         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
1793         for the br_FR locale.
1795 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1797         [BZ #21706]
1798         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
1800 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
1802         * locale/programs/record-status.h: Define globals, and function
1803         prototypes. Move function bodies...
1804         * locale/programs/record-status.c: ... to here. New file.
1805         * iconv/Makefile (iconv_prog-modules): Add record-status.
1806         * locale/Makefile (lib-modules): Likewise.
1807         * iconv/iconv_prog.c: Remove verbose.
1808         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
1809         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
1810         record a warning about ASCII compatibility.
1811         * locale/programs/ld-monetary.c (monetary_finish): If
1812         warn_int_curr_symbol is true then record a warning about the symbol
1813         not being in our ISO 4217 list.
1814         * locale/programs/locale.c: Include record-status.h. Remove verbose.
1815         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
1816         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
1817         (OPT_NO_WARN): Define.
1818         (OPT_WARN): Define.
1819         (options): Add entry for --no-warnings, and --warnings.
1820         (set_warnings): New function to enable/disable warnings.
1821         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
1822         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
1823         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
1824         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
1825         Pass flags to generate_locale.
1826         (generate_locale): Accept new flag argument and pass it to localedef
1827         invocation.
1828         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
1829         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
1831         * localedata/Makefile (test-input-data): Use full file name.
1832         * localedata/da_DK.in: Rename to...
1833         * localedata/da_DK.ISO-8859-1.in: ...this.
1834         * localedata/de_DE.in: Rename to...
1835         * localedata/de_DE.ISO-8859-1.in: ...this.
1836         * localedata/en_US.in: Rename to...
1837         * localedata/en_US.ISO-8859-1.in: ...this.
1838         * localedata/fr_FR.in: Rename to...
1839         * localedata/fr_FR.UTF-8.in: ... this.
1840         * localedata/hr_HR.in: Rename to...
1841         * localedata/hr_HR.ISO-8859-2.in: ...this.
1842         * localedata/hu_HU.in: Rename to...
1843         * localedata/hu_HU.UTF-8.in: ...this.
1844         * localedata/si_LK.in: Rename to...
1845         * localedata/si_LK.UTF-8.in: ...this.
1846         * localedata/sv_SE.in: Rename to...
1847         * localedata/sv_SE.ISO-8859-1.in: ...this.
1848         * localedata/tr_TR.in: Rename to...
1849         * localedata/tr_TR.UTF-8.in: ...this.
1850         * localedata/uk_UA.in: Rename to...
1851         * localedata/uk_UA.UTF-8.in: ...this.
1852         * localedata/sort-test.sh: Test file is locale name with the
1853         suffix.
1855         * localedata/unicode-gen/Makefile (check_i18n): Rename to
1856         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
1857         file.
1858         * localedata/locales/i18n_ctype: Regenerate.
1859         * localedata/locales/tr_TR: Likewise.
1860         * localedata/locales/translit_circle: Likewise.
1861         * localedata/locales/translit_cjk_compat: Likewise.
1862         * localedata/locales/translit_combining: Likewise.
1863         * localedata/locales/translit_compat: Likewise.
1864         * localedata/locales/translit_font: Likewise.
1865         * localedata/locales/translit_fraction: Likewise.
1867 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1869         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
1870         lxvd2x/stxvd2x with lvx/stvx.
1871         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1873 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1875         * include/alloc_buffer.h: Replace "if if " with "if " in
1876         comments.
1877         * sysdeps/mips/memcpy.S: Likkewise.
1878         * sysdeps/mips/memset.S: Likewise.
1879         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
1880         Likewise.
1881         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
1882         Likewise.
1883         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
1884         Likewise.
1886 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1888         [BZ #15261]
1889         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
1890         yesexpr and noexpr.
1891         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1892         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1893         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1894         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1895         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1896         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1897         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1899 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1901         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
1902         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1903         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1904         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1905         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1906         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
1907         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1908         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1909         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1910         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1911         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1912         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1914 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1916         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
1917         as possible for better readability of the source.
1918         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
1919         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
1920         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
1921         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
1922         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
1923         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
1924         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
1925         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
1926         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1927         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
1928         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
1929         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
1930         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
1931         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
1932         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
1933         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
1934         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
1935         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
1936         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
1937         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
1938         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
1939         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
1940         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
1941         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
1942         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
1943         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
1944         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
1945         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
1946         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
1947         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
1948         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
1949         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1950         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
1951         * localedata/locales/en_US (LC_MESSAGES): Likewise.
1952         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
1953         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
1954         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
1955         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
1956         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
1957         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
1958         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
1959         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
1960         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
1961         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
1962         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
1963         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
1964         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
1965         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
1966         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
1967         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
1968         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
1969         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
1970         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
1971         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1972         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1973         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
1974         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
1975         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1976         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
1977         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
1978         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
1979         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
1980         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
1981         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
1982         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
1983         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
1984         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
1985         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
1986         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
1987         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
1988         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
1989         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
1990         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
1991         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
1992         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1993         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
1994         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
1995         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
1996         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
1997         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
1998         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
1999         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
2000         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
2001         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2002         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
2003         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
2004         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
2005         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2006         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
2007         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
2008         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
2009         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
2010         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2011         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
2012         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
2013         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2014         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
2015         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2016         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
2017         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
2018         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
2019         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
2020         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
2021         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
2022         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
2023         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
2024         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
2025         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
2026         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
2027         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
2028         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
2029         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
2030         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2031         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
2032         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
2033         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
2034         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
2035         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
2036         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
2037         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
2038         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
2039         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
2040         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
2041         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
2042         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
2043         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
2044         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
2045         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
2046         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
2047         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
2048         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
2049         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
2050         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
2051         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
2052         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
2053         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
2054         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
2055         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
2056         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
2057         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
2058         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
2059         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
2060         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
2061         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
2062         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
2063         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2064         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
2065         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
2066         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
2067         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
2068         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
2069         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
2070         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
2071         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
2072         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2073         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
2074         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
2075         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
2076         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
2077         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
2078         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
2079         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
2080         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
2081         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
2082         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
2083         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2084         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
2085         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
2086         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
2087         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
2088         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2089         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2090         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2091         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
2093 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2095         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
2096         (Use first letters of yesstr and nostr correctly instead of using
2097         full words).
2099 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2101         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
2102         (Use first letters of yesstr and nostr correctly).
2104 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2106         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
2107         also check for the first characters of yesstr and nostr.
2108         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
2109         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
2111 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2113         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
2114         also check for Chinese characters.
2116 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2118         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
2119         match also for the contents of yesstr and nostr. As the first letter
2120         of yesstr and nostr is equal, checking only for the first letter
2121         is not enough.
2123 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2125         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
2126         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
2128 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2130         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
2131         of main contributor.
2133 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2135         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
2136         instead of using English.
2138 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2140         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
2141         by including the first letters of nostr and yesexpr in the regexp.
2142         Also make it more readable by using ASCII where possible.
2144 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2146         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
2147         the first letter of nostr in the regexp. It agrees with CLDR now.
2148         Also make it more readable by using ASCII where possible.
2150 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2152         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
2153         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
2154         these strings contain a U+17D6 (which somewhat looks like a colon)
2155         instead of a real colon to separate the full words for “yes”
2156         and “no” from the single letter responses.
2158 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2160         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
2161         it agree with CLDR (include the first letter of yesstr).
2162         Also make it more readable by using ASCII where possible.
2164 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2166         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2167         and improve yesexpr and noexpr. The yesstr and nostr apparently
2168         came from CLDR. And CLDR has a bug there: these strings contain
2169         a U+0903 (which looks like a colon) instead of a real colon
2170         to separate the full words for “yes” and “no” from the single
2171         letter responses.
2173 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2175         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2176         letters of the full yesstr and nostr in yesexpr and noexpr.
2178 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2180         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2181         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2182         * localedata/locales/an_ES: Make source more readable by using ASCII
2183         where possible.
2185 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2187         [BZ #20952]
2188         * localedata/locales/yuw_PG: New file.
2189         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2190         * locale/iso-639.def: Add Yau (Uruwa).
2192 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2194         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2196 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2198         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2199         (__libc_realloc): Likewise.
2200         (_mid_memalign): Likewise.
2201         (__libc_calloc): Likewise.
2203 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2205         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2206         by adding the generic +1 and -0 as in all other locales.
2207         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2208         day names and make it more readable by using ASCII where possible.
2210 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2212         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2213         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2215 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2217         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2218         WNOHANG in waitpid call.
2220 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2222         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2223         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2225         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2226         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2227         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2228         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2229         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2230         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2231         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2232         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2233         variables.
2235 2017-10-23  Michael Collison  <michael.collison@arm.com>
2237         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2238         with __builtin_sqrt.
2239         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2240         with __builtin_sqrtf.
2241         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2242         with __builtin_ceil.
2243         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2244         with __builtin_ceilf.
2245         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2246         with __builtin_floor.
2247         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2248         with __builtin_floorf.
2249         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2250         with __builtin_fma.
2251         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2252         with __builtin_fmaf.
2253         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2254         with __builtin_fmax.
2255         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2256         with __builtin_fmaxf.
2257         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2258         with __builtin_fmin.
2259         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2260         with __builtin_fminf.
2261         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2262         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2263         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2264         with builtin_rint and conversion to int.
2265         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2266         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2267         with builtin_llround.
2268         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2269         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2270         with builtin_rint and conversion to long int.
2271         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2272         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2273         with builtin_lround.
2274         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2275         with builtin_lroundf.
2276         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2277         statements with __builtin_nearbyint.
2278         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2279         statements with __builtin_nearbyintf.
2280         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2281         with __builtin_rint.
2282         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2283         with __builtin_rintf.
2284         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
2285         with __builtin_round.
2286         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
2287         with __builtin_roundf.
2288         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
2289         with __builtin_trunc.
2290         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
2291         with __builtin_truncf.
2292         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
2293         and s_l[l]round[f].c too.
2295 2017-10-23  Alan Modra  <amodra@gmail.com>
2297         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
2298         Adjust stack after restoring regs.  Add missing LR cfi_restore.
2300 2017-10-23  Alan Modra  <amodra@gmail.com>
2302         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
2303         Move LR save and frame setup/teardown and LR restore to
2304         immediately around memset call.  Provide cfi.
2306 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2308         * sysdeps/i386/fpu/e_powf.S: Removed.
2309         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
2310         * sysdeps/i386/fpu/w_powf.c: Likewise.
2311         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
2312         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2313         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2314         Add e_powf-sse2.
2315         (CFLAGS-e_powf-sse2.c): New.
2316         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
2317         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
2319 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2321         * sysdeps/i386/fpu/e_log2f.S: Removed.
2322         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
2323         * sysdeps/i386/fpu/w_log2f.c: Likewise.
2324         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
2325         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2326         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2327         Add e_log2f-sse2.
2328         (CFLAGS-e_log2f-sse2.c): New.
2329         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
2330         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
2332 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2334         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2335         Add e_powf-fma.
2336         (CFLAGS-e_powf-fma.c): New.
2337         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
2338         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
2340 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2342         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2343         Add e_log2f-fma.
2344         (CFLAGS-e_log2f-fma.c): New.
2345         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
2346         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
2348 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2350         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2351         Add e_logf-fma.
2352         (CFLAGS-e_logf-fma.c): New.
2353         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
2354         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
2356 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2358         * sysdeps/i386/fpu/e_logf.S: Removed.
2359         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
2360         * sysdeps/i386/fpu/w_logf.c: Likewise.
2361         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
2362         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
2363         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2364         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2365         Add e_logf-sse2.
2366         (CFLAGS-e_logf-sse2.c): New.
2367         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
2368         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
2370 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2372         * sysdeps/i386/fpu/e_exp2f.S: Removed.
2373         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
2374         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
2375         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2376         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2377         Add e_exp2f-sse2.
2378         (CFLAGS-e_exp2f-sse2.c): New.
2379         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
2380         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
2382 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2384         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2385         Add e_exp2f-fma.
2386         (CFLAGS-e_exp2f-fma.c): New.
2387         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
2388         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
2390 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2392         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
2393         * sysdeps/i386/fpu/e_expf.S: Likewise.
2394         * sysdeps/i386/fpu/math_errf.c: Likewise.
2395         * sysdeps/i386/fpu/w_expf.c: Likewise.
2396         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
2397         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2398         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
2399         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
2400         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2401         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2402         Remove e_expf-ia32.
2403         (CFLAGS-e_expf-sse2.c): New.
2404         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
2405         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
2407 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2409         * sysdeps/x86_64/fpu/e_expf.S: Removed.
2410         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
2411         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
2412         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
2413         e_expf.c.
2414         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
2415         New.
2416         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
2417         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
2418         Renamed to ...
2419         (__redirect_expf): This.
2420         (SYMBOL_NAME): Changed to expf.
2421         (__ieee754_expf): Renamed to ...
2422         (__expf): This.
2423         (__GI___expf): This.
2424         (__ieee754_expf): Add strong_alias.
2425         (__expf_finite): Likewise.
2426         (__expf): New.
2427         Include <sysdeps/ieee754/flt-32/e_expf.c>.
2429 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
2431         [BZ #22332]
2432         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
2433         unescaping.
2435 2017-10-21  Florian Weimer  <fweimer@redhat.com>
2437         * posix/Makefile (tests): Add tst-glob-tilde.
2438         (tests-special): Add tst-glob-tilde-mem.out
2439         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
2440         (tst-glob-tilde-mem.out): Add mtrace check.
2441         * posix/tst-glob-tilde.c: New file.
2443 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
2445         * bits/floatn-common.h: New file.
2446         * math/Makefile (headers): Add bits/floatn-common.h.
2447         * bits/floatn.h: Include <bits/floatn-common.h>.
2448         * sysdeps/ia64/bits/floatn.h: Likewise.
2449         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2450         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
2451         * sysdeps/powerpc/bits/floatn.h: Likewise.
2452         * sysdeps/x86/bits/floatn.h: Likewise.
2454 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2456         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
2457         indicates whether compiler emits an warning for alias for
2458         functions with incompatible types.
2460         [BZ #22273]
2461         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
2462         the auxiliary process is terminated by a signal before calling _exit
2463         or execve.
2465 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2467         [BZ #21265]
2468         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
2469         New.
2470         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
2471         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
2472         and bit_arch_XSAVEC_Usable if needed.
2473         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
2474         and bit_arch_Use_dl_runtime_resolve_opt.
2475         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
2476         Removed.
2477         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
2478         (bit_arch_Prefer_No_AVX512): Updated.
2479         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
2480         (bit_arch_XSAVEC_Usable): New.
2481         (STATE_SAVE_OFFSET): Likewise.
2482         (STATE_SAVE_MASK): Likewise.
2483         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
2484         (cpu_features): Add xsave_state_size and xsave_state_full_size.
2485         (index_arch_Use_dl_runtime_resolve_opt): Removed.
2486         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
2487         (index_arch_XSAVEC_Usable): New.
2488         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2489         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
2490         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
2491         is enabled.
2492         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
2493         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
2494         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
2495         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
2496         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
2497         _dl_runtime_resolve_xsavec.
2498         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
2499         Removed.
2500         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
2501         instead of VEC_SIZE.
2502         (REGISTER_SAVE_BND0): Removed.
2503         (REGISTER_SAVE_BND1): Likewise.
2504         (REGISTER_SAVE_BND3): Likewise.
2505         (REGISTER_SAVE_RAX): Always defined to 0.
2506         (VMOV): Removed.
2507         (_dl_runtime_resolve_avx): Likewise.
2508         (_dl_runtime_resolve_avx_slow): Likewise.
2509         (_dl_runtime_resolve_avx_opt): Likewise.
2510         (_dl_runtime_resolve_avx512): Likewise.
2511         (_dl_runtime_resolve_avx512_opt): Likewise.
2512         (_dl_runtime_resolve_sse): Likewise.
2513         (_dl_runtime_resolve_sse_vex): Likewise.
2514         (USE_FXSAVE): New.
2515         (_dl_runtime_resolve_fxsave): Likewise.
2516         (USE_XSAVE): Likewise.
2517         (_dl_runtime_resolve_xsave): Likewise.
2518         (USE_XSAVEC): Likewise.
2519         (_dl_runtime_resolve_xsavec): Likewise.
2520         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
2521         Removed.
2522         (_dl_runtime_resolve_avx512_opt): Likewise.
2523         (_dl_runtime_resolve_avx): Likewise.
2524         (_dl_runtime_resolve_avx_opt): Likewise.
2525         (_dl_runtime_resolve_sse): Likewise.
2526         (_dl_runtime_resolve_sse_vex): Likewise.
2527         (_dl_runtime_resolve_fxsave): New.
2528         (_dl_runtime_resolve_xsave): Likewise.
2529         (_dl_runtime_resolve_xsavec): Likewise.
2531 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
2533         [BZ #22320]
2534         CVE-2017-15670
2535         * posix/glob.c (__glob): Fix one-byte overflow.
2537 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2539         * malloc/malloc.c (sysdep-cancel.h): Add include.
2541 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2543         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
2545 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
2547         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
2548         (tests): Remove $(objpfx)ga_test depdendency.
2549         * resolv/ga_test.c: Remove file.
2551 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2553         [BZ #18812]
2554         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
2555         * localedata/locales/kab_DZ: New file.
2557 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2559         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
2560         _dl_relocate_static_pie instead of _dl_start to compute load
2561         address in static PIE.
2563 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2565         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
2567 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2569         [BZ #13605]
2570         * localedata/SUPPORTED: Add shn_MM/UTF-8.
2571         * localedata/locales/shn_MM: New file.
2573 2017-10-20  Florian Weimer  <fweimer@redhat.com>
2575         [BZ #22321]
2576         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
2577         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
2578         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
2579         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
2580         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
2581         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
2583 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2585         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2587 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
2589         * sysdeps/mips/ieee754/bits/floatn.h: New file.
2591         [BZ #22322]
2592         * sysdeps/mips/bits/long-double.h: Move to ....
2593         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
2595 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
2597         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
2599 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
2600             H.J. Lu  <hongjiu.lu@intel.com>
2602         [BZ #22299]
2603         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
2604         GLRO(dl_platform) to NULL.
2605         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
2606         (modules-names): Add tst-platformmod-1 and
2607         x86_64/tst-platformmod-2.
2608         (CFLAGS-tst-platform-1.c): New.
2609         (CFLAGS-tst-platformmod-1.c): Likewise.
2610         (CFLAGS-tst-platformmod-2.c): Likewise.
2611         (LDFLAGS-tst-platformmod-2.so): Likewise.
2612         ($(objpfx)tst-platform-1): Likewise.
2613         ($(objpfx)tst-platform-1.out): Likewise.
2614         (tst-platform-1-ENV): Likewise.
2615         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
2616         * sysdeps/x86_64/tst-platform-1.c: New file.
2617         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
2618         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
2620 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
2622         [BZ #13994]
2623         * locale/iso-639.def: Add Karbi.
2624         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
2625         * localedata/locales/mjw_IN: New file.
2627 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
2629         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
2630         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2631         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
2632         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
2633         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2634         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2635         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
2636         <bits/floatn.h>.
2637         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2638         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2639         * manual/math.texi (Mathematics): Document additional architecture
2640         support for _Float128.
2641         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2642         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2643         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2644         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2645         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2646         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2647         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2648         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2649         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2650         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2651         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2652         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2653         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2654         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2655         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2657 2017-10-18  Renlin Li  <renlin.li@arm.com>
2659         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
2660         _DYNAMIC symbol to calculate load address.
2662 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
2664         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
2665         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
2666         summary bits.
2667         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
2668         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
2670 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
2672         [BZ #16777]
2673         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
2674         and improve readability by using more ASCII.
2675         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
2676         and improve readability by using more ASCII.
2678 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
2680         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
2681         not all targets support atomics on bool.
2683 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
2685         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
2686         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
2687         __f128.
2688         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2689         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
2690         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2691         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
2692         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2693         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
2695 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2697         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
2698         defines.
2700 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2702         [BZ #22159]
2703         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
2704         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
2705         (do_check_remalloced_chunk): Fix build bug.
2706         (do_check_malloc_state): Add assert that checks arena->top.
2707         (malloc_consolidate): Remove initialization.
2708         (int_mallinfo): Remove call to malloc_consolidate.
2709          (__libc_mallopt): Clarify why malloc_consolidate is needed.
2711 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2713         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
2714         (have_fastchunks): Remove.
2715         (clear_fastchunks): Remove.
2716         (set_fastchunks): Remove.
2717         (malloc_state): Add have_fastchunks.
2718         (malloc_init_state): Use have_fastchunks.
2719         (do_check_malloc_state): Remove incorrect invariant checks.
2720         (_int_malloc): Use have_fastchunks.
2721         (_int_free): Likewise.
2722         (malloc_consolidate): Likewise.
2724 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2726         * malloc/malloc.c (tcache_put): Inline.
2727         (tcache_get): Inline.
2729 2017-10-17  Jordi Mallach  <jordi@gnu.org>
2731         Aurelien Jarno  <aurelien@aurel32.net>
2732         [BZ #2522]
2733         * localedata/locales/ca_ES@valencia: New file.
2734         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
2736 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
2738         [BZ #22296]
2739         * math/math.h: Let signbit use the builtin in C++ mode with gcc
2740         < 6.x
2742 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2744         * scripts/build-many-glibcs.py (Context.add_all_configs):
2745         Add arm-linux-gnueabihf multiarch extra_glibcs.
2747         * sysdeps/generic/ifunc-init.h: New file.
2748         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
2750 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
2752         [BZ #22019]
2753         * localedata/locales/el_GR: Set n_cs_precedes to 0.
2754         * localedata/locales/el_CY: copy "el_GR" because it is identical.
2755         * stdlib/tst-strfmon_l.c: adapt test case.
2757 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2759         * sysdeps/generic/float128-abi.h: New file.
2760         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
2761         non-__prefixed symbols to ....
2762         * math/Versions: ... here.  Include <float128-abi.h>.
2763         * stdlib/Versions ... and here.  Include <float128-abi.h>
2765 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2767         * version.h (VERSION): Switch to ".9000" as the development
2768         version suffix.
2770 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2772         [BZ #22050]
2773         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
2774         compat_symbol_reference to access non-default version.
2776 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2778         * malloc/Makefile (others-extras): Set to mcheck-init.o.
2780 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
2782         * include/shlib-compat.h (compat_symbol_reference): Update
2783         comment.
2785 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2787         * math/Makefile (test-types): Add
2788         $(type-float128-$(float128-alias-fcts)).
2789         * math/test-float128.h (TYPE_STR): Define conditional on
2790         [FLT128_MANT_DIG == LDBL_MANT_DIG].
2791         (ULP_IDX): Likewise.
2792         (ULP_I_IDX): Likewise.
2794         * stdlib/strtold.c: Include <bits/floatn.h>
2795         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
2796         and later undefine as macro.  Define as weak alias if
2797         [!USE_WIDE_CHAR].
2798         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
2799         and later undefine as macro.  Define as weak alias if
2800         [USE_WIDE_CHAR].
2801         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
2802         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
2803         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2804         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2805         Define and later undefine as macro.  Define as weak alias if
2806         [USE_WIDE_CHAR].
2807         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
2808         <bits/floatn.h>.
2809         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
2810         Define and later undefine as macro.  Define as weak alias if
2811         [!USE_WIDE_CHAR].
2812         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2813         Define and later undefine as macro.  Define as weak alias if
2814         [USE_WIDE_CHAR].
2816 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
2818         * localedata/collate-test.c (allocate_arrays): Don't use \n in
2819         record_verbose messages.
2821 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2823         [BZ #22052]
2824         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
2825         to silence -O3 -Wall warning with GCC 7.
2827 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
2829         * Makeconfig (+link-static-before-libc): Use the first of
2830         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
2831         * gmon/Makefile (tests): Add tst-gmon-static.
2832         (tests-static): Likewise.
2833         (CFLAGS-tst-gmon-static.c): New.
2834         (CRT-tst-gmon-static): Likewise.
2835         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
2836         (tst-gmon-static-ENV): Likewise.
2837         (tests-special): Likewise.
2838         ($(objpfx)tst-gmon-static.out): Likewise.
2839         (clean-tst-gmon-static-data): Likewise.
2840         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
2841         * gmon/tst-gmon-static-gprof.sh: New file.
2842         * gmon/tst-gmon-static.c: Likewise.
2844 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
2846         [BZ #22295]
2847         * locale/programs/linereader.c (get_string): Don't warn on
2848         non-symbolic character.
2850         [BZ #22294]
2851         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
2852         int_curr_symbol.
2854         [BZ #22292]
2855         * locale/programs/record-status.h: New file
2856         * locale/programs/locale.c: Add comment.
2857         * locale/programs/charmap-dir.c: Don't include error.h.
2858         (charmap_opendir): Use record_error.
2859         * locale/programs/charmap.c: Don't include error.h.
2860         (charmap_read): Use record_error, and record_warning.
2861         (parse_charmap): Likewise.
2862         * locale/programs/ld-address.c: Don't include error.h.
2863         (address_finish): Use record_error, and record_warning.
2864         * locale/programs/ld-collate.c: Don't include error.h.
2865         (collate_finish): Use record_error, and record_error_at_line.
2866         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
2867         (ctype_class_new): Likewise.
2868         (ctype_map_new): Likewise.
2869         (set_one_default): Likewise.
2870         (set_class_defaults): Likewise.
2871         (translit_flatten): Likewise.
2872         (allocate_arrays): Use record_error, and record_verbose.
2873         * locale/programs/ld-identification.c: Don't include error.h.
2874         (indentation_finish): Use record_error and record_warning.
2875         * locale/programs/ld-measurement.c: Don't include error.h.
2876         (measurement_finish): Use record_error.
2877         * locale/programs/ld-messages.c
2878         (message_finish): Likewise.
2879         * locale/programs/ld-monetary.c
2880         (monetary_finish): Likewise.
2881         * locale/programs/ld-name.c (name_finish): Use record_error
2882         and record_warning.
2883         * locale/programs/ld-numeric.c
2884         (numeric_finish): Use record_error.
2885         * locale/programs/ld-paper.c: Don't include error.h.
2886         (paper_finish): Use record_error.
2887         * locale/programs/ld-telephone.c: Don't include error.h.
2888         (telephone_finish): Use record_error.
2889         * locale/programs/ld-time.c (time_finish): Likewise.
2890         * locale/programs/linereader.h (lr_error): Make inline func.
2891         * locale/programs/localedef.c: Define recorded_warning_count,
2892         and recorded_error_count.
2893         (main): Use record_error. Use recorded_error_count and
2894         recorded_warning_count to issue correct error returns.
2895         (add_to_readlist): Use record_error.
2896         (find_locale): Likewise.
2897         (load_locale): Likewise.
2898         * locale/programs/localedef.h: Remove be_quiet
2899         and WITH_CUR_LOCALE.
2900         * locale/programs/locarchive.c (compare_from_file): Use
2901         record_error.
2902         * locale/programs/locfile.c (write_locale_data): Use
2903         record_error.
2904         * locale/programs/repertoire.c: Dont include error.h.
2905         (repertoire_complain): Use record_error.
2906         * localedata/tst-fmon.sh: Expect failures from localedef.
2907         * localedata/tst-locale.sh: Likewise.
2908         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
2910         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
2911         (REPORTS): Likewise.
2912         (check): Likewise.
2913         (i18n): Rename to...
2914         (i18n_ctype): ...this.
2915         (i18n-report): Rename to...
2916         (i18n_ctype-report): ...this.
2917         * localedata/locales/i18n_ctype: Regenerate.
2918         * localedata/locales/i18n: copy i18n_ctype.
2920 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2922         * stdlib/strfroml.c: Include <bits/floatn.h>.
2923         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
2924         Define before include of <stdlib.h> and undefine afterwards, then
2925         define as weak alias.
2927         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
2928         Undefine and restore default definition.  Use
2929         libm_alias_ldouble_other.
2931 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
2933         [BZ #22153]
2934         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
2935         in coredumps.
2937 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
2939         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
2940         Assign sym_map to be map for local symbols, as TLS relocations
2941         use sym_map to determine whether the symbol is defined and to
2942         extract the TLS information.
2943         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2944         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2946 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2948         [BZ #22189]
2949         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
2950         (math_force_eval): Add powerpc version.
2952         [BZ #22142]
2953         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
2954         -DBL_MAX.
2955         (do_test): Likewise.
2956         * stdio-common/tst-printf.sh: Likewise.
2957         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
2958         ifdef clause in order to set the carry bit right.  Replace r0 by
2959         0 without changing the behavior.
2961 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2963         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
2964         <libm-alias-ldouble.h>.
2965         (fabsl): Define using libm_alias_ldouble.
2966         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
2967         <libm-alias-ldouble.h>.
2968         (fabsl): Define using libm_alias_ldouble.
2970         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
2971         Remove conditional code.
2973         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
2974         Rename to __clog10_internal_l.
2975         (__clog10_internal_l): Define aliases using
2976         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
2977         with __clog10.
2979 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2981         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
2982         * benchtests/sincosf-inputs: New file.
2983         * benchtests/cosf-inputs: New file.
2984         * benchtests/sinf-inputs: New file.
2986 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2988         * posix/tst-spawn.c (do_test): Wait for both children.
2990 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2992         [BZ #22284]
2993         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
2994         tests-pie): Add tst-gmon-pie.
2995         (CFLAGS-tst-gmon-pie.c): New.
2996         (CRT-tst-gmon-pie): Likewise.
2997         (tst-gmon-pie-ENV): Likewise.
2998         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
2999         ($(objpfx)tst-gmon-pie.out): Likewise.
3000         (clean-tst-gmon-pie-data): Likewise.
3001         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
3002         * gmon/gmon.c [PIC]: Include <link.h>.
3003         [PIC] (callback): New function.
3004         (write_hist): Add an argument for load address.  Subtract load
3005         address from PCs.
3006         (write_call_graph): Likewise.
3007         (write_gmon): Call __dl_iterate_phdr to get load address, pass
3008         it to write_hist and write_call_graph.
3009         * gmon/tst-gmon-pie.c: New file.
3011 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3013         * math/Makefile (test-types-basic): New variable.
3014         (test-types): Likewise.
3015         (libm-test-support): Use $(test-types) instead of $(types).
3016         (libm-tests-base-normal): Likewise.
3017         (libm-tests-base-finite): Likewise.
3018         (libm-tests-base-inline): Likewise.
3019         (generated): Likewise.
3020         ($(objpfx)libm-test-support-$(t).c): Likewise.
3021         (libm-tests-for-type iterator): Likewise.
3022         (libm-test-support iterator): Likewise.
3023         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
3024         (ulp_idx): Use ULP_IDX.
3025         * math/test-ldouble.h: Include <float.h>.
3026         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
3027         (ULP_IDX): New macro.
3028         (ULP_I_IDX): Likewise.
3029         * math/test-double.h (ULP_IDX): Likewise.
3030         (ULP_I_IDX): Likewise.
3031         * math/test-float.h (ULP_IDX): Likewise.
3032         (ULP_I_IDX): Likewise.
3033         * math/test-float128.h (ULP_IDX): Likewise.
3034         (ULP_I_IDX): Likewise.
3036 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3038         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
3039         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
3040         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
3041         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
3042         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
3043         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
3044         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
3045         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
3046         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
3047         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
3048         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
3049         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
3050         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
3051         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3052         (SINGLE_THREAD_BY_GLOBAL): Define.
3053         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3054         Likewise.
3055         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3056         Likewise.
3057         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3058         Likewise.
3059         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3060         Likewise.
3061         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
3062         (SINGLE_THREAD_BY_GLOBAL): Likewise.
3063         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3064         Likewise.
3066 2017-10-11  Andreas Schwab  <schwab@suse.de>
3068         * nis/Makefile (aux): Remove.
3069         * nscd/Makefile (aux): Add nscd_hash.
3070         (nscd-modules): Likewise.
3071         ($(objpfx)nscd): Don't depend on libnsl.
3072         * nscd/nscd_hash.c: New file.
3073         * nscd/nscd_hash.h: Likewise.
3074         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
3075         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
3076         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
3077         instead of <nis/rpcsvc/nis.h>.
3078         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
3080 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3082         [BZ #22078]
3083         Avoid large NSS buffers with many addresses, aliases.
3084         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
3085         using dynarrays and struct alloc_buffer.
3086         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
3087         (tst-nss-files-hosts-multi): Link with -ldl.
3088         * nss/tst-nss-files-hosts-multi.c: New file.
3090 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3092         [BZ #18023]
3093         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
3094         scratch_buffer.  Eliminate gotos.
3096 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3098         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
3099         libm_alias_ldouble_other.
3100         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
3101         undefine and redefine.
3102         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3103         (exp10l): Do not define here.
3104         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
3105         (weak_alias): Undefine and redefine.
3106         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
3107         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3108         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
3109         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
3111         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
3112         [!__fma] (fma): Define using libm_alias_double.
3113         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
3114         [!__fmaf] (fmaf): Define using libm_alias_float.
3115         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
3116         (fmal): Define using libm_alias_ldouble.
3118 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
3120         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
3121         New macro.
3122         (libm_alias_double_other): Likewise.
3123         (libm_alias_double_r): Use libm_alias_double_other_r.
3124         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
3125         New macro.
3126         (libm_alias_float_other): Likewise.
3127         (libm_alias_float_r): Use libm_alias_float_other_r.
3128         * sysdeps/generic/libm-alias-float128.h
3129         (libm_alias_float128_other_r): New macro.
3130         (libm_alias_float128_other): Likewise.
3131         (libm_alias_float128_r): Use libm_alias_float128_other_r.
3132         * sysdeps/generic/libm-alias-ldouble.h
3133         (libm_alias_ldouble_other_r): New macro.
3134         (libm_alias_ldouble_other): Likewise.
3135         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3136         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3137         (libm_alias_double_other_r): New macro.
3138         (libm_alias_double_other): Likewise.
3139         (libm_alias_double_r): Use libm_alias_double_other_r.
3140         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3141         (libm_alias_ldouble_other_r): New macro.
3142         (libm_alias_ldouble_other): Likewise.
3143         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3144         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
3145         [!USE_AS_COMPAT]: Use libm_alias_double_other.
3146         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
3147         [!USE_AS_COMPAT]: Use libm_alias_float_other.
3148         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
3149         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
3150         * math/w_exp2f.c: Use libm_alias_float_other.
3151         * math/w_expf.c: Likewise.
3152         * math/w_log2f.c: Likewise.
3153         * math/w_logf.c: Likewise.
3154         * math/w_powf.c: Likewise.
3155         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
3156         [!__exp2f]: Use libm_alias_float_other.
3157         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
3158         [!__expf]: Use libm_alias_float_other.
3159         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
3160         [!__log2f]: Use libm_alias_float_other.
3161         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
3162         [!__logf]: Use libm_alias_float_other.
3163         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
3164         [!__powf]: Use libm_alias_float_other.
3166 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3168         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3169         function.
3170         (_nss_files_gethostbyname3_r): Call it.
3172 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3174         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3175         error.  Remove default definition of declare_mgen_alias.
3176         [!declare_mgen_alias_r]: Likewise.
3177         * sysdeps/generic/math-type-macros-double.h
3178         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3179         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3180         (declare_mgen_alias_r): Likewise.
3181         * sysdeps/generic/math-type-macros-float128.h
3182         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3183         * sysdeps/generic/math-type-macros-ldouble.h
3184         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3185         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3186         macro.
3187         (declare_mgen_alias_r_s): Likewise.
3188         (declare_mgen_alias_r): Likewise.
3189         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3190         (lgamma_r): Define using libm_alias_double_r.
3191         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3192         (lgammaf_r): Define using libm_alias_float_r.
3193         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3194         (lgammal_r): Define using libm_alias_ldouble_r.
3195         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3196         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3198 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3200         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3201         extern declaration.
3203 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3205         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3207 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3209         [BZ #21326]
3210         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3211         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3212         * math/Makefile (test-math-cxx11): New test.
3213         * math/test-math-cxx11.cc: New file.
3215 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3217         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3219         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3220         call to allocate the slave pty file descriptor.
3222 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3224         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3225         [!__fma] (fma): Define using libm_alias_double.
3226         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3227         [!__fma] (fma): Define using libm_alias_double.
3229         * sysdeps/ieee754/float128/float128_private.h: Include
3230         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3231         (libm_alias_ldouble_r): Undefine and redefine.
3232         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3233         <libm-alias-ldouble.h>.
3234         (asinhl): Define using libm_alias_ldouble.
3235         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3236         <libm-alias-ldouble.h>.
3237         (atanl): Define using libm_alias_ldouble.
3238         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3239         <libm-alias-ldouble.h>.
3240         (cbrtl): Define using libm_alias_ldouble.
3241         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3242         <libm-alias-ldouble.h>.
3243         (ceill): Define using libm_alias_ldouble.
3244         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3245         <libm-alias-ldouble.h>.
3246         (copysignl): Define using libm_alias_ldouble.
3247         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3248         <libm-alias-ldouble.h>.
3249         (cosl): Define using libm_alias_ldouble.
3250         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3251         <libm-alias-ldouble.h>.
3252         (erfl): Define using libm_alias_ldouble.
3253         (erfcl): Likewise.
3254         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3255         <libm-alias-ldouble.h>.
3256         (expm1l): Define using libm_alias_ldouble.
3257         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3258         <libm-alias-ldouble.h>.
3259         (fabsl): Define using libm_alias_ldouble.
3260         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3261         <libm-alias-ldouble.h>.
3262         (floorl): Define using libm_alias_ldouble.
3263         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3264         <libm-alias-ldouble.h>.
3265         (fmal): Define using libm_alias_ldouble.
3266         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3267         <libm-alias-ldouble.h>.
3268         (frexpl): Define using libm_alias_ldouble.
3269         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3270         libm_alias_ldouble.
3271         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3272         <libm-alias-ldouble.h>.
3273         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3274         libm_alias_ldouble.
3275         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3276         <libm-alias-ldouble.h>.
3277         (getpayloadl): Define using libm_alias_ldouble.
3278         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3279         <libm-alias-ldouble.h>.
3280         (llrintl): Define using libm_alias_ldouble.
3281         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3282         <libm-alias-ldouble.h>.
3283         (llroundl): Define using libm_alias_ldouble.
3284         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
3285         <libm-alias-ldouble.h>.
3286         (logbl): Define using libm_alias_ldouble.
3287         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
3288         <libm-alias-ldouble.h>.
3289         (lrintl): Define using libm_alias_ldouble.
3290         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
3291         <libm-alias-ldouble.h>.
3292         (lroundl): Define using libm_alias_ldouble.
3293         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
3294         <libm-alias-ldouble.h>.
3295         (modfl): Define using libm_alias_ldouble.
3296         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
3297         <libm-alias-ldouble.h>.
3298         (nearbyintl): Define using libm_alias_ldouble.
3299         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
3300         <libm-alias-ldouble.h>.
3301         (nextafterl): Define using libm_alias_ldouble.
3302         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
3303         <libm-alias-ldouble.h>.
3304         (nextupl): Define using libm_alias_ldouble.
3305         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
3306         <libm-alias-ldouble.h>.
3307         (remquol): Define using libm_alias_ldouble.
3308         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
3309         <libm-alias-ldouble.h>.
3310         (rintl): Define using libm_alias_ldouble.
3311         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
3312         <libm-alias-ldouble.h>.
3313         (roundevenl): Define using libm_alias_ldouble.
3314         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
3315         <libm-alias-ldouble.h>.
3316         (roundl): Define using libm_alias_ldouble.
3317         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
3318         using libm_alias_ldouble.
3319         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
3320         <libm-alias-ldouble.h>.
3321         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
3322         Define using libm_alias_ldouble.
3323         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
3324         <libm-alias-ldouble.h>.
3325         (sincosl): Define using libm_alias_ldouble.
3326         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
3327         <libm-alias-ldouble.h>.
3328         (sinl): Define using libm_alias_ldouble.
3329         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
3330         <libm-alias-ldouble.h>.
3331         (tanhl): Define using libm_alias_ldouble.
3332         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
3333         <libm-alias-ldouble.h>.
3334         (tanl): Define using libm_alias_ldouble.
3335         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
3336         <libm-alias-ldouble.h>.
3337         (totalorderl): Define using libm_alias_ldouble.
3338         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
3339         <libm-alias-ldouble.h>.
3340         (totalordermagl): Define using libm_alias_ldouble.
3341         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
3342         <libm-alias-ldouble.h>.
3343         (truncl): Define using libm_alias_ldouble.
3344         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
3345         libm_alias_ldouble.
3346         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
3347         libm_alias_ldouble.
3348         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
3349         <libm-alias-ldouble.h>.
3350         (weak_alias): Do not undefine and redefine.
3351         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3352         (copysignl): Define with long_double_symbol only if [IS_IN
3353         (libc)].
3354         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
3355         <libm-alias-ldouble.h>.
3356         (weak_alias): Do not undefine and redefine.
3357         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3358         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
3359         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
3360         <libm-alias-ldouble.h>.
3361         (weak_alias): Do not undefine and redefine.
3362         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3363         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
3364         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
3365         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
3366         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
3367         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
3368         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
3369         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
3370         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
3371         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
3372         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
3373         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
3374         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
3375         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
3376         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
3377         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
3378         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
3379         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
3380         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
3381         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
3382         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
3383         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
3384         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
3385         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
3386         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
3387         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
3389 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
3391         [BZ #22111]
3392         * malloc/malloc.c (tcache_shutting_down): Use bool type.
3393         (tcache_thread_freeres): Set tcache_shutting_down before
3394         freeing the tcache.
3395         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
3396         * malloc/tst-malloc-tcache-leak.c: New file.
3398 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3400         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
3401         back to powerpc32 file.
3402         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3403         (memrchr): Add __memrchr_power8 to ifunc list.
3404         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
3405         extra bytes for unaligned inputs.
3407 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3409         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
3410         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
3411         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
3412         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
3413         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
3415 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3417         * sysdeps/arm/libm-test-ulps: Update.
3419         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
3420         <libm-alias-ldouble.h>.
3421         (asinhl): Define using libm_alias_ldouble.
3422         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
3423         <libm-alias-ldouble.h>.
3424         (cbrtl): Define using libm_alias_ldouble.
3425         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
3426         <libm-alias-ldouble.h>.
3427         (copysignl): Define using libm_alias_ldouble.
3428         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
3429         <libm-alias-ldouble.h>.
3430         (cosl): Define using libm_alias_ldouble.
3431         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
3432         <libm-alias-ldouble.h>.
3433         (erfl): Define using libm_alias_ldouble.
3434         (erfcl): Likewise.
3435         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
3436         <libm-alias-ldouble.h>.
3437         (fmal): Define using libm_alias_ldouble.
3438         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
3439         <libm-alias-ldouble.h>.
3440         (frexpl): Define using libm_alias_ldouble.
3441         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
3442         libm_alias_ldouble.
3443         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
3444         <libm-alias-ldouble.h>.
3445         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
3446         libm_alias_ldouble.
3447         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
3448         <libm-alias-ldouble.h>.
3449         (getpayloadl): Define using libm_alias_ldouble.
3450         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
3451         <libm-alias-ldouble.h>.
3452         (llrintl): Define using libm_alias_ldouble.
3453         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
3454         <libm-alias-ldouble.h>.
3455         (llroundl): Define using libm_alias_ldouble.
3456         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
3457         <libm-alias-ldouble.h>.
3458         (lrintl): Define using libm_alias_ldouble.
3459         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
3460         <libm-alias-ldouble.h>.
3461         (lroundl): Define using libm_alias_ldouble.
3462         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
3463         <libm-alias-ldouble.h>.
3464         (modfl): Define using libm_alias_ldouble.
3465         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
3466         <libm-alias-ldouble.h>.
3467         (nextupl): Define using libm_alias_ldouble.
3468         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
3469         <libm-alias-ldouble.h>.
3470         (remquol): Define using libm_alias_ldouble.
3471         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
3472         <libm-alias-ldouble.h>.
3473         (roundevenl): Define using libm_alias_ldouble.
3474         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
3475         <libm-alias-ldouble.h>.
3476         (roundl): Define using libm_alias_ldouble.
3477         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
3478         using libm_alias_ldouble.
3479         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
3480         <libm-alias-ldouble.h>.
3481         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
3482         <libm-alias-ldouble.h>.
3483         (setpayloadsigl): Define using libm_alias_ldouble.
3484         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
3485         <libm-alias-ldouble.h>.
3486         (sincosl): Define using libm_alias_ldouble.
3487         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
3488         <libm-alias-ldouble.h>.
3489         (sinl): Define using libm_alias_ldouble.
3490         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
3491         <libm-alias-ldouble.h>.
3492         (tanhl): Define using libm_alias_ldouble.
3493         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
3494         <libm-alias-ldouble.h>.
3495         (tanl): Define using libm_alias_ldouble.
3496         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
3497         <libm-alias-ldouble.h>.
3498         (totalorderl): Define using libm_alias_ldouble.
3499         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
3500         <libm-alias-ldouble.h>.
3501         (totalordermagl): Define using libm_alias_ldouble.
3502         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
3503         libm_alias_ldouble.
3504         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
3505         libm_alias_ldouble.
3507 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3509         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3510         memmove_falkor.
3511         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3512         (__libc_ifunc_impl_list): Likewise.
3513         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
3514         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
3516         * benchtests/bench-memmove-walk.c: New file.
3517         * benchtests/Makefile (string-benchset): Add it.
3519         * benchtests/bench-memset-walk.c: New file.
3520         * benchtests/Makefile (string-benchset): Add it.
3522         * benchtests/bench-memcpy-walk.c: New file.
3523         * benchtests/Makefile (string-benchset): Add it.
3525 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3527         nscd: Eliminate compilation time dependency in the build output.
3528         * nscd/nscd_stat.c (STATDATA_VERSION)
3529         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
3530         (STATDATA_VERSION_FULL): New macro definitions.
3531         (compilation): Remove.
3532         (struct statdata): Adjust version member.
3533         (send_stats): Set version from STATDATA_VERSION_FULL.
3534         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
3536 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3538         * configure.ac (--enable-add-ons): Remove option.
3539         (machine): Do not mention add-ons in comment.
3540         (LIBC_PRECONFIGURE): Likewise.
3541         (add_ons): Remove variable and sanity checks and logic to locate
3542         add-ons.
3543         (add_ons_automatic): Remove variable.
3544         (configured_add_ons): Likewise.
3545         (add_ons_sfx): Likewise.
3546         (add_ons_pfx): Likewise.
3547         (add_on_subdirs): Likewise.
3548         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
3549         consideration of add-ons in Implies handling.
3550         (sysdeps_add_ons): Likewise.
3551         * configure: Regenerated.
3552         * libidn/configure.ac: Remove.
3553         * libidn/configure: Likewise.
3554         * sysdeps/unix/inet/configure.ac: New file.
3555         * sysdeps/unix/inet/configure: New generated file.
3556         * sysdeps/unix/inet/Subdirs: Add libidn.
3557         * Makeconfig (sysdeps-srcdirs): Remove variable.
3558         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
3559         ($(common-objpfx)config.status): Do not depend on add-on files.
3560         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
3561         comment.
3562         (all-subdirs): Do not include $(add-on-subdirs).
3563         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
3564         * config.make.in (add-ons): Remove variable.
3565         (add-on-subdirs): Likewise.
3566         (sysdeps-add-ons): Likewise.
3567         * manual/Makefile (add-chapters): Remove.
3568         ($(objpfx)texis): Do not depend on $(add-chapters).
3569         (nonexamples): Do not handle $(add-chapters).
3570         (examples): Do not handle $(add-ons).
3571         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
3572         libc-texinfo.sh.
3573         * manual/install.texi (Installation): Do not mention add-ons.
3574         (--enable-add-ons): Do not document configure option.
3575         * INSTALL: Regenerated.
3576         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
3577         * manual/maint.texi (Hierarchy Conventions): Do not mention
3578         add-ons.
3579         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
3580         --enable-add-ons.
3581         * scripts/gen-sorted.awk: Do not handle Subdirs files from
3582         add-ons.
3583         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
3584         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
3586 2017-10-05  Andreas Schwab  <schwab@suse.de>
3588         [BZ #15142]
3589         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
3590         (_IO_flush_all_lockp): Always lock list_all_lock.
3591         (_IO_flush_all_linebuffered): Likewise.
3592         (_IO_unbuffer_all): Likewise.
3594 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3596         [BZ #15436]
3597         Do not flush stdio streams on abort.
3598         * stdlib/abort.c (fflush): Remove macro definition.
3599         (abort): Remove stages related to stdio flushing.
3601 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3603         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
3605 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
3607         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3609 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3611         * support/support_format_hostent.c (support_format_hostent): Add
3612         more error information for NETDB_INTERNAL.
3614 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3616         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
3617         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
3618         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
3619         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
3620         AC_DEFINE if multi-arch is enabled.
3621         * sysdeps/i386/configure: Regenerated.
3623 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3625         * Makeconfig (+link-static-before-libc): Use
3626         $(DEFAULT-LDFLAGS-$(@F)).
3627         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
3628         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
3629         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
3631 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3633         * elf/Makefile (tests): Add tst-main1.
3634         (modules-names): Add tst-main1mod.
3635         ($(objpfx)tst-main1): New.
3636         (CRT-tst-main1): Likewise.
3637         (LDFLAGS-tst-main1): Likewise.
3638         (LDLIBS-tst-main1): Likewise.
3639         (tst-main1mod.so-no-z-defs): Likewise.
3640         * elf/tst-main1.c: New file.
3641         * elf/tst-main1mod.c: Likewise.
3643 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3645         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
3647 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3649         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
3650         (fma): Define using libm_alias_double.
3651         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
3652         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
3653         <math_ldbl_opt.h>.
3654         (fmal): Do not define as compat symbol here.
3655         * sysdeps/alpha/fpu/s_fma.c: New file.
3657 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3659         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
3661 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3663         [BZ #22229]
3664         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3665         <math_ldbl_opt.h>
3666         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3667         and libc.
3668         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
3669         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3670         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
3671         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
3672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3673         Include <math_ldbl_opt.h>
3674         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3675         and libc.
3676         (compat_symbol): Undefine and redefine.
3677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3678         <math_ldbl_opt.h>
3679         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3680         (compat_symbol): Undefine and redefine.
3681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
3682         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
3683         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
3684         GLIBC_2_1 for libm.
3685         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
3686         GLIBC_2.0 copysignl symbol.
3687         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3688         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
3690         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
3692 2017-10-04  Florian Weimer  <fweimer@redhat.com>
3694         * scripts/check-local-headers.sh: Ignore nspr4 header file
3695         directory in addition to nspr.
3697 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
3699         [BZ #17956]
3700         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
3701         * configure: Regenerate.
3702         * crypt/Makefile (nss-cpp-flags): New variable.
3703         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
3704         (CPPFLAGS-md5-crypt.c): Use it.
3705         * scripts/check-local-headers.sh: Ignore nspr header file
3706         directory.
3708 2017-10-04  Andreas Schwab  <schwab@suse.de>
3710         * nis/Makefile (services): Remove compat.
3711         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
3712         ($(objpfx)libnss_compat.so): Remove rule.
3713         * nis/Versions (libnss_compat): Remove.
3714         * nss/Makefile (services): Add compat.
3715         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
3716         * nss/Versions (libnss_compat): Define.
3717         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
3718         Don't include <rpc/types.h>.  Replace bool_t by bool.
3719         * nss/nss_compat/compat-initgroups.c: Likewise.
3720         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
3721         instead of <rpcsrv/ypclnt.h>.
3722         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
3723         yp_get_default_domain.
3724         * nss/nss_compat/compat-pwd.c: Likewise.
3725         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
3726         yp_get_default_domain.
3727         * nss/nss_compat/nisdomain.c: New file.
3728         * nss/nss_compat/nisdomain.h: Likewise.
3730 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3732         [BZ #22244]
3733         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
3734         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3736 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3738         [BZ #22243]
3739         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
3740         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
3742 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3744         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
3745         "movl main@GOTOFF(%ebx), %eax".
3747 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3749         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
3750         allow undefined _DYNAMIC in PIE libc.a.
3751         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3752         Likewse.
3754 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3756         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
3757         check _DYNAMIC.
3759 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3761         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
3762         check _DYNAMIC.
3764 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3766         * math/test-math-iscanonical.cc (error): Replace bool with int.
3768 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3770         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
3771         (modf): Define using libm_alias_double, only if [!__modf].
3772         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
3773         <libm-alias-double.h>.
3774         (modf): Define using libm_alias_double, only if [!__modf].
3775         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
3776         compat symbol here.
3777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
3778         (weak_alias): Do not undefine and redefine.
3779         (strong_alias): Likewise.
3780         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
3781         (weak_alias): Likewise.
3782         (strong_alias): Likewise.
3784         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
3785         (logb): Define using libm_alias_double, only if [!__logb].
3786         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
3787         <libm-alias-double.h>.
3788         (logb): Define using libm_alias_double, only if [!__logb].
3789         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
3790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
3791         (weak_alias): Do not undefine and redefine.
3792         (strong_alias): Likewise.
3793         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
3794         (weak_alias): Likewise.
3795         (strong_alias): Likewise.
3797 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3799         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
3800         Check SHARED instead PIC.
3802 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3804         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
3805         [!__fmaf] (fmaf): Define using libm_alias_float.
3807         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
3808         (frexp): Define using libm_alias_double.
3809         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
3810         <libm-alias-double.h>.
3811         (frexp): Define using libm_alias_double.
3812         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
3813         compat symbol here.
3815 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3817         [BZ #22235]
3818         * math/math.h: Trivial fix for unbalanced parentheses in comment.
3819         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
3820         (CFLAGS-test-math-iscanonical.cc): New variable.
3821         * math/test-math-iscanonical.cc: New file.
3822         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
3823         Provide a C++ implementation based on function overloading,
3824         rather than using __MATH_TG, which uses C-only builtins.
3825         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
3826         Likewise.
3827         * sysdeps/powerpc/powerpc64le/Makefile
3828         (CFLAGS-test-math-iscanonical.cc): New variable.
3830 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3832         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
3833         (ceil): Define using libm_alias_double.
3834         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
3835         (floor): Define using libm_alias_double.
3836         * sysdeps/ieee754/dbl-64/s_llround.c: Include
3837         <libm-alias-double.h>.
3838         (llround): Define using libm_alias_double.
3839         * sysdeps/ieee754/dbl-64/s_lround.c: Include
3840         <libm-alias-double.h>.
3841         (lround): Define using libm_alias_double.
3842         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
3843         <libm-alias-double.h>.
3844         (nearbyint): Define using libm_alias_double.
3845         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
3846         <libm-alias-double.h>.
3847         (remquo): Define using libm_alias_double.
3848         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
3849         (rint): Define using libm_alias_double.
3850         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
3851         (round): Define using libm_alias_double.
3852         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
3853         (trunc): Define using libm_alias_double.
3854         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
3855         <libm-alias-double.h>.
3856         (ceil): Define using libm_alias_double.
3857         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
3858         <libm-alias-double.h>.
3859         (floor): Define using libm_alias_double.
3860         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
3861         <libm-alias-double.h>.
3862         (llround): Define using libm_alias_double.
3863         [_LP64] (lround): Likewise.
3864         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
3865         <libm-alias-double.h>.
3866         [!_LP64] (lround): Define using libm_alias_double.
3867         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
3868         <libm-alias-double.h>.
3869         (nearbyint): Define using libm_alias_double.
3870         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
3871         <libm-alias-double.h>.
3872         (remquo): Define using libm_alias_double.
3873         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
3874         <libm-alias-double.h>.
3875         (rint): Define using libm_alias_double.
3876         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
3877         <libm-alias-double.h>.
3878         (round): Define using libm_alias_double.
3879         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
3880         <libm-alias-double.h>.
3881         (trunc): Define using libm_alias_double.
3882         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
3883         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
3884         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
3885         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
3886         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
3887         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
3888         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
3889         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
3890         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
3892 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3894         * math/w_remainder.c: New file.
3895         * math/w_remainderf.c: New file.
3896         * math/w_remainderl.c: New file.
3898 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3900         * elf/rtld.c (BOOTSTRAP_MAP): New.
3901         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
3902         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3903         Likewise.
3904         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3905         Likewise.
3906         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3907         Likewise.
3909 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3911         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
3912         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
3913         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
3914         rtld_hidden_data_ver): Define to empty.
3915         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
3916         __assert_perror_fail): Likewise.
3917         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3918         (__rewinddir): Likewise.
3919         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3920         (__profile_frequency): Likewise.
3921         * include/setjmp.h (__sigsetjmp): Likewise.
3922         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
3923         __libc_sigaction): Likewise.
3924         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
3925         not set hidden attribute.
3926         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
3927         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
3928         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
3929         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
3930         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
3931         __fxstatat64): Likewise.
3932         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3933         (__uname): Likewise.
3934         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3935         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
3936         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
3937         (NO_RTLD_HIDDEN): Set.
3938         * sysdeps/mach/hurd/configure: Refresh.
3939         * config.h.in: Refresh.
3941 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
3943         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
3944         (atan): Define using libm_alias_double.
3945         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
3946         (tan): Define using libm_alias_double.
3947         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
3948         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
3950         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
3951         define as weak alias of __atan.  Do not define any aliases if
3952         [__atan].
3953         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
3954         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
3955         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
3956         as weak alias of __tan.  Do not define any aliases if [__tan].
3957         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
3958         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
3959         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
3960         __atan.
3961         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
3962         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
3963         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
3964         and define as weak alias of __atan.
3965         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
3966         __atan.
3967         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
3968         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
3969         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
3970         define as weak alias of __tan.
3972 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3974         * math/w_lgamma.c: New file.
3975         * math/w_lgammaf.c: New file.
3976         * math/w_lgammal.c: New file.
3978 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3980         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
3981         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
3982         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
3983         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
3984         * sysdeps/ieee754/flt-32/w_logf.c: New file.
3985         * sysdeps/ieee754/flt-32/w_powf.c: New file.
3986         * sysdeps/i386/fpu/w_log2f.c: New file.
3987         * sysdeps/i386/fpu/w_logf.c: New file.
3988         * sysdeps/i386/fpu/w_powf.c: New file.
3989         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
3990         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
3991         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
3993 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3994             H.J. Lu  <hongjiu.lu@intel.com>
3996         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
3997         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
3998         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
3999         * sysdeps/ieee754/flt-32/w_expf.c: New file.
4000         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
4001         the new expf code.
4002         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
4003         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
4004         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
4005         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
4006         * sysdeps/i386/fpu/w_exp2f.c: New file.
4007         * sysdeps/i386/fpu/w_expf.c: New file.
4008         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
4009         * sysdeps/x86_64/fpu/w_expf.c: New file.
4011 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4013         * math/Versions (logf): New libm symbol at GLIBC_2.27.
4014         (log2f): Likewise.
4015         (powf): Likewise.
4016         * math/w_log2f.c: New file.
4017         * math/w_logf.c: New file.
4018         * math/w_powf.c: New file.
4019         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
4020         * math/w_logf_compat.c (__logf_compat): Likewise.
4021         * math/w_powf_compat.c (__powf_compat): Likewise.
4022         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
4023         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4024         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4025         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4026         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4027         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4028         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4029         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4030         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4031         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4032         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4033         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4034         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4035         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4036         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4038         Likewise.
4039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4040         Likewise.
4041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4042         Likewise.
4043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4044         Likewise.
4045         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4046         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4047         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4048         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4049         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4050         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4051         Likewise.
4052         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4053         Likewise.
4054         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4055         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4056         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4058 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4060         * sysdeps/powerpc/powerpc64/multiarch/Makefile
4061         (sysdep_routines): Add memrchr_power8.
4062         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4063         (memrchr): Add __memrchr_power8 to list of memrchr functions.
4064         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
4065         New file.
4066         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
4067         (memrchr): Add __memrchr_power8 to ifunc list.
4068         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
4070 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4072         [BZ #18822]
4073         * sysdeps/unix/sysv/linux/posix_fadvise64.c
4074         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
4075         libc_hidden_def.
4076         * sysdeps/unix/sysv/linux/posix_fallocate64.c
4077         (__posix_fallocate64_l64): Likewise.
4079 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4081         [BZ #18822]
4082         * sysdeps/unix/sysv/linux/sched_setaffinity.c
4083         (__sched_setaffinity_new): Add libc_hidden_proto and
4084         libc_hidden_def.
4086 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4088         [BZ #18822]
4089         * include/glob.h (__glob64): Add libc_hidden_proto.
4090         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
4091         libc_hidden_def.
4093 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4095         [BZ #18822]
4096         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
4097         attribute_hidden.
4099 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4101         [BZ #18822]
4102         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
4104 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4106         [BZ #18822]
4107         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
4108         libc_hidden_def.
4110 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4112         [BZ #18822]
4113         * csu/version.c (__libc_print_version): Add attribute_hidden.
4115 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4117         [BZ #18822]
4118         * include/libc-internal.h (__init_misc): Add attribute_hidden.
4120 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4122         [BZ #18822]
4123         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
4125 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4127         [BZ #18822]
4128         * nscd/nscd_helper.c (__nis_hash): New prototype.
4130 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4132         [BZ #18822]
4133         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
4134         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
4135         libc_hidden_def.
4136         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
4137         * termios/tcgetattr.c (__tcgetattr): Likewise.
4139 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4141         [BZ #18822]
4142         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
4143         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
4144         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
4145         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
4146         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
4148 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4150         [BZ #18822]
4151         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
4153 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4155         [BZ #18822]
4156         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
4157         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
4159 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4161         [BZ #18822]
4162         * intl/hash-string.h (__hash_string): Add attribute_hidden.
4164 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4166         [BZ #18822]
4167         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4168         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4170 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4172         [BZ #18822]
4173         * include/ifreq.h: New file.
4174         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4175         (__ifreq): Likewise.
4176         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4177         (__ifreq): Likewise.
4179 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4181         [BZ #18822]
4182         * include/idna.h: New file.
4183         * inet/getnameinfo.c: Include <idna.h> instead of
4184         <libidn/idna.h>.
4185         (__idna_to_unicode_lzlz): Removed.
4186         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4187         <libidn/idna.h>.
4188         (__idna_to_ascii_lz): Removed.
4189         (__idna_to_unicode_lzlz): Likewise.
4191 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4193         [BZ #18822]
4194         * include/plural-exp.h: New file.
4195         * intl/plural-exp.c: Include <plural-exp.h> instead of
4196         "plural-exp.h".
4198 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4200         [BZ #18822]
4201         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4202         "getsourcefilter.h".
4203         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4204         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4205         "getsourcefilter.h".
4206         (__get_sol): Removed.
4208 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4210         [BZ #18822]
4211         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4212         to ...
4213         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4215 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4217         [BZ #18822]
4218         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4219         attribute_hidden.
4221 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4223         [BZ #18822]
4224         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4226 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4228         [BZ #18822]
4229         * include/search.h (__tdestroy): Add libc_hidden_proto.
4230         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4232 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4234         [BZ #18822]
4235         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4237 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4239         [BZ #18822]
4240         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4241         attribute_hidden.
4243 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4245         [BZ #18822]
4246         * include/signal.h (__kill): Add libc_hidden_proto.
4247         (__sigblock): Likewise.
4248         (__sigprocmask): Likewise.
4249         (__sigaltstack): Likewise.
4250         * signal/kill.c (__kill): Add libc_hidden_def.
4251         * signal/sigblock.c (__sigblock): Likewise.
4252         * signal/sigprocmask.c (__sigprocmask): Likewise.
4253         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4254         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4255         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4256         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4257         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4258         Likewise.
4259         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4260         Likewise.
4261         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4262         (__sigprocmask): Likewise.
4263         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4264         Likewise.
4265         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4266         (__sigprocmask): Likewise.
4267         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4268         Likewise.
4270 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4272         [BZ #18822]
4273         * include/string.h (__strsep): Add libc_hidden_proto.
4274         * string/strsep.c (__strsep): Add libc_hidden_def.
4276 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4278         [BZ #18822]
4279         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4280         attribute_hidden.
4281         (__spawni): Likewise.
4283 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4285         [BZ #18822]
4286         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
4287         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
4288         libc_hidden_def.
4290 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4292         [BZ #18822]
4293         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
4295 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4297         [BZ #18822]
4298         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
4299         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
4300         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4301         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
4302         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
4303         Likewise.
4304         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
4305         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
4307 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4309         [BZ #18822]
4310         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
4311         (__dcigettext): Likewise.
4313 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4315         [BZ #18822]
4316         * include/sys/sysinfo.h (__get_nprocs_conf): Add
4317         libc_hidden_proto.
4318         (__get_nprocs): Likewise.
4319         (__get_phys_pages): Likewise.
4320         (__get_avphys_pages): Likewise.
4321         (__get_child_max): Add attribute_hidden.
4322         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
4323         (__get_nprocs): Likewise.
4324         (__get_phys_pages): Likewise.
4325         (__get_avphys_pages): Likewise.
4326         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
4327         libc_hidden_def.
4328         (__get_nprocs): Likewise.
4329         (__get_phys_pages): Likewise.
4330         (__get_avphys_pages): Likewise.
4331         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
4332         libc_hidden_def.
4333         (__get_nprocs_conf): Likewise.
4334         (__get_phys_pages): Likewise.
4335         (__get_avphys_pages): Likewise.
4337 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4339         [BZ #18822]
4340         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
4341         attribute_hidden.
4342         (__netlink_close): Likewise.
4343         (__netlink_free_handle): Likewise.
4344         (__netlink_request): Likewise.
4346 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4348         [BZ #18822]
4349         * include/rpc/rpc.h (__rpc_thread_variables): Add
4350         attribute_hidden.
4351         (__rpc_thread_svc_cleanup): Likewise.
4352         (__rpc_thread_clnt_cleanup): Likewise.
4353         (__rpc_thread_key_cleanup): Likewise.
4355 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4357         [BZ #18822]
4358         * include/sys/uio.h (__readv): Add libc_hidden_proto.
4359         (__writev): Likewise.
4360         * misc/readv.c (__readv): Add libc_hidden_def.
4361         * misc/writev.c (__writev): Likewise.
4362         * sysdeps/posix/readv.c (__readv): Likewise.
4363         * sysdeps/posix/writev.c (__writev): Likewise.
4364         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
4365         (__readv): Likewise.
4366         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
4367         (__writev): Likewise.
4369 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4371         [BZ #18822]
4372         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
4373         (__regcomp): Add libc_hidden_proto.
4374         (__regexec): Likewise.
4375         (__regfree): Likewise.
4376         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
4377         (__regfree): Likewise.
4378         * posix/regexec.c (__regexec): Likewise.
4380 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4382         [BZ #18822]
4383         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
4384         (__getutent): Likewise.
4385         (__getutid): Likewise.
4386         (__getutline): Likewise.
4387         (__pututline): Likewise.
4388         (__getutent_r): Likewise.
4389         (__getutid_r): Likewise.
4390         (__getutline_r): Likewise.
4391         (__utmpname): Add attribute_hidden.
4392         (__setutent): Likewise.
4393         (__endutent): Likewise.
4394         * login/getutent.c (__getutent): Add libc_hidden_def.
4395         * login/getutent_r.c (__getutent_r): Likewise.
4396         (__pututline): Likewise.
4397         * login/getutid.c (__getutid): Likewise.
4398         * login/getutid_r.c (__getutid_r): Likewise.
4399         * login/getutline.c (__getutline): Likewise.
4400         * login/getutline_r.c (__getutline_r): Likewise.
4401         * login/updwtmp.c (__updwtmp): Likewise.
4403 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4405         [BZ #18822]
4406         * include/dirent.h (__opendir): Always add attribute_hidden.
4407         (__fdopendir): Likewise.
4408         (__closedir): Likewise.
4409         (__readdir): Likewise.
4410         (__readdir64): Add libc_hidden_proto.
4411         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
4412         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
4413         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
4414         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
4415         New alias.
4417 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4419         [BZ #18822]
4420         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
4421         * include/netdb.h (__gethostbyaddr_r): Likewise.
4422         (__gethostbyname_r): Likewise.
4423         (__gethostbyname2_r): Likewise.
4424         (__getnetbyaddr_r): Likewise.
4425         (__getnetbyname_r): Likewise.
4426         (__getservbyname_r): Likewise.
4427         (__getservbyport_r): Likewise.
4428         (__getprotobyname_r): Likewise.
4429         (__getprotobynumber_r): Likewise.
4430         (__getnetgrent_r): Likewise.
4431         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
4432         (__getrpcbynumber_r): Likewise.
4433         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
4435 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4437         [BZ #18822]
4438         * include/stdio.h (__fcloseall): Add attribute_hidden.
4439         (__getline): Likewise.
4440         (__path_search): Likewise.
4441         (__gen_tempname): Likewise.
4442         (__libc_message): Likewise.
4443         (__flockfile): Likewise.
4444         (__funlockfile): Likewise.
4445         (__fxprintf): Likewise.
4446         (__fxprintf_nocancel): Likewise.
4448 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4450         [BZ #18822]
4451         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
4452         (__sgetsgent_r): Likewise.
4454 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4456         [BZ #18822]
4457         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
4458         (__statfs64): Likewise.
4459         (__fstatfs64): Likewise.
4460         * include/sys/statvfs.h (__statvfs64): Likewise.
4461         (__fstatvfs64): Likewise.
4462         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
4463         (__statfs_filesize_max): Likewise.
4464         (__statfs_symlinks): Likewise.
4465         (__statfs_chown_restricted): Likewise.
4467 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4469         [BZ #18822]
4470         * include/time.h (__tzstring): Add attribute_hidden.
4471         (__tzfile_read): Likewise.
4472         (__tzfile_compute): Likewise.
4473         (__tzfile_default): Likewise.
4474         (__tzset_parse_tz): Likewise.
4475         (__offtime): Likewise.
4476         (__asctime_r): Likewise.
4477         (__tzset): Likewise.
4478         (__tz_convert): Likewise.
4479         (__getdate_r): Likewise.
4480         (__getclktck): Likewise.
4482 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4484         [BZ #18822]
4485         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
4486         (__nscd_unmap): Likewise.
4487         (__nscd_cache_search): Likewise.
4488         (__nscd_get_nl_timestamp): Likewise.
4489         (__nscd_getpwnam_r): Likewise.
4490         (__nscd_getpwuid_r): Likewise.
4491         (__nscd_getgrnam_r): Likewise.
4492         (__nscd_getgrgid_r): Likewise.
4493         (__nscd_gethostbyname_r): Likewise.
4494         (__nscd_gethostbyname2_r): Likewise.
4495         (__nscd_gethostbyaddr_r): Likewise.
4496         (__nscd_getai): Likewise.
4497         (__nscd_getgrouplist): Likewise.
4498         (__nscd_getservbyname_r): Likewise.
4499         (__nscd_getservbyport_r): Likewise.
4500         (__nscd_innetgr): Likewise.
4501         (__nscd_setnetgrent): Likewise.
4503 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4505         [BZ #18822]
4506         * include/gmp.h: Declare internal functions only if _ISOMAC is
4507         undefined.
4508         (__mpn_extract_double): Add attribute_hidden.
4509         (__mpn_extract_long_double): Likewise.
4510         (__mpn_extract_float128): Likewise.
4511         (__mpn_construct_float): Likewise.
4512         (__mpn_construct_double): Likewise.
4513         (__mpn_construct_long_double): Likewise.
4514         (__mpn_construct_float128): Likewise.
4515         (mpn_add_1): Likewise.
4516         (mpn_addmul_1): Likewise.
4517         (mpn_add_n): Likewise.
4518         (mpn_cmp): Likewise.
4519         (mpn_divrem): Likewise.
4520         (mpn_lshift): Likewise.
4521         (mpn_mul): Likewise.
4522         (mpn_mul_1): Likewise.
4523         (mpn_rshift): Likewise.
4524         (mpn_sub_1): Likewise.
4525         (mpn_submul_1): Likewise.
4526         (mpn_sub_n): Likewise.
4528 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4530         [BZ #18822]
4531         * include/wchar.h (__wcsnlen): Add attribute_hidden.
4532         (__wcscat): Likewise.
4533         (__btowc): Likewise.
4534         (__wcrtomb): Likewise.
4535         (__mbsrtowcs): Likewise.
4536         (__wcsrtombs): Likewise.
4537         (__mbsnrtowcs): Likewise.
4538         (__wcsnrtombs): Likewise.
4539         (__wcsncpy): Likewise.
4540         (__wcpncpy): Likewise.
4541         (__wmemcpy): Likewise.
4542         (__wmempcpy): Likewise.
4543         (__wmemmove): Likewise.
4544         (__wcschrnul): Likewise.
4545         (__vfwscanf): Likewise.
4546         (__vswprintf): Likewise.
4547         (__fwprintf): Likewise.
4548         (__vfwprintf): Likewise.
4550 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4552         [BZ #18822]
4553         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
4554         (__getgrgid_r): Likewise.
4555         (__getgrnam_r): Likewise.
4556         * include/pwd.h (__getpwuid_r): Likewise.
4557         (__getpwnam_r): Likewise.
4558         (__fgetpwent_r): Likewise.
4559         * include/shadow.h (__getspnam_r): Likewise.
4560         (__sgetspent_r): Likewise.
4561         (__fgetspent_r): Likewise.
4563 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4565         [BZ #18822]
4566         * include/unistd.h (__access): Add attribute_hidden.
4567         (__lseek64): Likewise.
4568         (__libc_pread64): Likewise.
4569         (__pipe2): Likewise.
4570         (__sleep): Likewise.
4571         (__chdir): Likewise.
4572         (__fchdir): Likewise.
4573         (__getcwd): Likewise.
4574         (__rmdir): Likewise.
4575         (__execvpe): Likewise.
4576         (__execve): Likewise.
4577         (__setsid): Likewise.
4578         (__getuid): Likewise.
4579         (__geteuid): Likewise.
4580         (__getgid): Likewise.
4581         (__getegid): Likewise.
4582         (__getgroups): Likewise.
4583         (__group_member): Likewise.
4584         (__ttyname_r): Likewise.
4585         (__isatty): Likewise.
4586         (__readlink): Likewise.
4587         (__unlink): Likewise.
4588         (__gethostname): Likewise.
4589         (__profil): Likewise.
4590         (__getdtablesize): Likewise.
4591         (__brk): Likewise.
4592         (__ftruncate): Likewise.
4593         (__ftruncate64): Likewise.
4595 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4597         [BZ #18822]
4598         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
4599         * argp/argp-fs-xinl.c: Likewise.
4600         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
4601         * argp/argp-parse.c: Include <argp.h>.
4602         * argp/argp-xinl.c: Likewise.
4603         * include/argp-fmtstream.h: New file.
4604         * include/argp.h (__argp_error): Add attribute_hidden.
4605         (__argp_failure): Likewise.
4606         (__argp_input): Likewise.
4607         (__argp_state_help): Likewise.
4609 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4611         [BZ #18822]
4612         * include/wchar.h (____wcstof_l_internal): New prototype.
4613         (____wcstod_l_internal): Likewise.
4614         (____wcstold_l_internal): Likewise.
4615         (____wcstol_l_internal): Likewise.
4616         (____wcstoul_l_internal): Likewise.
4617         (____wcstoll_l_internal): Likewise.
4618         (____wcstoull_l_internal): Likewise.
4619         (____wcstof128_l_internal): Likewise.
4620         * sysdeps/ieee754/float128/wcstof128.c
4621         (____wcstof128_l_internal): Removed.
4622         * sysdeps/ieee754/float128/wcstof128_l.c
4623         (____wcstof128_l_internal): Likewise.
4624         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
4625         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
4626         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
4627         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
4628         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
4629         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
4630         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
4631         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
4632         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
4633         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
4635 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4637         [BZ #18822]
4638         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
4639         instead of <sys/statvfs.h>.
4640         (__internal_statvfs): Removed.
4641         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
4642         instead of <sys/statvfs.h>.
4643         (__internal_statvfs64): Removed.
4644         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
4645         "internal_statvfs.h" instead of <sys/statvfs.h>.
4646         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
4647         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
4648         instead of <sys/statvfs.h>.
4649         (__internal_statvfs): Removed.
4650         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
4651         instead of <sys/statvfs.h>.
4652         (__internal_statvfs64): Removed.
4654 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4656         [BZ #18822]
4657         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
4658         (__gconv_close): Likewise.
4659         (__gconv): Likewise.
4660         (__gconv_find_transform): Likewise.
4661         (__gconv_lookup_cache): Likewise.
4662         (__gconv_compare_alias_cache): Likewise.
4663         (__gconv_load_cache): Likewise.
4664         (__gconv_get_path): Likewise.
4665         (__gconv_close_transform): Likewise.
4666         (__gconv_release_cache): Likewise.
4667         (__gconv_find_shlib): Likewise.
4668         (__gconv_release_shlib): Likewise.
4669         (__gconv_get_builtin_trans): Likewise.
4670         (__gconv_compare_alias): Likewise.
4671         * include/dlfcn.h (_dlerror_run): Likewise.
4672         * include/stdio.h (__fortify_fail_abort): Likewise.
4673         * include/time.h (__tz_compute): Likewise.
4674         (__strptime_internal): Likewise.
4675         * intl/gettextP.h (_nl_find_domain): Likewise.
4676         (_nl_load_domain): Likewise.
4677         (_nl_find_msg): Likewise.
4678         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
4679         (EXTRACT_PLURAL_EXPRESSION): Likewise.
4680         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
4681         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
4682         (__gai_find_request): Likewise.
4683         (__gai_remove_request): Likewise.
4684         (__gai_notify): Likewise.
4685         (__gai_notify_only): Likewise.
4686         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4687         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4688         (_dl_non_dynamic_init): Likewise.
4689         (_dl_aux_init): Likewise.
4690         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
4691         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4692         Likewise.
4693         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
4694         (__wcsmbs_clone_conv): Likewise.
4695         (__wcsmbs_named_conv): Likewise.
4697 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4699         [BZ #18822]
4700         * include/stdlib.h (__random): Add attribute_hidden.
4701         (__random_r): Likewise.
4702         (__srandom_r): Likewise.
4703         (__initstate_r): Likewise.
4704         (__setstate_r): Likewise.
4705         (__erand48_r): Likewise.
4706         (__nrand48_r): Likewise.
4707         (__jrand48_r): Likewise.
4708         (__srand48_r): Likewise.
4709         (__seed48_r): Likewise.
4710         (__lcong48_r): Likewise.
4711         (__drand48_iterate): Likewise.
4712         (__setenv): Likewise.
4713         (__unsetenv): Likewise.
4714         (__clearenv): Likewise.
4715         (__ptsname_r): Likewise.
4716         (__posix_openpt): Likewise.
4717         (__add_to_environ): Likewise.
4718         (__realpath): Add libc_hidden_proto.
4719         (__ecvt_r): Likewise.
4720         (__fcvt_r): Likewise.
4721         (__qecvt_r): Likewise.
4722         (__qfcvt_r): Likewise.
4723         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
4724         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
4726 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4728         [BZ #18822]
4729         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
4730         * include/time.h (__mktime_internal): Likewise.
4731         * libio/iolibio.h (__fopen_internal): Likewise.
4733 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
4735         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
4736         pointer in frame.
4737         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
4738         Correct offset used to restore PIC register.
4740 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
4742         [BZ libc/22165]
4743         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
4744         code to load address of __getcontext_ret when generating PIC code.
4746 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
4748         * elf/Makefile (tests-static-internal): Add
4749         tst-tls1-static-non-pie.
4750         (LDFLAGS-tst-tls1-static-non-pie): New.
4751         * elf/tst-tls1-static-non-pie.c: New file.
4753 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4755         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
4756         (asinh): Define using libm_alias_double.
4757         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
4758         (cbrt): Define using libm_alias_double.
4759         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
4760         <libm-alias-double.h>.
4761         (copysign): Define using libm_alias_double.
4762         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
4763         (erf): Define using libm_alias_double.
4764         (erfc): Likewise.
4765         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
4766         (expm1): Define using libm_alias_double.
4767         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
4768         (fabs): Define using libm_alias_double.
4769         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
4770         libm_alias_double.
4771         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
4772         <libm-alias-double.h>.
4773         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
4774         libm_alias_double.
4775         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
4776         <libm-alias-double.h>.
4777         (getpayload): Define using libm_alias_double.
4778         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
4779         <libm-alias-double.h>.
4780         (llrint): Define using libm_alias_double.
4781         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
4782         (lrint): Define using libm_alias_double.
4783         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
4784         <libm-alias-double.h>.
4785         (nextup): Define using libm_alias_double.
4786         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
4787         <libm-alias-double.h>.
4788         (roundeven): Define using libm_alias_double.
4789         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
4790         libm_alias_double.
4791         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
4792         <libm-alias-double.h>.
4793         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
4794         using libm_alias_double.
4795         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
4796         (cos): Define using libm_alias_double.
4797         (sin): Likewise.
4798         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
4799         <libm-alias-double.h>.
4800         (sincos): Define using libm_alias_double.
4801         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
4802         (tanh): Define using libm_alias_double.
4803         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
4804         <libm-alias-double.h>.
4805         (totalorder): Define using libm_alias_double.
4806         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
4807         <libm-alias-double.h>.
4808         (totalordermag): Define using libm_alias_double.
4809         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
4810         libm_alias_double.
4811         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
4812         libm_alias_double.
4813         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
4814         <libm-alias-double.h>.
4815         (getpayload): Define using libm_alias_double.
4816         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
4817         <libm-alias-double.h>.
4818         (roundeven): Define using libm_alias_double.
4819         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
4820         <libm-alias-double.h>.
4821         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
4822         <libm-alias-double.h>.
4823         (totalorder): Define using libm_alias_double.
4824         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
4825         <libm-alias-double.h>.
4826         (totalordermag): Define using libm_alias_double.
4827         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
4828         libc compat symbol here.
4829         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
4830         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
4831         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
4832         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
4833         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
4834         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
4835         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
4836         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
4837         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
4838         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
4840 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4842         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
4843         _dl_relocate_static_pie instead of _dl_start to compute load
4844         address in static PIE.  Return 0 if _DYNAMIC is undefined for
4845         static executable.
4847 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4849         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
4850         _DYNAMIC is undefined for static executable.
4852 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4854         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
4856 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4858         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4860 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4862         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
4863         (__ieee754_lgamma_r): Use fabs rather than __fabs.
4864         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4865         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4866         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
4867         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
4868         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4869         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
4870         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
4871         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4872         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4873         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
4874         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4875         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4876         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4877         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4878         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
4880 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4882         * math/bits/cmathcalls.h (cimag): Remove inline.
4883         (creal): Remove inline.
4884         (conj): Remove inline.
4886 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4888         * math/Makefile (type-float-routines): Add e_powf_log2_data.
4889         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
4890         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
4891         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
4892         (issignalingf_inline): Likewise.
4893         (POWF_LOG2_TABLE_BITS): Likewise.
4894         (POWF_LOG2_POLY_ORDER): Likewise.
4895         (POWF_SCALE_BITS): Likewise.
4896         (POWF_SCALE): Likewise.
4897         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
4898         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
4899         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
4901 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4903         * math/Makefile (type-float-routines): Add e_log2f_data.
4904         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
4905         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
4906         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
4907         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
4908         * sysdeps/i386/fpu/e_log2f_data.c: New file.
4909         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
4910         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
4912 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4914         * math/Makefile (type-float-routines): Add e_logf_data.
4915         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
4916         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
4917         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
4918         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
4919         * sysdeps/i386/fpu/e_logf_data.c: New file.
4920         * sysdeps/ia64/fpu/e_logf_data.c: New file.
4921         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
4923 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
4925         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
4926         undefined _DYNAMIC in PIE libc.a.
4927         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4928         Likewse.
4930 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4932         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
4933         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
4934         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
4935         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
4936         (__signbit): Remove.
4937         (__signbitl): Remove.
4938         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
4939         (__signbit): Remove.
4940         (__signbitl): Remove.
4941         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
4942         (__signbit): Remove.
4943         (__signbitl): Remove.
4944         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
4945         (__signbit): Remove.
4946         (__signbitl): Remove.
4947         * sysdeps/tile/bits/mathinline.h: Delete file.
4948         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
4949         (__signbit): Remove.
4950         (__signbitl): Remove.
4952 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4954         * math/math.h: Improve handling of C99 isgreater macros.
4955         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
4956         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
4957         * sysdeps/powerpc/bits/mathinline.h: Likewise.
4958         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4959         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
4961 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4963         * sysdeps/aarch64/libm-test-ulps: Update.
4965 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
4967         [BZ #22225]
4968         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4969         math_opt_barrier on argument when doing arithmetic on it.
4970         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4971         Likewise.  Use math_force_eval not math_opt_barrier after
4972         arithmetic.
4973         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
4974         math_opt_barrier on argument when doing arithmetic on it.
4975         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4976         Likewise.
4978 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
4980         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
4981         libc_hidden_def.
4982         (__freeifaddrs): Likewise.
4984 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4986         * include/dirent.h (__dirfd): New declaration.
4987         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
4988         alias.
4989         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
4990         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
4991         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
4992         * include/unistd.h (__revoke): New declaration.
4993         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
4994         alias.
4995         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
4996         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
4997         revoke.
4998         * include/dirent.h (__seekdir): New declaration.
4999         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
5000         redefine as weak alias.
5001         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
5002         of seekdir.
5003         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
5004         and use libc_hidden_def on them.
5005         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
5006         them.
5007         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
5008         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
5009         instead of getifaddrs and freeifaddrs.
5011 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5013         [BZ #18822]
5014         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
5015         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
5016         (__dso_handle): Remove declaration.
5017         * dlfcn/tstatexit.c (__dso_handle): Removed.
5018         (main): Don't check __dso_handle.
5019         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
5020         (main): Don't check __dso_handle.
5021         * include/dso_handle.h: New file.
5022         * malloc/mtrace.c: Include <dso_handle.h>.
5023         (mtrace): Pass __dso_handle directly.
5024         * nptl/pthread_atfork.c: Include <dso_handle.h>.
5025         (__dso_handle): Remove declaration.
5026         (__pthread_atfork): Pass __dso_handle directly.
5027         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
5028         (__dso_handle): Removed.
5029         * posix/wordexp-test.c: Include <dso_handle.h>.
5030         (__dso_handle): Remove declaration.
5031         (__app_register_atfork): Pass __dso_handle directly.
5032         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
5033         (__dso_handle): Remove declaration.
5034         (at_quick_exit): Pass __dso_handle directly.
5035         * stdlib/atexit.c: Include <dso_handle.h>.
5036         (__dso_handle): Remove declaration.
5037         (atexit): Pass __dso_handle directly.
5038         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
5039         (__dso_handle): Removed.
5041 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5043         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
5044         using VDSO.
5046 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
5048         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
5049         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
5050         values to correct default value for given type.
5052 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5054         [BZ #22101]
5055         * elf/Makefile (tests): Add tst-debug1.
5056         ($(objpfx)tst-debug1): New.
5057         ($(objpfx)tst-debug1.out): Likewise.
5058         ($(objpfx)tst-debug1mod1.so): Likewise.
5059         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
5060         with p_filesz == 0.
5061         * elf/tst-debug1.c: New file.
5063 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5065         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
5066         Define using __ifunc.
5068 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5070         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
5071         exp2f() values.
5073 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5075         [BZ #22156]
5076         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
5078 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5080         * resolv/Makefile (tests-internal): Fix typo in comment.
5082 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5084         * resolv/nss_dns/dns-host.c: Fix typo in comment.
5086 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5088         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
5089         Use an union instead of a max_align_t array for __space,
5090         so that __space is the same size on all platforms.
5091         * malloc/scratch_buffer_grow_preserve.c
5092         (__libc_scratch_buffer_grow_preserve): Likewise.
5094         [BZ #22183]
5095         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
5096         version to 2.
5097         * posix/Makefile (routines): Add glob-lstat-compat and
5098         glob64-lstat-compat.
5099         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
5100         * posix/glob-lstat-compat.c: New file.
5101         * posix/glob64-lstat-compat.c: Likewise.
5102         * posix/tst-glob_lstat_compat.c: Likewise.
5103         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
5104         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
5105         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
5106         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
5107         Likewise.
5108         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
5109         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5110         * posix/glob.c (glob_lstat): New function.
5111         (glob): Rename to __glob and add versioned symbol to 2.27.
5112         (glob_in_dir): Use glob_lstat.
5113         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
5114         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5115         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
5116         2.27.
5117         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
5118         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
5119         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
5120         gl_lstat on glob call.
5121         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
5122         and glob64 symbols.
5123         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5124         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5125         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5126         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5127         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5128         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5129         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5130         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5131         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5132         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5133         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5134         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5136         Likewise.
5137         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5139         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5140         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5141         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5142         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5143         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5144         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5145         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5146         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5147         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5148         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5150 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
5152         * configure.ac (AS): Require binutils 2.25 or later.
5153         * configure: Regenerated.
5155 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5157         [BZ #22207]
5158         * stdlib/test-atexit-race-common.c (do_test): Minimize required
5159         VM size.
5161 2017-09-25  DJ Delorie  <dj@redhat.com>
5163         [BZ #22161]
5164         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
5165         resetting timeout.
5167 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5169         * sysdeps/ieee754/dbl-64/sincos32.h
5170         [SINCCOS32_H]: Remove define.
5171         [SINCOS32_H]: Define.
5173 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5175         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5176         (exp2f): Likewise.
5177         * math/w_exp2f.c: New file.
5178         * math/w_expf.c: New file.
5179         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5180         * math/w_expf_compat.c (__expf_compat): Likewise.
5181         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5182         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5183         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5184         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5185         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5186         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5187         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5188         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5189         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5190         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5191         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5192         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5193         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5194         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5196         Likewise.
5197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5198         Likewise.
5199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5200         Likewise.
5201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5202         Likewise.
5203         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5204         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5205         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5206         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5207         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5208         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5209         Likewise.
5210         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5211         Likewise.
5212         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5213         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5214         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5216 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5218         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5219         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5220         (roundtoint, converttoint): Likewise.
5221         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5222         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5223         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5224         * sysdeps/ieee754/flt-32/math_config.h: New file.
5225         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5226         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5227         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5228         * sysdeps/i386/fpu/math_errf.c: New file.
5229         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5230         * sysdeps/ia64/fpu/math_errf.c: New file.
5231         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5232         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5234 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5236         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5237         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5238         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5239         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5240         to make sure that these symbols are defined.
5241         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5242         of <limits.h>
5243         (__need_NULL): Do not define.
5244         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5245         alignment.
5246         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5247         CMGROUP_MAX, cmsgcred): Do not define.
5248         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5249         NULL.
5250         * bits/socket.h: Likewise.
5251         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5252         __gettimeofday instead of gettimeofday.
5253         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5254         instead of settimeofday.
5256 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5258         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5259         (asinhf): Define using libm_alias_float.
5260         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5261         (atanf): Define using libm_alias_float.
5262         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5263         (cbrtf): Define using libm_alias_float.
5264         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5265         (ceilf): Define using libm_alias_float.
5266         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5267         <libm-alias-float.h>.
5268         (copysignf): Define using libm_alias_float.
5269         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5270         (cosf): Define using libm_alias_float.
5271         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5272         (erff): Define using libm_alias_float.
5273         (erfcf): Likewise.
5274         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5275         (expm1f): Define using libm_alias_float.
5276         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5277         (fabsf): Define using libm_alias_float.
5278         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5279         (floorf): Define using libm_alias_float.
5280         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5281         (frexpf): Define using libm_alias_float.
5282         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5283         libm_alias_float.
5284         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
5285         <libm-alias-float.h>.
5286         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
5287         libm_alias_float.
5288         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
5289         <libm-alias-float.h>.
5290         (getpayloadf): Define using libm_alias_float.
5291         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
5292         <libm-alias-float.h>.
5293         (llrintf): Define using libm_alias_float.
5294         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
5295         <libm-alias-float.h>.
5296         (llroundf): Define using libm_alias_float.
5297         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
5298         (logbf): Define using libm_alias_float.
5299         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
5300         (lrintf): Define using libm_alias_float.
5301         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
5302         (lroundf): Define using libm_alias_float.
5303         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
5304         (modff): Define using libm_alias_float.
5305         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
5306         <libm-alias-float.h>.
5307         (nearbyintf): Define using libm_alias_float.
5308         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
5309         <libm-alias-float.h>.
5310         (nextafterf): Define using libm_alias_float.
5311         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
5312         <libm-alias-float.h>.
5313         (nextupf): Define using libm_alias_float.
5314         * sysdeps/ieee754/flt-32/s_remquof.c: Include
5315         <libm-alias-float.h>.
5316         (remquof): Define using libm_alias_float.
5317         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
5318         (rintf): Define using libm_alias_float.
5319         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
5320         <libm-alias-float.h>.
5321         (roundevenf): Define using libm_alias_float.
5322         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
5323         (roundf): Define using libm_alias_float.
5324         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
5325         using libm_alias_float.
5326         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
5327         <libm-alias-float.h>.
5328         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
5329         Define using libm_alias_float.
5330         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
5331         <libm-alias-float.h>.
5332         (sincosf): Define using libm_alias_float.
5333         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
5334         (sinf): Define using libm_alias_float.
5335         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
5336         (tanf): Define using libm_alias_float.
5337         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
5338         (tanhf): Define using libm_alias_float.
5339         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
5340         <libm-alias-float.h>.
5341         (totalorderf): Define using libm_alias_float.
5342         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
5343         <libm-alias-float.h>.
5344         (totalordermagf): Define using libm_alias_float.
5345         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
5346         (truncf): Define using libm_alias_float.
5347         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
5348         libm_alias_float.
5349         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
5350         libm_alias_float.
5352 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5354         [BZ #22146]
5355         math/math.h: Let fpclassify use the builtin in C++ mode, even
5356         when optimazing for size.
5358 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5360         * csu/Makefile (generated): Do not add version-info.h.
5361         (before-compile): Likewise.
5362         (all-Banner-files): Remove variable.
5363         ($(objpfx)version-info.h): Remove rule.
5364         * csu/version.c (banner): Do not include "version-info.h".
5365         * libidn/Banner: Remove.
5366         * manual/contrib.texi (Simon Josefsson): New entry.
5368 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5370         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5371         Remove conditionals on LDBL_MANT_DIG.
5372         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5373         (__ieee754_lgammal_r): Likewise.
5375 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5377         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
5378         _Float128 and L().
5379         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
5380         _Float128 and L(). Replace _Float128 with long double and L(x)
5381         with xL, throughout the file.
5382         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5383         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5384         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5385         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5387 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5389         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
5390         sysdeps/ieee754/ldbl-128ibm.
5391         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
5392         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
5393         of including it.  Keep _Float128 and L() intact.  These will be
5394         reviewed by a separate patch.
5395         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5396         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5397         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5398         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5400 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
5403         (__finitef128): Define to __redirect___finitef128.
5404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
5405         (__isinff128): Define to __redirect___isinff128.
5406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
5407         (__isnanf128): Define to __redirect___isnanf128.
5409 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5411         * sysdeps/powerpc/powerpc64le/Makefile
5412         (CFLAGS-tst-strtod-nan-locale.c): New variable.
5413         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
5415 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5416             Carlos O'Donell  <carlos@redhat.com>
5418         [BZ #22180]
5419         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
5420         * stdlib/test-dlclose-exit-race.c: New file.
5421         * stdlib/test-dlclose-exit-race-helper.c: New file.
5422         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
5424 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
5426         * crypt/Banner: Remove file.
5427         * nptl/Banner: Likewise.
5428         * resolv/Banner: Likewise.
5429         * soft-fp/Banner: Likewise.
5430         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
5431         ($(objpfx)version.d): Remove dependency on banner.h.
5432         ($(objpfx)version.os): Likewise.
5433         * nptl/version.c (banner): Do not include banner.h.
5434         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
5435         Jelinek and BIND code.
5437 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5438             Carlos O'Donell  <carlos@redhat.com>
5440         * support/xdlfcn.h: New file.
5441         * support/xdlfcn.c: New file.
5442         * support/Makefile (libsupport-routines): Add xdlfcn.
5443         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
5445 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
5447         [BZ #20142]
5448         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5449         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
5450         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
5451         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
5452         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
5453         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
5454         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
5455         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
5457 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5458             Ricky Zhou  <rickyz@google.com>
5459             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
5461         [BZ #14333]
5462         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
5463         Remove atomics.
5464         (__new_exitfn): Fail registration when we finished at_exit processing.
5465         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
5466         * stdlib/on_exit.c (__on_exit): Likewise.
5467         * stdlib/exit.c (__exit_funcs_done): New variable.
5468         (__run_exit_handlers): Use __exit_funcs_lock.
5469         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
5470         declarations.
5471         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
5472         (test-cxa_atexit-race, test-on_exit-race): New tests.
5473         * stdlib/test-atexit-race-common.c: New file.
5474         * stdlib/test-atexit-race.c: New file.
5475         * stdlib/test-at_quick_exit-race.c: New file.
5476         * stdlib/test-cxa_atexit-race.c: New file.
5477         * stdlib/test-on_exit-race.c: New file.
5479 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5481         * benchtests/Makefile: Add exp2f and log2f benchmarks.
5482         * benchtests/exp2f-inputs: Copy of expf-inputs.
5483         * benchtests/log2f-inputs: Copy of logf-inputs.
5485 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5487         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
5488         Explicitly take address of first element of array arguments in
5489         call to INLINE_SYSCALL.
5491 2017-09-19  Andreas Schwab  <schwab@suse.de>
5493         [BZ #22134]
5494         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
5495         execveat first.
5496         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
5497         unimplemented.
5498         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
5499         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
5500         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5501         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
5502         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5503         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5504         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5505         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5506         * posix/Makefile (tests): Add tst-fexecve.
5507         * posix/tst-fexecve.c: New file.
5509 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5511         * benchtests/Makefile: Add logf benchmark.
5512         * benchtests/logf-inputs: Add reduced trace from wrf_r.
5514 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5516         * benchtests/Makefile: Add expf benchmark.
5517         * benchtests/expf-inputs: Add reduced trace from wrf_r.
5519 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5521         * csu/Makefile: Add -funwind-tables to libc-start.c.
5522         * debug/Makefile: Add -funwind-tables to backtrace.c.
5523         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
5524         * sysdeps/arm/Makefile: Likewise.
5525         * sysdeps/i386/Makefile: Likewise.
5526         * sysdeps/m68k/Makefile: Likewise.
5527         * sysdeps/mips/Makefile: Likewise.
5528         * sysdeps/nios2/Makefile: Likewise.
5529         * sysdeps/sh/Makefile: Likewise.
5530         * sysdeps/sparc/Makefile: Likewise.
5532 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5534         * benchtests/Makefile (bench-math): Add trunc and truncf.
5535         (CFLAGS-bench-trunc.c): New variable.
5536         (CFLAGS-bench-truncf.c): Likewise.
5537         * benchtests/trunc-inputs: New file.
5538         * benchtests/truncf-inputs: Likewise.
5540 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5542         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
5544 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
5546         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
5547         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
5548         redefine.
5549         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
5550         (exp10l): Define as weak alias.
5551         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
5552         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
5553         and redefine.
5554         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
5555         (remainderl): Define as weak alias.
5557         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
5558         (fmal): Define using libm_alias_ldouble.
5559         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
5560         (acoshl): Define using libm_alias_ldouble.
5561         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
5562         (acosl): Define using libm_alias_ldouble.
5563         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
5564         (asinl): Define using libm_alias_ldouble.
5565         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
5566         (atan2l): Define using libm_alias_ldouble.
5567         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
5568         (atanhl): Define using libm_alias_ldouble.
5569         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
5570         (coshl): Define using libm_alias_ldouble.
5571         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
5572         (exp10l): Define using libm_alias_ldouble.
5573         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
5574         (exp2l): Define using libm_alias_ldouble.
5575         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
5576         (expl): Define using libm_alias_ldouble.
5577         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
5578         (fmodl): Define using libm_alias_ldouble.
5579         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
5580         (hypotl): Define using libm_alias_ldouble.
5581         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
5582         (j0l): Define using libm_alias_ldouble.
5583         (y0l): Likewise.
5584         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
5585         (j1l): Define using libm_alias_ldouble.
5586         (y1l): Likewise.
5587         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
5588         (jnl): Define using libm_alias_ldouble.
5589         (ynl): Likewise.
5590         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
5591         (log10l): Define using libm_alias_ldouble.
5592         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
5593         (log2l): Define using libm_alias_ldouble.
5594         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
5595         (logl): Define using libm_alias_ldouble.
5596         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
5597         (powl): Define using libm_alias_ldouble.
5598         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
5599         (remainderl): Define using libm_alias_ldouble.
5600         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
5601         (sinhl): Define using libm_alias_ldouble.
5602         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
5603         (sqrtl): Define using libm_alias_ldouble.
5604         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
5605         (tgammal): Define using libm_alias_ldouble.
5606         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
5607         (exp10l): Do not use long_double_symbol here.
5608         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
5609         [LIBM_SVID_COMPAT] (remainderl): Likewise.
5610         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
5611         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5612         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5613         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5614         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5615         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5616         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5617         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5618         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5619         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5620         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5621         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5622         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5623         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5624         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5625         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5626         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5627         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5628         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5629         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5631 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
5633         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
5634         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
5636 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5638         * io/read.c (read): Add libc_hidden_weak.
5639         * sysdeps/mach/hurd/read.c (read): Likewise.
5640         * io/write.c (write): Likewise.
5641         * sysdeps/mach/hurd/write.c (write): Likewise.
5642         * io/pread64.c (__pread64): Likewise.
5643         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
5644         * posix/pread64.c (__pread64): Add libc_hidden_def.
5646 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5648         * benchtests/scripts/compare_strings.py: New option -g.
5649         (draw_graph): Print a message that a graph is being generated.
5650         (process_results): Generate graph only if -g is passed.
5651         (main): Process option -g.
5653         * benchtests/scripts/compare_strings.py (process_results):
5654         Better spacing for output.
5656         * benchtests/scripts/compare_strings.py: Use argparse.
5657         * benchtests/README: Document existence of compare_strings.py.
5659 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5661         * math/s_fma.c: Include <libm-alias-double.h>.
5662         (fma): Define using libm_alias_double.
5663         * math/s_nextafter.c: Include <libm-alias-double.h>.
5664         (nextafter): Define using libm_alias_double.
5665         * math/w_acos_compat.c: Include <libm-alias-double.h>.
5666         (acos): Define using libm_alias_double.
5667         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
5668         (aocsh): Define using libm_alias_double.
5669         * math/w_asin_compat.c: Include <libm-alias-double.h>.
5670         (asin): Define using libm_alias_double.
5671         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
5672         (atan2): Define using libm_alias_double.
5673         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
5674         (atanh): Define using libm_alias_double.
5675         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
5676         (cosh): Define using libm_alias_double.
5677         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
5678         (exp10): Define using libm_alias_double.
5679         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
5680         (exp2): Define using libm_alias_double.
5681         * math/w_exp_compat.c: Include <libm-alias-double.h>.
5682         (exp): Define using libm_alias_double.
5683         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
5684         (fmod): Define using libm_alias_double.
5685         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
5686         (hypot): Define using libm_alias_double.
5687         * math/w_j0_compat.c: Include <libm-alias-double.h>.
5688         (j0): Define using libm_alias_double.
5689         (y0): Likewise.
5690         * math/w_j1_compat.c: Include <libm-alias-double.h>.
5691         (j1): Define using libm_alias_double.
5692         (y1): Likewise.
5693         * math/w_jn_compat.c: Include <libm-alias-double.h>.
5694         (jn): Define using libm_alias_double.
5695         (yn): Likewise.
5696         * math/w_log10_compat.c: Include <libm-alias-double.h>.
5697         (log10): Define using libm_alias_double.
5698         * math/w_log2_compat.c: Include <libm-alias-double.h>.
5699         (log2): Define using libm_alias_double.
5700         * math/w_log_compat.c: Include <libm-alias-double.h>.
5701         (log): Define using libm_alias_double.
5702         * math/w_pow_compat.c: Include <libm-alias-double.h>.
5703         (pow): Define using libm_alias_double.
5704         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
5705         (remainder): Define using libm_alias_double.
5706         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
5707         (sinh): Define using libm_alias_double.
5708         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
5709         (sqrt): Define using libm_alias_double.
5710         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
5711         (tgamma): Define using libm_alias_double.
5712         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
5713         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
5714         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
5715         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
5716         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
5717         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
5718         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
5719         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5720         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5721         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5722         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5723         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5724         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
5725         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5726         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5727         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5728         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5729         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5730         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5731         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5732         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5733         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5734         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5735         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5736         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5738         * math/e_acoshl.c: Remove.
5739         * math/e_acosl.c: Likewise.
5740         * math/e_asinl.c: Likewise.
5741         * math/e_atan2l.c: Likewise.
5742         * math/e_atanhl.c: Likewise.
5743         * math/e_coshl.c: Likewise.
5744         * math/e_expl.c: Likewise.
5745         * math/e_fmodl.c: Likewise.
5746         * math/e_gammal_r.c: Likewise.
5747         * math/e_hypotl.c: Likewise.
5748         * math/e_j0l.c: Likewise.
5749         * math/e_j1l.c: Likewise.
5750         * math/e_jnl.c: Likewise.
5751         * math/e_lgammal_r.c: Likewise.
5752         * math/e_log10l.c: Likewise.
5753         * math/e_log2l.c: Likewise.
5754         * math/e_logl.c: Likewise.
5755         * math/e_powl.c: Likewise.
5756         * math/e_rem_pio2l.c: Likewise.
5757         * math/e_sinhl.c: Likewise.
5758         * math/e_sqrtf128.c: Likewise.
5759         * math/e_sqrtl.c: Likewise.
5760         * math/k_cosl.c: Likewise.
5761         * math/k_sinl.c: Likewise.
5762         * math/k_tanl.c: Likewise.
5763         * math/s_asinhl.c: Likewise.
5764         * math/s_atanl.c: Likewise.
5765         * math/s_cbrtl.c: Likewise.
5766         * math/s_erfl.c: Likewise.
5767         * math/s_expm1l.c: Likewise.
5768         * math/s_log1pl.c: Likewise.
5769         * math/s_tanhl.c: Likewise.
5771 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5773         [BZ #21745]
5774         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
5775         [$(subdir) = math] (sysdep_calls): New variable.  Has the
5776         previous contents of sysdep_routines, but re-sorted..
5777         [$(subdir) = math] (sysdep_routines): Re-use the contents from
5778         sysdep_calls.
5779         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
5780         defined in sysdep_calls and replace by the respective m_* names.
5781         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
5782         (compat_symbol): Undefine to avoid duplicated compat symbols in
5783         libc.
5785 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5787         * math/s_fmaf.c: Include <libm-alias-float.h>.
5788         (fmaf): Define using libm_alias_float.
5789         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
5790         (acosf): Define using libm_alias_float.
5791         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
5792         (acoshf): Define using libm_alias_float.
5793         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
5794         (asinf): Define using libm_alias_float.
5795         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
5796         (atan2f): Define using libm_alias_float.
5797         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
5798         (atanhf): Define using libm_alias_float.
5799         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
5800         (coshf): Define using libm_alias_float.
5801         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
5802         (exp10f): Define using libm_alias_float.
5803         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
5804         (fmodf): Define using libm_alias_float.
5805         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
5806         (hypotf): Define using libm_alias_float.
5807         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
5808         (j0f): Define using libm_alias_float.
5809         (y0f): Likewise.
5810         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
5811         (j1f): Define using libm_alias_float.
5812         (y1f): Likewise.
5813         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
5814         (jnf): Define using libm_alias_float.
5815         (ynf): Likewise.
5816         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
5817         (log10f): Define using libm_alias_float.
5818         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
5819         (log2f): Define using libm_alias_float.
5820         * math/w_logf_compat.c: Include <libm-alias-float.h>.
5821         (logf): Define using libm_alias_float.
5822         * math/w_powf_compat.c: Include <libm-alias-float.h>.
5823         (powf): Define using libm_alias_float.
5824         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
5825         (remainderf): Define using libm_alias_float.
5826         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
5827         (sinhf): Define using libm_alias_float.
5828         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
5829         (sqrtf): Define using libm_alias_float.
5830         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
5831         (tgammaf): Define using libm_alias_float.
5833 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5835         * include/math.h (roundeven): Change hidden_proto call to
5836         __roundeven.
5837         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
5838         alias.
5839         [NO_LONG_DOUBLE] (__j0l): New strong alias.
5840         (y0): Rename to __y0 and define as weak alias.
5841         [NO_LONG_DOUBLE] (__y0l): New strong alias.
5842         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
5843         alias.
5844         (y0f): Rename to __y0f and define as weak alias.
5845         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
5846         alias.
5847         [NO_LONG_DOUBLE] (__j1l): New strong alias.
5848         (y1): Rename to __y1 and define as weak alias.
5849         [NO_LONG_DOUBLE] (__y1l): New strong alias.
5850         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
5851         alias.
5852         (y1f): Rename to __y1f and define as weak alias.
5853         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
5854         alias.
5855         [NO_LONG_DOUBLE] (__jnl): New strong alias.
5856         (yn): Rename to __yn and define as weak alias.
5857         [NO_LONG_DOUBLE] (__ynl): New strong alias.
5858         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
5859         alias.
5860         (ynf): Rename to __ynf and define as weak alias.
5861         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
5862         (fromfp): Define as weak alias.
5863         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
5864         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
5865         (fromfpx): Define as weak alias.
5866         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
5867         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
5868         __getpayload and define as weak alias.
5869         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5870         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
5871         __roundeven and define as weak alias.
5872         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5873         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
5874         __setpayload.
5875         (setpayload): Define as weak alias.
5876         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
5877         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
5878         __setpayloadsig.
5879         (setpayloadsig): Define as weak alias.
5880         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
5881         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
5882         __totalorder and define as weak alias.
5883         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5884         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
5885         to __totalordermag and define as weak alias.
5886         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5887         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
5888         (ufromfp): Define as weak alias.
5889         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
5890         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
5891         __ufromfpx.
5892         (ufromfpx): Define as weak alias.
5893         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
5894         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
5895         Rename to __getpayload and define as weak alias.
5896         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5897         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
5898         Rename to __roundeven and define as weak alias.
5899         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5900         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
5901         Rename to __totalorder and define as weak alias.
5902         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5903         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
5904         (totalordermag): Rename to __totalordermag and define as weak
5905         alias.
5906         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5907         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
5908         macro.
5909         (__roundevenl): Likewise.
5910         (__totalorderl): Likewise.
5911         (__totalordermagl): Likewise
5912         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
5913         __fromfpf128.
5914         (fromfpf128): Define as weak alias.
5915         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
5916         __fromfpxf128.
5917         (fromfpxf128): Define as weak alias.
5918         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
5919         __setpayloadf128.
5920         (setpayloadf128): Define as weak alias.
5921         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
5922         __setpayloadsigf128.
5923         (setpayloadsigf128): Define as weak alias.
5924         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
5925         __ufromfpf128.
5926         (ufromfpf128): Define as weak alias.
5927         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
5928         __ufromfpxf128.
5929         (ufromfpxf128): Define as weak alias.
5930         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
5931         (fromfpf): Define as weak alias.
5932         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
5933         __fromfpxf.
5934         (fromfpxf): Define as weak alias.
5935         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
5936         __getpayloadf and define as weak alias.
5937         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
5938         __roundevenf and define as weak alias.
5939         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
5940         __setpayloadf.
5941         (setpayloadf): Define as weak alias.
5942         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
5943         __setpayloadsigf.
5944         (setpayloadsigf): Define as weak alias.
5945         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
5946         __totalorderf and define as weak alias.
5947         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
5948         Rename to __totalordermagf and define as weak alias.
5949         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
5950         __ufromfpf.
5951         (ufromfpf): Define as weak alias.
5952         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
5953         __ufromfpxf.
5954         (ufromfpxf): Define as weak alias.
5955         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
5956         __fromfpl.
5957         (fromfpl): Define as weak alias.
5958         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
5959         __fromfpxl.
5960         (fromfpxl): Define as weak alias.
5961         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
5962         to __getpayloadl and define as weak alias.
5963         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
5964         __roundevenl and define as weak alias.
5965         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
5966         __setpayloadl.
5967         (setpayloadl): Define as weak alias.
5968         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
5969         __setpayloadsigl.
5970         (setpayloadsigl): Define as weak alias.
5971         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
5972         to __totalorderl and define as weak alias.
5973         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
5974         Rename to __totalordermagl and define as weak alias.
5975         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
5976         __ufromfpl.
5977         (ufromfpl): Define as weak alias.
5978         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
5979         __ufromfpxl.
5980         (ufromfpxl): Define as weak alias.
5981         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
5982         __fromfpl.
5983         (fromfpl): Define as weak alias.
5984         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
5985         __fromfpxl.
5986         (fromfpxl): Define as weak alias.
5987         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
5988         Rename to __getpayloadl and define as weak alias.
5989         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
5990         to __roundevenl and define as weak alias.  Call __roundeven
5991         instead of roundeven.
5992         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
5993         __setpayloadl.
5994         (setpayloadl): Define as weak alias.
5995         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
5996         __setpayloadsigl.
5997         (setpayloadsigl): Define as weak alias.
5998         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
5999         Rename to __totalorderl and define as weak alias.
6000         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
6001         Rename to __totalordermagl and define as weak alias.
6002         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
6003         __ufromfpl.
6004         (ufromfpl): Define as weak alias.
6005         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
6006         __ufromfpxl.
6007         (ufromfpxl): Define as weak alias.
6008         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
6009         __fromfpl.
6010         (fromfpl): Define as weak alias.
6011         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
6012         __fromfpxl.
6013         (fromfpxl): Define as weak alias.
6014         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
6015         __getpayloadl and define as weak alias.
6016         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
6017         __roundevenl and define as weak alias.
6018         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
6019         __setpayloadl.
6020         (setpayloadl): Define as weak alias.
6021         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
6022         __setpayloadsigl.
6023         (setpayloadsigl): Define as weak alias.
6024         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
6025         __totalorderl and define as weak alias.
6026         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
6027         Rename to __totalordermagl and define as weak alias.
6028         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
6029         __ufromfpl.
6030         (ufromfpl): Define as weak alias.
6031         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
6032         __ufromfpxl.
6033         (ufromfpxl): Define as weak alias.
6035 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6037         * benchtests/bench-string.h (realloc_bufs): New function.
6038         (test_init): Call it.
6039         * benchtests/bench-memset-large.c (do_test): Likewise.
6040         * benchtests/bench-memset.c (do_test): Likewise.
6042         * benchtests/bench-memset-large.c: Print output in JSON
6043         format.
6044         * benchtests/bench-memset.c: Likewise.
6046 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6048         [BZ #21084]
6049         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
6050         * iconvdata/Makefile: Add IBM858.
6051         * iconvdata/gconv-modules: Likewise.
6052         * iconvdata/tst-tables.sh: Likewise.
6053         * iconvdata/ibm858.c: New file.
6054         * localedata/charmaps/IBM858: Likewise.
6056 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
6058         [BZ #22023]
6059         * locales/niu_NZ (LC_TIME): copy "niu_NU".
6060         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
6062 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6064         [BZ #22112]
6065         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
6066         and add tel_int_fmt.
6068 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6070         * sysdeps/generic/libm-alias-float128.h: New file.
6071         * sysdeps/generic/math-type-macros-float128.h: Include
6072         <libm-alias-float128.h>.
6073         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6075 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6077         * sysdeps/generic/libm-alias-ldouble.h: New file.
6078         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
6079         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
6080         * sysdeps/generic/math-type-macros-ldouble.h: Include
6081         <libm-alias-ldouble.h>.
6082         [!declare_mgen_alias] (declare_mgen_alias): Define to use
6083         libm_alias_ldouble.
6085 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6087         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
6088         * math/w_exp_compat.c: ... here.
6089         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
6090         * math/w_expf_compat.c: ... here.
6091         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
6092         * math/w_expl_compat.c: ... here.
6093         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
6094         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
6095         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
6096         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6098 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6100         * math/w_scalbln_template.c (strong_alias): Do not undefine and
6101         redefine.
6102         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
6103         macro.
6104         (ldexpl): Only define as compat symbol for libc, not libm.
6105         (scalbnl): Define as compat symbol for libc here.
6106         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
6107         define for [IS_IN (libc)].
6108         (__ldexpl_2): Remove alias.
6109         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
6110         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
6111         name in long_double_symbol call.
6112         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
6113         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
6114         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
6115         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
6116         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
6117         Remove macro.
6118         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
6119         Define as compat symbol.
6121 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6123         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
6124         * sysdeps/unix/sysv/linux/alpha/Makefile
6125         [$(subdir) = csu] (sysdep_routines): Remove rule.
6127 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6129         * sysdeps/generic/libm-alias-double.h: New file.
6130         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
6131         * sysdeps/generic/math-type-macros-double.h: Include
6132         <libm-alias-double.h>.
6133         [declare_mgen_alias] (declare_mgen_alias): Define to use
6134         libm_alias_double.
6135         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
6136         (M_LIBM_NEED_COMPAT): Remove macro.
6137         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
6138         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
6139         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
6140         code.
6141         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6142         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6143         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6144         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6145         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6146         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6147         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6148         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6149         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6150         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6151         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6152         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6153         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6154         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6155         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6156         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6157         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6158         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6159         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6160         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6161         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6162         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6163         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6164         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6165         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6166         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6167         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6168         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6169         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6170         macro.
6171         (declare_mgen_alias): New macro.
6172         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6173         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6175         (M_LIBM_NEED_COMPAT): Remove macro.
6176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6177         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6178         <first-versions.h>.
6179         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6180         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6182 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6184         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6185         (declare_mgen_alias_2): Remove.
6186         * sysdeps/generic/math-type-macros-double.h
6187         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6188         Likewise.
6189         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6190         alias.
6191         (ldexp): Define with declare_mgen_alias.
6192         (scalbn): Likewise.
6194 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6196         * grp/initgroups.c: Include config.h.
6197         (DEFAULT_CONFIG): New macro.
6198         (internal_getgrouplist): Use DEFAULT_CONFIG.
6199         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6200         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6201         (DEFAULT_DEFCONFIG): New macro.
6202         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6203         * nss/grp-lookup.c: Include config.h
6204         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6205         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6206         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6207         * manual/nss.texi: Update default values section.
6209 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6211         [BZ #21967]
6212         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6213         New.
6214         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6215         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6216         Handle MathVec_Prefer_No_AVX512.
6217         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6218         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6219         is set.
6221 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6223         * posix/sched_primax.c (__sched_get_priority_max): Add
6224         libc_hidden_def.
6225         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6226         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6227         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6228         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6229         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6230         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6231         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6232         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6233         Add aliases.
6235 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6237         * sysdeps/generic/libm-alias-float.h: New file.
6238         * sysdeps/generic/math-type-macros-float.h: Include
6239         <libm-alias-float.h>.
6240         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6242 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6244         [BZ #22093]
6245         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6246         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6247         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6248         (HWCAP_IMPORTANT): Likewise.
6249         (HWCAP_X86_64): New enum.
6250         (HWCAP_X86_AVX512_1): Updated.
6251         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6252         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6253         (modules-names): Add x86_64/tst-x86_64mod-1.
6254         (LDFLAGS-tst-x86_64mod-1.so): New.
6255         ($(objpfx)tst-x86_64-1): Likewise.
6256         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6257         (tst-x86_64-1-clean): Likewise.
6258         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6259         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6261 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6263         * po/sv.po: Update translations.
6264         * po/fr.po: Likewise.
6266 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6268         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6269         seconds.
6270         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6271         seconds.
6272         * elf/rtld-Rules: Fix $(error) use.
6274 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6276         [BZ #14925]
6277         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6278         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6279         * localedata/locales/bn_BD: “Bengali” was still used in some
6280         comments. Change it to “Bangla”.
6282 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
6284         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
6286 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6288         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
6289         thunderx2t99p1 to list of cpu names.
6290         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6291         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
6293 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6295         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
6296         Use strcmp instead of tunable_is_name.
6298 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
6300         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6301         (F_GET_RW_HINT): New macro.
6302         [__USE_GNU] (F_SET_RW_HINT): Likewise.
6303         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
6304         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
6305         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
6306         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
6307         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
6308         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
6309         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
6310         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
6312         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6313         (F_ADD_SEALS): New macro.
6314         [__USE_GNU] (F_GET_SEALS): Likewise.
6315         [__USE_GNU] (F_SEAL_SEAL): Likewise.
6316         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
6317         [__USE_GNU] (F_SEAL_GROW): Likewise.
6318         [__USE_GNU] (F_SEAL_WRITE): Likewise.
6320 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6322         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
6323         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
6324         * posix/glob_internal.h (__glob_pattern_type):
6325         * posix/glob.c (glob):
6326         * posix/glob_pattern_p.c (__glob_pattern_p):
6327         Use them.
6329         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
6330         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6331         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
6332         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
6333         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
6335         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
6336         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
6337         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6338         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6339         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6340         * sysdeps/wordsize-64/glob.c: Likewise.
6341         * sysdeps/wordsize-64/glob64.c: Likewise.
6342         * sysdeps/wordsize-64/globfree.c: Likewise.
6343         * sysdeps/wordsize-64/globfree64.c: Likewise.
6344         * sysdeps/unix/sysv/linux/glob.c: New file.
6345         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
6346         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
6347         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
6348         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
6349         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
6350         adds !GLOB_NO_OLD_VERSION as an extra condition.
6351         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
6352         using relative path instead of absolute one.
6353         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
6354         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6355         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6356         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
6357         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
6358         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
6360         [BZ #1062]
6361         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
6362         (glob): Use the same scratch buffer for both getlogin_r and
6363         getpwnam_r.  Don’t require preallocation of the login name.  This
6364         simplifies storage allocation, and corrects the handling of
6365         long login names.
6367         [BZ #1062]
6368         * posix/glob.c (glob): Port recent patches to platforms
6369         lacking getpwnam_r.
6370         (glob): Fix longstanding misuse of errno after getpwnam_r, which
6371         returns an error number rather than setting errno.
6373         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
6374         instead of GCC extension.
6375         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
6376         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
6377         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
6379         [BZ #866]
6380         [BZ #1062]
6381         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
6382         * posix/bug-glob1.c: Remove file.
6383         * posix/tst-glob_symlinks.c: New file.
6384         * posix/glob.c (__lstat64): New macro.
6385         (is_dir): New function.
6386         (glob, glob_in_dir): Match symlinks even if they are dangling.
6387         (link_stat, link_exists_p): Remove.  All uses removed.
6389         [BZ #1062]
6390         [BZ #19971]
6391         * posix/glob.c (struct readdir_result): Remove skip_entry member.
6392         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6393         All uses removed.
6395         [BZ #1062]
6396         CVE-2017-15671
6397         * posix/Makefile (routines): Add globfree, globfree64, and
6398         glob_pattern_p.
6399         * posix/flexmember.h: New file.
6400         * posix/glob_internal.h: Likewise.
6401         * posix/glob_pattern_p.c: Likewise.
6402         * posix/globfree.c: Likewise.
6403         * posix/globfree64.c: Likewise.
6404         * sysdeps/gnu/globfree64.c: Likewise.
6405         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
6406         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6407         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
6408         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6409         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6410         * sysdeps/wordsize-64/globfree.c: Likewise.
6411         * sysdeps/wordsize-64/globfree64.c: Likewise.
6412         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
6413         [NDEBUG): Remove comments.
6414         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
6415         (dirent_type): New type.  Use uint_fast8_t not
6416         uint8_t, as C99 does not require uint8_t.
6417         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
6418         (struct readdir_result): Use dirent_type.  Do not define skip_entry
6419         unless it is needed; this saves a byte on platforms lacking d_ino.
6420         (readdir_result_type, readdir_result_skip_entry):
6421         New functions, replacing ...
6422         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6423          these functions, which were removed.  This makes the callers
6424         easier to read.  All callers changed.
6425         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6426         (size_add_wrapv, glob_use_alloca): New static functions.
6427         (glob, glob_in_dir): Check for size_t overflow in several places,
6428         and fix some size_t checks that were not quite right.
6429         Remove old code using SHELL since Bash no longer
6430         uses this.
6431         (glob, prefix_array): Separate MS code better.
6432         (glob_in_dir): Remove old Amiga and VMS code.
6433         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6434         separate files.
6435         (glob_in_dir): Do not rely on undefined behavior in accessing
6436         struct members beyond their bounds.  Use a flexible array member
6437         instead
6438         (link_stat): Rename from link_exists2_p and return -1/0 instead of
6439         0/1.  Caller changed.
6440         (glob): Fix memory leaks.
6441         * posix/glob64 (globfree64): Move to separate file.
6442         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
6443         (globfree64): Remove hidden alias.
6444         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
6445         oldglob.
6446         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
6447         separate file.
6448         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
6449         define.
6450         Move compat code to separate file.
6451         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
6452         separate file.
6454 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6456         * resolv/tst-resolv-qtypes.c (domain): Changed to
6457         "const char domain[] =".
6459 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
6461         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6462         version to 3.1.6.
6464         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
6465         (TCP_MD5SIG_EXT): Likewise.
6466         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
6467         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
6468         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
6470         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
6472 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
6474         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
6476 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
6478         [BZ #22100]
6479         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
6481 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6483         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
6484         before assuming that the file is empty.  Avoid testing buffer content
6485         when nread == 0.
6487 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6489         [BZ #18858]
6490         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6491         Remove define.
6492         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
6493         Likewise.
6494         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
6495         Likewise.
6496         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
6497         Likewise.
6498         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6499         Likewise.
6500         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
6501         Likewise.
6502         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
6503         Likewise.
6505 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6507         * malloc/dynarray_emplace_enlarge.c
6508         (__libc_dynarray_emplace_enlarge): Add missing else.
6510 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6512         [BZ #22096]
6513         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
6514         case of failure to obtain the global conf object.
6516 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6518         [BZ #22095]
6519         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
6520         dynarray allocation failure.
6522 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6524         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
6525         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
6526         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
6527         New functions.
6528         (response): Call them.  Add 'p', '6' flag processing.
6529         (test_reverse): New function.
6530         (test_get2_any): Call it.
6531         (test_no_inet6): Add 'p' test.
6532         (test_inet6): Likewise.
6534 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6536         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
6537         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
6538         the QNAME.
6539         (test_gai): Adjust query names.  Add additional tests.
6540         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
6541         test_get2.  Adjust query names.  Add additional tests.
6542         (test_no_inet6): New function, extracted from threadfunc.
6543         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
6544         Add additional tests.
6546 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6548         [BZ #22070]
6549         * localedata/unicode-gen/utf8_gen.py: Set the width for
6550         characters with Prepended_Concatenation_Mark property to 1
6551         * localedata/charmaps/UTF-8: Updated using the improved script.
6553 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6555         [BZ #21750]
6556         * localedata/unicode-gen/utf8_gen.py: Improve the script to
6557         use the range notation for all ranges of neighbouring characters
6558         with the same width.
6560 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6562         * sysdeps/generic/math-type-macros-double.h: Include
6563         <math-svid-compat.h>.
6564         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6565         * sysdeps/generic/math-type-macros-float.h: Include
6566         <math-svid-compat.h>.
6567         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6568         * sysdeps/generic/math-type-macros-ldouble.h: Include
6569         <math-svid-compat.h>.
6570         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6571         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
6572         condition.
6573         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
6574         * math/w_acosf_compat.c: Likewise.
6575         * math/w_acosh_compat.c: Likewise.
6576         * math/w_acoshf_compat.c: Likewise.
6577         * math/w_acoshl_compat.c: Likewise.
6578         * math/w_acosl_compat.c: Likewise.
6579         * math/w_asin_compat.c: Likewise.
6580         * math/w_asinf_compat.c: Likewise.
6581         * math/w_asinl_compat.c: Likewise.
6582         * math/w_atan2_compat.c: Likewise.
6583         * math/w_atan2f_compat.c: Likewise.
6584         * math/w_atan2l_compat.c: Likewise.
6585         * math/w_atanh_compat.c: Likewise.
6586         * math/w_atanhf_compat.c: Likewise.
6587         * math/w_atanhl_compat.c: Likewise.
6588         * math/w_cosh_compat.c: Likewise.
6589         * math/w_coshf_compat.c: Likewise.
6590         * math/w_coshl_compat.c: Likewise.
6591         * math/w_exp10_compat.c: Likewise.
6592         * math/w_exp10f_compat.c: Likewise.
6593         * math/w_exp10l_compat.c: Likewise.
6594         * math/w_exp2_compat.c: Likewise.
6595         * math/w_exp2f_compat.c: Likewise.
6596         * math/w_exp2l_compat.c: Likewise.
6597         * math/w_fmod_compat.c: Likewise.
6598         * math/w_fmodf_compat.c: Likewise.
6599         * math/w_fmodl_compat.c: Likewise.
6600         * math/w_hypot_compat.c: Likewise.
6601         * math/w_hypotf_compat.c: Likewise.
6602         * math/w_hypotl_compat.c: Likewise.
6603         * math/w_j0_compat.c: Likewise.
6604         * math/w_j0f_compat.c: Likewise.
6605         * math/w_j0l_compat.c: Likewise.
6606         * math/w_j1_compat.c: Likewise.
6607         * math/w_j1f_compat.c: Likewise.
6608         * math/w_j1l_compat.c: Likewise.
6609         * math/w_jn_compat.c: Likewise.
6610         * math/w_jnf_compat.c: Likewise.
6611         * math/w_jnl_compat.c: Likewise.
6612         * math/w_lgamma_r_compat.c: Likewise.
6613         * math/w_lgammaf_r_compat.c: Likewise.
6614         * math/w_lgammal_r_compat.c: Likewise.
6615         * math/w_log10_compat.c: Likewise.
6616         * math/w_log10f_compat.c: Likewise.
6617         * math/w_log10l_compat.c: Likewise.
6618         * math/w_log2_compat.c: Likewise.
6619         * math/w_log2f_compat.c: Likewise.
6620         * math/w_log2l_compat.c: Likewise.
6621         * math/w_log_compat.c: Likewise.
6622         * math/w_logf_compat.c: Likewise.
6623         * math/w_logl_compat.c: Likewise.
6624         * math/w_pow_compat.c: Likewise.
6625         * math/w_powf_compat.c: Likewise.
6626         * math/w_powl_compat.c: Likewise.
6627         * math/w_remainder_compat.c: Likewise.
6628         * math/w_remainderf_compat.c: Likewise.
6629         * math/w_remainderl_compat.c: Likewise.
6630         * math/w_sinh_compat.c: Likewise.
6631         * math/w_sinhf_compat.c: Likewise.
6632         * math/w_sinhl_compat.c: Likewise.
6633         * math/w_sqrt_compat.c: Likewise.
6634         * math/w_sqrtf_compat.c: Likewise.
6635         * math/w_sqrtl_compat.c: Likewise.
6636         * math/w_tgamma_compat.c: Likewise.
6637         * math/w_tgammaf_compat.c: Likewise.
6638         * math/w_tgammal_compat.c: Likewise.
6639         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
6640         [LIBM_SVID_COMPAT].
6641         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
6642         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
6643         [LIBM_SVID_COMPAT].
6644         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
6645         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
6646         [LIBM_SVID_COMPAT].
6647         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
6648         * sysdeps/i386/fpu/w_sqrt.c: New file.
6649         * sysdeps/ia64/fpu/w_acos.c: Likewise.
6650         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
6651         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
6652         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
6653         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
6654         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
6655         * sysdeps/ia64/fpu/w_asin.c: Likewise.
6656         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
6657         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
6658         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
6659         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
6660         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
6661         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
6662         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
6663         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
6664         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
6665         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
6666         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
6667         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6668         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
6669         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
6670         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
6671         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
6672         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
6673         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
6674         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6675         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6676         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
6677         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
6678         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
6679         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
6680         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
6681         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
6682         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
6683         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
6684         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
6685         * sysdeps/ia64/fpu/w_log.c: Likewise.
6686         * sysdeps/ia64/fpu/w_log10.c: Likewise.
6687         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
6688         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
6689         * sysdeps/ia64/fpu/w_log2.c: Likewise.
6690         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
6691         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
6692         * sysdeps/ia64/fpu/w_logf.c: Likewise.
6693         * sysdeps/ia64/fpu/w_logl.c: Likewise.
6694         * sysdeps/ia64/fpu/w_pow.c: Likewise.
6695         * sysdeps/ia64/fpu/w_powf.c: Likewise.
6696         * sysdeps/ia64/fpu/w_powl.c: Likewise.
6697         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
6698         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
6699         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
6700         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
6701         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
6702         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
6703         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
6704         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
6705         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
6706         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
6707         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
6708         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
6709         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
6710         [LIBM_SVID_COMPAT].
6711         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6712         * sysdeps/ieee754/k_standard.c: Likewise.
6713         * sysdeps/ieee754/k_standardf.c: Likewise.
6714         * sysdeps/ieee754/k_standardl.c: Likewise.
6715         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6716         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6717         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6718         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
6719         long_double_symbol call on [LIBM_SVID_COMPAT].
6720         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6721         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6722         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6723         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6724         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6725         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6726         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6727         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6728         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6729         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6730         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6731         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
6732         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6733         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6734         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6735         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6736         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
6737         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6738         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6739         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6740         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
6741         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
6743 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
6745         * include/shlib-compat.h (TEST_COMPAT): New Macro.
6746         * malloc/tst-mallocstate.c: Convert from test-skeleton
6747         to test-driver.  Ifdef code using TEST_COMPAT macro.
6748         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
6749         * math/test-matherr.c: Likewise.
6751 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6753         [BZ #22086]
6754         * debug/pcprofiledump.c (main): Use byte-swapped mask when
6755         comparing word with byte-swapped constant.
6757 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
6759         [BZ #20498]
6760         * locale/iso-639.def: add Miskito.
6761         * localedata/SUPPORTED: Add miq_NI/UTF-8.
6762         * localedata/locales/miq_NI: New file.
6764 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6766         [BZ #18822]
6767         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
6768         (__mkdir): Likewise.
6769         * io/chmod.c (__chmod): Add libc_hidden_def.
6770         * io/mkdir.c (__mkdir): Likewise.
6771         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
6772         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
6773         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
6774         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
6776 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6778         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6779         version to 4.13.
6781         [BZ #22082]
6782         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
6783         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
6785 2017-09-04  Florian Weimer  <fweimer@redhat.com>
6787         * math/math.h: Issue warning if log is defined.
6789 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6791         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6792         kernel version to 4.13.
6794 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6796         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
6797         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
6798         parameter.
6799         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
6800         just <bits/types.h>.
6801         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
6802         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
6803         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
6804         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
6805         * misc/preadv2.c: Include <errno.h>.
6806         * misc/preadv64v2.c: Include <errno.h>.
6807         * misc/pwritev2.c: Include <errno.h>.
6808         * misc/pwritev64v2.c: Include <errno.h>.
6809         * sysdeps/posix/preadv2.c: Include <errno.h>.
6810         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
6811         Fix <unistd.h> inclusion.
6812         * sysdeps/posix/pwritev2.c: Include <errno.h>.
6813         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
6814         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
6815         __strtoul_internal): New functions.
6816         * sysdeps/posix/pause.c: Include <sigsetops.h>.
6817         * sysdeps/posix/system.c: Include <sigsetops.h>.
6818         * sysdeps/mach/hurd/i386/Makefile
6819         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
6820         [$(subdir) = csu] (sysdep-only-routines): Likewise.
6821         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
6822         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
6823         __feraiseexcept_renamed to feraiseexcept instead of
6824         __GI_feraiseexcept.
6825         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
6826         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
6827         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
6828         RWF_NOWAIT): Define to 0 if undefined already.
6829         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
6830         boils down to 0.
6831         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
6832         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
6834 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6836         * manual/math.texi (pow10): Do not document.
6837         (pow10f): Likewise.
6838         (pow10l): Likewise.
6839         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
6840         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
6841         * math/libm-test-exp10.inc (pow10_test): Remove.
6842         (do_test): Do not call pow10.
6843         * math/w_exp10_compat.c (pow10): Make into compat symbol.
6844         [NO_LONG_DOUBLE] (pow10l): Likewise.
6845         * math/w_exp10f_compat.c (pow10f): Likewise.
6846         * math/w_exp10l_compat.c (pow10l): Likewise.
6847         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
6848         (pow10): Make into compat symbol.
6849         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
6850         (pow10f): Make into compat symbol.
6851         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
6852         (pow10l): Make into compat symbol.
6853         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
6854         pow10.
6855         (CFLAGS-nldbl-pow10.c): Remove variable..
6856         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
6857         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
6858         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
6859         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
6860         Undefine and redefine.
6861         (pow10l): Make into compat symbol.
6862         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
6863         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6864         * sysdeps/arm/libm-test-ulps: Likewise.
6865         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
6866         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6867         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6868         * sysdeps/microblaze/libm-test-ulps: Likewise.
6869         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6870         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6871         * sysdeps/nios2/libm-test-ulps: Likewise.
6872         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6873         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6874         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6875         * sysdeps/sh/libm-test-ulps: Likewise.
6876         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6877         * sysdeps/tile/libm-test-ulps: Likewise.
6878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6880 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6882         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
6884 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6886         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
6887         "../ChangeLog.old/ChangeLog.8".
6888         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
6889         "../ChangeLog.old/ChangeLog.14".
6891 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6893         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
6894         Threads Library.
6896 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6898         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
6900 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6902         * csu/version.c (banner): Remove "by Roland McGrath et al.".
6903         * nptl/Banner: Remove "by Ulrich Drepper et al.".
6905 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6907         * stdlib/tst-atexit-common.c (do_test): Test support for at least
6908         32 atexit handlers.
6910 2017-09-01  Zack Weinberg  <zackw@panix.com>
6912         * math/math.h (HUGE_VAL): Improve commentary.
6914 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6915             Andreas Schwab  <schwab@suse.de>
6917         [BZ #21530]
6918         * include/stdio.h (__gen_tempfd): New function.
6919         * stdio-common/Makefile (routines): Add gentempfd.
6920         * stdio-common/gentempfd.c: New file.
6921         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
6922         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
6923         unnamed file first.
6925 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6927         [BZ #21915]
6928         [BZ #21922]
6929         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
6930         result to determine success or failure, not the errno value.
6931         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
6932         (tst-nss-files-hosts-erange): Link with -ldl.
6933         * nss/tst-nss-files-hosts-erange.c: New file.
6934         * nss/tst-resolv-basic.c (response): Handle nodata.example.
6935         (do_test): Add NO_DATA tests.
6936         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
6937         (do_test): Call it.
6939 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6941         [BZ #21922]
6942         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
6943         coming from gethostbyname2_r.
6945 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6947         * support/namespace.h (struct support_chroot_configuration): Add
6948         hosts, host_conf.
6949         (struct support_chroot): Add path_hosts, path_host_conf.
6950         * support/support_chroot.c (write_file): New function.
6951         (support_chroot_create): Call it to process /etc/resolv.conf,
6952         /etc/hosts, /etc/host.conf.
6953         (support_chroot_free): Update.
6955 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6957         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
6958         status indicates it is set.
6960 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6962         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
6963         function lookup failures more reliable.
6965 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6967         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
6968         (getcanonname): Likewise.
6969         (gaih_inet): Likewise.
6971 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6973         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
6974         (getcanonname): Likewise.
6975         (gaih_inet): Likewise.
6977 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6978             Richard Henderson <rth@twiddle.net>
6980         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
6981         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
6982         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
6983         (IREG_SIZE, OREG_SIZE): New macros.
6984         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
6985         (IREG_SIZE, OREG_SIZE): New macros.
6986         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
6987         (IREG_SIZE): New macro.
6988         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
6989         (IREG_SIZE): New macro.
6990         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
6991         New includes.
6992         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
6993         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6994         (__CONCATX): Handle exceptions correctly on large values that may
6995         set FE_INVALID.
6996         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
6997         Initialize if not already set.
6998         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7000 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7002         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
7003         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
7004         Likewise.
7005         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
7006         Likewise.
7007         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
7008         Likewise.
7009         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
7010         Likewise.
7011         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
7012         Likewise.
7013         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
7014         Likewise.
7015         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
7016         Likewise.
7017         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
7018         (NO_CANCELLATION): Likewise.
7019         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
7020         Likewise.
7021         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
7022         Likewise.
7023         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
7024         Likewise.
7025         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
7026         (NO_CANCELLATION): Likewise.
7027         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
7028         (NO_CANCELLATION): Likewise.
7029         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
7030         Likewise
7031         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
7032         Likewise.
7033         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
7034         Likewise.
7035         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
7036         Likewise.
7037         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
7038         hidden prototype.
7039         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
7040         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
7042 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7044         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
7045         in resolver call.
7047 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7049         * include/libc-symbols.h (internal_function): Remove.
7051 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7053         * stdlib/fmtmsg.c (internal_addseverity): Remove
7054         internal_function.
7056 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7058         * stdio-common/printf_fp.c (group_number): Remove
7059         internal_function.
7060         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
7062 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7064         * posix/fnmatch.c (internal_function): Remove definition.
7065         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
7066         * posix/regcomp.c (peek_token, init_word_char)
7067         (duplicate_node_closure, fetch_token, peek_token)
7068         (peek_token_bracket, build_range_exp, build_collating_symbol):
7069         Likewise.
7070         * posix/regex_internal.c (re_string_construct_common)
7071         (create_ci_newstate, create_cd_newstate, re_string_allocate)
7072         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
7073         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
7074         (re_string_translate_buffer, re_string_reconstruct)
7075         (re_string_peek_byte_case, re_string_fetch_byte_case)
7076         (re_string_destruct, re_string_context_at, re_node_set_alloc)
7077         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
7078         (re_node_set_add_intersect, re_node_set_init_union)
7079         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
7080         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
7081         (re_dfa_add_node, calc_state_hash, re_acquire_state)
7082         (re_acquire_state_context): Likewise.
7083         * posix/regex_internal.h (internal_function): Remove definition.
7084         (re_string_realloc_buffers, build_wcs_buffer)
7085         (build_wcs_upper_buffer, build_upper_buffer)
7086         (re_string_translate_buffer, re_string_context_at)
7087         (re_string_char_size_at, re_string_wchar_at)
7088         (re_string_elem_size_at): Likewise.
7089         * posix/regexec.c (match_ctx_init, match_ctx_clean)
7090         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
7091         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
7092         (re_search_internal, re_search_2_stub, re_search_stub)
7093         (re_copy_regs, prune_impossible_nodes, check_matching)
7094         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
7095         (free_fail_stack_return, sift_states_iter_mb)
7096         (sift_states_backward, build_sifted_states)
7097         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
7098         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
7099         (check_subexp_limits, sift_states_bkref, merge_state_array)
7100         (find_recover_state, transit_state, merge_state_with_log)
7101         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
7102         (transit_state_mb, transit_state_bkref, get_subexp)
7103         (get_subexp_sub, find_subexp_node, check_arrival)
7104         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7105         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
7106         (check_node_accept_bytes, find_collation_sequence_value)
7107         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
7108         (acquire_init_state_context, check_halt_node_context)
7109         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
7110         (sub_epsilon_src_nodes): Likewise.
7111         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
7112         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
7113         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
7114         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
7115         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
7116         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
7117         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
7118         * sysdeps/posix/ttyname.c (getttyname): Likewise.
7119         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
7120         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
7121         (PREADV): Likewise.
7122         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
7123         (PREADV): Likewise.
7124         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
7125         (PWRITEV): Likewise.
7126         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
7127         (PWRITEV): Likewise.
7128         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
7129         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
7131 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7133         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
7134         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
7135         Remove internal_function.
7136         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
7137         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
7138         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
7139         (__deallocate_stack, __libc_pthread_init)
7140         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
7141         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
7142         (__libc_disable_asynccancel, __librt_disable_asynccancel):
7143         Likewise.
7144         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
7145         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
7146         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
7147         Likewise.
7148         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
7149         (__pthread_mutex_unlock_usercnt): Likewise.
7151 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7153         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
7154         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
7155         (fts_safe_changedir): Remove internal_function.
7156         * io/ftw.c (internal_function): Remove definition.
7157         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
7159 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7161         * inet/deadline.c (__deadline_current_time)
7162         (__deadline_from_timeval, __deadline_to_ms): Remove
7163         internal_function.
7164         * inet/getnameinfo.c (nrl_domainname): Likewise.
7165         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7166         * inet/inet6_option.c (add_pad): Likewise.
7167         * inet/net-internal.h (__deadline_current_time)
7168         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7169         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7170         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7171         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7173 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7175         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7176         include <bits/nan.h>.
7177         * math/Makefile (headers): Remove bits/nan.h.
7178         * bits/nan.h: Remove.
7179         * sysdeps/ieee754/bits/nan.h: Likewise.
7180         * sysdeps/mips/bits/nan.h: Likewise.
7182         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7183         not include <bits/inf.h>.
7184         * math/Makefile (headers): Remove bits/inf.h.
7185         * bits/inf.h: Remove.
7186         * sysdeps/ieee754/bits/inf.h: Likewise.
7188         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7189         bits/huge_vall.h or bits/huge_val_flt128.h.
7190         (HUGE_VAL): Define directly here.
7191         [__USE_ISOC99] (HUGE_VALF): Likewise.
7192         [__USE_ISOC99] (HUGE_VALL): Likewise.
7193         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7194         (HUGE_VAL_F128): Likewise.
7195         * math/Makefile (headers): Remove bits/huge_val.h,
7196         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7197         * bits/huge_val.h: Remove.
7198         * bits/huge_val_flt128.h: Likewise.
7199         * bits/huge_valf.h: Likewise.
7200         * bits/huge_vall.h: Likewise.
7201         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7202         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7203         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7204         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7205         * sysdeps/sh/bits/huge_val.h: Likewise.
7206         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7207         * sysdeps/x86/bits/huge_vall.h: Likewise.
7209 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7211         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7212         internal_function.
7213         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7214         Likewise.
7215         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7216         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7217         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7218         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7219         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7220         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7221         * elf/dl-libc.c (dlerror_run): Likewise.
7222         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7223         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7224         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7225         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7226         Likewise.
7227         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7228         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7229         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7230         * elf/dl-profile.c (_dl_start_profile): Likewise.
7231         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7232         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7233         Likewise.
7234         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7235         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7236         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7237         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7238         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7239         (_dl_allocate_tls_storage): Likewise.
7240         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7241         (_dl_check_all_versions): Likewise.
7242         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7243         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7244         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7245         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7246         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7247         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7248         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7249         internal_function from __dl_start.
7250         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7251         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7252         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7253         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7254         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7255         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7256         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7257         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7258         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7259         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7260         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7261         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7262         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7263         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7264         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7265         Likewise.
7266         (struct rtld_global_ro): Remove internal_function from the
7267         _dl_lookup_symbol_x member.
7268         (_dl_symbol_value): Remove.  No longer defined anywhere.
7269         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7270         internal_function.
7271         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7272         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7273         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7274         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7275         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7276         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7277         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7278         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7279         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7280         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7281         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7282         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
7284 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7286         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
7287         Remove internal_function.
7288         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7289         Likewise.
7290         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7291         Likewise.
7293 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7295         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
7296         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
7297         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
7299 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7301         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
7302         (__gai_enqueue_request): Remove internal_function.
7303         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
7304         (__gai_remove_request, __gai_notify, __gai_notify_only)
7305         (__gai_sigqueue): Likewise.
7306         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
7307         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
7308         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
7309         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7310         Likewise.
7312 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7314         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
7315         * include/dirent.h (__opendirat, __getdents, __getdents64)
7316         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
7317         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
7318         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7319         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7320         Likewise.
7321         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
7323 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7325         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
7326         internal_function.
7327         (GETCWD_RETURN_TYPE): Likewise.
7329 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7331         * include/time.h (__tz_compute, __strptime_internal): Remove
7332         internal_function.
7333         * time/strptime_l.c (__strptime_internal): Likewise.
7334         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
7336 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7338         * iconv/gconv.c (__gconv): Remove internal_function.
7339         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
7340         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
7341         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
7342         (__gconv_release_cache): Likewise.
7343         * iconv/gconv_close.c (__gconv_close): Likewise.
7344         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
7345         (read_conf_file, __gconv_get_path): Likewise.
7346         * iconv/gconv_db.c (derivation_lookup, add_derivation)
7347         (__gconv_release_step, gen_steps, increment_counter)
7348         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
7349         (__gconv_close_transform, free_modules_db): Likewise.
7350         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
7351         Likewise.
7352         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
7353         (__gconv_find_transform, __gconv_lookup_cache)
7354         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
7355         (__gconv_close_transform, __gconv_release_cache)
7356         (__gconv_loaded_object, __gconv_release_shlib)
7357         (__gconv_compare_alias): Likewise.
7358         * iconv/gconv_open.c (__gconv_open): Likewise.
7359         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
7360         * iconv/iconvconfig.c (add_module): Likewise.
7361         * intl/dcigettext.c (plural_lookup, guess_category_value)
7362         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
7363         * intl/eval-plural.h (plural_eval): Likewise.
7364         * intl/finddomain.c (_nl_find_domain): Likewise.
7365         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
7366         (_nl_load_domain, _nl_find_msg): Likewise.
7367         (internal_function): Remove definition.
7368         * intl/loadinfo.h (internal_function): Likewise.
7369         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
7370         internal_function.
7371         * intl/localealias.c (internal_function): Remove definition.
7372         (read_alias_file): Remove internal_function.
7373         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
7374         * intl/plural-exp.h (internal_function): Remove definition.
7375         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
7376         internal_function.
7377         * intl/plural.c: Regenerate.
7378         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
7379         * locale/coll-lookup.c (__collidx_table_lookup)
7380         (__collseq_table_lookup): Likewise.
7381         * locale/coll-lookup.h (__collidx_table_lookup)
7382         (__collseq_table_lookup): Likewise.
7383         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
7384         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7385         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
7386         (_nl_unload_locale): Likewise.
7387         * locale/localeinfo.h (struct __locale_data): Remove
7388         internal_function from cleanup member.
7389         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
7390         (_nl_remove_locale, _nl_load_locale_from_archive)
7391         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
7392         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
7393         (_nl_cleanup_time): Remove internal_function.
7394         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
7395         (_nl_parse_alt_digit): Likewise.
7396         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
7397         (_nl_select_era_entry): Likewise.
7398         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7399         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7400         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7401         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7402         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7404 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7406         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
7407         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7408         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
7409         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
7410         Likewise.
7411         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
7412         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
7413         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
7414         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7415         Likewise.
7416         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
7418 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7420         * misc/getttyent.c (skip, value): Remove internal_function.
7421         * misc/syslog.c (openlog_internal): Likewise.
7422         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
7424 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7426         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
7427         (__nss_rewrite_field): Remove internal_function.
7428         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7429         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7430         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7431         * nss/nsswitch.c (nss_parse_file, nss_getline)
7432         (nss_parse_service_list, nss_new_service): Likewise.
7433         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
7434         * nss/valid_field.c (__nss_valid_field): Likewise.
7435         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
7437 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7439         * malloc/arena.c (__malloc_fork_lock_parent)
7440         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
7441         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
7442         internal_function from defintions.
7443         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
7444         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
7445         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
7446         internal_function from declarations.
7447         * malloc/malloc.c (internal_function): Do not define.
7448         (mem2mem_check): Remove internal_function from declaration.
7449         (munmap_chunk, mremap_chunk): Remove internal_function.
7450         * malloc/mtrace.c (tr_where): Likewise.
7452 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7454         * include/rpc/pmap_clnt.h (__get_socket): Remove
7455         internal_function.
7456         * sunrpc/auth_des.c (synchronize): Likewise.
7457         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
7458         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
7459         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
7460         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
7461         (key_call): Likewise.
7462         * sunrpc/pm_getport.c (__get_socket): Likewise.
7463         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
7464         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
7465         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
7466         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
7467         (invalidate): Likewise.
7468         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
7469         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
7470         (set_input_fragment, get_input_bytes): Likewise.
7472 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7474         * malloc/malloc.c (_int_free): Remove locked variable and related
7475         asserts.
7477 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
7479         [BZ #22051]
7480         * Makerules (build-module-helper-objlist): Filter out
7481         $(elf-objpfx)sofini.os.
7482         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
7483         needed.
7485 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7487         * libio/fcloseall.c: Assume weak_alias is defined.
7488         * libio/feof.c: Likewise.
7489         * libio/fileno.c: Likewise.
7490         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
7491         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7492         definitions.
7493         (_IO_file_open): Call __open directly.
7494         (_IO_new_file_sync): Assume ESPIPE is defined.
7495         (_IO_file_seekoff_maybe_mmap): Call __read directly.
7496         (_IO_new_file_write): Call __write directly.
7497         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
7498         * libio/ftello64.c (__ftello64): Assume EIO is defined.
7499         * libio/genops.c: Assume _LIBC is defined.
7500         (save_for_backup): Remove internal_function.
7501         * libio/getc.c: Assume weak_alias is defined.
7502         * libio/getwc.c: Likewise.
7503         * libio/iofclose.c: Assume _LIBC is defined.
7504         * libio/iofdopen.c: Likewise.
7505         (_IO_fcntl): Remove macro definition.
7506         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
7507         Call __fcntl directly.
7508         * libio/iofflush.c: Assume weak_alias is defined.
7509         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
7510         defined.
7511         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
7512         * libio/iofgets.c: Likewise.
7513         * libio/iofopen.c: Assume _LIBC is defined.
7514         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
7515         * libio/iofputs.c: Assume weak_alias is defined.
7516         * libio/iofread.c: Likewise.
7517         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
7518         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
7519         * libio/ioftell.c: Assume weak_alias is defined.
7520         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
7521         * libio/iofwide.c: Assume _LIBC is defined.
7522         (_IO_fwide): Drop SHARED conditional because it is implied by
7523         SHLIB_COMPAT.
7524         * libio/iofwrite.c: Assume weak_alias is defined.
7525         * libio/iogetdelim.c: Likewise.
7526         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
7527         * libio/iogetwline.c (wmemcpy): Remove macro definition.
7528         (_IO_getwline): Call __wmemcpy directly.
7529         * libio/iopopen.c: Assume _LIBC is defined.
7530         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7531         (_IO_close): Remove macro definitions.
7532         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
7533         _exit directly.
7534         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
7535         directly.
7536         * libio/ioputs.c: Assume weak_alias is defined.
7537         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
7538         * libio/iosetbuffer.c: Assume weak_alias is defined.
7539         * libio/iosetvbuf.c: Likewise.
7540         * libio/ioungetc.c: Likewise.
7541         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
7542         libc_hidden_def, libc_hidden_weak, NULL are defined.
7543         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
7544         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
7545         defined.
7546         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7547         definitions.
7548         (_IO_old_file_init_internal): Drop SHARED conditional because it
7549         is implied by SHLIB_COMPAT.
7550         (_IO_old_file_fopen): Call __open directly.
7551         (_IO_old_file_sync): Assume ESPIPE is defined.
7552         (_IO_old_file_write): Call __write directly.
7553         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
7554         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
7555         Call __fcntl directly.
7556         * libio/oldiofgetpos.c: Assume weak_alias is defined.
7557         (_IO_old_fgetpos): Assume EIO is defined.
7558         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
7559         (_IO_old_fgetpos64): Assume EIO is defined.
7560         * libio/oldiofsetpos.c: Assume weak_alias is defined.
7561         (_IO_old_fsetpos): Assume EIO is defined.
7562         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
7563         (_IO_old_fsetpos64): Assume EIO is defined.
7564         * libio/oldiopopen.c:  Assume _LIBC is defined.
7565         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7566         (_IO_close): Remove macro definitions.
7567         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
7568         directly.
7569         (_IO_old_proc_close): Call __close, __waitpid directly.
7570         * libio/put.c: Assume weak_alias is defined.
7571         * libio/stdfiles.c: Assume _LIBC is defined.
7572         * libio/stdio.c: Likewise.
7573         * libio/wfileops.c: Likewise.
7574         (_IO_wfile_sync): Assume ESPIPE is defined.
7575         * libio/wgenops.c: Assume _LIBC is defined.
7576         (save_for_wbackup): Remove internal_function.
7578 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7580         * malloc/malloc.c (top_check): Change return type to void.  Remove
7581         internal_function.
7582         * malloc/hooks.c (top_check): Likewise.
7583         (malloc_check, realloc_check, memalign_check): Adjust.
7585 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
7587         [BZ #21457]
7588         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7589         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
7590         sigcontext and namespace requirements.
7591         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7592         * sysdeps/m68k/sys/ucontext.h: Likewise.
7593         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
7594         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
7595         <bits/sigcontext.h>.
7596         (__ctx): Define earlier.
7597         (mcontext_t): Define structure contents rather than using struct
7598         sigcontext.
7599         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
7600         __glibc_reserved1 instead of __reserved.
7601         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
7602         <bits/sigcontext.h>.
7603         (__ctx): Define earlier.
7604         (mcontext_t): Define structure contents rather than using struct
7605         sigcontext.
7606         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
7607         mcontext_t instead of struct sigcontext.
7608         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
7609         <bits/sigcontext.h>.
7610         (__ctx): Define earlier.
7611         (mcontext_t): Define structure contents rather than using struct
7612         sigcontext.
7613         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
7614         <bits/sigcontext.h>.
7615         (__ctx): Define earlier.
7616         (mcontext_t): Define structure contents rather than using struct
7617         sigcontext.
7618         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
7619         mcontext_t instead of struct sigcontext.
7620         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
7621         mcontext_t instead of struct sigcontext.
7622         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
7623         <bits/sigcontext.h>.
7624         (__ctx): New macro.
7625         (struct __ia64_fpreg_mcontext): New type.
7626         (mcontext_t): Define structure contents rather than using struct
7627         sigcontext.
7628         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
7629         (uc_sigmask): Define using __ctx.
7630         (uc_stack): Likewise.
7631         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
7632         <bits/sigcontext.h>.
7633         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7634         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
7635         <bits/sigcontext.h>.
7636         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
7637         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
7638         <bits/sigcontext.h>.
7639         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
7640         <bits/sigcontext.h>.
7641         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
7642         <bits/sigcontext.h>.
7643         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
7644         <bits/sigcontext.h>.
7645         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
7646         <bits/sigcontext.h>.
7647         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
7648         <bits/sigcontext.h>.
7649         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
7650         <bits/sigcontext.h>.
7651         (__ctx): Define earlier.
7652         (mcontext_t): Define structure contents rather than using struct
7653         sigcontext.
7654         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
7655         <bits/sigcontext.h>.  Include <bits/types.h>.
7656         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
7657         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
7658         (test-xfail-XPG42/ucontext.h/conform): Likewise.
7659         (test-xfail-UNIX98/signal.h/conform): Likewise.
7660         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
7661         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
7662         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
7663         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
7664         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7665         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7666         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7667         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7668         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7670 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7672         * malloc/dynarray_emplace_enlarge.c
7673         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
7674         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7675         * malloc/tst-dynarray.c (test_long_overflow): New function.
7676         (do_test): Call it.
7678 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7680         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
7681         (set_arena_corrupt): Remove definitions.
7682         (mtrim): Do not check for corrupt arena.
7683         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
7684         Likewise.
7686 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7688         [BZ #21754]
7689         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
7690         check_action.
7691         (ptmalloc_init): Do not set or use check_action.
7692         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
7693         call to malloc_printerr.  Remove return statement.
7694         (free_check): Likewise.  Remove arena unlock.
7695         (top_check): Update comment.  Adjust call to malloc_printerr.
7696         Remove heap repair code.
7697         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
7698         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
7699         (sysmalloc): Adjust call to malloc_printerr.
7700         (munmap_chunk, __libc_realloc): Likewise.  Remove return
7701         statement.
7702         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
7703         Remove errout label and corresponding gotos.
7704         (_int_free): Likewise.  Remove arena unlock.
7705         (do_set_mallopt_check): Do not set check_action.
7706         (malloc_printerr): Adjust parameter list.  Do not mark arena as
7707         corrupt.
7708         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
7709         comment.
7710         * manual/probes.texi (Memory Allocation Probes): Remove
7711         memory_mallopt_check_action.
7713 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
7715         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
7716         Use pointer to uint64_t instead of long int for sp.
7718 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7720         [BZ #21754]
7721         * malloc/malloc.c (malloc_printerr): Always terminate the process,
7722         without printing a backtrace.  Do not leak any information in the
7723         error message.
7724         * manual/memory.texi (Heap Consistency Checking): Update.
7725         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
7727 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7729         Do not scale NPTL tests with available number of CPUs.
7730         * nptl/tst-cond16.c (count): Set to constant value of 8.
7731         * nptl/tst-cond18.c (count): Likewise.
7733 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7735         [BZ #22035]
7736         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
7737         Define to take a second argument that is a macro that
7738         concatentates a suffix, not the suffix itself.
7739         (__CONCAT_d): New macro.
7740         (__CONCAT_f): Likewise.
7741         (__CONCAT_l): Likewise.
7743 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
7745         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
7746         by child.
7748 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7749             Aurelien Jarno  <aurelien@aurel32.net>
7750             Maciej W. Rozycki  <macro@imgtec.com>
7752         [BZ #21956]
7753         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
7754         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
7755         `mips16-syscall6' and `mips16-syscall7'.
7756         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
7757         (CFLAGS-mips16-syscall7.c): Remove.
7758         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
7759         Remove `__mips16_syscall5', `__mips16_syscall6' and
7760         `__mips16_syscall7'.
7761         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
7762         (__mips16_syscall0): Rename `__mips16_syscall_return' to
7763         `__mips_syscall_return'.
7764         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
7765         (__mips16_syscall1): Likewise.
7766         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
7767         (__mips16_syscall2): Likewise.
7768         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
7769         (__mips16_syscall3): Likewise.
7770         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
7771         (__mips16_syscall4): Likewise.
7772         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
7773         Remove.
7774         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
7775         Remove.
7776         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
7777         Remove.
7778         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
7779         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
7780         `__mips16_syscall5'.  Remove prototype.
7781         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
7782         `__mips16_syscall6'.  Remove prototype.
7783         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
7784         `__mips16_syscall7'.  Remove prototype.
7785         (__nomips16, __mips16_syscall_return): Move to...
7786         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
7787         (__nomips16, __mips_syscall_return): ... here.
7788         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
7789         `__mips16_syscall_return' to `__mips_syscall_return'.
7790         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
7791         `internal_syscall##nr'.
7792         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
7793         `internal_syscall##nr'.
7794         (FORCE_FRAME_POINTER): Remove.
7795         (__mips_syscall5): New prototype.
7796         (internal_syscall5): Rewrite to call `__mips_syscall5'.
7797         (__mips_syscall6): New prototype.
7798         (internal_syscall6): Rewrite to call `__mips_syscall6'.
7799         (__mips_syscall7): New prototype.
7800         (internal_syscall7): Rewrite to call `__mips_syscall7'.
7801         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
7802         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
7803         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
7804         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
7805         (sysdep_routines): Add libc-do-syscall.
7806         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
7807         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
7809 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7811         [BZ #21672]
7812         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
7813         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
7814         (advise_stack_range): New function.
7815         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
7816         stack non required to advise_stack_range at allocatestack.c
7818 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7820         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
7822 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7824         [BZ #22026]
7825         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
7826         __end_fct.  Mangle __end_fct after setting it to NULL.
7827         * iconv/Makefile (tests): Add tst-gconv-init-failure.
7828         (modules-names, modules-names-tests): Add
7829         tst-gconv-init-failure-mod.
7830         (gconv-modules): New target.
7831         (tst-gconv-init-failure-mod.so): Link against libsupport.
7832         (tst-gconv-init-failure): Depend on gconv-modules,
7833         tst-gconv-init-failure-mod.so.
7834         * iconv/tst-gconv-init-failure-mod.c: New file.
7835         * iconv/tst-gconv-init-failure.c: Likewise.
7836         * iconv/test-gconv-modules: Likewise.
7838 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7840         [BZ #22025]
7841         * iconv/gconv_db.c (free_derivation): Remove redundant
7842         parentheses.
7843         (gen_steps): Unconditionally mangle __btowc_fct after
7844         initialization.
7845         (increment_counter): Likewise.  Do not call init_fct for internal
7846         modules.
7848 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7850         [BZ #22028]
7851         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7852         (_MSUF_): Remove macro.
7853         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
7854         Likewise.
7855         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7856         (__REDIRFROM_X): New macro.
7857         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
7858         Likewise.
7859         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
7860         (__REDIRTO_X): Likewise.
7861         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
7862         arguments.
7863         (__MATH_REDIRCALL_2): Likewise.
7864         (__MATH_REDIRCALL_INTERNAL): Likewise.
7865         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7866         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
7867         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
7868         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7869         * math/test-finite-macros.c: New file.
7870         * math/Makefile (tests): Add test-finite-macros.
7871         (CFLAGS-test-finite-macros.c): New variable.
7873 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
7874             Jeff Law  <law@redhat.com>
7876         [BZ #22025]
7877         Mangle NULL pointers in iconv/gconv.
7878         * iconv/gconv_cache.c (find_module): Demangle init_fct before
7879         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
7880         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
7881         is non-NULL before demangling the end_fct.  Check for NULL
7882         end_fct after demangling.
7883         (__gconv_release_step): Demangle the end_fct before checking
7884         it for NULL.   Remove assert on __shlibc_handle != NULL.
7885         (gen_steps): Don't check btowc_fct for NULL before mangling.
7886         Demangle init_fct before checking for NULL.
7887         (increment_counter): Likewise.
7888         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
7889         end_fct for NULL before mangling.
7890         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
7891         for NULL.
7893 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
7895         [BZ #21971]
7896         * locale/iso-639.def: add Morisyen.
7898 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7900         [BZ #21930]
7901         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
7902         (iszero): New C++ implementation that does not use
7903         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
7904         signaling nans are enabled, since __builtin_types_compatible_p
7905         is a C-only feature.
7906         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
7907         defined, include ieee754_float128.h for access to the union and
7908         member ieee854_float128.ieee.
7909         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
7910         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
7911         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7912         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
7913         options of test-math-zero on powerpc64le.
7915 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
7917         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
7918         Change double to float.
7920 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
7922         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
7923         unconditional.
7924         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
7925         conditional code; define contents only for [LIBM_SVID_COMPAT].
7927 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7929         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
7930         (abi-lp64_be-options): Remove.
7931         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
7932         (abi-hard-options): Likewise.
7933         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
7934         (abi-o32_hard-options, abi-o32_soft_2008-options)
7935         (abi-o32_hard_2008-options, abi-n32_soft-options)
7936         (abi-n32_hard-options, abi-n32_soft_2008-options)
7937         (abi-n32_hard_2008-options, abi-n64_soft-options)
7938         (abi-n64_hard-options, abi-n64_soft_2008-options)
7939         (abi-n64_hard_2008-options): Likewise.
7940         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
7941         (abi-64-v1-options, abi-64-v2-options): Likewise.
7942         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
7943         (abi-64-options): Likewise.
7944         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
7945         (abi-64-options): Likewise.
7946         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
7947         (abi-64-options): Likewise.
7948         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
7949         (abi-64-options, abi-x32-options): Likewise.
7951 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7953         Store supported list of SYS_* system calls in the source tree.
7954         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7955         (bits/syscall.h): Generate from list file.
7956         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
7957         [$(subdir) = misc] (tests): Add tst-syscall-list.
7958         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
7959         [$(subdir) = misc] (tst-syscall-list-macros.list)
7960         [$(subdir) = misc] (tst-syscall-list-nr.list)
7961         (tst-syscall-list-sys.list): Helper targets for new
7962         tst-syscall-list test.
7963         [$(subdir) = misc] (tst-syscall-list.out): Run test script
7964         tst-syscall-list.sh.
7965         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
7966         target. Do not include bits/syscall.d.
7967         [$(subdir) = misc] (generated): Do not update.
7968         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
7969         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
7970         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
7971         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
7973 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
7975         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
7976         (tst-cxa_atexit, tst-on_exit): Likewise.
7977         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
7978         tst-cxa_atexit, and tst-on_exit.
7979         * stdlib/tst-atexit-common.c: New file.
7980         * stdlib/tst-atexit.c: New file.
7981         * stdlib/tst-at_quick_exit.c: New file.
7982         * stdlib/tst-cxa_atexit.c: New file.
7983         * stdlib/tst-on_exit.c: New file.
7985 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7987         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
7988         * mach/stack_chk_fail_local.c: New file.
7989         * hurd/stack_chk_fail_local.c: New file.
7990         * mach/Machrules ($(interface-library)-routines): Add
7991         stack_chk_fail_local.
7992         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
7993         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
7994         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
7995         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
7996         * hurd/Makefile (CFLAGS-hurdstartup.o,
7997         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
7999 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
8001         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8002         (index_cpu_*, index_arch_*): Removed.
8004 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8006         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
8007         Use uint64_t instead of unsigned long.
8009 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
8011         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
8012         [__HAVE_DISTINCT_FLOAT128].
8014         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
8015         of <bits/math-finite.h>.
8016         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
8017         inclusion of <bits/math-finite.h>.
8018         * math/bits/math-finite.h (__REDIRTO_X): Do not define
8019         conditionally on [__MATH_DECLARING_LDOUBLE && defined
8020         __NO_LONG_DOUBLE_MATH].
8021         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
8022         (__MATH_REDIRCALL_2): Likewise.
8023         (__MATH_REDIRCALL_INTERNAL): Likewise.
8024         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8025         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
8026         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8028         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
8029         Remove file.
8030         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
8031         Likewise.
8032         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
8033         Likewise.
8034         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
8035         Likewise.
8036         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
8037         Likewise.
8038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
8039         Likewise.
8040         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8041         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8042         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8043         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8044         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
8045         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
8046         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
8047         w_sqrtf_compat-ppc32.
8049 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8051         * math/math.h [defined __cplusplus] (issignaling): In the long
8052         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
8053         is not defined.  Call __issignaling, otherwise.
8055 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8057         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
8058         syscall definitions and replace __builtin_expect with __glibc_likely.
8059         * sysdeps/unix/syscall-template.S: Update comment about cancellable
8060         syscall.
8061          (SYSCALL_CANCELLABLE): Removedefinition
8062         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
8063         definition.
8064         (PSEUDO_END): Likewise.
8065         [IS_IN (libpthread)] (CENABLE): Likewise.
8066         [IS_IN (libpthread)] (CDISABLE): Likewise.
8067         [IS_IN (libc)] (CENABLE): Likewise.
8068         [IS_IN (libc)] (CENABLE): Likewise.
8069         [IS_IN (librt)] (CDISABLE): Likewise.
8070         [IS_IN (librt)] (CDISABLE): Likewise.
8071         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8072         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
8073         definition.
8074         (PSEUDO_END): Likewise.
8075         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
8076         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
8077         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8078         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8079         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8080         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8081         (CENABLE): Likewise.
8082         (CDISABLE): Likewise.
8083         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8084         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
8085         defintion.
8086         (PSEUDO_END): Likewise.
8087         [IS_IN (libpthread)] (CENABLE): Likewise.
8088         [IS_IN (libpthread)] (CDISABLE): Likewise.
8089         [IS_IN (libc)] (CENABLE): Likewise.
8090         [IS_IN (libc)] (CENABLE): Likewise.
8091         [IS_IN (librt)] (CDISABLE): Likewise.
8092         [IS_IN (librt)] (CDISABLE): Likewise.
8093         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8094         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
8095         definition.
8096         (PSEUDO_END): Likewise.
8097         [IS_IN (libpthread)] (CENABLE): Likewise.
8098         [IS_IN (libpthread)] (CDISABLE): Likewise.
8099         [IS_IN (libc)] (CENABLE): Likewise.
8100         [IS_IN (libc)] (CENABLE): Likewise.
8101         [IS_IN (librt)] (CDISABLE): Likewise.
8102         [IS_IN (librt)] (CDISABLE): Likewise.
8103         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8104         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
8105         definition.
8106         (PSEUDO_END): Likewise.
8107         [IS_IN (libpthread)] (CENABLE): Likewise.
8108         [IS_IN (libpthread)] (CDISABLE): Likewise.
8109         [IS_IN (libc)] (CENABLE): Likewise.
8110         [IS_IN (libc)] (CENABLE): Likewise.
8111         [IS_IN (librt)] (CDISABLE): Likewise.
8112         [IS_IN (librt)] (CDISABLE): Likewise.
8113         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8114         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
8115         definition.
8116         (PSEUDO_END): Likewise.
8117         [IS_IN (libpthread)] (CENABLE): Likewise.
8118         [IS_IN (libpthread)] (CDISABLE): Likewise.
8119         [IS_IN (libc)] (CENABLE): Likewise.
8120         [IS_IN (libc)] (CENABLE): Likewise.
8121         [IS_IN (librt)] (CDISABLE): Likewise.
8122         [IS_IN (librt)] (CDISABLE): Likewise.
8123         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8124         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
8125         definition.
8126         (PSEUDO_END): Likewise.
8127         [IS_IN (libpthread)] (CENABLE): Likewise.
8128         [IS_IN (libpthread)] (CDISABLE): Likewise.
8129         [IS_IN (libc)] (CENABLE): Likewise.
8130         [IS_IN (libc)] (CENABLE): Likewise.
8131         [IS_IN (librt)] (CDISABLE): Likewise.
8132         [IS_IN (librt)] (CDISABLE): Likewise.
8133         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8134         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
8135         definition.
8136         (PSEUDO_END): Likewise.
8137         [IS_IN (libpthread)] (CENABLE): Likewise.
8138         [IS_IN (libpthread)] (CDISABLE): Likewise.
8139         [IS_IN (libc)] (CENABLE): Likewise.
8140         [IS_IN (libc)] (CENABLE): Likewise.
8141         [IS_IN (librt)] (CDISABLE): Likewise.
8142         [IS_IN (librt)] (CDISABLE): Likewise.
8143         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8144         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
8145         Remove definition.
8146         (PSEUDO_END): Likewise.
8147         [IS_IN (libpthread)] (CENABLE): Likewise.
8148         [IS_IN (libpthread)] (CDISABLE): Likewise.
8149         [IS_IN (libc)] (CENABLE): Likewise.
8150         [IS_IN (libc)] (CENABLE): Likewise.
8151         [IS_IN (librt)] (CDISABLE): Likewise.
8152         [IS_IN (librt)] (CDISABLE): Likewise.
8153         (SINGLE_THREAD_P): Likewise.
8154         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
8155         definition.
8156         (PSEUDO_END): Likewise.
8157         [IS_IN (libpthread)] (CENABLE): Likewise.
8158         [IS_IN (libpthread)] (CDISABLE): Likewise.
8159         [IS_IN (libc)] (CENABLE): Likewise.
8160         [IS_IN (libc)] (CENABLE): Likewise.
8161         [IS_IN (librt)] (CDISABLE): Likewise.
8162         [IS_IN (librt)] (CDISABLE): Likewise.
8163         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8164         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
8165         definition.
8166         (PSEUDO_END): Likewise.
8167         [IS_IN (libpthread)] (CENABLE): Likewise.
8168         [IS_IN (libpthread)] (CDISABLE): Likewise.
8169         [IS_IN (libc)] (CENABLE): Likewise.
8170         [IS_IN (libc)] (CENABLE): Likewise.
8171         [IS_IN (librt)] (CDISABLE): Likewise.
8172         [IS_IN (librt)] (CDISABLE): Likewise.
8173         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8174         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8175         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8176         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8177         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8178         definition.
8179         (PSEUDO_END): Likewise.
8180         [IS_IN (libpthread)] (CENABLE): Likewise.
8181         [IS_IN (libpthread)] (CDISABLE): Likewise.
8182         [IS_IN (libc)] (CENABLE): Likewise.
8183         [IS_IN (libc)] (CENABLE): Likewise.
8184         [IS_IN (librt)] (CDISABLE): Likewise.
8185         [IS_IN (librt)] (CDISABLE): Likewise.
8186         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8187         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
8188         definition.
8189         (PSEUDO_END): Likewise.
8190         [IS_IN (libpthread)] (CENABLE): Likewise.
8191         [IS_IN (libpthread)] (CDISABLE): Likewise.
8192         [IS_IN (libc)] (CENABLE): Likewise.
8193         [IS_IN (libc)] (CENABLE): Likewise.
8194         [IS_IN (librt)] (CDISABLE): Likewise.
8195         [IS_IN (librt)] (CDISABLE): Likewise.
8196         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8197         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
8198         definition.
8199         (PSEUDO_END): Likewise.
8200         [IS_IN (libpthread)] (CENABLE): Likewise.
8201         [IS_IN (libpthread)] (CDISABLE): Likewise.
8202         [IS_IN (libc)] (CENABLE): Likewise.
8203         [IS_IN (libc)] (CENABLE): Likewise.
8204         [IS_IN (librt)] (CDISABLE): Likewise.
8205         [IS_IN (librt)] (CDISABLE): Likewise.
8206         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8207         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8208         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8209         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8210         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8211         definition.
8212         (PSEUDO_END): Likewise.
8213         [IS_IN (libpthread)] (CENABLE): Likewise.
8214         [IS_IN (libpthread)] (CDISABLE): Likewise.
8215         [IS_IN (libc)] (CENABLE): Likewise.
8216         [IS_IN (libc)] (CENABLE): Likewise.
8217         [IS_IN (librt)] (CDISABLE): Likewise.
8218         [IS_IN (librt)] (CDISABLE): Likewise.
8219         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8220         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8221         definition.
8222         (PSEUDO_END): Likewise.
8223         [IS_IN (libpthread)] (CENABLE): Likewise.
8224         [IS_IN (libpthread)] (CDISABLE): Likewise.
8225         [IS_IN (libc)] (CENABLE): Likewise.
8226         [IS_IN (libc)] (CENABLE): Likewise.
8227         [IS_IN (librt)] (CDISABLE): Likewise.
8228         [IS_IN (librt)] (CDISABLE): Likewise.
8229         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8231 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8233         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8235 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8237         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8239 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8241         [BZ #21982]
8242         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8243         middle and outer with size_t instead of int.  Repleace %d and
8244         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8245         "MAX (outer, nchars - 64)" to support unsigned outer and
8246         nchars.  Also exit loop when outer == 0.
8248 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8250         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8251         * include/signal.h (__sigsuspend_nocancel): Likewise.
8252         * include/time.h (__nanosleep_nocancel): Likewise.
8253         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8254         * login/utmp_file.c: Include non cancellable syscall header.
8255         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8256         prototype.
8258 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8260         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8261         .byte sequences with AVX512F instructions.
8262         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8263         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8264         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8265         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8266         Likewise.
8267         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8268         Likewise.
8270 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8271             Steve Ellcey  <sellcey@cavium.com>
8273         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8274         Use PTR_REG macro in cmp instruction.
8276 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8278         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8279         Change the return type of the ifunc resolver to match the return
8280         type of the target function.
8282 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8284         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
8285         (preadv64): Likewise.
8286         (pwrite64(: Likewise.
8287         (pwritev64): Likewise.
8289         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8290         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
8291         (LOAD_ARGS_0): Likewise.
8292         (LOAD_ARGS_1): Likewise.
8293         (LOAD_ARGS_2): Likewise.
8294         (LOAD_ARGS_3): Likewise.
8295         (LOAD_ARGS_4): Likewise.
8296         (LOAD_ARGS_5): Likewise.
8297         (LOAD_ARGS_6): Likewise.
8298         (LOAD_REGS_0): Likewise.
8299         (LOAD_REGS_1): Likewise.
8300         (LOAD_REGS_2): Likewise.
8301         (LOAD_REGS_3): Likewise.
8302         (LOAD_REGS_4): Likewise.
8303         (LOAD_REGS_5): Likewise.
8304         (LOAD_REGS_6): Likewise.
8305         (ASM_ARGS_0): Likewise.
8306         (ASM_ARGS_1): Likewise.
8307         (ASM_ARGS_2): Likewise.
8308         (ASM_ARGS_3): Likewise.
8309         (ASM_ARGS_4): Likewise.
8310         (ASM_ARGS_5): Likewise.
8311         (ASM_ARGS_6): Likewise.
8312         (LOAD_ARGS_TYPES_1): Likewise.
8313         (LOAD_ARGS_TYPES_2): Likewise.
8314         (LOAD_ARGS_TYPES_3): Likewise.
8315         (LOAD_ARGS_TYPES_4): Likewise.
8316         (LOAD_ARGS_TYPES_5): Likewise.
8317         (LOAD_ARGS_TYPES_6): Likewise.
8318         (LOAD_REGS_TYPES_1): Likewise.
8319         (LOAD_REGS_TYPES_2): Likewise.
8320         (LOAD_REGS_TYPES_3): Likewise.
8321         (LOAD_REGS_TYPES_4): Likewise.
8322         (LOAD_REGS_TYPES_5): Likewise.
8323         (LOAD_REGS_TYPES_6): Likewise.
8324         (TYPEFY): New define.
8325         (ARGIFY): Likewise.
8326         (internal_syscall0): Likewise.
8327         (internal_syscall1): Likewise.
8328         (internal_syscall2): Likewise.
8329         (internal_syscall3): Likewise.
8330         (internal_syscall4): Likewise.
8331         (internal_syscall5): Likewise.
8332         (internal_syscall6): Likewise.
8333         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
8334         (INTERNAL_SYSCALL_NCS): Remove define.
8335         (internal_syscall1): Add define.
8337 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8339         * math/w_remainder_compat.c: Remove duplicate inclusion of
8340         math-svid-compat.h.
8341         * math/w_remainderf_compat.c: Likewise.
8342         * math/w_remainderl_compat.c: Likewise.
8344 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8348 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8350         [BZ #21684]
8351         * math/tgmath.h (__floating_type): Simplify definitions.
8352         (__real_integer_type): New macro.
8353         (__complex_integer_type): Likewise.
8354         (__expr_is_real): Likewise.
8355         (__tgmath_real_type_sub): Update comment to describe handling of
8356         complex types.
8357         (__tgmath_complex_type_sub): New macro.
8358         (__tgmath_complex_type): Likewise.
8359         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8360         (__TGMATH_CF128): Use __expr_is_real.
8361         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
8362         __expr_is_real.
8363         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8364         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
8365         * math/gen-tgmath-tests.py (Type.create_type): Create complex
8366         integer types.
8368 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8370         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
8371         macro.
8372         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
8373         alias.
8374         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
8375         Likewise.
8377         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
8378         nanosleep_not_cancel with __nanosleep_nocancel.
8379         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
8380         (__nanosleep_nocancel): New macro.
8381         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
8382         function.
8383         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
8384         macro.
8385         (__nanosleep_nocancel): New prototype.
8387         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
8388         pause_not_cancel with __pause_nocancel.
8389         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
8390         (__pause_nocancel): New macro.
8391         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
8392         macro.
8393         (__pause_nocancel): New prototype.
8394         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
8396 2017-08-22  Martin Sebor  <msebor@redhat.com>
8398         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
8399         to return a pointer to the same type as the target function.
8401 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8403         [BZ #18822]
8404         [BZ #21986]
8405         * include/printf.h (__printf_fphex): Add attribute_hidden.
8406         (__guess_grouping): New prototype.
8407         * stdio-common/printf_fp.c (__guess_grouping): Removed.
8408         * stdio-common/reg-printf.c (__register_printf_specifier): Add
8409         libc_hidden_proto and libc_hidden_def.
8410         * stdlib/strfmon_l.c (__guess_grouping): Removed.
8411         (__vstrfmon_l): Remove the third argument passed to
8412         __guess_grouping.
8414 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8416         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
8417         definition for issignaling that does not rely on __MATH_TG,
8418         since __MATH_TG uses __builtin_types_compatible_p, which is only
8419         available in C mode.
8420         (CFLAGS-test-math-issignaling.cc): New variable.
8421         * math/Makefile [CXX] (tests): Add test-math-issignaling.
8422         * math/test-math-issignaling.cc: New test for C++ implementation
8423         of type-generic issignaling.
8424         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8425         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
8426         options of test-math-issignaling on powerpc64le.
8428 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8430         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8431         building libc.a.
8432         (hidden_proto): Likewise.
8433         (hidden_tls_proto): Likewise.
8434         (__hidden_proto): Likewise.
8436 2017-08-22  Florian Weimer  <fweimer@redhat.com>
8438         math: Statically link tests of internal functionality.
8439         * math/Makefile (tests): Remove atest-exp, atest-sincos,
8440         atest-exp2.
8441         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
8442         (gmp-objs): Remove assignment.
8443         (atest-exp, atest-sincos, atest-exp2): Remove targets.
8445 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8447         [BZ #21987]
8448         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
8449         and copy to ...
8450         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
8451         ... here.
8452         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
8453         ... and here.
8455         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
8456         variable definitions above inclusion of ../Rules.
8458 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8460         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
8461         case calling __builtin_unreachable.
8463 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8465         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
8466         __waitpid_nocancel.
8467         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
8468         (__waitpid_nocancel): New macro.
8469         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
8470         macro.
8471         (__waitpid_nocancel): Replace macro with a function.
8472         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
8473         function.
8475         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
8476         __fcntl_nocancel.
8477         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
8478         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
8480         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
8481         __writev_nocancel_nostatus.
8482         (write_call_graph): Likewise.
8483         (write_bb_counts): Likewise.
8484         * resolv/herror.c (herror): Likewise.
8485         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
8486         macro.
8487         (__writev_nocancel_nostatus): New macro.
8488         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
8489         Remove macro.
8490         (__writev_nocancel_nostatus): New function.
8492 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8494         Revert:
8495         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8497         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8498         building libc.a.
8499         (hidden_proto): Likewise.
8500         (hidden_tls_proto): Likewise.
8501         (__hidden_proto): Likewise.
8503         [BZ #21973]
8504         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
8505         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8507         Likewise.
8508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
8509         Likewise.
8510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8511         Likewise.
8512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
8513         Likewise.
8514         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
8515         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8516         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8517         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8518         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8519         GLIBC_2.0 sqrtl symbol.
8521         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
8522         [__USE_MISC] (_LIB_VERSION): Likewise.
8523         [__USE_MISC] (struct exception): Likewise.
8524         [__USE_MISC] (matherr): Likewise.
8525         [__USE_MISC] (DOMAIN): Likewise.
8526         [__USE_MISC] (SING): Likewise.
8527         [__USE_MISC] (OVERFLOW): Likewise.
8528         [__USE_MISC] (UNDERFLOW): Likewise.
8529         [__USE_MISC] (TLOSS): Likewise.
8530         [__USE_MISC] (PLOSS): Likewise.
8531         [__USE_MISC] (HUGE): Likewise.
8532         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
8533         * math/math-svid-compat.h: New file.
8534         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
8535         and matherrl.
8536         * include/math.h [!_ISOMAC] (__matherr): Remove.
8537         * manual/arith.texi (FP Exceptions): Do not document matherr.
8538         * math/Makefile (tests): Change test-matherr to test-matherr-3.
8539         (tests-internal): New variable.
8540         (install-lib): Do not add libieee.a.
8541         (non-lib.a): Likewise.
8542         (extra-objs): Do not add libieee.a and ieee-math.o.
8543         (CPPFLAGS-s_lib_version.c): Remove variable.
8544         ($(objpfx)libieee.a): Remove rule.
8545         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
8546         * math/ieee-math.c: Remove.
8547         * math/libm-test-support.c (matherr): Remove.
8548         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
8549         and license notices.  Include <math-svid-compat.h> and
8550         <shlib-compat.h>.
8551         (matherr): Undefine as macro.  Use compat_symbol_reference.
8552         (_LIB_VERSION): Likewise.
8553         * math/test-matherr-2.c: New file.
8554         * math/test-matherr-3.c: Likewise.
8555         * sysdeps/generic/math_private.h (__kernel_standard): Remove
8556         declaration.
8557         (__kernel_standard_f): Likewise.
8558         (__kernel_standard_l): Likewise.
8559         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
8560         <math_private.h>.  Include <math-svid-compat.h>.
8561         (_LIB_VERSION): Undefine as macro.
8562         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
8563         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
8564         [LIBM_SVID_COMPAT], use compat_symbol.
8565         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
8566         <math_private.h>.  Include <math-svid-compat.h>.
8567         (matherr): Undefine as macro.
8568         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
8569         compat_symbol.
8570         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
8571         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
8572         compat_symbol_reference.
8573         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
8574         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
8575         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
8576         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
8577         (MATHERR_D): Remove declaration.
8578         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
8579         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
8580         [LIBM_BUILD] (pmatherrf): Likewise.
8581         [LIBM_BUILD] (pmatherr): Likewise.
8582         [LIBM_BUILD] (pmatherrl): Likewise.
8583         (DOMAIN): Likewise.
8584         (SING): Likewise.
8585         (OVERFLOW): Likewise.
8586         (UNDERFLOW): Likewise.
8587         (TLOSS): Likewise.
8588         (PLOSS): Likewise.
8589         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
8590         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
8591         compat_symbol.
8592         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
8593         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
8594         compat_symbol.
8595         * math/lgamma-compat.h: Include <math-svid-compat.h>.
8596         * math/w_acos_compat.c: Likewise.
8597         * math/w_acosf_compat.c: Likewise.
8598         * math/w_acosh_compat.c: Likewise.
8599         * math/w_acoshf_compat.c: Likewise.
8600         * math/w_acoshl_compat.c: Likewise.
8601         * math/w_acosl_compat.c: Likewise.
8602         * math/w_asin_compat.c: Likewise.
8603         * math/w_asinf_compat.c: Likewise.
8604         * math/w_asinl_compat.c: Likewise.
8605         * math/w_atan2_compat.c: Likewise.
8606         * math/w_atan2f_compat.c: Likewise.
8607         * math/w_atan2l_compat.c: Likewise.
8608         * math/w_atanh_compat.c: Likewise.
8609         * math/w_atanhf_compat.c: Likewise.
8610         * math/w_atanhl_compat.c: Likewise.
8611         * math/w_cosh_compat.c: Likewise.
8612         * math/w_coshf_compat.c: Likewise.
8613         * math/w_coshl_compat.c: Likewise.
8614         * math/w_exp10_compat.c: Likewise.
8615         * math/w_exp10f_compat.c: Likewise.
8616         * math/w_exp10l_compat.c: Likewise.
8617         * math/w_exp2_compat.c: Likewise.
8618         * math/w_exp2f_compat.c: Likewise.
8619         * math/w_exp2l_compat.c: Likewise.
8620         * math/w_fmod_compat.c: Likewise.
8621         * math/w_fmodf_compat.c: Likewise.
8622         * math/w_fmodl_compat.c: Likewise.
8623         * math/w_hypot_compat.c: Likewise.
8624         * math/w_hypotf_compat.c: Likewise.
8625         * math/w_hypotl_compat.c: Likewise.
8626         * math/w_j0_compat.c: Likewise.
8627         * math/w_j0f_compat.c: Likewise.
8628         * math/w_j0l_compat.c: Likewise.
8629         * math/w_j1_compat.c: Likewise.
8630         * math/w_j1f_compat.c: Likewise.
8631         * math/w_j1l_compat.c: Likewise.
8632         * math/w_jn_compat.c: Likewise.
8633         * math/w_jnf_compat.c: Likewise.
8634         * math/w_jnl_compat.c: Likewise.
8635         * math/w_lgamma_main.c: Likewise.
8636         * math/w_lgamma_r_compat.c: Likewise.
8637         * math/w_lgammaf_main.c: Likewise.
8638         * math/w_lgammaf_r_compat.c: Likewise.
8639         * math/w_lgammal_main.c: Likewise.
8640         * math/w_lgammal_r_compat.c: Likewise.
8641         * math/w_log10_compat.c: Likewise.
8642         * math/w_log10f_compat.c: Likewise.
8643         * math/w_log10l_compat.c: Likewise.
8644         * math/w_log2_compat.c: Likewise.
8645         * math/w_log2f_compat.c: Likewise.
8646         * math/w_log2l_compat.c: Likewise.
8647         * math/w_log_compat.c: Likewise.
8648         * math/w_logf_compat.c: Likewise.
8649         * math/w_logl_compat.c: Likewise.
8650         * math/w_pow_compat.c: Likewise.
8651         * math/w_powf_compat.c: Likewise.
8652         * math/w_powl_compat.c: Likewise.
8653         * math/w_remainder_compat.c: Likewise.
8654         * math/w_remainderf_compat.c: Likewise.
8655         * math/w_remainderl_compat.c: Likewise.
8656         * math/w_scalb_compat.c: Likewise.
8657         * math/w_scalbf_compat.c: Likewise.
8658         * math/w_scalbl_compat.c: Likewise.
8659         * math/w_sinh_compat.c: Likewise.
8660         * math/w_sinhf_compat.c: Likewise.
8661         * math/w_sinhl_compat.c: Likewise.
8662         * math/w_sqrt_compat.c: Likewise.
8663         * math/w_sqrtf_compat.c: Likewise.
8664         * math/w_sqrtl_compat.c: Likewise.
8665         * math/w_tgamma_compat.c: Likewise.
8666         * math/w_tgammaf_compat.c: Likewise.
8667         * math/w_tgammal_compat.c: Likewise.
8668         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
8669         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
8670         * sysdeps/ieee754/k_standard.c: Likewise.
8671         * sysdeps/ieee754/k_standardf.c: Likewise.
8672         * sysdeps/ieee754/k_standardl.c: Likewise.
8673         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
8674         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
8675         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
8676         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8677         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8678         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8679         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8680         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8681         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8683         Likewise.
8684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8685         Likewise.
8686         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
8687         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8688         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8689         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8691 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8693         [BZ #21864]
8694         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
8695         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
8696         Move before inclusion of ../Rules.
8698 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8700         [BZ #21972]
8701         * assert/assert.h (assert): Use static_cast (bool) for C++.
8702         Use the ternary operator in the warning branch for GNU C.
8703         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
8704         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
8705         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
8706         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
8707         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
8709 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8711         [BZ #18822]
8712         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8713         (__syscall_clock_gettime): Add attribute_hidden.
8714         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
8715         (__start_context): Likewise.
8717 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8719         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8720         building libc.a.
8721         (hidden_proto): Likewise.
8722         (hidden_tls_proto): Likewise.
8723         (__hidden_proto): Likewise.
8725 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8727         * include/libc-symbols.h (attribute_hidden): Enable hidden
8728         visibility in libc.a compiled with PIE.
8730 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8732         [BZ #18822]
8733         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
8734         Add attribute_hidden.
8736 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8738         [BZ #21864]
8739         * Makerules (all-nonlib): Add $(others-extras).
8740         * catgets/Makefile (others-extras): New.
8741         * elf/Makefile (others-extras): Likewise.
8742         * nss/Makefile (others-extras): Likewise.
8744 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8746         [BZ #18822]
8747         * csu/libc-start.c (__libc_multiple_libcs): Removed.
8748         * elf/dl-open.c: Include <libc-internal.h>.
8749         (__libc_multiple_libcs): Removed.
8750         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
8751         <hp-timing.h>.
8752         * include/libc-internal.h (__libc_multiple_libcs): New.
8753         * misc/sbrk.c: Include <libc-internal.h>.
8754         (__libc_multiple_libcs): Removed.
8756 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8758         [BZ #18822]
8759         * grp/initgroups.c (__nss_group_database): Removed.
8760         (__nss_initgroups_database): Likewise.
8761         * nscd/gai.c (__nss_hosts_database): Likewise.
8762         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
8763         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
8764         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
8765         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
8766         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
8767         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
8768         attribute_hidden.
8769         * nss/nsswitch.c (__nss_database_custom): Define only if
8770         USE_NSCD is defined.
8771         (__nss_configure_lookup): Use __nss_database_custom only if
8772         USE_NSCD is defined.
8773         * nss/nsswitch.h (__nss_database_custom): Declare only if
8774         USE_NSCD is defined.  Add attribute_hidden.
8775         (__nss_setent): Add attribute_hidden.
8776         (__nss_endent): Likewise.
8777         (__nss_getent_r): Likewise.
8778         (__nss_getent): Likewise.
8779         (DEFINE_DATABASE): Declare __nss_##arg##_database.
8781 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8783         [BZ #18822]
8784         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
8785         libc_hidden_proto and libc_hidden_def.
8787 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8789         [BZ #18822]
8790         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
8791         Add libc_hidden_proto.
8792         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
8793         Add libc_hidden_def.
8795 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8797         [BZ #21974]
8798         * gmon/Makefile (routines): Remove bb_init_func and
8799         bb_exit_func.
8800         (elide-routines.os): Removed.
8801         * gmon/bb_exit_func.c: Likewise.
8802         * gmon/bb_init_func.c: Likewise.
8803         * include/sys/gmon.h (__bb): Likewise.
8804         (__bb_init_func): Likewise.
8805         (__bb_exit_func): Likewise.
8806         * sysdeps/alpha/bb_init_func.S: Likewise.
8808 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8810         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
8811         * include/setjmp.h (____longjmp_chk): Here.  Add
8812         attribute_hidden.
8814 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8816         [BZ #18822]
8817         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
8818         attribute_hidden.
8819         (__strspn_sse2): Likewise.
8821 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8823         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
8824         (close_not_cancel_no_status): Likewise.
8825         (__close_nocancel): New macro.
8826         (__close_nocancel_nostatus): Likewise.
8827         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
8828         macro.
8829         (close_not_cancel): Likewise.
8830         (close_not_cancel_no_status): Likewise.
8831         (__close_nocancel): New prototype.
8832         (__close_nocancel_nostatus): New function.
8833         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
8834         * catgets/open_catalog.c (__open_catalog): Replace
8835         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
8836         * gmon/gmon.c (write_gmon): Likewise.
8837         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8838         * intl/loadmsgcat.c (close): Likewise.
8839         * io/ftw.c (open_dir_stream): Likewise.
8840         (ftw_startup): Likewise.
8841         * libio/fileops.c (_IO_file_open): Likewise.
8842         (_IO_file_close_mmap): Likewise.
8843         (_IO_file_close): Likewise.
8844         * libio/iopopen.c (_IO_dup2): Likewise.
8845         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8846         * locale/loadlocale.c (_nl_load_locale): Likewise.
8847         * login/utmp_file.c (pututline_file): Likewise.
8848         (endutent_file): Likewise.
8849         * misc/daemon.c (daemon): Likewise.
8850         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8851         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8852         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8853         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8854         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8855         * nscd/nscd_helper.c (open_socket): Likewise.
8856         (__nscd_open_socket): Likewise.
8857         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8858         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
8859         (__nscd_innetgr): Likewise.
8860         * nss/nss_db/db-open.c (internal_setent): Likewise.
8861         * resolv/res-close.c (__res_iclose): Likewise.
8862         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
8863         * sysdeps/posix/closedir.c (__closedir): Likewise.
8864         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
8865         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8866         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8867         (opendir_tail): Likewise.
8868         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8869         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
8870         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8871         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8872         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8873         (gethostid): Likewise.
8874         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8875         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8876         Likewise.
8877         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8878         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
8879         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8880         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8881         Likewise.
8882         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
8883         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
8884         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8885         Likewise.
8886         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
8887         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8888         Likewise.
8889         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8890         Likewise.
8891         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8892         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8893         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8894         __close_nocancel.
8896         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
8897         (openat_not_cancel_3): Likewise.
8898         (openat64_not_cancel_3): Likewise).
8899         (openat_not_cancel_3): Likewise).
8900         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
8901         macro.
8902         (openat_not_cancel_3): Likewise.
8903         (openat64_not_cancel): Likewise.
8904         (openat64_not_cancel_3): Likewise.
8905         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
8906         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
8907         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
8908         __open{64}_nocancel.
8909         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8910         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8911         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8913 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8915         [BZ #18822]
8916         * include/argz.h (__argz_create_sep): New function prototype.
8917         (__argz_append): Likewise.
8918         (__argz_add): Likewise.
8919         (__argz_add_sep): Likewise.
8920         (__argz_delete): Likewise.
8921         (__argz_insert): Likewise.
8922         (__argz_replace): Likewise.
8923         * string/argz.h (__argz_create_sep): Removed.
8924         (__argz_append): Likewise.
8925         (__argz_add): Likewise.
8926         (__argz_add_sep): Likewise.
8927         (__argz_delete): Likewise.
8928         (__argz_insert): Likewise.
8929         (__argz_replace): Likewise.
8931 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8933         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
8934         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
8935         (GNU_PROPERTY_STACK_SIZE): Likewie.
8936         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
8937         (GNU_PROPERTY_LOPROC): Likewise.
8938         (GNU_PROPERTY_HIPROC): Likewise.
8939         (GNU_PROPERTY_LOUSER): Likewise.
8940         (GNU_PROPERTY_HIUSER): Likewise.
8941         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
8942         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
8943         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
8944         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
8945         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
8946         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
8947         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
8948         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
8949         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
8950         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
8951         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
8952         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
8953         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
8954         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
8955         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
8956         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
8957         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
8958         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
8959         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
8960         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
8961         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
8962         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
8963         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
8965 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8967         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
8968         in C++ mode.
8970 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8972         [BZ #21930]
8973         * math/math.h (isinf): Check if in C or C++ mode before using
8974         __builtin_types_compatible_p, since this is a C mode feature.
8976 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8978         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
8979         (__write_nocancel): New macro.
8980         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
8981         Rewrite as a function prototype.
8982         (write_not_cancel): Remove macro.
8983         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
8984         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
8985         (write_gmon): Likewise.
8986         * libio/fileops.c (_IO_new_file_write): Likewise.
8987         * login/utmp_file.c (pututline_file): Likewise.
8988         (updwtmp_file): Likewise.
8989         * stdio-common/psiginfo.c (psiginfo): Likewise.
8990         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8991         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8992         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8993         Likewise.
8994         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8995         Likewise.
8997         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
8998         (__read_nocancel): New macro.
8999         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9000         __read_nocancel.
9001         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
9002         macro.
9003         (__read_nocancel): New prototype.
9004         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
9005         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
9006         with __read_nocancel.
9007         * intl/loadmsgcat.c (read): Likewise.
9008         * libio/fileops.c (_IO_file_read): Likewise.
9009         * locale/loadlocale.c (_nl_load_locale): Likewise.
9010         * login/utmp_file.c (getutent_r_file): Likewise.
9011         (internal_getut_r): Likewise.
9012         (getutline_r_file): Likewise.
9013         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9014         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
9015         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9016         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9017         Likewise.
9018         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
9019         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9020         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9021         Likewise.
9022         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9023         Likewise.
9024         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9025         Likewise.
9026         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9027         Likewise.
9028         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9030 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9032         [BZ #21966]
9033         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
9034         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
9035         usable.
9037 2017-08-17  DJ Delorie  <dj@redhat.com>
9039         * bug17079.c: Update to new test harness.
9040         * test-digits-dots.c: Likewise.
9041         * test-netdb.c: Likewise.
9042         * tst-field.c: Likewise.
9043         * tst-nss-getpwent.c: Likewise.
9044         * tst-nss-static.c: Likewise.
9045         * tst-nss-test1.c: Likewise.
9046         * tst-nss-test2.c: Likewise.
9047         * tst-nss-test3.c: Likewise.
9048         * tst-nss-test4.c: Likewise.
9049         * tst-nss-test5.c: Likewise.
9051 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9053         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
9054         (open_not_cancel_2): Likewise.
9055         (open_nocancel): New macro.
9056         (open64_nocancel): Likewise.
9057         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
9058         (open_not_cancel_2): Likewise.
9059         (__open_nocancel): New prototype.
9060         (__open64_nocancel): Likewise.
9061         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9062         __open_nocancel.
9063         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
9064         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
9065         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
9066         with __open_nocancel.
9067         * csu/check_fds.c (check_one_fd): Likewise.
9068         * gmon/gmon.c (write_gmon): Likewise.
9069         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
9070         * intl/loadmsgcat.c (open): Likewise.
9071         * libio/fileops.c (_IO_file_open): Likewise.
9072         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9073         * locale/loadlocale.c (_nl_load_locale): Likewise.
9074         * login/utmp_file.c (setutent_file): Likewise.
9075         * misc/daemon.c (daemon): Likewise.
9076         * nss/nss_db/db-open.c (internal_setent): Likewise.
9077         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9078         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
9079         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9080         (__opendir): Likewise.
9081         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9082         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9083         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9084         (gethostid): Likewise.
9085         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9086         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9087         Likewise.
9088         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9089         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
9090         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9091         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9092         Likewise.
9093         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9094         Likewise.
9095         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9096         Likewise.
9097         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
9098         Likewise.
9099         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9100         Likewise.
9101         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9102         Likewise.
9103         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9104         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9106 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
9108         * benchtests/bench-skeleton.c (main): Add support for
9109         latency benchmarking.
9110         * benchtests/scripts/bench.py: Add support for latency benchmarking.
9112 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
9114         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
9115         the startup object.
9117 2017-08-17  Florian Weimer  <fweimer@redhat.com>
9119         * include/sys/socket.h (__opensock): Remove internal_function.
9120         * socket/opensock.c (__opensock): Likewise.
9121         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
9123 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9125         [BZ #21944]
9126         * signal/bits/types/__sigval_t.h: New file.
9127         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
9128         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
9129         and define sigval_t using __sigval_t.
9130         * include/bits/types/__sigval_t.h: New file.
9131         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
9132         instead of <bits/types/__sigval_t.h>.
9133         (struct sigevent): Use __sigval_t instead of sigval_t.
9134         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
9135         instead of <bits/types/__sigval_t.h>.
9136         (siginfo_t): Use __sigval_t instead of sigval_t.
9137         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
9138         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9139         (struct sigevent): Use __sigval_t instead of sigval_t.
9140         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
9141         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9142         (siginfo_t): Use __sigval_t instead of sigval_t.
9143         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
9145 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9147         * NEWS: Remove "[Add new features here]" for 2.27.
9149 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9151         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
9152         libc.so.
9154 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9156         * NEWS: Mention x86-64 FMA optimization.
9158 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9160         [BZ #21912]
9161         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9162         Add e_expf-fma.
9163         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
9164         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
9165         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9167 2017-08-16  Andreas Schwab  <schwab@suse.de>
9169         [BZ #16750]
9170         CVE-2009-5064
9171         * elf/ldd.bash.in: Never run file directly.
9173 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9175         [BZ #21955]
9176         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9177         (L(SP_INF_0)): Likewise.
9179 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9181         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9182         run-built-tests.
9184 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9186         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9187         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9188         BROKEN_THREAD_SIGNALS code.
9189         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9190         request_list): Remove caller_pid member used for
9191         BROKEN_THREAD_SIGNALS.
9192         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9193         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9194         Remove BROKEN_THREAD_SIGNALS support.
9195         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9196         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9198 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9200         * gmon/Makefile (tests): Add tst-gmon.
9201         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9202         Set.
9203         (tests-special): Add tst-gmon-prof.out.
9204         (tst-gmon.out): Depend on clean-tst-gmon-data.
9205         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9206         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9207         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9208         startup object.
9209         * aclocal.m4 (GPROF): Set and substitute.
9210         * config.amke.in (GPROF): Set.
9211         * configure: Regenerate.
9213 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9215         * elf/elf.h A (NT_PPC_TAR): New macro.
9216         (NT_PPC_PPR): Likewise.
9217         (NT_PPC_DSCR): Likewise.
9218         (NT_PPC_EBB): Likewise.
9219         (NT_PPC_PMU): Likewise.
9220         (NT_PPC_TM_CGPR): Likewise.
9221         (NT_PPC_TM_CFPR): Likewise.
9222         (NT_PPC_TM_CVMX): Likewise.
9223         (NT_PPC_TM_CVSX): Likewise.
9224         (NT_PPC_TM_SPR): Likewise.
9225         (NT_PPC_TM_CTAR): Likewise.
9226         (NT_PPC_TM_CPPR): Likewise.
9227         (NT_PPC_TM_CDSCR): Likewise.
9229 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9231         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9232         regparm (2) instead of internal_function.
9233         (_MCOUNT_DECL): Adjust.
9235 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9237         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9238         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9240 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9242         * conform/data/sys/wait.h-data (si_value): Do not expect for
9243         XPG42.
9245 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9247         [BZ #21962]
9248         NSS: Create stubs for accidentally exported lookup functions.
9249         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9250         Remove declaration.
9251         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9252         (ether_hostton): Call __nss_ethers_lookup2 instead.
9253         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9254         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9255         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9256         (setup): Call __nss_netgroup_lookup2 instead.
9257         * nss/Makefile (routines): Add compat-lookup.
9258         * nss/Versions (GLIBC_2.27): Add symbol version.
9259         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9260         (DB_COMPAT_FCT): Remove.
9261         * nss/compat-lookup.c: New file.
9262         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9263         from databases.def.
9264         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9265         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9266         (netname2user): Call __nss_publickey_lookup2 instead.
9267         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9268         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9269         instead.
9271 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9272             Sergei Trofimovich  <slyfox@inbox.ru>
9274         [BZ #21908]
9275         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9276         Rename to MMAP2_PAGE_UNIT.
9277         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9278         __OFF_T_MATCHES_OFF64_T is not defined.
9279         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9280         uint64_t.
9281         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9282         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
9284 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9286         i386: Do not set internal_function.
9287         * config.h.in (USE_REGPARMS, internal_function): Remove.
9288         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
9289         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
9291 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9293         * elf/dl-init.c (_dl_init): Remove internal_function.
9294         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
9295         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
9297 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9299         * elf/rtld.c (_dl_start): Remove internal_function.
9300         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
9301         _dl_start.
9303 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9305         * elf/dl-fini.c (_dl_fini): Remove internal_function
9306         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
9308 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
9310         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
9311         (bit_cpu_SHSTK): Likewise.
9312         (index_cpu_IBT): Likewise.
9313         (index_cpu_SHSTK): Likewise.
9314         (reg_IBT): Likewise.
9315         (reg_SHSTK): Likewise.
9316         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
9317         Handle index_cpu_IBT and index_cpu_SHSTK.
9319 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
9321         [BZ #19982]
9322         * po/fr.po: Fix spelling mistake.
9324 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9326         * elf/dl-addr.c (_dl_addr): Remove internal_function.
9327         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
9328         (_dl_catch_error, _dl_receive_error): Likewise.
9329         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
9330         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
9331         (_dl_deallocate_tls): Likewise.
9332         * include/dlfcn.h (_dl_addr): Likewise.
9333         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
9334         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
9335         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
9336         Likewise.
9338 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9340         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
9341         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
9342         internal_function.
9343         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
9345 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9347         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
9348         internal_function.
9349         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
9350         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
9351         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
9352         internal_function from _dl_make_stack_executable_hook member.
9353         (_dl_make_stack_executable): Remove internal_function.
9354         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
9355         Likewise.
9356         * sysdeps/unix/sysv/linux/dl-execstack.c
9357         (_dl_make_stack_executable): Likewise.
9359 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9361         * sysdeps/unix/sysv/linux/netlinkaccess.h
9362         (__netlink_assert_response): Remove internal_function.
9363         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9364         (__netlink_assert_response): Likewise.
9366 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9368         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
9369         internal_function.
9370         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
9372 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9374         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
9375         internal_function.
9376         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
9377         * inet/netgroup.h (__internal_setnetgrent)
9378         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9379         * inet/getnetgrent_r.c (__internal_setnetgrent)
9380         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9381         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
9382         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
9383         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
9384         * nss/nsswitch.h (db_lookup_function): Likewise.
9386 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9388         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
9389         Remove internal_function.
9390         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
9391         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
9392         message argument on the stack.
9393         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
9394         Likeweise.
9396 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
9398         Adapt test case data to the changes in the thousands
9399         separators.
9401         [BZ #20756]
9402         * localedata/tst-langinfo.sh: Adapt test case data.
9403         * stdlib/tst-strfmon_l.c: Likewise.
9404         * stdlib/tst-strtod4.c: Likewise.
9405         * stdlib/tst-strtod5i.c: Likewise.
9407 2017-08-11  Florian Weimer  <fweimer@redhat.com>
9409         [BZ #21242]
9410         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
9411         Suppress pedantic warning resulting from statement expression.
9412         (__ASSERT_FUNCTION): Add missing __extension__.
9414 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9416         * benchtests/bench-memmove-large.c: Print output in JSON
9417         format.
9418         * benchtests/bench-memmove.c: Likewise.
9420         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
9421         * benchtests/bench-memchr.c (do_one_test): Likewise.
9422         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
9423         * benchtests/bench-memcpy.c (do_one_test): Likewise.
9424         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
9425         * benchtests/bench-memmove.c (do_one_test): Likewise.
9426         * benchtests/bench-memset-large.c (do_one_test): Likewise.
9427         * benchtests/bench-memset.c (do_one_test): Likewise.
9428         * benchtests/bench-string.h (test_init): Remove memsets.
9430 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9432         * manual/lang.texi
9433         (Computing the Width of an Integer Data Type): Rename section to
9434         "Width of an Integer Type".  Remove inaccurate statement regarding
9435         lack of C language facilities for determining width of integer
9436         types, and reorder content to improve flow and context of
9437         discussion.
9439 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9441         * lang.texi (va_copy): Change standard from ISO to C99.
9442         (__va_copy): Add standard and header annotation.
9443         Update description for clarity of origins and current use.
9445 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9447         [BZ #21941]
9448         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
9449         xssqrtqp requires operands to be in Vector Registers
9450         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
9451         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
9452         (__ieee754_sqrtf128): Likewise.
9454 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
9456         * sysdeps/aarch64/memcmp.S (memcmp):
9457         Rewrite of optimized memcmp.
9459 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9461         Introduce ld.so exceptions.
9462         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
9463         (_dl_exception_create, _dl_exception_create_format)
9464         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
9465         (_dl_catch_exception): Declare.
9466         (_dl_catch_error): Update comment.
9467         * elf/dl-error-skeleton.c (struct catch): Replace objname,
9468         errstring, malloced members with exception member.
9469         (_dl_out_of_memory): Remove.
9470         (fatal_error): New function, extracted from _dl_signal_error.
9471         (_dl_signal_exception, _dl_signal_cexception): New functions.
9472         (_dl_signal_error): Call _dl_exception_create to allocate an
9473         exception object.
9474         (_dl_catch_exception): New function, based on _dl_catch_error.
9475         (_dl_catch_error): Implement using _dl_catch_exception.
9476         * elf/dl-exception.c: New file.
9477         * elf/Makefile (dl-routines): Add dl-exception.
9478         (elide-routines.os): Likewise.
9479         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
9480         _dl_exception_create_format, _dl_exception_free.
9481         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
9482         _dl_signal_exception.
9483         * elf/dl-lookup.c (make_string): Remove.
9484         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
9485         _dl_signal_cexception, _dl_exception_free.
9486         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
9487         _dl_signal_exception.
9488         * elf/dl-sym.c (do_sym): Likewise.
9489         * elf/dl-version.c (make_string): Remove.
9490         (match_symbol): Use _dl_exception_create_format,
9491         _dl_signal_cexception, _dl_exception_free.
9492         (_dl_check_map_versions): Likewise.
9493         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
9494         _dl_catch_exception.
9495         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
9496         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
9497         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
9498         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
9499         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
9500         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
9501         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
9502         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
9503         Likewise.
9504         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
9505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
9506         (ld.so): Likewise.
9507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
9508         (ld.so): Likewise.
9509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
9510         Likewise.
9511         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
9512         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
9513         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
9514         Likewise.
9515         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
9516         Likewise.
9517         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
9519 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9521         * inet/net-internal.h (__inet6_scopeid_pton): Remove
9522         attribute_hidden, internal_function.
9523         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
9524         internal_function.
9526 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9528         * malloc/malloc.c (get_max_fast): Reimplement as an inline
9529         function which calls __builtin_unreachable.
9531 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
9533         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
9534         Indian monetary formatting
9535         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
9536         test cases.
9538 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
9540         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
9541         Fix typo in comment.
9543         [BZ #21928]
9544         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
9545         PTRACE_SEIZE_DEVEL): Remove.
9546         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
9547         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9548         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9549         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9550         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9552 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
9554         * posix/bits/types.h (__qaddr_t): Remove.
9556         [BZ #21457]
9557         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
9558         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9559         __glibc_reserved1.
9560         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
9561         (ucontext_t): Use __ctx with uc_flags.
9562         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
9563         (__ctxt): Likewise.
9564         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9565         __glibc_reserved1.
9566         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
9567         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9568         __glibc_reserved1.
9569         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
9570         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9571         __glibc_reserved1.
9572         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
9573         macro.
9574         (ucontext_t): Use __ctx with uc_flags.
9575         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
9576         (ucontext_t): Use __ctx with uc_flags.
9577         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
9578         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
9579         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
9580         (ucontext_t): Use __ctx with uc_flags.
9581         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
9582         undefine further down.
9583         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9584         __glibc_reserved1.
9585         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
9586         undefine further down.
9587         (ucontext_t): Use __ctx with uc_flags.
9588         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
9589         undefine further down.
9590         (ucontext_t): Use __ctx with uc_flags.
9591         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
9592         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
9593         Rename uc_pad to __glibc_reserved1.
9594         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
9595         undefine further down.
9596         (ucontext_t): Use __ctx with uc_flags.
9597         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
9598         further down.
9599         (ucontext_t): Use __ctx with uc_flags.
9600         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
9601         __ctx with uc_flags.
9602         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
9603         (ucontext_t): Use __ctx with uc_flags.
9604         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
9605         __ctx with uc_flags.
9607 2017-08-09  Florian Weimer  <fweimer@redhat.com>
9609         [BZ #21932]
9610         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
9611         before early return.
9613 2017-08-09  Andreas Schwab  <schwab@suse.de>
9615         [BZ #21041]
9616         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
9617         renamed alias.
9619         [BZ #21041]
9620         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
9621         tst-compat-forwarder.
9622         (modules-names): Add tst-compat-forwarder-mod.
9623         ($(objpfx)tst-compat-forwarder): Depend on
9624         $(objpfx)tst-compat-forwarder-mod.so.
9625         * nptl/tst-compat-forwarder.c: New file.
9626         * nptl/tst-compat-forwarder-mod.c: New file.
9628 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9630         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
9631         comments.
9633         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
9634         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9635         memcpy_falkor.
9636         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
9637         Bump.
9638         (__libc_ifunc_impl_list): Add __memcpy_falkor.
9639         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
9640         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
9641         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
9642         Add falkor.
9643         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
9644         New macro.
9646 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9648         [BZ #759]
9649         * manual/setjmp.texi (getcontex): Document uc_stack value
9650         compatibility differences.
9652 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
9654         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
9655         (old_malloc_hook): Likewise.
9656         (old_memalign_hook): Likewise.
9657         (old_realloc_hook): Likewise.
9658         (struct hdr): Likewise.
9659         (flood): Likewise.
9660         (freehook): Likewise.
9661         (mallochook): Likewise.
9662         (memalignhook): Likewise.
9663         (reallochook): Likewise.
9664         (mprobe): Likewise.
9665         * malloc/mtrace.c (mallwatch): Likewise.
9666         (tr_old_free_hook): Likewise.
9667         (tr_old_malloc_hook): Likewise.
9668         (tr_old_realloc_hook): Likewise.
9669         (tr_old_memalign_hook): Likewise.
9670         (tr_where): Likewise.
9671         (lock_and_info): Likewise.
9672         (tr_freehook): Likewise.
9673         (tr_mallochook): Likewise.
9674         (tr_reallochook): Likewise.
9675         (tr_memalignhook): Likewise.
9676         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
9677         * misc/mmap.c (__mmap): Likewise.
9678         * misc/mmap64.c (__mmap64): Likewise.
9679         * misc/mprotect.c (__mprotect): Likewise.
9680         * misc/msync.c (msync): Likewise.
9681         * misc/munmap.c (__munmap): Likewise.
9682         * posix/posix_madvise.c (posix_madvise): Likewise.
9683         * socket/send.c (__send): Likewise.
9684         * socket/sendto.c (__sendto): Likewise.
9685         * socket/setsockopt.c (__setsockopt): Likewise.
9686         * string/memcmp.c (__ptr_t): Remove macro.
9687         (MEMCMP): Use void * instead of ptr_t.
9688         * string/memrchr.c (__ptr_t): Remove macro.
9689         (__memrchr): Use void * instead of ptr_t.
9690         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
9691         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9692         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9693         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
9694         * sysdeps/mach/msync.c (msync): Likewise.
9695         * sysdeps/mach/munmap.c (__munmap): Likewise.
9696         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
9697         Likewise.
9698         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9699         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
9700         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
9701         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
9702         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
9703         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
9704         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
9705         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
9706         Likewise.
9707         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
9708         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
9709         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
9710         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
9711         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
9712         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
9713         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
9714         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
9715         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
9716         Likewise.
9717         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
9718         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
9719         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
9720         (MEMCMP): Use void * instead of ptr_t.
9721         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
9722         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
9724 2017-08-08  Florian Weimer  <fweimer@redhat.com>
9726         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
9727         return statement.
9729 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
9731         [BZ #21913]
9732         * csu/libc-tls.c: Include <startup.h> first.
9733         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
9734         * elf/dl-tunables.c: Include <startup.h> first.
9735         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
9736         * sysdeps/generic/startup.h: New file.
9737         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
9738         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
9739         (I386_USE_SYSENTER): New.  Defined to 0.
9741 2017-08-08  Andreas Schwab  <schwab@suse.de>
9743         [BZ #21041]
9744         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
9745         * nptl/pt-system.c (system): Likewise.
9747 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9749         [BZ #21780]
9750         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
9751         EOPNOTSUPP.
9752         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9753         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9754         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
9755         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9756         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9757         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9758         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9760 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
9762         [BZ #21899]
9763         * bits/sigaction.h (struct sigaction): Define sa_handler and
9764         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
9765         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9766         [__USE_XOPEN_EXTENDED].
9767         (SA_RESTART): Likewise.
9768         (SA_NODEFER): Likewise.
9769         (SA_RESETHAND): Likewise.
9770         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
9771         (struct sigaction): Define sa_handler and sa_sigaction using union
9772         also for [__USE_XOPEN_EXTENDED].
9773         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9774         [__USE_XOPEN_EXTENDED].
9775         (SA_RESTART): Likewise.
9776         (SA_NODEFER): Likewise.
9777         (SA_RESETHAND): Likewise.
9778         * sysdeps/unix/sysv/linux/bits/sigaction.h
9779         (struct sigaction): Define sa_handler and sa_sigaction using union
9780         also for [__USE_XOPEN_EXTENDED].
9781         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9782         [__USE_XOPEN_EXTENDED].
9783         (SA_RESTART): Likewise.
9784         (SA_NODEFER): Likewise.
9785         (SA_RESETHAND): Likewise.
9786         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
9787         (struct sigaction): Define sa_handler and sa_sigaction using union
9788         also for [__USE_XOPEN_EXTENDED].
9789         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9790         [__USE_XOPEN_EXTENDED].
9791         (SA_RESTART): Likewise.
9792         (SA_NODEFER): Likewise.
9793         (SA_RESETHAND): Likewise.
9794         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
9795         (struct sigaction): Define sa_handler and sa_sigaction using union
9796         also for [__USE_XOPEN_EXTENDED].
9797         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9798         [__USE_XOPEN_EXTENDED].
9799         (SA_RESTART): Likewise.
9800         (SA_NODEFER): Likewise.
9801         (SA_RESETHAND): Likewise.
9802         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
9803         (struct sigaction): Define sa_handler and sa_sigaction using union
9804         also for [__USE_XOPEN_EXTENDED].
9805         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9806         [__USE_XOPEN_EXTENDED].
9807         (SA_RESTART): Likewise.
9808         (SA_NODEFER): Likewise.
9809         (SA_RESETHAND): Likewise.
9810         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
9811         (struct sigaction): Define sa_handler and sa_sigaction using union
9812         also for [__USE_XOPEN_EXTENDED].
9813         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9814         [__USE_XOPEN_EXTENDED].
9815         (SA_RESTART): Likewise.
9816         (SA_NODEFER): Likewise.
9817         (SA_RESETHAND): Likewise.
9818         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
9819         (struct sigaction): Define sa_handler and sa_sigaction using union
9820         also for [__USE_XOPEN_EXTENDED].
9821         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9822         [__USE_XOPEN_EXTENDED].
9823         (SA_RESTART): Likewise.
9824         (SA_NODEFER): Likewise.  Define directly rather than as alias.
9825         (SA_RESETHAND): Likewise.
9826         (SA_INTERRUPT): Define only for [__USE_MISC].
9827         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
9828         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
9829         [__USE_MISC].
9830         (SA_STACK): Define only for [__USE_MISC].
9831         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
9832         (struct sigaction): Define sa_handler and sa_sigaction using union
9833         also for [__USE_XOPEN_EXTENDED].
9834         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9835         [__USE_XOPEN_EXTENDED].
9836         (SA_RESTART): Likewise.
9837         (SA_NODEFER): Likewise.
9838         (SA_RESETHAND): Likewise.
9839         (SA_NOPTRACE): Define only for [__USE_MISC].
9841         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
9842         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
9843         (struct catalog_info): Likewise.
9844         * inet/htontest.c (lo): Likewise.
9845         (foo): Likewise.
9846         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9847         * inet/inet_net.c (inet_network): Likewise.
9848         * inet/inet_netof.c (inet_netof): Likewise.
9849         * inet/rcmd.c (__ivaliduser): Likewise.
9850         (iruserok): Likewise.
9851         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
9852         * locale/programs/locale-spec.c (locale_special): Likewise.
9853         * nis/nis_findserv.c (struct findserv_req): Likewise.
9854         (__nis_findfastest_with_timeout): Likewise.
9855         * nss/test-netdb.c (test_network): Likewise.
9856         * resolv/inet_neta.c (inet_neta): Likewise.
9857         * resolv/ns_date.c (ns_datetosecs): Likewise.
9858         (SECS_PER_DAY): Likewise.
9859         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
9860         Likewise.
9861         * resolv/res_comp.c (__putlong): Likewise.
9862         (__putshort): Likewise.
9863         (_getlong): Likewise.
9864         (_getshort): Likewise.
9865         * resolv/res_debug.c (p_time): Likewise.
9866         (precsize_ntoa): Likewise.
9867         (precsize_aton): Likewise.
9868         (latlon2ul): Likewise.
9869         (loc_aton): Likewise.
9870         (loc_ntoa): Likewise.
9871         * resolv/res_hconf.c (struct netaddr): Likewise.
9872         (_res_hconf_reorder_addrs): Likewise.
9873         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
9874         (clnttcp_control): Likewise.
9875         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9876         (clntudp_control): Likewise.
9877         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
9878         (clntunix_control): Likewise.
9879         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
9880         * sunrpc/rpc/auth.h (union des_block): Likewise.
9881         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
9882         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
9883         (xdrrec_create): Likewise.
9884         (xdrrec_endofrecord): Likewise.
9885         (flush_out): Likewise.
9886         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
9887         (xdrstdio_putlong): Likewise.
9888         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
9889         Likewise.
9891         * misc/sys/cdefs.h (__long_double_t): Remove.
9892         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
9893         instead of __long_double_t,
9894         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
9896 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9898         * benchtests/scripts/compare_strings.py: Avoid display error when
9899         running on a text terminal.
9901         * benchtests/scripts/compare_strings.py (main): Add an
9902         optional -base option.
9903         (process_results): New argument base_func.
9905         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
9906         hardcoding memcpy.
9907         * benchtests/bench-memcpy-large.c (test_name): Likewise.
9908         * benchtests/bench-memcpy-random.c (test_name): Likewise.
9910 2017-08-07  Andreas Schwab  <schwab@suse.de>
9912         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
9913         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
9914         * intl/Makefile ($(objpfx)tst-gettext.out)
9915         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
9916         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
9917         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
9918         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
9919         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
9920         * posix/Makefile ($(objpfx)globtest.out)
9921         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
9922         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
9923         ($(objpfx)tst-printf.out): Likewise.
9924         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
9925         ($(objpfx)tst-setcontext3.out): Likewise.
9927 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
9929         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9930         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
9931         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
9932         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
9933         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
9934         and mptan-fma.
9935         (CFLAGS-doasin-fma.c): New.
9936         (CFLAGS-dosincos-fma.c): Likewise.
9937         (CFLAGS-e_asin-fma.c): Likewise.
9938         (CFLAGS-e_atan2-fma.c): Likewise.
9939         (CFLAGS-e_exp-fma.c): Likewise.
9940         (CFLAGS-e_log-fma.c): Likewise.
9941         (CFLAGS-e_pow-fma.c): Likewise.
9942         (CFLAGS-halfulp-fma.c): Likewise.
9943         (CFLAGS-mpa-fma.c): Likewise.
9944         (CFLAGS-mpatan-fma.c): Likewise.
9945         (CFLAGS-mpatan2-fma.c): Likewise.
9946         (CFLAGS-mpexp-fma.c): Likewise.
9947         (CFLAGS-mplog-fma.c): Likewise.
9948         (CFLAGS-mpsqrt-fma.c): Likewise.
9949         (CFLAGS-mptan-fma.c): Likewise.
9950         (CFLAGS-s_atan-fma.c): Likewise.
9951         (CFLAGS-sincos32-fma.c): Likewise.
9952         (CFLAGS-slowexp-fma.c): Likewise.
9953         (CFLAGS-slowpow-fma.c): Likewise.
9954         (CFLAGS-s_sin-fma.c): Likewise.
9955         (CFLAGS-s_tan-fma.c): Likewise.
9956         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
9957         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
9958         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
9959         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
9960         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
9961         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
9962         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
9963         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
9964         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
9965         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
9966         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
9967         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
9968         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
9969         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
9970         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
9971         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
9972         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
9973         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
9974         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
9975         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
9976         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
9977         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
9978         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
9979         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
9980         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9981         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9982         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9983         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
9984         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9985         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9986         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9988 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
9990         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
9991         (min_of_type_f): New macro.
9992         (min_of_type_): Likewise.
9993         (min_of_type_l): Likewise.
9994         (min_of_type_f128): Likewise.
9995         (min_of_type): Define using __MATH_TG and taking an expression
9996         argument.
9997         (math_check_force_underflow): Pass expression instead of type to
9998         min_of_type.
9999         (math_check_force_underflow_nonneg): Likewise.
10001 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10003         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
10004         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
10005         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
10007 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10009         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10010         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
10011         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
10012         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
10013         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
10014         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
10015         memcpy_chk-nonshared, mempcpy_chk-nonshared,
10016         memmove_chk-nonshared and memset_chk-nonshared
10017         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
10018         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
10019         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
10020         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
10021         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
10022         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
10023         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
10024         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
10025         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
10026         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
10027         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
10028         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
10029         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
10030         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
10031         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
10032         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
10033         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
10034         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
10035         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
10036         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
10037         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
10038         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
10039         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
10040         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
10041         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
10042         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
10043         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
10044         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
10045         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
10046         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
10047         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
10048         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
10049         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
10050         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10051         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10052         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
10053         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
10054         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
10055         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
10056         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
10057         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
10058         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
10059         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
10060         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
10061         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
10062         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
10063         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
10064         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
10065         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
10066         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
10067         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
10068         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
10069         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
10070         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
10071         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
10072         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
10073         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
10074         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
10075         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
10076         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
10077         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
10078         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
10079         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
10080         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
10081         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
10082         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
10083         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
10084         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
10085         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
10086         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
10087         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
10088         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10089         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10090         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10091         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10092         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10093         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10094         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10095         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10096         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10097         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10098         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10099         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10100         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10101         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
10102         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
10103         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10104         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
10105         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10106         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10107         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10108         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10109         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10110         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10111         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
10112         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
10113         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
10114         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
10115         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10116         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
10117         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10118         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10119         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10120         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10121         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10122         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10123         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10124         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10126 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10128         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
10129         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
10130         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
10131         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
10132         svml_d_log2_core-sse2, svml_d_log4_core-sse,
10133         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
10134         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
10135         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
10136         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
10137         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
10138         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
10139         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
10140         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
10141         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
10142         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
10143         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
10144         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
10145         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
10146         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
10147         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
10148         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
10149         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
10150         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
10151         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
10152         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
10153         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
10154         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
10155         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
10156         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
10157         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
10158         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
10159         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
10160         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
10161         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
10162         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
10163         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
10164         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
10165         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10166         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10167         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10168         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10169         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10170         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10171         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10172         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10173         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10174         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10175         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10176         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10177         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10178         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10179         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10180         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10181         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10182         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10183         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10184         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10185         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10186         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10187         ...
10188         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10189         Don't include <sysdep.h> nor <init-arch.h>.
10190         (_ZGVbN2v_cos): Removed.
10191         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10192         ...
10193         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10194         Don't include <sysdep.h> nor <init-arch.h>.
10195         (_ZGVdN4v_cos): Removed.
10196         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10197         ...
10198         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10199         Don't include <sysdep.h> nor <init-arch.h>.
10200         (_ZGVeN8v_cos): Removed.
10201         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10202         ...
10203         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10204         Don't include <sysdep.h> nor <init-arch.h>.
10205         (_ZGVbN2v_exp): Removed.
10206         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10207         ...
10208         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10209         Don't include <sysdep.h> nor <init-arch.h>.
10210         (_ZGVdN4v_exp): Removed.
10211         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10212         ...
10213         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10214         Don't include <sysdep.h> nor <init-arch.h>.
10215         (_ZGVeN8v_exp): Removed.
10216         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10217         ...
10218         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10219         Don't include <sysdep.h> nor <init-arch.h>.
10220         (_ZGVbN2v_log): Removed.
10221         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10222         ...
10223         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10224         Don't include <sysdep.h> nor <init-arch.h>.
10225         (_ZGVdN4v_log): Removed.
10226         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10227         ...
10228         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10229         Don't include <sysdep.h> nor <init-arch.h>.
10230         (_ZGVeN8v_log): Removed.
10231         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10232         ...
10233         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10234         Don't include <sysdep.h> nor <init-arch.h>.
10235         (_ZGVbN2vv_pow): Removed.
10236         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10237         ...
10238         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10239         Don't include <sysdep.h> nor <init-arch.h>.
10240         (_ZGVdN4vv_pow): Removed.
10241         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10242         ...
10243         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10244         Don't include <sysdep.h> nor <init-arch.h>.
10245         (_ZGVeN8vv_pow): Removed.
10246         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10247         ...
10248         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10249         Don't include <sysdep.h> nor <init-arch.h>.
10250         (_ZGVbN2v_sin): Removed.
10251         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10252         ...
10253         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10254         Don't include <sysdep.h> nor <init-arch.h>.
10255         (_ZGVbN4v_sin): Removed.
10256         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10257         ...
10258         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10259         Don't include <sysdep.h> nor <init-arch.h>.
10260         (_ZGVbN8v_sin): Removed.
10261         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10262         ...
10263         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10264         Don't include <sysdep.h> nor <init-arch.h>.
10265         (_ZGVbN2vvv_sincos): Removed.
10266         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10267         ...
10268         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10269         Don't include <sysdep.h> nor <init-arch.h>.
10270         (_ZGVdN4vvv_sincos): Removed.
10271         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10272         ...
10273         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10274         Don't include <sysdep.h> nor <init-arch.h>.
10275         (_ZGVeN8vvv_sincos): Removed.
10276         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10277         ...
10278         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10279         Don't include <sysdep.h> nor <init-arch.h>.
10280         (_ZGVeN16v_cosf): Removed.
10281         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10282         ...
10283         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
10284         Don't include <sysdep.h> nor <init-arch.h>.
10285         (_ZGVbN4v_cosf): Removed.
10286         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
10287         ...
10288         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
10289         Don't include <sysdep.h> nor <init-arch.h>.
10290         (_ZGVdN8v_cosf): Removed.
10291         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
10292         ...
10293         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
10294         Don't include <sysdep.h> nor <init-arch.h>.
10295         (_ZGVeN16v_expf): Removed.
10296         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
10297         ...
10298         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
10299         Don't include <sysdep.h> nor <init-arch.h>.
10300         (_ZGVbN4v_expf): Removed.
10301         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
10302         ...
10303         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
10304         Don't include <sysdep.h> nor <init-arch.h>.
10305         (_ZGVdN8v_expf): Removed.
10306         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
10307         ...
10308         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
10309         Don't include <sysdep.h> nor <init-arch.h>.
10310         (_ZGVeN16v_logf): Removed.
10311         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
10312         ...
10313         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
10314         Don't include <sysdep.h> nor <init-arch.h>.
10315         (_ZGVbN4v_logf): Removed.
10316         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
10317         ...
10318         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
10319         Don't include <sysdep.h> nor <init-arch.h>.
10320         (_ZGVdN8v_logf): Removed.
10321         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
10322         ...
10323         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
10324         Don't include <sysdep.h> nor <init-arch.h>.
10325         (_ZGVeN16vv_powf): Removed.
10326         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
10327         ...
10328         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
10329         Don't include <sysdep.h> nor <init-arch.h>.
10330         (_ZGVbN4vv_powf): Removed.
10331         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
10332         ...
10333         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
10334         Don't include <sysdep.h> nor <init-arch.h>.
10335         (_ZGVdN8vv_powf): Removed.
10336         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
10337         ...
10338         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
10339         Don't include <sysdep.h> nor <init-arch.h>.
10340         (_ZGVeN16vvv_sincosf): Removed.
10341         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
10342         ...
10343         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
10344         Don't include <sysdep.h> nor <init-arch.h>.
10345         (_ZGVbN4vvv_sincosf): Removed.
10346         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
10347         ...
10348         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
10349         Don't include <sysdep.h> nor <init-arch.h>.
10350         (_ZGVdN8vvv_sincosf): Removed.
10351         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
10352         ...
10353         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
10354         Don't include <sysdep.h> nor <init-arch.h>.
10355         (_ZGVeN16v_sinf): Removed.
10356         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
10357         ...
10358         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
10359         Don't include <sysdep.h> nor <init-arch.h>.
10360         (_ZGVbN4v_sinf): Removed.
10361         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
10362         ...
10363         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
10364         Don't include <sysdep.h> nor <init-arch.h>.
10365         (_ZGVdN8v_sinf): Removed.
10367 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10369         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10370         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
10371         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
10372         s_rint-sse4_1 and s_rintf-sse4_1.
10373         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
10374         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10375         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10376         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10377         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10378         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
10379         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
10380         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10381         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10382         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
10383         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
10384         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10385         (__ceil): Removed.
10386         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
10387         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
10388         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10389         (__ceilf): Removed.
10390         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
10391         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
10392         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10393         (__floor): Removed.
10394         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
10395         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
10396         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10397         (__floorf): Removed.
10398         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
10399         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
10400         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10401         (__nearbyint): Removed.
10402         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
10403         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
10404         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10405         (__nearbyintf): Removed.
10406         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
10407         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
10408         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10409         (__rint): Removed.
10410         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
10411         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
10412         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10413         (__rintf): Removed.
10415 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10417         * sysdeps/i386/start.S (_start): Check Check PIC instead of
10418         SHARED.  Avoid dynamic relocation against main in static PIE.
10420 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10422         [BZ #21815]
10423         * elf/Makefile (CFLAGS-tst-prelink.c): New.
10424         (LDFLAGS-tst-prelink): Likewise.
10426 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10428         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10429         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
10430         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
10431         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10432         (INTERNAL_SYSCALL_NCS): Likewise.
10433         (LOADARGS_1): Likewise.
10434         (LOADARGS_5): Likewise.
10435         (RESTOREARGS_1): Likewise.
10436         (RESTOREARGS_5): Likewise.
10438 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10440         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
10441         (MEMPCPY_SYMBOL): Likewise.
10442         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10443         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
10444         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
10445         in libc.a.
10446         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10447         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
10448         Likewise.
10449         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
10450         (__hidden_ver1): Don't use in libc.a.
10451         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
10452         (__mempcpy): Don't create a weak alias in libc.a.
10453         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
10454         libc.a.
10455         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
10456         (__hidden_ver1): Don't use in libc.a.
10458 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10460         * config.make.in (have-insert): New.
10461         * configure.ac (libc_cv_insert): New.  Set to yes if linker
10462         supports INSERT in linker script.
10463         (AC_SUBST(libc_cv_insert): New.
10464         * configure: Regenerated.
10465         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
10466         if $(have-insert) == yes.
10468 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10470         * elf/Makefile (tests): Add vismain only if
10471         $(have-protected-data) == yes.
10472         (tests-pie): Likewise.
10474 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10476         [BZ #21871]
10477         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10478         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
10480 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10482         [BZ #21790]
10483         * sysdeps/i386/i586/memset.S
10484         (__memset_zero_constant_len_parameter): Removed.
10485         * sysdeps/i386/i686/memset.S
10486         (__memset_zero_constant_len_parameter): Likewise.
10487         * sysdeps/i386/i686/multiarch/memset_chk.S
10488         (__memset_zero_constant_len_parameter): Likewise.
10489         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
10490         Likewise.
10492 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10494         * stdlib/getentropy.c (getentropy): Change return type to int.
10496 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10498         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
10500 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
10502         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
10503         u_intN_t.
10504         * math/s_nexttowardf.c (__nexttowardf): Likewise.
10505         * sysdeps/generic/math_private.h (ieee_double_shape_type):
10506         Likewise.
10507         (ieee_float_shape_type): Likewise.
10508         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
10509         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
10510         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
10511         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10512         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10513         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
10514         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
10515         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
10516         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10517         Likewise.
10518         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10519         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10520         (__ieee754_yn): Likewise.
10521         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
10522         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
10523         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
10524         Likewise.
10525         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10526         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
10527         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
10528         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
10529         (__erfc): Likewise.
10530         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10531         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
10532         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
10533         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
10534         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
10535         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
10536         Likewise.
10537         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10538         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
10539         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10540         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
10541         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
10542         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
10543         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
10544         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
10545         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
10546         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10547         (__issignaling): Likewise.
10548         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
10549         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
10550         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10551         Likewise.
10552         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
10553         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
10554         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10555         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
10556         Likewise.
10557         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
10558         Likewise.
10559         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
10560         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
10561         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
10562         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10563         (__erfcf): Likewise.
10564         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10565         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
10566         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
10567         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
10568         Likewise.
10569         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
10570         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
10571         Likewise.
10572         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10573         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
10574         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10575         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
10576         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
10577         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
10578         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
10579         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
10580         Likewise.
10581         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
10582         Likewise.
10583         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10584         Likewise.
10585         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
10586         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10587         Likewise.
10588         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10589         Likewise.
10590         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10591         (__ieee754_ynl): Likewise.
10592         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10593         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
10594         Likewise.
10595         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
10596         Likewise.
10597         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10598         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
10599         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10600         Likewise.
10601         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10602         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
10603         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
10604         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
10605         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
10606         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
10607         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
10608         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
10609         Likewise.
10610         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
10611         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
10612         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
10613         Likewise.
10614         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10615         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
10616         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10617         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10618         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
10619         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
10620         Likewise.
10621         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
10622         Likewise.
10623         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10624         Likewise.
10625         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10626         Likewise.
10627         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
10628         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
10629         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10630         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
10631         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10632         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
10633         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
10634         Likewise.
10635         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10636         Likewise.
10637         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10638         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
10639         Likewise.
10640         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10641         (__ieee754_remainderl): Likewise.
10642         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10643         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10644         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
10645         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
10646         Likewise.
10647         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
10648         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10649         Likewise.
10650         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
10651         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
10652         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10653         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10654         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
10655         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10656         Likewise.
10657         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10658         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10659         (__ieee754_y0l): Likewise.
10660         (pzero): Likewise.
10661         (qzero): Likewise.
10662         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10663         (__ieee754_y1l): Likewise.
10664         (pone): Likewise.
10665         (qone): Likewise.
10666         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10667         (__ieee754_ynl): Likewise.
10668         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10669         (__ieee754_lgammal_r): Likewise.
10670         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
10671         Likewise.
10672         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10673         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
10674         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10675         (__erfcl): Likewise.
10676         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
10677         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
10678         Likewise.
10679         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10680         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
10681         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10682         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
10683         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
10684         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10685         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10686         Likewise.
10687         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
10688         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
10689         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
10690         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
10691         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10692         Likewise.
10693         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
10694         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
10695         Likewise.
10696         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
10697         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
10698         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
10699         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
10700         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10702 2017-08-03  Florian Weimer  <fweimer@redhat.com>
10704         [BZ #21885]
10705         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
10706         on memory allocation failure.
10708 2017-08-03  Alan Modra  <amodra@gmail.com>
10710         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
10711         tst-tlsopt-powerpc.c with function name change and no test harness.
10712         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
10713         Call tls_get_addr_opt_test.
10714         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
10715         (modules-names): Add mod-tlsopt-powerpc.
10716         (mod-tlsopt-powerpc.so-no-z-defs): Define.
10717         (tst-tlsopt-powerpc): Depend on .so.
10718         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
10719         define.  Expand use in TLS_GD and TLS_LD.
10721 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10723         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
10724         function.
10725         * sysdeps/posix/shm_open.c: Include <pthread.h>.
10727 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10729         [BZ #21686]
10730         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
10731         comparing size with that of double.
10732         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10733         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10734         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10735         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10736         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10737         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
10738         unsigned __int128 types.
10740 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
10742         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
10743         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
10744         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
10745         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
10746         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
10748 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10750         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
10752 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10754         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
10755         of SHARED.
10756         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
10757         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10758         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10759         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10760         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10761         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10762         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10764 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10766         [BZ #21685]
10767         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
10768         bit-field expressions passed to sizeof or typeof.
10769         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10770         (__TGMATH_F128): Likewise.
10771         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10772         (__TGMATH_CF128): Likewise.
10773         (__TGMATH_UNARY_REAL_ONLY): Likewise.
10774         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
10775         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
10776         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
10777         (__TGMATH_BINARY_REAL_ONLY): Likewise.
10778         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10779         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10780         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10781         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10782         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
10783         (__TGMATH_UNARY_REAL_IMAG): Likewise.
10784         (__TGMATH_UNARY_IMAG): Likewise.
10785         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10786         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10787         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
10788         type.
10789         (define_vars_for_type): Handle bit_field type specially.
10790         (Tests.__init__): Declare structure with bit-field element.
10792 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10794         [BZ #21791]
10795         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
10796         (MEMCPY_CHK): Define only if SHARED is defined.
10797         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
10798         Likewise.
10799         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
10800         Likewise.
10802 See ChangeLog.18 for earlier changes.