support_become_root: Don't fail when /proc/<pid/setgroups is missing
[glibc.git] / ChangeLog
blob5e3d174a5e9a79cf5f76abab674414149a119a32
1 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
3         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
4         when /proc/<pid>/setgroups does not exist.
6 2017-11-18  Florian Weimer  <fweimer@redhat.com>
8         * sysdeps/unix/sysv/linux/tst-ttyname.c
9         (become_root_in_mount_ns): Remove.
10         (do_in_chroot_1): Call support_enter_mount_namespace.
11         (do_in_chroot_2): Likewise.
12         (do_test): Call support_become_root early.
14 2017-11-18  Florian Weimer  <fweimer@redhat.com>
16         * support/namespace.h (support_enter_mount_namespace): Declare.
17         * support/support_enter_mount_namespace.c: New file.
18         * support/Makefile (libsupport-routines): Add
19         support_enter_mount_namespace.
21 2017-11-18  Florian Weimer  <fweimer@redhat.com>
23         * support/temp_file.c (support_create_temp_directory): Use
24         test_dir and do not rely on the presence of the XXXXXX suffix.
25         * support/temp_file.h (support_create_temp_directory): Update
26         comment.
27         * support/tst-xreadlink.c (do_test): Adjust.
28         * support/support_chroot.c (support_chroot_create): Likewise.
30 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
32         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
33         macro.
34         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
35         htm-no-suspend.
37 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
39         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
40         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
41         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
42         (ceill): Define using libm_alias_ldouble.
43         * sysdeps/x86_64/fpu/s_copysignl.S: Include
44         <libm-alias-ldouble.h>.
45         (copysignl): Define using libm_alias_ldouble.
46         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
47         (fabsl): Define using libm_alias_ldouble.
48         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
49         (floorl): Define using libm_alias_ldouble.
50         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
51         (fmaxl): Define using libm_alias_ldouble.
52         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
53         (fminl): Define using libm_alias_ldouble.
54         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
55         (llrintl): Define using libm_alias_ldouble.
56         (lrintl): Likewise.
57         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
58         <libm-alias-ldouble.h>.
59         (nearbyintl): Define using libm_alias_ldouble.
60         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
61         (truncl): Define using libm_alias_ldouble.
62         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
63         <libm-alias-ldouble.h>.
64         (lrintl): Define using libm_alias_ldouble.
66         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
67         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
68         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
69         (asinhl): Define using libm_alias_ldouble.
70         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
71         (atanl): Define using libm_alias_ldouble.
72         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
73         (cbrtl): Define using libm_alias_ldouble.
74         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
75         (ceill): Define using libm_alias_ldouble.
76         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
77         (copysignl): Define using libm_alias_ldouble.
78         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
79         (fabsl): Define using libm_alias_ldouble.
80         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
81         (floorl): Define using libm_alias_ldouble.
82         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
83         (fmaxl): Define using libm_alias_ldouble.
84         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
85         (fminl): Define using libm_alias_ldouble.
86         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
87         (frexpl): Define using libm_alias_ldouble.
88         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
89         (llrintl): Define using libm_alias_ldouble.
90         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
91         (logbl): Define using libm_alias_ldouble.
92         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
93         (lrintl): Define using libm_alias_ldouble.
94         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
95         (nearbyintl): Define using libm_alias_ldouble.
96         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
97         (nextafterl): Define using libm_alias_ldouble.
98         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
99         (remquol): Define using libm_alias_ldouble.
100         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
101         (rintl): Define using libm_alias_ldouble.
102         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
103         (truncl): Define using libm_alias_ldouble.
104         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
105         (fmaxl): Define using libm_alias_ldouble.
106         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
107         (fminl): Define using libm_alias_ldouble.
109         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
110         to C syntax instead of availability and properties of types.
111         * bits/floatn.h [!__ASSEMBLER]: Likewise.
112         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
113         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
114         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
115         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
116         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
118 2017-11-17  Florian Weimer  <fweimer@redhat.com>
120         support_become_root: Enable file creation in namespaces.
121         * support/support_become_root.c (setup_mapping): New function.
122         (support_become_root): Call it.
124 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
126         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
127         macro.
129 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
131         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
132         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
134 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
136         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
138         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
139         version to 4.14.
141 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
143         * INSTALL: Fix botched up regeneration.
145         * NEWS: Update sourceare link to https.
146         * configure.ac: Likewise.
147         * crypt/md5test-giant.c: Likewise.
148         * dlfcn/bug-atexit1.c: Likewise.
149         * dlfcn/bug-atexit2.c: Likewise.
150         * localedata/README: Likewise.
151         * malloc/tst-mallocfork.c: Likewise.
152         * manual/install.texi: Likewise.
153         * nptl/tst-pthread-getattr.c: Likewise.
154         * stdio-common/tst-fgets.c: Likewise.
155         * stdio-common/tst-fwrite.c: Likewise.
156         * sunrpc/Makefile: Likewise.
157         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
158         * wcsmbs/tst-mbrtowc2.c: Likewise.
159         * configure: Regenerate.
160         * INSTALL: Regenerate.
162 2017-11-15  Martin Sebor  <msebor@redhat.com>
164         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
165         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
166         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
168 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
170         [BZ #22145]
171         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
172         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
174         [BZ #22145]
175         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
176         Defer is_pty check until end of the function.
177         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
179         [BZ #22145]
180         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
181         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
182         (ttyname): Likewise.
183         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
184         (__ttyname_r): Likewise.
186         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
187         int to bool.
189         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
191         * manual/terminal.texi (Is It a Terminal):
192         Mention ENODEV for ttyname and ttyname_r.
194 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
196         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
197         constant and macro.
199         * sysdeps/unix/sysv/linux/bits/mman-linux.h
200         [__USE_MISC] (MADV_WIPEONFORK): New macro.
201         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
202         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
203         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
204         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
206 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
208         * signal/sigrelse.c (sigrelse): Optimize implementation.
210         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
211         (__sigpause): Rely on __sigsuspend to implement single thread
212         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
214 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
216         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
217         kernel version to 4.14.
219 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
221         [BZ #22442]
222         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
223         Check if ifname is too long.
225 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
227         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
229 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
231         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
232         was accidentally lost.
234 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
236         * localedata/locales/az_IR: Add standard copyright header.
238 2017-11-15  Florian Weimer  <fweimer@redhat.com>
240         [BZ #22439]
241         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
242         not just the top one.  Output a new "subheaps" statistic.
244 2017-11-15  Florian Weimer  <fweimer@redhat.com>
246         [BZ #22408]
247         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
248         under the per-arena lock.
249         * malloc/Makefile (tests): Add tst-malloc_info.
250         (tst-malloc_info): Link with libpthread.
251         * malloc/tst-malloc_info.c: New file.
253 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
255         [BZ #21660]
256         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
257         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
258         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
259         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
260         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
261         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
262         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
263         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
264         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
265         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
266         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
267         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
268         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
269         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
270         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
271         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
272         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
273         (__floating_type): Likewise.
274         (__real_integer_type): Likewise.
275         (__complex_integer_type): Likewise.
276         (__expr_is_real): Likewise.
277         (__tgmath_real_type_sub): Likewise.
278         (__tgmath_real_type): Likewise.
279         (__tgmath_complex_type_sub): Likewise.
280         (__tgmath_complex_type): Likewise.
281         (__TGMATH_F128): Likewise.
282         (__TGMATH_CF128): Likewise.
283         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
284         new macros.
285         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
286         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
287         Likewise.
288         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
289         Likewise.
290         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
291         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
292         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
293         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
294         Likewise.
295         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
296         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
297         Likewise.
298         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
299         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
300         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
301         Likewise.
302         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
303         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
304         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
305         (cimag): Likewise.
306         (creal): Likewise.
308 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
310         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
311         for stpncpy calls for GCC 8.
312         (test_strncat): Disable -Wstringop-truncation warning for strncat
313         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
314         strncat call for GCC 7.
315         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
316         calls for GCC 8.
317         (test_memcmp): Use memcpy instead of strncpy for calls not copying
318         trailing NUL.
320         * string/bug-strncat1.c: Include <libc-diag.h>.
321         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
323 2017-11-13  Claude Paroz <claude@2xlibre.net>
325         [BZ #22387]
326         * localedata/locales/aa_DJ: Improved readibility by replacing
327         <Uxxxx> sequences in the ASCII printable range by their ASCII
328         character equivalents.
329         * localedata/locales/aa_ER: Likewise.
330         * localedata/locales/aa_ER@saaho: Likewise.
331         * localedata/locales/aa_ET: Likewise.
332         * localedata/locales/af_ZA: Likewise.
333         * localedata/locales/agr_PE: Likewise.
334         * localedata/locales/ak_GH: Likewise.
335         * localedata/locales/am_ET: Likewise.
336         * localedata/locales/anp_IN: Likewise.
337         * localedata/locales/ar_AE: Likewise.
338         * localedata/locales/ar_BH: Likewise.
339         * localedata/locales/ar_DZ: Likewise.
340         * localedata/locales/ar_EG: Likewise.
341         * localedata/locales/ar_IN: Likewise.
342         * localedata/locales/ar_IQ: Likewise.
343         * localedata/locales/ar_JO: Likewise.
344         * localedata/locales/ar_KW: Likewise.
345         * localedata/locales/ar_LB: Likewise.
346         * localedata/locales/ar_LY: Likewise.
347         * localedata/locales/ar_MA: Likewise.
348         * localedata/locales/ar_OM: Likewise.
349         * localedata/locales/ar_QA: Likewise.
350         * localedata/locales/ar_SA: Likewise.
351         * localedata/locales/ar_SD: Likewise.
352         * localedata/locales/ar_SS: Likewise.
353         * localedata/locales/ar_SY: Likewise.
354         * localedata/locales/ar_TN: Likewise.
355         * localedata/locales/ar_YE: Likewise.
356         * localedata/locales/as_IN: Likewise.
357         * localedata/locales/ast_ES: Likewise.
358         * localedata/locales/ayc_PE: Likewise.
359         * localedata/locales/az_AZ: Likewise.
360         * localedata/locales/az_IR: Likewise.
361         * localedata/locales/be_BY: Likewise.
362         * localedata/locales/be_BY@latin: Likewise.
363         * localedata/locales/bem_ZM: Likewise.
364         * localedata/locales/ber_DZ: Likewise.
365         * localedata/locales/ber_MA: Likewise.
366         * localedata/locales/bg_BG: Likewise.
367         * localedata/locales/bhb_IN: Likewise.
368         * localedata/locales/bho_IN: Likewise.
369         * localedata/locales/bi_VU: Likewise.
370         * localedata/locales/bn_BD: Likewise.
371         * localedata/locales/bn_IN: Likewise.
372         * localedata/locales/bo_CN: Likewise.
373         * localedata/locales/bo_IN: Likewise.
374         * localedata/locales/br_FR: Likewise.
375         * localedata/locales/brx_IN: Likewise.
376         * localedata/locales/bs_BA: Likewise.
377         * localedata/locales/byn_ER: Likewise.
378         * localedata/locales/ca_AD: Likewise.
379         * localedata/locales/ca_ES: Likewise.
380         * localedata/locales/ca_FR: Likewise.
381         * localedata/locales/ca_IT: Likewise.
382         * localedata/locales/ce_RU: Likewise.
383         * localedata/locales/chr_US: Likewise.
384         * localedata/locales/cmn_TW: Likewise.
385         * localedata/locales/crh_UA: Likewise.
386         * localedata/locales/cs_CZ: Likewise.
387         * localedata/locales/csb_PL: Likewise.
388         * localedata/locales/cv_RU: Likewise.
389         * localedata/locales/cy_GB: Likewise.
390         * localedata/locales/da_DK: Likewise.
391         * localedata/locales/de_AT: Likewise.
392         * localedata/locales/de_BE: Likewise.
393         * localedata/locales/de_CH: Likewise.
394         * localedata/locales/de_DE: Likewise.
395         * localedata/locales/de_IT: Likewise.
396         * localedata/locales/de_LI: Likewise.
397         * localedata/locales/de_LU: Likewise.
398         * localedata/locales/doi_IN: Likewise.
399         * localedata/locales/dv_MV: Likewise.
400         * localedata/locales/dz_BT: Likewise.
401         * localedata/locales/el_CY: Likewise.
402         * localedata/locales/el_GR: Likewise.
403         * localedata/locales/en_AG: Likewise.
404         * localedata/locales/en_AU: Likewise.
405         * localedata/locales/en_BW: Likewise.
406         * localedata/locales/en_CA: Likewise.
407         * localedata/locales/en_DK: Likewise.
408         * localedata/locales/en_GB: Likewise.
409         * localedata/locales/en_HK: Likewise.
410         * localedata/locales/en_IE: Likewise.
411         * localedata/locales/en_IL: Likewise.
412         * localedata/locales/en_IN: Likewise.
413         * localedata/locales/en_NG: Likewise.
414         * localedata/locales/en_NZ: Likewise.
415         * localedata/locales/en_PH: Likewise.
416         * localedata/locales/en_SG: Likewise.
417         * localedata/locales/en_US: Likewise.
418         * localedata/locales/en_ZA: Likewise.
419         * localedata/locales/en_ZM: Likewise.
420         * localedata/locales/en_ZW: Likewise.
421         * localedata/locales/eo: Likewise.
422         * localedata/locales/es_AR: Likewise.
423         * localedata/locales/es_BO: Likewise.
424         * localedata/locales/es_CL: Likewise.
425         * localedata/locales/es_CO: Likewise.
426         * localedata/locales/es_CR: Likewise.
427         * localedata/locales/es_CU: Likewise.
428         * localedata/locales/es_DO: Likewise.
429         * localedata/locales/es_EC: Likewise.
430         * localedata/locales/es_ES: Likewise.
431         * localedata/locales/es_GT: Likewise.
432         * localedata/locales/es_HN: Likewise.
433         * localedata/locales/es_MX: Likewise.
434         * localedata/locales/es_NI: Likewise.
435         * localedata/locales/es_PA: Likewise.
436         * localedata/locales/es_PE: Likewise.
437         * localedata/locales/es_PR: Likewise.
438         * localedata/locales/es_PY: Likewise.
439         * localedata/locales/es_SV: Likewise.
440         * localedata/locales/es_US: Likewise.
441         * localedata/locales/es_UY: Likewise.
442         * localedata/locales/es_VE: Likewise.
443         * localedata/locales/et_EE: Likewise.
444         * localedata/locales/eu_ES: Likewise.
445         * localedata/locales/eu_ES@euro: Likewise.
446         * localedata/locales/fa_IR: Likewise.
447         * localedata/locales/ff_SN: Likewise.
448         * localedata/locales/fi_FI: Likewise.
449         * localedata/locales/fil_PH: Likewise.
450         * localedata/locales/fo_FO: Likewise.
451         * localedata/locales/fr_BE: Likewise.
452         * localedata/locales/fr_CA: Likewise.
453         * localedata/locales/fr_CH: Likewise.
454         * localedata/locales/fr_FR: Likewise.
455         * localedata/locales/fr_LU: Likewise.
456         * localedata/locales/fur_IT: Likewise.
457         * localedata/locales/fy_DE: Likewise.
458         * localedata/locales/fy_NL: Likewise.
459         * localedata/locales/ga_IE: Likewise.
460         * localedata/locales/gd_GB: Likewise.
461         * localedata/locales/gez_ER: Likewise.
462         * localedata/locales/gez_ET: Likewise.
463         * localedata/locales/gl_ES: Likewise.
464         * localedata/locales/gu_IN: Likewise.
465         * localedata/locales/gv_GB: Likewise.
466         * localedata/locales/ha_NG: Likewise.
467         * localedata/locales/hak_TW: Likewise.
468         * localedata/locales/he_IL: Likewise.
469         * localedata/locales/hi_IN: Likewise.
470         * localedata/locales/hif_FJ: Likewise.
471         * localedata/locales/hne_IN: Likewise.
472         * localedata/locales/hr_HR: Likewise.
473         * localedata/locales/hsb_DE: Likewise.
474         * localedata/locales/ht_HT: Likewise.
475         * localedata/locales/hu_HU: Likewise.
476         * localedata/locales/hy_AM: Likewise.
477         * localedata/locales/i18n: Likewise.
478         * localedata/locales/ia_FR: Likewise.
479         * localedata/locales/id_ID: Likewise.
480         * localedata/locales/ig_NG: Likewise.
481         * localedata/locales/ik_CA: Likewise.
482         * localedata/locales/is_IS: Likewise.
483         * localedata/locales/it_CH: Likewise.
484         * localedata/locales/it_IT: Likewise.
485         * localedata/locales/iu_CA: Likewise.
486         * localedata/locales/ja_JP: Likewise.
487         * localedata/locales/ka_GE: Likewise.
488         * localedata/locales/kk_KZ: Likewise.
489         * localedata/locales/kl_GL: Likewise.
490         * localedata/locales/kn_IN: Likewise.
491         * localedata/locales/ko_KR: Likewise.
492         * localedata/locales/kok_IN: Likewise.
493         * localedata/locales/ks_IN: Likewise.
494         * localedata/locales/ks_IN@devanagari: Likewise.
495         * localedata/locales/ku_TR: Likewise.
496         * localedata/locales/kw_GB: Likewise.
497         * localedata/locales/ky_KG: Likewise.
498         * localedata/locales/lb_LU: Likewise.
499         * localedata/locales/lg_UG: Likewise.
500         * localedata/locales/li_BE: Likewise.
501         * localedata/locales/li_NL: Likewise.
502         * localedata/locales/lij_IT: Likewise.
503         * localedata/locales/ln_CD: Likewise.
504         * localedata/locales/lo_LA: Likewise.
505         * localedata/locales/lt_LT: Likewise.
506         * localedata/locales/lv_LV: Likewise.
507         * localedata/locales/lzh_TW: Likewise.
508         * localedata/locales/mag_IN: Likewise.
509         * localedata/locales/mai_IN: Likewise.
510         * localedata/locales/mg_MG: Likewise.
511         * localedata/locales/mhr_RU: Likewise.
512         * localedata/locales/mi_NZ: Likewise.
513         * localedata/locales/mk_MK: Likewise.
514         * localedata/locales/ml_IN: Likewise.
515         * localedata/locales/mn_MN: Likewise.
516         * localedata/locales/mni_IN: Likewise.
517         * localedata/locales/mr_IN: Likewise.
518         * localedata/locales/ms_MY: Likewise.
519         * localedata/locales/mt_MT: Likewise.
520         * localedata/locales/my_MM: Likewise.
521         * localedata/locales/nan_TW: Likewise.
522         * localedata/locales/nan_TW@latin: Likewise.
523         * localedata/locales/nb_NO: Likewise.
524         * localedata/locales/nds_DE: Likewise.
525         * localedata/locales/nds_NL: Likewise.
526         * localedata/locales/ne_NP: Likewise.
527         * localedata/locales/nhn_MX: Likewise.
528         * localedata/locales/niu_NU: Likewise.
529         * localedata/locales/niu_NZ: Likewise.
530         * localedata/locales/nl_AW: Likewise.
531         * localedata/locales/nl_BE: Likewise.
532         * localedata/locales/nl_NL: Likewise.
533         * localedata/locales/nn_NO: Likewise.
534         * localedata/locales/nr_ZA: Likewise.
535         * localedata/locales/nso_ZA: Likewise.
536         * localedata/locales/oc_FR: Likewise.
537         * localedata/locales/om_ET: Likewise.
538         * localedata/locales/om_KE: Likewise.
539         * localedata/locales/or_IN: Likewise.
540         * localedata/locales/os_RU: Likewise.
541         * localedata/locales/pa_IN: Likewise.
542         * localedata/locales/pa_PK: Likewise.
543         * localedata/locales/pap_AW: Likewise.
544         * localedata/locales/pap_CW: Likewise.
545         * localedata/locales/pl_PL: Likewise.
546         * localedata/locales/ps_AF: Likewise.
547         * localedata/locales/pt_BR: Likewise.
548         * localedata/locales/pt_PT: Likewise.
549         * localedata/locales/quz_PE: Likewise.
550         * localedata/locales/raj_IN: Likewise.
551         * localedata/locales/ro_RO: Likewise.
552         * localedata/locales/ru_RU: Likewise.
553         * localedata/locales/ru_UA: Likewise.
554         * localedata/locales/rw_RW: Likewise.
555         * localedata/locales/sa_IN: Likewise.
556         * localedata/locales/sat_IN: Likewise.
557         * localedata/locales/sc_IT: Likewise.
558         * localedata/locales/sd_IN: Likewise.
559         * localedata/locales/sd_IN@devanagari: Likewise.
560         * localedata/locales/se_NO: Likewise.
561         * localedata/locales/sgs_LT: Likewise.
562         * localedata/locales/shs_CA: Likewise.
563         * localedata/locales/si_LK: Likewise.
564         * localedata/locales/sid_ET: Likewise.
565         * localedata/locales/sk_SK: Likewise.
566         * localedata/locales/sl_SI: Likewise.
567         * localedata/locales/sm_WS: Likewise.
568         * localedata/locales/so_DJ: Likewise.
569         * localedata/locales/so_ET: Likewise.
570         * localedata/locales/so_KE: Likewise.
571         * localedata/locales/so_SO: Likewise.
572         * localedata/locales/sq_AL: Likewise.
573         * localedata/locales/sq_MK: Likewise.
574         * localedata/locales/sr_ME: Likewise.
575         * localedata/locales/sr_RS: Likewise.
576         * localedata/locales/sr_RS@latin: Likewise.
577         * localedata/locales/ss_ZA: Likewise.
578         * localedata/locales/st_ZA: Likewise.
579         * localedata/locales/sv_FI: Likewise.
580         * localedata/locales/sv_SE: Likewise.
581         * localedata/locales/sw_KE: Likewise.
582         * localedata/locales/sw_TZ: Likewise.
583         * localedata/locales/szl_PL: Likewise.
584         * localedata/locales/ta_IN: Likewise.
585         * localedata/locales/ta_LK: Likewise.
586         * localedata/locales/tcy_IN: Likewise.
587         * localedata/locales/te_IN: Likewise.
588         * localedata/locales/tg_TJ: Likewise.
589         * localedata/locales/th_TH: Likewise.
590         * localedata/locales/the_NP: Likewise.
591         * localedata/locales/ti_ER: Likewise.
592         * localedata/locales/ti_ET: Likewise.
593         * localedata/locales/tig_ER: Likewise.
594         * localedata/locales/tk_TM: Likewise.
595         * localedata/locales/tl_PH: Likewise.
596         * localedata/locales/tn_ZA: Likewise.
597         * localedata/locales/to_TO: Likewise.
598         * localedata/locales/tpi_PG: Likewise.
599         * localedata/locales/tr_CY: Likewise.
600         * localedata/locales/tr_TR: Likewise.
601         * localedata/locales/ts_ZA: Likewise.
602         * localedata/locales/tt_RU: Likewise.
603         * localedata/locales/tt_RU@iqtelif: Likewise.
604         * localedata/locales/ug_CN: Likewise.
605         * localedata/locales/uk_UA: Likewise.
606         * localedata/locales/unm_US: Likewise.
607         * localedata/locales/ur_IN: Likewise.
608         * localedata/locales/ur_PK: Likewise.
609         * localedata/locales/uz_UZ: Likewise.
610         * localedata/locales/uz_UZ@cyrillic: Likewise.
611         * localedata/locales/ve_ZA: Likewise.
612         * localedata/locales/vi_VN: Likewise.
613         * localedata/locales/wa_BE: Likewise.
614         * localedata/locales/wae_CH: Likewise.
615         * localedata/locales/wal_ET: Likewise.
616         * localedata/locales/wo_SN: Likewise.
617         * localedata/locales/xh_ZA: Likewise.
618         * localedata/locales/yi_US: Likewise.
619         * localedata/locales/yo_NG: Likewise.
620         * localedata/locales/yue_HK: Likewise.
621         * localedata/locales/yuw_PG: Likewise.
622         * localedata/locales/zh_CN: Likewise.
623         * localedata/locales/zh_HK: Likewise.
624         * localedata/locales/zh_SG: Likewise.
625         * localedata/locales/zh_TW: Likewise.
626         * localedata/locales/zu_ZA: Likewise.
628 2017-11-13  Florian Weimer  <fweimer@redhat.com>
630         * support/next_to_fault.h, support/next_to_fault.c: New files.
631         * support/Makefile (libsupport-routines): Add next_to_fault.
632         * resolv/tst-inet_pton.c (struct next_to_fault)
633         (next_to_fault_allocate, next_to_fault_free): Remove.
634         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
636 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
638         * elf/dl-support.c: Include <dl-procruntime.c>.
639         * include/link.h: Include <link_map.h>.
640         * sysdeps/generic/dl-procruntime.c: New file.
641         * sysdeps/generic/link_map.h: Likewise.
642         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
643         the writable ld.so namespace.
645 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
647         timezone: pacify GCC -Wstringop-truncation
648         Problem reported by Martin Sebor in:
649         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
650         * timezone/zic.c (writezone): Use memcpy, not strncpy.
652 2017-11-12  Florian Weimer  <fweimer@redhat.com>
654         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
655         tst-xreadlink.
656         (tests): Add tst-xreadlink.
657         * support/support.h (xstrndup): Declare.
658         * support/xunistd.h (xunlink, xreadlink): Declare.
659         * support/temp_file.h (support_create_temp_directory): Declare.
660         * support/temp_file.c (support_create_temp_directory): New function.
661         * support/support_chroot.c (support_chroot_create): Use it.
662         * support/xreadlink.c: New file.
663         * support/xstrndup.c: Likewise.
664         * support/xunlink.c: Likewise.
665         * support/tst-xreadlink.c: Likewise.
667 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
669         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
671 2017-11-11  Florian Weimer  <fweimer@redhat.com>
673         [BZ #22409]
674         [BZ #22412]
675         * resolv/res_comp.c (printable_string, binary_hnok)
676         (binary_leading_dash): New functions.
677         (res_hnok): Reimplement using these functions and ns_name_pton.
678         (res_ownok): Likewise.
679         (res_mailok): Reimplement using printable_string, ns_name_pton and
680         binary_hnok.
681         (res_dnok): Reimplement using printable_string and ns_name_pton.
682         * resolv/tst-res_hnok.c (tests): Add additional tests.
683         (LETTERDIGITS, PRINTABLE): Define.
684         (do_test): Adjust one_char results.
686 2017-11-11  Florian Weimer  <fweimer@redhat.com>
688         [BZ #22413]
689         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
690         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
692 2017-11-11  Florian Weimer  <fweimer@redhat.com>
694         * resolv/tst-ns_name_pton.c: New file.
695         * resolv/Makefile (tests): Add tst-ns_name_pton.
696         (tst-ns_name_pton): Link against libresolv.
698 2017-11-11  Florian Weimer  <fweimer@redhat.com>
700         * resolv/tst-res_hnok.c: New file.
701         * resolv/Makefile (tests): Add tst-res_hnok.
702         (tst-res_hnok): Link against libresolv.
704 2017-11-11  Florian Weimer  <fweimer@redhat.com>
706         * resolv/tst-resolv-network.c: Use test framework instead explicit
707         main function.
709 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
711         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
712         <jmp_buf-macros.h>.
713         [!_ISOMAC] (STR_HELPER): New.
714         [!_ISOMAC] (STR): Likewise.
715         [!_ISOMAC] (TEST_SIZE): Likewise.
716         [!_ISOMAC] (TEST_ALIGN): Likewise.
717         [!_ISOMAC] (TEST_OFFSET): Likewise.
718         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
719         field offsets of jmp_buf as well as sigjmp_buf.
720         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
721         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
722         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
723         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
724         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
725         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
726         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
727         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
728         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
729         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
730         Likewise.
731         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
732         Likewise.
733         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
735         Likewise.
736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
737         Likewise.
738         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
739         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
740         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
741         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
742         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
743         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
744         Likewise.
745         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
746         Likewise.
747         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
748         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
749         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
751 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
753         * include/float.h
754         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
755         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
756         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
757         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
758         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
759         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
760         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
761         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
762         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
763         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
764         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
765         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
766         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
767         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
768         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
769         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
770         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
771         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
772         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
773         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
774         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
775         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
776         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
777         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
778         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
779         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
780         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
781         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
782         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
783         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
784         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
785         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
786         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
787         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
788         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
789         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
790         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
791         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
792         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
793         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
794         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
795         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
796         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
797         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
798         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
799         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
800         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
801         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
802         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
803         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
804         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
805         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
806         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
807         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
808         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
809         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
810         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
811         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
812         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
813         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
814         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
815         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
816         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
817         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
818         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
819         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
820         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
821         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
822         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
823         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
824         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
825         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
826         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
827         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
828         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
829         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
830         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
831         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
832         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
833         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
834         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
835         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
836         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
837         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
838         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
839         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
840         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
841         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
843         * stdlib/tst-strtod.h (F16): New macro.
844         (F32): Likewise.
845         (F64): Likewise.
846         (F32X): Likewise.
847         (F64X): Likewise.
848         (F128X): Likewise.
849         (IF_FLOAT16): Likewise.
850         (IF_FLOAT32): Likewise.
851         (IF_FLOAT64): Likewise.
852         (IF_FLOAT32X): Likewise.
853         (IF_FLOAT64X): Likewise.
854         (IF_FLOAT128X): Likewise.
855         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
856         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
857         (STRTOD_TEST_FOREACH): Likewise.
858         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
859         (CHOOSE_f64): Likewise.
860         (CHOOSE_f32x): Likewise.
861         (CHOOSE_f64x): Likewise.
863 2017-11-07  Andreas Schwab  <schwab@suse.de>
865         * nptl/Makefile (tests-internal): Remove tst-typesizes.
867 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
869         [BZ #22403]
870         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
871         to be escaped.
872         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
873         to be escaped.
875 2017-11-07  Claude Paroz <claude@2xlibre.net>
877         [BZ #22403]
878         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
879         to be escaped.
880         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
881         to be escaped.
882         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
883         to be escaped.
885 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
887         [BZ #22298]
888         * nptl/allocatestack.c (allocate_stack): Check if
889         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
890         __PTHREAD_MUTEX_HAVE_PREV is defined.
891         * nptl/descr.h (pthread): Likewise.
892         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
893         Likewise.
894         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
895         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
896         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
897         * sysdeps/nptl/bits/thread-shared-types.h
898         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
899         defines.
900         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
901         of __WORDSIZE for internal layout.
902         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
903         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
904         instead of __WORDSIZE whether to use an union for __spins and __list
905         fields.
906         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
907         case.
908         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
909         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
910         defines.
911         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
912         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
913         Likewise.
914         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
915         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
916         Likewise.
917         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
918         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
919         Likewise.
920         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
921         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
922         Likewise.
923         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
924         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
925         Likewise.
926         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
927         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
928         Likewise.
929         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
930         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
931         Likewise.
932         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
933         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
934         Likewise.
935         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
936         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
937         Likewise.
938         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
939         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
940         Likewise.
941         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
942         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
943         Likewise.
944         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
945         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
946         Likewise.
947         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
948         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
949         Likewise.
950         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
951         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
952         Likewise.
954         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
955         New macros.
956         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
957         checks for expected input type size.
958         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
959         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
960         Likewise.
961         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
962         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
963         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
964         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
965         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
966         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
967         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
968         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
969         superflous runtime assert check.
970         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
971         Likewise.
972         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
973         Likewise.
974         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
975         Likewise.
976         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
977         Likewise.
978         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
979         Likewise.
980         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
981         Likewise.
982         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
983         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
984         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
985         Likewise.
986         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
987         Likewise.
988         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
989         Likewise.
990         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
991         Likewise.
992         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
993         Likewise.
994         * nptl/pthread_attr_setinheritsched.c
995         (__pthread_attr_setinheritsched): Likewise.
996         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
997         Likewise.
998         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
999         Likewise.
1000         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
1001         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
1002         __old_pthread_attr_setstack): Likewise.
1003         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
1004         Likewise.
1005         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
1006         Likewise.
1007         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
1008         Likewise.
1009         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
1010         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
1011         Likewise.
1012         * nptl/tst-typesizes.c: Remove file.
1014         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
1015         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
1016         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
1017         checks for internal pthread_mutex_t offsets.
1018         * sysdeps/aarch64/nptl/pthread-offsets.h
1019         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
1020         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
1021         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
1022         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
1023         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
1024         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
1025         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
1026         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
1027         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
1028         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
1029         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
1030         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
1031         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
1032         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
1033         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
1034         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
1035         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
1036         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
1038 2017-11-07  Florian Weimer  <fweimer@redhat.com>
1040         * bits/mman-linux.h: Move ...
1041         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
1042         comment.
1043         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
1044         outdated comment.
1046 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1048         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
1049         Redefine STRNLEN as __strnlen_power8.
1051 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1053         * signal/sighold.c (sighold): Optimize implementation.
1055         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
1056         __NR_rt_sigqueueinfo.
1058         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1059         __sigtimedwait.
1060         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
1061         assume __NR_rt_sigtimedwait.
1062         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
1063         and add LIBC_CANCEL_HANDLED for cancellation marking.
1064         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1066         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1067         (sysdeps_routines): Add memchr_noneon.
1068         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
1069         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
1070         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
1071         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
1072         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
1073         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
1074         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
1076         * sysdeps/arm/arm-ifunc.h: New file.
1077         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
1078         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
1079         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
1080         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
1081         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
1082         (__memcpy_neon): Avoid create hidden alias.
1083         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
1084         (__memcpy_vfp): Likewise.
1085         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1086         (sysdep_routines): Add memcpy_arm.
1087         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
1089 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
1091         [BZ #22362]
1092         * Makerules (make-link-multidir): New.
1093         * config.make.in (multidir): New.
1094         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
1095         * configure: Regenerated.
1096         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
1097         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
1098         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
1099         New target.
1101 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
1103         [BZ #22402]
1104         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
1105         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
1107 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
1109         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
1110         to be escaped.
1112 2017-11-04  Florian Weimer  <fweimer@redhat.com>
1114         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
1116 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1118         * math/math.h [__HAVE_DISTINCT_FLOAT16
1119         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1120         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1121         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1122         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
1123         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
1124         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
1125         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1126         (__MATH_TG_F32): New macro.
1127         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1128         (__MATH_TG_F64X): Likewise.
1129         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1130         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
1132 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
1134         * po/de.po: Update translations.
1135         * po/ru.po: Likewise.
1137 2017-11-03  Florian Weimer  <fweimer@redhat.com>
1139         * manual/filesys.texi (Hard Links): Document linkat.
1141 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1143         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
1144         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1145         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1146         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1147         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1148         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1149         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
1150         the same as _Float128.
1151         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1152         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1153         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
1155         * stdlib/stdlib.h
1156         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
1157         Declare.
1158         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
1159         Likewise.
1160         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
1161         Likewise.
1162         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1163         (strtof32x): Likewise.
1164         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1165         (strtof64x): Likewise.
1166         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1167         (strtof128x): Likewise.
1168         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1169         (strfromf16): Likewise.
1170         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1171         (strfromf32): Likewise.
1172         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1173         (strfromf64): Likewise.
1174         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1175         (strfromf32x): Likewise.
1176         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1177         (strfromf64x): Likewise.
1178         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1179         (strfromf128x): Likewise.
1180         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1181         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1182         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1183         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1184         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1185         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1187 2017-11-03  Richard Henderson  <rth@twiddle.net>
1189         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1191 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1193         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1195 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1197         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1198         DT_TLSDESC_GOT initialization.
1199         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1200         (_dl_tlsdesc_resolve_hold): Likewise.
1201         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1202         (_dl_tlsdesc_resolve_hold): Likewise.
1203         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1204         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1206 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1208         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1210 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1212         [BZ #18572]
1213         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1214         non-lazily for R_ARM_TLS_DESC.
1216 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1218         [BZ #17078]
1219         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1220         R_ARM_TLS_DESC case.
1221         (elf_machine_lazy_rel): Remove the prelink check.
1223 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1225         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1226         DT_TLSDESC_GOT initialization.
1227         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1228         (_dl_tlsdesc_resolve_rela): Likewise.
1229         (_dl_tlsdesc_resolve_hold): Likewise.
1230         (_dl_tlsdesc_undefweak): Remove ldar.
1231         (_dl_tlsdesc_dynamic): Likewise.
1232         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1233         (_dl_tlsdesc_resolve_rela): Likewise.
1234         (_dl_tlsdesc_resolve_hold): Likewise.
1235         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1236         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1237         (_dl_tlsdesc_resolve_rela): Likewise.
1238         (_dl_tlsdesc_resolve_hold): Likewise.
1240 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1242         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1243         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1245 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1247         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1248         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1250 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1252         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1253         Declare.
1254         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1255         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1256         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1257         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1258         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1259         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1260         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1261         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1262         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1263         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1264         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1266 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1268         [BZ #22382]
1269         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1270         * localedata/locales/tpi_PG: Add standard header.
1272 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1274         test-errno-linux: quotactl can fail with EPERM in containers.
1275         * sysdeps/unix/sysv/linux/test-errno-linux.c
1276         (LIST, LIST_FORWARD): New macros.
1277         (check_error_in_list): New function.
1278         (test_wrp_rv): Accept list of permitted error codes.
1279         (test_wrp_rv2): Remove.
1280         (test_wrp): Call test_wrp_rv with list of error codes.
1281         (test_wrp2): Accept list of error codes.
1282         (do_test): Adjust.  Allow EPERM for quotactl.
1284 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1286         * stdio-common/bug16.c (do_test): Use array_length.
1287         * stdio-common/errlist.c (_sys_nerr): Likewise.
1288         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
1289         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
1290         * stdio-common/psiginfo.c (psiginfo): Use array_length.
1291         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
1292         (do_test): Use array_length.
1293         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
1294         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
1295         * stdio-common/tst-printf-round.c (do_test): Likewise.
1296         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
1297         (CHECK): Use array_length.
1298         * stdio-common/tstdiomisc.c (t3, F): Likewise.
1299         * stdio-common/tstscanf.c (main): Likewise.
1300         * stdio-common/vfprintf.c (process_string_arg): Likewise.
1302 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1304         Add array_length and array_end macros.
1305         * include/array_length.h: New file.
1307 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1309         [BZ #22332]
1310         * posix/tst-glob-tilde.c (do_noescape): New variable.
1311         (one_test): Process it.
1312         (do_test): Set do_noescape.  Add unescaping test case.
1314 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
1316         * math/complex.h
1317         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
1318         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
1319         with appropriate macros defined and undefined.
1320         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
1321         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1322         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
1323         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1324         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
1325         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1326         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
1327         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1328         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
1329         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1331         * math/complex.h
1332         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
1333         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
1334         that for long double.  Do not condition define and undefine of
1335         _Mdouble_complex_ on [__CFLOAT128].
1337 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1339         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1340         of <sysdeps/generic/sysdep.h>.
1341         (ALIGNARG): Removed.
1342         (ASM_SIZE_DIRECTIVE): Likewise.
1343         (ENTRY): Likewise.
1344         (END): Likewise.
1345         (ENTRY_CHK): Likewise.
1346         (END_CHK): Likewise.
1347         (syscall_error): Likewise.
1348         (mcount): Likewise.
1349         (PSEUDO_END): Likewise.
1350         (L): Likewise.
1351         (atom_text_section): Likewise.
1352         * sysdeps/x86/sysdep.h: New file.
1353         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1354         of <sysdeps/generic/sysdep.h>.
1355         (ALIGNARG): Removed.
1356         (ASM_SIZE_DIRECTIVE): Likewise.
1357         (ENTRY): Likewise.
1358         (END): Likewise.
1359         (ENTRY_CHK): Likewise.
1360         (END_CHK): Likewise.
1361         (syscall_error): Likewise.
1362         (mcount): Likewise.
1363         (PSEUDO_END): Likewise.
1364         (L): Likewise.
1365         (atom_text_section): Likewise.
1367 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
1369         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
1370         category of LC_CTYPE set to "i18n:2012".
1371         * localedata/locales/i18n_ctype: Regenerate.
1373 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
1375         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
1376         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1377         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1378         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1380         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
1381         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1382         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1383         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
1385 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
1387         * math/complex.h
1388         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
1389         New macro.
1390         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
1391         Likewise.
1392         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
1393         Likewise.
1394         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1395         (CMPLXF32X): Likewise.
1396         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1397         (CMPLXF64X): Likewise.
1398         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1399         (CMPLXF128X): Likewise.
1401         * math/math.h
1402         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
1403         (__MATH_EVAL_FMT2): Define to add 0.0f.
1405 2017-10-31  Alan Modra  <amodra@gmail.com>
1407         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
1408         include sysdep.h.
1409         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1410         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1411         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
1412         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
1413         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
1414         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
1415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
1416         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
1417         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
1418         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
1420         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
1421         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
1422         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1423         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
1424         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
1425         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
1426         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1427         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
1428         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
1429         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1430         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1431         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1432         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1433         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1434         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1435         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1436         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1437         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
1438         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
1439         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
1440         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
1441         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
1442         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
1443         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
1444         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
1445         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
1446         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
1447         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
1448         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
1449         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
1450         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
1451         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
1452         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
1453         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
1454         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
1455         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
1456         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
1457         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1458         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1459         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
1460         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
1461         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
1462         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
1463         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1464         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
1465         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
1466         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
1467         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1468         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1469         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1470         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
1471         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
1472         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
1473         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
1474         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
1475         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
1476         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
1477         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
1479         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
1480         include sysdep.h and math_ldbl_opt.h.
1482         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
1483         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
1484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
1486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
1487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
1488         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
1489         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
1490         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
1491         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
1492         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
1493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
1494         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
1495         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
1496         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
1497         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
1498         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
1499         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
1500         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
1501         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
1502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
1503         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
1504         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
1505         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
1507         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1509 2017-10-31  Alan Modra  <amodra@gmail.com>
1511         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
1512         string/strncase_l.c, not string/strncase.c.
1513         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
1514         (libc_hidden_def): Redefine.
1516 2017-10-31  Alan Modra  <amodra@gmail.com>
1518         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
1519         (__STRCMP, STRCMP, __strcasecmp_l): Define.
1520         (__strcasecmp): Don't define.
1522 2017-10-31  Alan Modra  <amodra@gmail.com>
1524         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
1525         IS_IN (libc).
1526         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1527         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1528         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1530 2017-10-31  Alan Modra  <amodra@gmail.com>
1532         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
1533         USE_AS_STPNCPY.
1535 2017-10-31  Alan Modra  <amodra@gmail.com>
1537         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
1538         Redefine only when SHARED.
1540 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1542         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1543         Include <bits/math-finite.h> with appropriate macros defined and
1544         undefined.
1545         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1546         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1547         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1548         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1549         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1551         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
1552         [!_Mlong_double_] (_Mlong_double_): Likewise.
1553         [!_Mfloat16_] (_Mfloat16_): Likewise.
1554         [!_Mfloat32_] (_Mfloat32_): Likewise.
1555         [!_Mfloat64_] (_Mfloat64_): Likewise.
1556         [!_Mfloat128_] (_Mfloat128_): Likewise.
1557         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
1558         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
1559         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
1560         (_Mdouble_): Define without indirection through those macros.
1561         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
1562         [!_Mfloat128_] (_Mfloat128_): Likewise.
1563         [_Mlong_double_] (_Mlong_double_): Likewise.
1564         (_Mdouble_): Define without indirection through those macros.
1565         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
1566         not add -D_Mlong_double_=double.
1567         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
1568         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
1570 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1572         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
1574 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1576         * sysdeps/x86/libc-start.c: Reformat.
1578 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1580         [BZ #22353]
1581         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
1582         (1): Renamed to ...
1583         (L(Src0)): This.
1584         (L(Src1)): New.
1585         (L(Src2)): Likewise.
1586         (L(1)): Renamed to ...
1587         (L(Src3)): This.
1589 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1591         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
1592         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
1593         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
1594         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
1595         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
1596         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
1597         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
1598         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
1599         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
1600         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
1601         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
1602         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
1603         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
1604         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
1605         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
1606         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
1607         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
1608         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
1609         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
1610         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
1611         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
1612         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
1613         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
1614         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
1615         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
1616         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
1617         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
1618         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
1619         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
1620         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
1621         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
1622         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
1623         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
1624         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
1625         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
1626         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
1627         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
1628         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
1629         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
1630         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
1631         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
1632         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
1633         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
1634         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
1635         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
1636         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
1637         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
1638         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
1639         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
1640         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
1641         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
1642         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
1643         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
1644         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
1645         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
1646         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
1647         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
1648         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
1649         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
1650         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
1651         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
1652         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
1653         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
1654         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
1655         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
1656         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
1658 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1660         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
1661         always defined.
1662         * io/tst-mkdirat.c (do_test): Likewise.
1663         * io/tst-mkfifoat.c (do_test): Likewise.
1664         * io/tst-mknodat.c (do_test): Likewise.
1665         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
1666         * locale/programs/locale.c (select_dirs): Likewise.
1667         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
1668         * posix/bug-glob2.c (my_readdir): Likewise.
1669         * posix/tst-dir.c (main): Likewise.
1670         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
1671         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
1673 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1675         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
1676         just __USE_GNU.
1678 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1680         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
1681         Convert to support/test-driver.c.
1682         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
1683         New macro parameters.
1684         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
1685         * posix/tst-gnuglob.c: New file.
1686         * posix/tst-gnuglob64.c: Likewise.
1687         * posix/Makefile (tests): Add tst-gnuglob64.
1689 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
1691         [BZ #19485]
1692         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
1693         and use a better translation for March in “mon”.
1694         * localedata/locales/csb_PL: Use more ASCII to improve the
1695         readability of the source.
1697 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
1699         [BZ #13953]
1700         * localedata/locales/km_KH: Use ASCII as much
1701         as possible for better readability of the source and
1702         remove useless comments.
1703         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
1704         was commented out and apparently wrong anyway because it was
1705         using Lao characters. If Buddhist era should be used
1706         for km_KH, a native speaker should write the correct formaat
1707         for Khmer.
1708         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
1709         (According to CLDR, the first weekday for Cambodia is Sunday).
1710         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
1711         (These were using Lao characters which must be wrong. If we get
1712         the correct data from a native speaker, we could add it back, until
1713         then it is better not to have name_mr and name_mrs at all than
1714         having it wrong).
1716 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
1718         * locale/loadlocale.c: Correct size of
1719         _nl_value_type_LC_<category> arrays.
1721 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
1723         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1724         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
1725         with appropriate macros defined and undefined.
1726         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1727         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1728         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1729         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1730         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1732 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1734         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
1735         "-O2 -march=i586".
1737 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1739         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
1740         with lowercase letters to make it agree with CLDR.
1742 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1744         [BZ #15260]
1745         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
1746         first letters of yesstr and nostr in yesexpr and noexpr,
1747         not for the full words.
1748         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1749         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
1750         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
1751         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
1752         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
1753         first letters of yesstr and nostr in yesexpr and noexpr,
1754         until now only English was matched in yesexpr and noexpr.
1755         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
1756         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
1757         fil but not for tl. As tl and fil are very similar, using fil
1758         is probably better than using English.
1760 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
1762         [BZ #21706]
1763         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
1764         in yesstr and nostr.
1766 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
1768         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1769         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
1770         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
1771         Likewise.
1772         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
1773         Likewise.
1774         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
1775         Likewise.
1776         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
1777         Likewise.
1778         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1779         (SNANF128X): Likewise.
1781         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1782         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
1783         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1784         (HUGE_VAL_F32): Likewise.
1785         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1786         (HUGE_VAL_F64): Likewise.
1787         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1788         (HUGE_VAL_F32X): Likewise.
1789         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1790         (HUGE_VAL_F64X): Likewise.
1791         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1792         (HUGE_VAL_F128X): Likewise.
1794 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1796         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
1797         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
1798         for the br_FR locale.
1800 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1802         [BZ #21706]
1803         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
1805 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
1807         * locale/programs/record-status.h: Define globals, and function
1808         prototypes. Move function bodies...
1809         * locale/programs/record-status.c: ... to here. New file.
1810         * iconv/Makefile (iconv_prog-modules): Add record-status.
1811         * locale/Makefile (lib-modules): Likewise.
1812         * iconv/iconv_prog.c: Remove verbose.
1813         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
1814         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
1815         record a warning about ASCII compatibility.
1816         * locale/programs/ld-monetary.c (monetary_finish): If
1817         warn_int_curr_symbol is true then record a warning about the symbol
1818         not being in our ISO 4217 list.
1819         * locale/programs/locale.c: Include record-status.h. Remove verbose.
1820         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
1821         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
1822         (OPT_NO_WARN): Define.
1823         (OPT_WARN): Define.
1824         (options): Add entry for --no-warnings, and --warnings.
1825         (set_warnings): New function to enable/disable warnings.
1826         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
1827         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
1828         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
1829         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
1830         Pass flags to generate_locale.
1831         (generate_locale): Accept new flag argument and pass it to localedef
1832         invocation.
1833         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
1834         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
1836         * localedata/Makefile (test-input-data): Use full file name.
1837         * localedata/da_DK.in: Rename to...
1838         * localedata/da_DK.ISO-8859-1.in: ...this.
1839         * localedata/de_DE.in: Rename to...
1840         * localedata/de_DE.ISO-8859-1.in: ...this.
1841         * localedata/en_US.in: Rename to...
1842         * localedata/en_US.ISO-8859-1.in: ...this.
1843         * localedata/fr_FR.in: Rename to...
1844         * localedata/fr_FR.UTF-8.in: ... this.
1845         * localedata/hr_HR.in: Rename to...
1846         * localedata/hr_HR.ISO-8859-2.in: ...this.
1847         * localedata/hu_HU.in: Rename to...
1848         * localedata/hu_HU.UTF-8.in: ...this.
1849         * localedata/si_LK.in: Rename to...
1850         * localedata/si_LK.UTF-8.in: ...this.
1851         * localedata/sv_SE.in: Rename to...
1852         * localedata/sv_SE.ISO-8859-1.in: ...this.
1853         * localedata/tr_TR.in: Rename to...
1854         * localedata/tr_TR.UTF-8.in: ...this.
1855         * localedata/uk_UA.in: Rename to...
1856         * localedata/uk_UA.UTF-8.in: ...this.
1857         * localedata/sort-test.sh: Test file is locale name with the
1858         suffix.
1860         * localedata/unicode-gen/Makefile (check_i18n): Rename to
1861         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
1862         file.
1863         * localedata/locales/i18n_ctype: Regenerate.
1864         * localedata/locales/tr_TR: Likewise.
1865         * localedata/locales/translit_circle: Likewise.
1866         * localedata/locales/translit_cjk_compat: Likewise.
1867         * localedata/locales/translit_combining: Likewise.
1868         * localedata/locales/translit_compat: Likewise.
1869         * localedata/locales/translit_font: Likewise.
1870         * localedata/locales/translit_fraction: Likewise.
1872 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1874         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
1875         lxvd2x/stxvd2x with lvx/stvx.
1876         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1878 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1880         * include/alloc_buffer.h: Replace "if if " with "if " in
1881         comments.
1882         * sysdeps/mips/memcpy.S: Likkewise.
1883         * sysdeps/mips/memset.S: Likewise.
1884         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
1885         Likewise.
1886         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
1887         Likewise.
1888         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
1889         Likewise.
1891 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1893         [BZ #15261]
1894         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
1895         yesexpr and noexpr.
1896         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1897         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1898         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1899         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1900         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1901         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1902         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1904 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1906         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
1907         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1908         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1909         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1910         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1911         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
1912         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1913         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1914         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1915         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1916         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1917         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1919 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1921         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
1922         as possible for better readability of the source.
1923         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
1924         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
1925         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
1926         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
1927         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
1928         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
1929         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
1930         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
1931         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1932         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
1933         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
1934         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
1935         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
1936         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
1937         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
1938         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
1939         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
1940         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
1941         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
1942         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
1943         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
1944         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
1945         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
1946         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
1947         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
1948         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
1949         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
1950         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
1951         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
1952         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
1953         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
1954         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1955         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
1956         * localedata/locales/en_US (LC_MESSAGES): Likewise.
1957         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
1958         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
1959         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
1960         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
1961         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
1962         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
1963         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
1964         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
1965         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
1966         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
1967         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
1968         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
1969         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
1970         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
1971         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
1972         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
1973         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
1974         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
1975         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
1976         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1977         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1978         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
1979         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
1980         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1981         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
1982         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
1983         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
1984         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
1985         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
1986         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
1987         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
1988         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
1989         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
1990         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
1991         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
1992         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
1993         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
1994         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
1995         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
1996         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
1997         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1998         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
1999         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
2000         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
2001         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
2002         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
2003         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
2004         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
2005         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
2006         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
2007         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
2008         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
2009         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
2010         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
2011         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
2012         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
2013         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
2014         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
2015         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
2016         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
2017         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
2018         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
2019         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
2020         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
2021         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
2022         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
2023         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
2024         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
2025         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
2026         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
2027         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
2028         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
2029         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
2030         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
2031         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
2032         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
2033         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
2034         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
2035         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2036         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
2037         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
2038         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
2039         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
2040         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
2041         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
2042         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
2043         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
2044         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
2045         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
2046         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
2047         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
2048         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
2049         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
2050         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
2051         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
2052         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
2053         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
2054         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
2055         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
2056         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
2057         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
2058         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
2059         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
2060         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
2061         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
2062         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
2063         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
2064         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
2065         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
2066         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
2067         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
2068         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2069         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
2070         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
2071         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
2072         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
2073         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
2074         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
2075         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
2076         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
2077         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2078         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
2079         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
2080         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
2081         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
2082         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
2083         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
2084         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
2085         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
2086         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
2087         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
2088         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2089         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
2090         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
2091         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
2092         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
2093         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2094         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2095         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2096         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
2098 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2100         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
2101         (Use first letters of yesstr and nostr correctly instead of using
2102         full words).
2104 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2106         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
2107         (Use first letters of yesstr and nostr correctly).
2109 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2111         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
2112         also check for the first characters of yesstr and nostr.
2113         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
2114         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
2116 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2118         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
2119         also check for Chinese characters.
2121 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2123         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
2124         match also for the contents of yesstr and nostr. As the first letter
2125         of yesstr and nostr is equal, checking only for the first letter
2126         is not enough.
2128 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2130         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
2131         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
2133 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2135         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
2136         of main contributor.
2138 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2140         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
2141         instead of using English.
2143 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2145         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
2146         by including the first letters of nostr and yesexpr in the regexp.
2147         Also make it more readable by using ASCII where possible.
2149 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2151         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
2152         the first letter of nostr in the regexp. It agrees with CLDR now.
2153         Also make it more readable by using ASCII where possible.
2155 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2157         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
2158         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
2159         these strings contain a U+17D6 (which somewhat looks like a colon)
2160         instead of a real colon to separate the full words for “yes”
2161         and “no” from the single letter responses.
2163 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2165         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
2166         it agree with CLDR (include the first letter of yesstr).
2167         Also make it more readable by using ASCII where possible.
2169 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2171         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2172         and improve yesexpr and noexpr. The yesstr and nostr apparently
2173         came from CLDR. And CLDR has a bug there: these strings contain
2174         a U+0903 (which looks like a colon) instead of a real colon
2175         to separate the full words for “yes” and “no” from the single
2176         letter responses.
2178 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2180         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2181         letters of the full yesstr and nostr in yesexpr and noexpr.
2183 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2185         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2186         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2187         * localedata/locales/an_ES: Make source more readable by using ASCII
2188         where possible.
2190 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2192         [BZ #20952]
2193         * localedata/locales/yuw_PG: New file.
2194         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2195         * locale/iso-639.def: Add Yau (Uruwa).
2197 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2199         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2201 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2203         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2204         (__libc_realloc): Likewise.
2205         (_mid_memalign): Likewise.
2206         (__libc_calloc): Likewise.
2208 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2210         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2211         by adding the generic +1 and -0 as in all other locales.
2212         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2213         day names and make it more readable by using ASCII where possible.
2215 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2217         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2218         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2220 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2222         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2223         WNOHANG in waitpid call.
2225 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2227         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2228         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2230         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2231         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2232         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2233         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2234         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2235         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2236         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2237         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2238         variables.
2240 2017-10-23  Michael Collison  <michael.collison@arm.com>
2242         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2243         with __builtin_sqrt.
2244         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2245         with __builtin_sqrtf.
2246         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2247         with __builtin_ceil.
2248         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2249         with __builtin_ceilf.
2250         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2251         with __builtin_floor.
2252         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2253         with __builtin_floorf.
2254         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2255         with __builtin_fma.
2256         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2257         with __builtin_fmaf.
2258         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2259         with __builtin_fmax.
2260         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2261         with __builtin_fmaxf.
2262         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2263         with __builtin_fmin.
2264         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2265         with __builtin_fminf.
2266         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2267         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2268         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2269         with builtin_rint and conversion to int.
2270         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2271         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2272         with builtin_llround.
2273         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2274         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2275         with builtin_rint and conversion to long int.
2276         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2277         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2278         with builtin_lround.
2279         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2280         with builtin_lroundf.
2281         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2282         statements with __builtin_nearbyint.
2283         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2284         statements with __builtin_nearbyintf.
2285         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2286         with __builtin_rint.
2287         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2288         with __builtin_rintf.
2289         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
2290         with __builtin_round.
2291         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
2292         with __builtin_roundf.
2293         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
2294         with __builtin_trunc.
2295         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
2296         with __builtin_truncf.
2297         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
2298         and s_l[l]round[f].c too.
2300 2017-10-23  Alan Modra  <amodra@gmail.com>
2302         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
2303         Adjust stack after restoring regs.  Add missing LR cfi_restore.
2305 2017-10-23  Alan Modra  <amodra@gmail.com>
2307         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
2308         Move LR save and frame setup/teardown and LR restore to
2309         immediately around memset call.  Provide cfi.
2311 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2313         * sysdeps/i386/fpu/e_powf.S: Removed.
2314         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
2315         * sysdeps/i386/fpu/w_powf.c: Likewise.
2316         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
2317         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2318         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2319         Add e_powf-sse2.
2320         (CFLAGS-e_powf-sse2.c): New.
2321         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
2322         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
2324 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2326         * sysdeps/i386/fpu/e_log2f.S: Removed.
2327         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
2328         * sysdeps/i386/fpu/w_log2f.c: Likewise.
2329         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
2330         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2331         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2332         Add e_log2f-sse2.
2333         (CFLAGS-e_log2f-sse2.c): New.
2334         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
2335         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
2337 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2339         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2340         Add e_powf-fma.
2341         (CFLAGS-e_powf-fma.c): New.
2342         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
2343         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
2345 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2347         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2348         Add e_log2f-fma.
2349         (CFLAGS-e_log2f-fma.c): New.
2350         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
2351         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
2353 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2355         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2356         Add e_logf-fma.
2357         (CFLAGS-e_logf-fma.c): New.
2358         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
2359         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
2361 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2363         * sysdeps/i386/fpu/e_logf.S: Removed.
2364         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
2365         * sysdeps/i386/fpu/w_logf.c: Likewise.
2366         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
2367         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
2368         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2369         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2370         Add e_logf-sse2.
2371         (CFLAGS-e_logf-sse2.c): New.
2372         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
2373         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
2375 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2377         * sysdeps/i386/fpu/e_exp2f.S: Removed.
2378         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
2379         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
2380         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2381         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2382         Add e_exp2f-sse2.
2383         (CFLAGS-e_exp2f-sse2.c): New.
2384         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
2385         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
2387 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2389         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2390         Add e_exp2f-fma.
2391         (CFLAGS-e_exp2f-fma.c): New.
2392         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
2393         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
2395 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2397         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
2398         * sysdeps/i386/fpu/e_expf.S: Likewise.
2399         * sysdeps/i386/fpu/math_errf.c: Likewise.
2400         * sysdeps/i386/fpu/w_expf.c: Likewise.
2401         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
2402         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2403         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
2404         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
2405         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2406         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2407         Remove e_expf-ia32.
2408         (CFLAGS-e_expf-sse2.c): New.
2409         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
2410         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
2412 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2414         * sysdeps/x86_64/fpu/e_expf.S: Removed.
2415         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
2416         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
2417         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
2418         e_expf.c.
2419         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
2420         New.
2421         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
2422         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
2423         Renamed to ...
2424         (__redirect_expf): This.
2425         (SYMBOL_NAME): Changed to expf.
2426         (__ieee754_expf): Renamed to ...
2427         (__expf): This.
2428         (__GI___expf): This.
2429         (__ieee754_expf): Add strong_alias.
2430         (__expf_finite): Likewise.
2431         (__expf): New.
2432         Include <sysdeps/ieee754/flt-32/e_expf.c>.
2434 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
2436         [BZ #22332]
2437         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
2438         unescaping.
2440 2017-10-21  Florian Weimer  <fweimer@redhat.com>
2442         * posix/Makefile (tests): Add tst-glob-tilde.
2443         (tests-special): Add tst-glob-tilde-mem.out
2444         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
2445         (tst-glob-tilde-mem.out): Add mtrace check.
2446         * posix/tst-glob-tilde.c: New file.
2448 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
2450         * bits/floatn-common.h: New file.
2451         * math/Makefile (headers): Add bits/floatn-common.h.
2452         * bits/floatn.h: Include <bits/floatn-common.h>.
2453         * sysdeps/ia64/bits/floatn.h: Likewise.
2454         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2455         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
2456         * sysdeps/powerpc/bits/floatn.h: Likewise.
2457         * sysdeps/x86/bits/floatn.h: Likewise.
2459 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2461         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
2462         indicates whether compiler emits an warning for alias for
2463         functions with incompatible types.
2465         [BZ #22273]
2466         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
2467         the auxiliary process is terminated by a signal before calling _exit
2468         or execve.
2470 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2472         [BZ #21265]
2473         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
2474         New.
2475         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
2476         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
2477         and bit_arch_XSAVEC_Usable if needed.
2478         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
2479         and bit_arch_Use_dl_runtime_resolve_opt.
2480         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
2481         Removed.
2482         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
2483         (bit_arch_Prefer_No_AVX512): Updated.
2484         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
2485         (bit_arch_XSAVEC_Usable): New.
2486         (STATE_SAVE_OFFSET): Likewise.
2487         (STATE_SAVE_MASK): Likewise.
2488         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
2489         (cpu_features): Add xsave_state_size and xsave_state_full_size.
2490         (index_arch_Use_dl_runtime_resolve_opt): Removed.
2491         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
2492         (index_arch_XSAVEC_Usable): New.
2493         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2494         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
2495         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
2496         is enabled.
2497         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
2498         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
2499         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
2500         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
2501         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
2502         _dl_runtime_resolve_xsavec.
2503         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
2504         Removed.
2505         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
2506         instead of VEC_SIZE.
2507         (REGISTER_SAVE_BND0): Removed.
2508         (REGISTER_SAVE_BND1): Likewise.
2509         (REGISTER_SAVE_BND3): Likewise.
2510         (REGISTER_SAVE_RAX): Always defined to 0.
2511         (VMOV): Removed.
2512         (_dl_runtime_resolve_avx): Likewise.
2513         (_dl_runtime_resolve_avx_slow): Likewise.
2514         (_dl_runtime_resolve_avx_opt): Likewise.
2515         (_dl_runtime_resolve_avx512): Likewise.
2516         (_dl_runtime_resolve_avx512_opt): Likewise.
2517         (_dl_runtime_resolve_sse): Likewise.
2518         (_dl_runtime_resolve_sse_vex): Likewise.
2519         (USE_FXSAVE): New.
2520         (_dl_runtime_resolve_fxsave): Likewise.
2521         (USE_XSAVE): Likewise.
2522         (_dl_runtime_resolve_xsave): Likewise.
2523         (USE_XSAVEC): Likewise.
2524         (_dl_runtime_resolve_xsavec): Likewise.
2525         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
2526         Removed.
2527         (_dl_runtime_resolve_avx512_opt): Likewise.
2528         (_dl_runtime_resolve_avx): Likewise.
2529         (_dl_runtime_resolve_avx_opt): Likewise.
2530         (_dl_runtime_resolve_sse): Likewise.
2531         (_dl_runtime_resolve_sse_vex): Likewise.
2532         (_dl_runtime_resolve_fxsave): New.
2533         (_dl_runtime_resolve_xsave): Likewise.
2534         (_dl_runtime_resolve_xsavec): Likewise.
2536 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
2538         [BZ #22320]
2539         CVE-2017-15670
2540         * posix/glob.c (__glob): Fix one-byte overflow.
2542 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2544         * malloc/malloc.c (sysdep-cancel.h): Add include.
2546 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2548         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
2550 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
2552         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
2553         (tests): Remove $(objpfx)ga_test depdendency.
2554         * resolv/ga_test.c: Remove file.
2556 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2558         [BZ #18812]
2559         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
2560         * localedata/locales/kab_DZ: New file.
2562 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2564         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
2565         _dl_relocate_static_pie instead of _dl_start to compute load
2566         address in static PIE.
2568 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2570         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
2572 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2574         [BZ #13605]
2575         * localedata/SUPPORTED: Add shn_MM/UTF-8.
2576         * localedata/locales/shn_MM: New file.
2578 2017-10-20  Florian Weimer  <fweimer@redhat.com>
2580         [BZ #22321]
2581         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
2582         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
2583         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
2584         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
2585         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
2586         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
2588 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2590         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2592 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
2594         * sysdeps/mips/ieee754/bits/floatn.h: New file.
2596         [BZ #22322]
2597         * sysdeps/mips/bits/long-double.h: Move to ....
2598         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
2600 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
2602         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
2604 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
2605             H.J. Lu  <hongjiu.lu@intel.com>
2607         [BZ #22299]
2608         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
2609         GLRO(dl_platform) to NULL.
2610         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
2611         (modules-names): Add tst-platformmod-1 and
2612         x86_64/tst-platformmod-2.
2613         (CFLAGS-tst-platform-1.c): New.
2614         (CFLAGS-tst-platformmod-1.c): Likewise.
2615         (CFLAGS-tst-platformmod-2.c): Likewise.
2616         (LDFLAGS-tst-platformmod-2.so): Likewise.
2617         ($(objpfx)tst-platform-1): Likewise.
2618         ($(objpfx)tst-platform-1.out): Likewise.
2619         (tst-platform-1-ENV): Likewise.
2620         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
2621         * sysdeps/x86_64/tst-platform-1.c: New file.
2622         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
2623         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
2625 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
2627         [BZ #13994]
2628         * locale/iso-639.def: Add Karbi.
2629         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
2630         * localedata/locales/mjw_IN: New file.
2632 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
2634         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
2635         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2636         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
2637         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
2638         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2639         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2640         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
2641         <bits/floatn.h>.
2642         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2643         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2644         * manual/math.texi (Mathematics): Document additional architecture
2645         support for _Float128.
2646         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2647         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2648         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2649         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2650         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2651         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2652         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2653         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2654         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2655         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2656         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2657         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2658         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2659         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2660         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2662 2017-10-18  Renlin Li  <renlin.li@arm.com>
2664         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
2665         _DYNAMIC symbol to calculate load address.
2667 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
2669         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
2670         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
2671         summary bits.
2672         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
2673         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
2675 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
2677         [BZ #16777]
2678         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
2679         and improve readability by using more ASCII.
2680         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
2681         and improve readability by using more ASCII.
2683 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
2685         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
2686         not all targets support atomics on bool.
2688 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
2690         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
2691         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
2692         __f128.
2693         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2694         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
2695         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2696         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
2697         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2698         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
2700 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2702         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
2703         defines.
2705 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2707         [BZ #22159]
2708         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
2709         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
2710         (do_check_remalloced_chunk): Fix build bug.
2711         (do_check_malloc_state): Add assert that checks arena->top.
2712         (malloc_consolidate): Remove initialization.
2713         (int_mallinfo): Remove call to malloc_consolidate.
2714          (__libc_mallopt): Clarify why malloc_consolidate is needed.
2716 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2718         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
2719         (have_fastchunks): Remove.
2720         (clear_fastchunks): Remove.
2721         (set_fastchunks): Remove.
2722         (malloc_state): Add have_fastchunks.
2723         (malloc_init_state): Use have_fastchunks.
2724         (do_check_malloc_state): Remove incorrect invariant checks.
2725         (_int_malloc): Use have_fastchunks.
2726         (_int_free): Likewise.
2727         (malloc_consolidate): Likewise.
2729 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2731         * malloc/malloc.c (tcache_put): Inline.
2732         (tcache_get): Inline.
2734 2017-10-17  Jordi Mallach  <jordi@gnu.org>
2736         Aurelien Jarno  <aurelien@aurel32.net>
2737         [BZ #2522]
2738         * localedata/locales/ca_ES@valencia: New file.
2739         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
2741 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
2743         [BZ #22296]
2744         * math/math.h: Let signbit use the builtin in C++ mode with gcc
2745         < 6.x
2747 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2749         * scripts/build-many-glibcs.py (Context.add_all_configs):
2750         Add arm-linux-gnueabihf multiarch extra_glibcs.
2752         * sysdeps/generic/ifunc-init.h: New file.
2753         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
2755 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
2757         [BZ #22019]
2758         * localedata/locales/el_GR: Set n_cs_precedes to 0.
2759         * localedata/locales/el_CY: copy "el_GR" because it is identical.
2760         * stdlib/tst-strfmon_l.c: adapt test case.
2762 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2764         * sysdeps/generic/float128-abi.h: New file.
2765         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
2766         non-__prefixed symbols to ....
2767         * math/Versions: ... here.  Include <float128-abi.h>.
2768         * stdlib/Versions ... and here.  Include <float128-abi.h>
2770 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2772         * version.h (VERSION): Switch to ".9000" as the development
2773         version suffix.
2775 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2777         [BZ #22050]
2778         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
2779         compat_symbol_reference to access non-default version.
2781 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2783         * malloc/Makefile (others-extras): Set to mcheck-init.o.
2785 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
2787         * include/shlib-compat.h (compat_symbol_reference): Update
2788         comment.
2790 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2792         * math/Makefile (test-types): Add
2793         $(type-float128-$(float128-alias-fcts)).
2794         * math/test-float128.h (TYPE_STR): Define conditional on
2795         [FLT128_MANT_DIG == LDBL_MANT_DIG].
2796         (ULP_IDX): Likewise.
2797         (ULP_I_IDX): Likewise.
2799         * stdlib/strtold.c: Include <bits/floatn.h>
2800         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
2801         and later undefine as macro.  Define as weak alias if
2802         [!USE_WIDE_CHAR].
2803         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
2804         and later undefine as macro.  Define as weak alias if
2805         [USE_WIDE_CHAR].
2806         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
2807         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
2808         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2809         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2810         Define and later undefine as macro.  Define as weak alias if
2811         [USE_WIDE_CHAR].
2812         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
2813         <bits/floatn.h>.
2814         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
2815         Define and later undefine as macro.  Define as weak alias if
2816         [!USE_WIDE_CHAR].
2817         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2818         Define and later undefine as macro.  Define as weak alias if
2819         [USE_WIDE_CHAR].
2821 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
2823         * localedata/collate-test.c (allocate_arrays): Don't use \n in
2824         record_verbose messages.
2826 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2828         [BZ #22052]
2829         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
2830         to silence -O3 -Wall warning with GCC 7.
2832 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
2834         * Makeconfig (+link-static-before-libc): Use the first of
2835         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
2836         * gmon/Makefile (tests): Add tst-gmon-static.
2837         (tests-static): Likewise.
2838         (CFLAGS-tst-gmon-static.c): New.
2839         (CRT-tst-gmon-static): Likewise.
2840         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
2841         (tst-gmon-static-ENV): Likewise.
2842         (tests-special): Likewise.
2843         ($(objpfx)tst-gmon-static.out): Likewise.
2844         (clean-tst-gmon-static-data): Likewise.
2845         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
2846         * gmon/tst-gmon-static-gprof.sh: New file.
2847         * gmon/tst-gmon-static.c: Likewise.
2849 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
2851         [BZ #22295]
2852         * locale/programs/linereader.c (get_string): Don't warn on
2853         non-symbolic character.
2855         [BZ #22294]
2856         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
2857         int_curr_symbol.
2859         [BZ #22292]
2860         * locale/programs/record-status.h: New file
2861         * locale/programs/locale.c: Add comment.
2862         * locale/programs/charmap-dir.c: Don't include error.h.
2863         (charmap_opendir): Use record_error.
2864         * locale/programs/charmap.c: Don't include error.h.
2865         (charmap_read): Use record_error, and record_warning.
2866         (parse_charmap): Likewise.
2867         * locale/programs/ld-address.c: Don't include error.h.
2868         (address_finish): Use record_error, and record_warning.
2869         * locale/programs/ld-collate.c: Don't include error.h.
2870         (collate_finish): Use record_error, and record_error_at_line.
2871         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
2872         (ctype_class_new): Likewise.
2873         (ctype_map_new): Likewise.
2874         (set_one_default): Likewise.
2875         (set_class_defaults): Likewise.
2876         (translit_flatten): Likewise.
2877         (allocate_arrays): Use record_error, and record_verbose.
2878         * locale/programs/ld-identification.c: Don't include error.h.
2879         (indentation_finish): Use record_error and record_warning.
2880         * locale/programs/ld-measurement.c: Don't include error.h.
2881         (measurement_finish): Use record_error.
2882         * locale/programs/ld-messages.c
2883         (message_finish): Likewise.
2884         * locale/programs/ld-monetary.c
2885         (monetary_finish): Likewise.
2886         * locale/programs/ld-name.c (name_finish): Use record_error
2887         and record_warning.
2888         * locale/programs/ld-numeric.c
2889         (numeric_finish): Use record_error.
2890         * locale/programs/ld-paper.c: Don't include error.h.
2891         (paper_finish): Use record_error.
2892         * locale/programs/ld-telephone.c: Don't include error.h.
2893         (telephone_finish): Use record_error.
2894         * locale/programs/ld-time.c (time_finish): Likewise.
2895         * locale/programs/linereader.h (lr_error): Make inline func.
2896         * locale/programs/localedef.c: Define recorded_warning_count,
2897         and recorded_error_count.
2898         (main): Use record_error. Use recorded_error_count and
2899         recorded_warning_count to issue correct error returns.
2900         (add_to_readlist): Use record_error.
2901         (find_locale): Likewise.
2902         (load_locale): Likewise.
2903         * locale/programs/localedef.h: Remove be_quiet
2904         and WITH_CUR_LOCALE.
2905         * locale/programs/locarchive.c (compare_from_file): Use
2906         record_error.
2907         * locale/programs/locfile.c (write_locale_data): Use
2908         record_error.
2909         * locale/programs/repertoire.c: Dont include error.h.
2910         (repertoire_complain): Use record_error.
2911         * localedata/tst-fmon.sh: Expect failures from localedef.
2912         * localedata/tst-locale.sh: Likewise.
2913         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
2915         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
2916         (REPORTS): Likewise.
2917         (check): Likewise.
2918         (i18n): Rename to...
2919         (i18n_ctype): ...this.
2920         (i18n-report): Rename to...
2921         (i18n_ctype-report): ...this.
2922         * localedata/locales/i18n_ctype: Regenerate.
2923         * localedata/locales/i18n: copy i18n_ctype.
2925 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2927         * stdlib/strfroml.c: Include <bits/floatn.h>.
2928         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
2929         Define before include of <stdlib.h> and undefine afterwards, then
2930         define as weak alias.
2932         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
2933         Undefine and restore default definition.  Use
2934         libm_alias_ldouble_other.
2936 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
2938         [BZ #22153]
2939         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
2940         in coredumps.
2942 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
2944         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
2945         Assign sym_map to be map for local symbols, as TLS relocations
2946         use sym_map to determine whether the symbol is defined and to
2947         extract the TLS information.
2948         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2949         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2951 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2953         [BZ #22189]
2954         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
2955         (math_force_eval): Add powerpc version.
2957         [BZ #22142]
2958         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
2959         -DBL_MAX.
2960         (do_test): Likewise.
2961         * stdio-common/tst-printf.sh: Likewise.
2962         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
2963         ifdef clause in order to set the carry bit right.  Replace r0 by
2964         0 without changing the behavior.
2966 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2968         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
2969         <libm-alias-ldouble.h>.
2970         (fabsl): Define using libm_alias_ldouble.
2971         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
2972         <libm-alias-ldouble.h>.
2973         (fabsl): Define using libm_alias_ldouble.
2975         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
2976         Remove conditional code.
2978         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
2979         Rename to __clog10_internal_l.
2980         (__clog10_internal_l): Define aliases using
2981         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
2982         with __clog10.
2984 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2986         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
2987         * benchtests/sincosf-inputs: New file.
2988         * benchtests/cosf-inputs: New file.
2989         * benchtests/sinf-inputs: New file.
2991 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2993         * posix/tst-spawn.c (do_test): Wait for both children.
2995 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2997         [BZ #22284]
2998         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
2999         tests-pie): Add tst-gmon-pie.
3000         (CFLAGS-tst-gmon-pie.c): New.
3001         (CRT-tst-gmon-pie): Likewise.
3002         (tst-gmon-pie-ENV): Likewise.
3003         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
3004         ($(objpfx)tst-gmon-pie.out): Likewise.
3005         (clean-tst-gmon-pie-data): Likewise.
3006         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
3007         * gmon/gmon.c [PIC]: Include <link.h>.
3008         [PIC] (callback): New function.
3009         (write_hist): Add an argument for load address.  Subtract load
3010         address from PCs.
3011         (write_call_graph): Likewise.
3012         (write_gmon): Call __dl_iterate_phdr to get load address, pass
3013         it to write_hist and write_call_graph.
3014         * gmon/tst-gmon-pie.c: New file.
3016 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3018         * math/Makefile (test-types-basic): New variable.
3019         (test-types): Likewise.
3020         (libm-test-support): Use $(test-types) instead of $(types).
3021         (libm-tests-base-normal): Likewise.
3022         (libm-tests-base-finite): Likewise.
3023         (libm-tests-base-inline): Likewise.
3024         (generated): Likewise.
3025         ($(objpfx)libm-test-support-$(t).c): Likewise.
3026         (libm-tests-for-type iterator): Likewise.
3027         (libm-test-support iterator): Likewise.
3028         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
3029         (ulp_idx): Use ULP_IDX.
3030         * math/test-ldouble.h: Include <float.h>.
3031         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
3032         (ULP_IDX): New macro.
3033         (ULP_I_IDX): Likewise.
3034         * math/test-double.h (ULP_IDX): Likewise.
3035         (ULP_I_IDX): Likewise.
3036         * math/test-float.h (ULP_IDX): Likewise.
3037         (ULP_I_IDX): Likewise.
3038         * math/test-float128.h (ULP_IDX): Likewise.
3039         (ULP_I_IDX): Likewise.
3041 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3043         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
3044         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
3045         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
3046         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
3047         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
3048         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
3049         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
3050         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
3051         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
3052         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
3053         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
3054         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
3055         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
3056         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3057         (SINGLE_THREAD_BY_GLOBAL): Define.
3058         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3059         Likewise.
3060         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3061         Likewise.
3062         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3063         Likewise.
3064         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3065         Likewise.
3066         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
3067         (SINGLE_THREAD_BY_GLOBAL): Likewise.
3068         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3069         Likewise.
3071 2017-10-11  Andreas Schwab  <schwab@suse.de>
3073         * nis/Makefile (aux): Remove.
3074         * nscd/Makefile (aux): Add nscd_hash.
3075         (nscd-modules): Likewise.
3076         ($(objpfx)nscd): Don't depend on libnsl.
3077         * nscd/nscd_hash.c: New file.
3078         * nscd/nscd_hash.h: Likewise.
3079         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
3080         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
3081         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
3082         instead of <nis/rpcsvc/nis.h>.
3083         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
3085 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3087         [BZ #22078]
3088         Avoid large NSS buffers with many addresses, aliases.
3089         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
3090         using dynarrays and struct alloc_buffer.
3091         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
3092         (tst-nss-files-hosts-multi): Link with -ldl.
3093         * nss/tst-nss-files-hosts-multi.c: New file.
3095 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3097         [BZ #18023]
3098         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
3099         scratch_buffer.  Eliminate gotos.
3101 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3103         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
3104         libm_alias_ldouble_other.
3105         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
3106         undefine and redefine.
3107         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3108         (exp10l): Do not define here.
3109         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
3110         (weak_alias): Undefine and redefine.
3111         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
3112         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3113         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
3114         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
3116         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
3117         [!__fma] (fma): Define using libm_alias_double.
3118         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
3119         [!__fmaf] (fmaf): Define using libm_alias_float.
3120         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
3121         (fmal): Define using libm_alias_ldouble.
3123 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
3125         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
3126         New macro.
3127         (libm_alias_double_other): Likewise.
3128         (libm_alias_double_r): Use libm_alias_double_other_r.
3129         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
3130         New macro.
3131         (libm_alias_float_other): Likewise.
3132         (libm_alias_float_r): Use libm_alias_float_other_r.
3133         * sysdeps/generic/libm-alias-float128.h
3134         (libm_alias_float128_other_r): New macro.
3135         (libm_alias_float128_other): Likewise.
3136         (libm_alias_float128_r): Use libm_alias_float128_other_r.
3137         * sysdeps/generic/libm-alias-ldouble.h
3138         (libm_alias_ldouble_other_r): New macro.
3139         (libm_alias_ldouble_other): Likewise.
3140         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3141         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3142         (libm_alias_double_other_r): New macro.
3143         (libm_alias_double_other): Likewise.
3144         (libm_alias_double_r): Use libm_alias_double_other_r.
3145         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3146         (libm_alias_ldouble_other_r): New macro.
3147         (libm_alias_ldouble_other): Likewise.
3148         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3149         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
3150         [!USE_AS_COMPAT]: Use libm_alias_double_other.
3151         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
3152         [!USE_AS_COMPAT]: Use libm_alias_float_other.
3153         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
3154         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
3155         * math/w_exp2f.c: Use libm_alias_float_other.
3156         * math/w_expf.c: Likewise.
3157         * math/w_log2f.c: Likewise.
3158         * math/w_logf.c: Likewise.
3159         * math/w_powf.c: Likewise.
3160         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
3161         [!__exp2f]: Use libm_alias_float_other.
3162         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
3163         [!__expf]: Use libm_alias_float_other.
3164         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
3165         [!__log2f]: Use libm_alias_float_other.
3166         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
3167         [!__logf]: Use libm_alias_float_other.
3168         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
3169         [!__powf]: Use libm_alias_float_other.
3171 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3173         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3174         function.
3175         (_nss_files_gethostbyname3_r): Call it.
3177 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3179         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3180         error.  Remove default definition of declare_mgen_alias.
3181         [!declare_mgen_alias_r]: Likewise.
3182         * sysdeps/generic/math-type-macros-double.h
3183         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3184         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3185         (declare_mgen_alias_r): Likewise.
3186         * sysdeps/generic/math-type-macros-float128.h
3187         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3188         * sysdeps/generic/math-type-macros-ldouble.h
3189         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3190         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3191         macro.
3192         (declare_mgen_alias_r_s): Likewise.
3193         (declare_mgen_alias_r): Likewise.
3194         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3195         (lgamma_r): Define using libm_alias_double_r.
3196         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3197         (lgammaf_r): Define using libm_alias_float_r.
3198         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3199         (lgammal_r): Define using libm_alias_ldouble_r.
3200         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3201         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3203 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3205         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3206         extern declaration.
3208 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3210         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3212 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3214         [BZ #21326]
3215         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3216         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3217         * math/Makefile (test-math-cxx11): New test.
3218         * math/test-math-cxx11.cc: New file.
3220 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3222         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3224         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3225         call to allocate the slave pty file descriptor.
3227 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3229         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3230         [!__fma] (fma): Define using libm_alias_double.
3231         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3232         [!__fma] (fma): Define using libm_alias_double.
3234         * sysdeps/ieee754/float128/float128_private.h: Include
3235         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3236         (libm_alias_ldouble_r): Undefine and redefine.
3237         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3238         <libm-alias-ldouble.h>.
3239         (asinhl): Define using libm_alias_ldouble.
3240         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3241         <libm-alias-ldouble.h>.
3242         (atanl): Define using libm_alias_ldouble.
3243         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3244         <libm-alias-ldouble.h>.
3245         (cbrtl): Define using libm_alias_ldouble.
3246         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3247         <libm-alias-ldouble.h>.
3248         (ceill): Define using libm_alias_ldouble.
3249         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3250         <libm-alias-ldouble.h>.
3251         (copysignl): Define using libm_alias_ldouble.
3252         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3253         <libm-alias-ldouble.h>.
3254         (cosl): Define using libm_alias_ldouble.
3255         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3256         <libm-alias-ldouble.h>.
3257         (erfl): Define using libm_alias_ldouble.
3258         (erfcl): Likewise.
3259         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3260         <libm-alias-ldouble.h>.
3261         (expm1l): Define using libm_alias_ldouble.
3262         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3263         <libm-alias-ldouble.h>.
3264         (fabsl): Define using libm_alias_ldouble.
3265         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3266         <libm-alias-ldouble.h>.
3267         (floorl): Define using libm_alias_ldouble.
3268         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3269         <libm-alias-ldouble.h>.
3270         (fmal): Define using libm_alias_ldouble.
3271         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3272         <libm-alias-ldouble.h>.
3273         (frexpl): Define using libm_alias_ldouble.
3274         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3275         libm_alias_ldouble.
3276         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3277         <libm-alias-ldouble.h>.
3278         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3279         libm_alias_ldouble.
3280         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3281         <libm-alias-ldouble.h>.
3282         (getpayloadl): Define using libm_alias_ldouble.
3283         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3284         <libm-alias-ldouble.h>.
3285         (llrintl): Define using libm_alias_ldouble.
3286         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3287         <libm-alias-ldouble.h>.
3288         (llroundl): Define using libm_alias_ldouble.
3289         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
3290         <libm-alias-ldouble.h>.
3291         (logbl): Define using libm_alias_ldouble.
3292         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
3293         <libm-alias-ldouble.h>.
3294         (lrintl): Define using libm_alias_ldouble.
3295         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
3296         <libm-alias-ldouble.h>.
3297         (lroundl): Define using libm_alias_ldouble.
3298         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
3299         <libm-alias-ldouble.h>.
3300         (modfl): Define using libm_alias_ldouble.
3301         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
3302         <libm-alias-ldouble.h>.
3303         (nearbyintl): Define using libm_alias_ldouble.
3304         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
3305         <libm-alias-ldouble.h>.
3306         (nextafterl): Define using libm_alias_ldouble.
3307         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
3308         <libm-alias-ldouble.h>.
3309         (nextupl): Define using libm_alias_ldouble.
3310         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
3311         <libm-alias-ldouble.h>.
3312         (remquol): Define using libm_alias_ldouble.
3313         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
3314         <libm-alias-ldouble.h>.
3315         (rintl): Define using libm_alias_ldouble.
3316         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
3317         <libm-alias-ldouble.h>.
3318         (roundevenl): Define using libm_alias_ldouble.
3319         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
3320         <libm-alias-ldouble.h>.
3321         (roundl): Define using libm_alias_ldouble.
3322         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
3323         using libm_alias_ldouble.
3324         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
3325         <libm-alias-ldouble.h>.
3326         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
3327         Define using libm_alias_ldouble.
3328         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
3329         <libm-alias-ldouble.h>.
3330         (sincosl): Define using libm_alias_ldouble.
3331         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
3332         <libm-alias-ldouble.h>.
3333         (sinl): Define using libm_alias_ldouble.
3334         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
3335         <libm-alias-ldouble.h>.
3336         (tanhl): Define using libm_alias_ldouble.
3337         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
3338         <libm-alias-ldouble.h>.
3339         (tanl): Define using libm_alias_ldouble.
3340         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
3341         <libm-alias-ldouble.h>.
3342         (totalorderl): Define using libm_alias_ldouble.
3343         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
3344         <libm-alias-ldouble.h>.
3345         (totalordermagl): Define using libm_alias_ldouble.
3346         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
3347         <libm-alias-ldouble.h>.
3348         (truncl): Define using libm_alias_ldouble.
3349         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
3350         libm_alias_ldouble.
3351         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
3352         libm_alias_ldouble.
3353         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
3354         <libm-alias-ldouble.h>.
3355         (weak_alias): Do not undefine and redefine.
3356         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3357         (copysignl): Define with long_double_symbol only if [IS_IN
3358         (libc)].
3359         * sysdeps/ieee754/ldbl-64-128/s_frexpl.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         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
3364         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
3365         <libm-alias-ldouble.h>.
3366         (weak_alias): Do not undefine and redefine.
3367         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3368         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
3369         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
3370         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
3371         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
3372         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
3373         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
3374         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
3375         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
3376         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
3377         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
3378         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
3379         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
3380         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
3381         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
3382         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
3383         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
3384         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
3385         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
3386         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
3387         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
3388         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
3389         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
3390         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
3391         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
3392         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
3394 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
3396         [BZ #22111]
3397         * malloc/malloc.c (tcache_shutting_down): Use bool type.
3398         (tcache_thread_freeres): Set tcache_shutting_down before
3399         freeing the tcache.
3400         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
3401         * malloc/tst-malloc-tcache-leak.c: New file.
3403 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3405         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
3406         back to powerpc32 file.
3407         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3408         (memrchr): Add __memrchr_power8 to ifunc list.
3409         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
3410         extra bytes for unaligned inputs.
3412 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3414         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
3415         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
3416         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
3417         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
3418         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
3420 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3422         * sysdeps/arm/libm-test-ulps: Update.
3424         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
3425         <libm-alias-ldouble.h>.
3426         (asinhl): Define using libm_alias_ldouble.
3427         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
3428         <libm-alias-ldouble.h>.
3429         (cbrtl): Define using libm_alias_ldouble.
3430         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
3431         <libm-alias-ldouble.h>.
3432         (copysignl): Define using libm_alias_ldouble.
3433         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
3434         <libm-alias-ldouble.h>.
3435         (cosl): Define using libm_alias_ldouble.
3436         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
3437         <libm-alias-ldouble.h>.
3438         (erfl): Define using libm_alias_ldouble.
3439         (erfcl): Likewise.
3440         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
3441         <libm-alias-ldouble.h>.
3442         (fmal): Define using libm_alias_ldouble.
3443         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
3444         <libm-alias-ldouble.h>.
3445         (frexpl): Define using libm_alias_ldouble.
3446         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
3447         libm_alias_ldouble.
3448         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
3449         <libm-alias-ldouble.h>.
3450         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
3451         libm_alias_ldouble.
3452         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
3453         <libm-alias-ldouble.h>.
3454         (getpayloadl): Define using libm_alias_ldouble.
3455         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
3456         <libm-alias-ldouble.h>.
3457         (llrintl): Define using libm_alias_ldouble.
3458         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
3459         <libm-alias-ldouble.h>.
3460         (llroundl): Define using libm_alias_ldouble.
3461         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
3462         <libm-alias-ldouble.h>.
3463         (lrintl): Define using libm_alias_ldouble.
3464         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
3465         <libm-alias-ldouble.h>.
3466         (lroundl): Define using libm_alias_ldouble.
3467         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
3468         <libm-alias-ldouble.h>.
3469         (modfl): Define using libm_alias_ldouble.
3470         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
3471         <libm-alias-ldouble.h>.
3472         (nextupl): Define using libm_alias_ldouble.
3473         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
3474         <libm-alias-ldouble.h>.
3475         (remquol): Define using libm_alias_ldouble.
3476         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
3477         <libm-alias-ldouble.h>.
3478         (roundevenl): Define using libm_alias_ldouble.
3479         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
3480         <libm-alias-ldouble.h>.
3481         (roundl): Define using libm_alias_ldouble.
3482         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
3483         using libm_alias_ldouble.
3484         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
3485         <libm-alias-ldouble.h>.
3486         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
3487         <libm-alias-ldouble.h>.
3488         (setpayloadsigl): Define using libm_alias_ldouble.
3489         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
3490         <libm-alias-ldouble.h>.
3491         (sincosl): Define using libm_alias_ldouble.
3492         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
3493         <libm-alias-ldouble.h>.
3494         (sinl): Define using libm_alias_ldouble.
3495         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
3496         <libm-alias-ldouble.h>.
3497         (tanhl): Define using libm_alias_ldouble.
3498         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
3499         <libm-alias-ldouble.h>.
3500         (tanl): Define using libm_alias_ldouble.
3501         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
3502         <libm-alias-ldouble.h>.
3503         (totalorderl): Define using libm_alias_ldouble.
3504         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
3505         <libm-alias-ldouble.h>.
3506         (totalordermagl): Define using libm_alias_ldouble.
3507         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
3508         libm_alias_ldouble.
3509         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
3510         libm_alias_ldouble.
3512 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3514         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3515         memmove_falkor.
3516         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3517         (__libc_ifunc_impl_list): Likewise.
3518         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
3519         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
3521         * benchtests/bench-memmove-walk.c: New file.
3522         * benchtests/Makefile (string-benchset): Add it.
3524         * benchtests/bench-memset-walk.c: New file.
3525         * benchtests/Makefile (string-benchset): Add it.
3527         * benchtests/bench-memcpy-walk.c: New file.
3528         * benchtests/Makefile (string-benchset): Add it.
3530 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3532         nscd: Eliminate compilation time dependency in the build output.
3533         * nscd/nscd_stat.c (STATDATA_VERSION)
3534         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
3535         (STATDATA_VERSION_FULL): New macro definitions.
3536         (compilation): Remove.
3537         (struct statdata): Adjust version member.
3538         (send_stats): Set version from STATDATA_VERSION_FULL.
3539         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
3541 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3543         * configure.ac (--enable-add-ons): Remove option.
3544         (machine): Do not mention add-ons in comment.
3545         (LIBC_PRECONFIGURE): Likewise.
3546         (add_ons): Remove variable and sanity checks and logic to locate
3547         add-ons.
3548         (add_ons_automatic): Remove variable.
3549         (configured_add_ons): Likewise.
3550         (add_ons_sfx): Likewise.
3551         (add_ons_pfx): Likewise.
3552         (add_on_subdirs): Likewise.
3553         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
3554         consideration of add-ons in Implies handling.
3555         (sysdeps_add_ons): Likewise.
3556         * configure: Regenerated.
3557         * libidn/configure.ac: Remove.
3558         * libidn/configure: Likewise.
3559         * sysdeps/unix/inet/configure.ac: New file.
3560         * sysdeps/unix/inet/configure: New generated file.
3561         * sysdeps/unix/inet/Subdirs: Add libidn.
3562         * Makeconfig (sysdeps-srcdirs): Remove variable.
3563         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
3564         ($(common-objpfx)config.status): Do not depend on add-on files.
3565         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
3566         comment.
3567         (all-subdirs): Do not include $(add-on-subdirs).
3568         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
3569         * config.make.in (add-ons): Remove variable.
3570         (add-on-subdirs): Likewise.
3571         (sysdeps-add-ons): Likewise.
3572         * manual/Makefile (add-chapters): Remove.
3573         ($(objpfx)texis): Do not depend on $(add-chapters).
3574         (nonexamples): Do not handle $(add-chapters).
3575         (examples): Do not handle $(add-ons).
3576         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
3577         libc-texinfo.sh.
3578         * manual/install.texi (Installation): Do not mention add-ons.
3579         (--enable-add-ons): Do not document configure option.
3580         * INSTALL: Regenerated.
3581         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
3582         * manual/maint.texi (Hierarchy Conventions): Do not mention
3583         add-ons.
3584         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
3585         --enable-add-ons.
3586         * scripts/gen-sorted.awk: Do not handle Subdirs files from
3587         add-ons.
3588         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
3589         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
3591 2017-10-05  Andreas Schwab  <schwab@suse.de>
3593         [BZ #15142]
3594         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
3595         (_IO_flush_all_lockp): Always lock list_all_lock.
3596         (_IO_flush_all_linebuffered): Likewise.
3597         (_IO_unbuffer_all): Likewise.
3599 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3601         [BZ #15436]
3602         Do not flush stdio streams on abort.
3603         * stdlib/abort.c (fflush): Remove macro definition.
3604         (abort): Remove stages related to stdio flushing.
3606 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3608         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
3610 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
3612         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3614 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3616         * support/support_format_hostent.c (support_format_hostent): Add
3617         more error information for NETDB_INTERNAL.
3619 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3621         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
3622         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
3623         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
3624         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
3625         AC_DEFINE if multi-arch is enabled.
3626         * sysdeps/i386/configure: Regenerated.
3628 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3630         * Makeconfig (+link-static-before-libc): Use
3631         $(DEFAULT-LDFLAGS-$(@F)).
3632         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
3633         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
3634         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
3636 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3638         * elf/Makefile (tests): Add tst-main1.
3639         (modules-names): Add tst-main1mod.
3640         ($(objpfx)tst-main1): New.
3641         (CRT-tst-main1): Likewise.
3642         (LDFLAGS-tst-main1): Likewise.
3643         (LDLIBS-tst-main1): Likewise.
3644         (tst-main1mod.so-no-z-defs): Likewise.
3645         * elf/tst-main1.c: New file.
3646         * elf/tst-main1mod.c: Likewise.
3648 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3650         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
3652 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3654         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
3655         (fma): Define using libm_alias_double.
3656         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
3657         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
3658         <math_ldbl_opt.h>.
3659         (fmal): Do not define as compat symbol here.
3660         * sysdeps/alpha/fpu/s_fma.c: New file.
3662 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3664         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
3666 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3668         [BZ #22229]
3669         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3670         <math_ldbl_opt.h>
3671         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3672         and libc.
3673         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
3674         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3675         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
3676         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
3677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3678         Include <math_ldbl_opt.h>
3679         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3680         and libc.
3681         (compat_symbol): Undefine and redefine.
3682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3683         <math_ldbl_opt.h>
3684         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3685         (compat_symbol): Undefine and redefine.
3686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
3687         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
3688         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
3689         GLIBC_2_1 for libm.
3690         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
3691         GLIBC_2.0 copysignl symbol.
3692         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3693         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
3695         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
3697 2017-10-04  Florian Weimer  <fweimer@redhat.com>
3699         * scripts/check-local-headers.sh: Ignore nspr4 header file
3700         directory in addition to nspr.
3702 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
3704         [BZ #17956]
3705         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
3706         * configure: Regenerate.
3707         * crypt/Makefile (nss-cpp-flags): New variable.
3708         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
3709         (CPPFLAGS-md5-crypt.c): Use it.
3710         * scripts/check-local-headers.sh: Ignore nspr header file
3711         directory.
3713 2017-10-04  Andreas Schwab  <schwab@suse.de>
3715         * nis/Makefile (services): Remove compat.
3716         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
3717         ($(objpfx)libnss_compat.so): Remove rule.
3718         * nis/Versions (libnss_compat): Remove.
3719         * nss/Makefile (services): Add compat.
3720         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
3721         * nss/Versions (libnss_compat): Define.
3722         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
3723         Don't include <rpc/types.h>.  Replace bool_t by bool.
3724         * nss/nss_compat/compat-initgroups.c: Likewise.
3725         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
3726         instead of <rpcsrv/ypclnt.h>.
3727         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
3728         yp_get_default_domain.
3729         * nss/nss_compat/compat-pwd.c: Likewise.
3730         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
3731         yp_get_default_domain.
3732         * nss/nss_compat/nisdomain.c: New file.
3733         * nss/nss_compat/nisdomain.h: Likewise.
3735 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3737         [BZ #22244]
3738         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
3739         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3741 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3743         [BZ #22243]
3744         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
3745         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
3747 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3749         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
3750         "movl main@GOTOFF(%ebx), %eax".
3752 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3754         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
3755         allow undefined _DYNAMIC in PIE libc.a.
3756         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3757         Likewse.
3759 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3761         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
3762         check _DYNAMIC.
3764 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3766         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
3767         check _DYNAMIC.
3769 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3771         * math/test-math-iscanonical.cc (error): Replace bool with int.
3773 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3775         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
3776         (modf): Define using libm_alias_double, only if [!__modf].
3777         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
3778         <libm-alias-double.h>.
3779         (modf): Define using libm_alias_double, only if [!__modf].
3780         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
3781         compat symbol here.
3782         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
3783         (weak_alias): Do not undefine and redefine.
3784         (strong_alias): Likewise.
3785         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
3786         (weak_alias): Likewise.
3787         (strong_alias): Likewise.
3789         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
3790         (logb): Define using libm_alias_double, only if [!__logb].
3791         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
3792         <libm-alias-double.h>.
3793         (logb): Define using libm_alias_double, only if [!__logb].
3794         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
3795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
3796         (weak_alias): Do not undefine and redefine.
3797         (strong_alias): Likewise.
3798         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
3799         (weak_alias): Likewise.
3800         (strong_alias): Likewise.
3802 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3804         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
3805         Check SHARED instead PIC.
3807 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3809         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
3810         [!__fmaf] (fmaf): Define using libm_alias_float.
3812         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
3813         (frexp): Define using libm_alias_double.
3814         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
3815         <libm-alias-double.h>.
3816         (frexp): Define using libm_alias_double.
3817         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
3818         compat symbol here.
3820 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3822         [BZ #22235]
3823         * math/math.h: Trivial fix for unbalanced parentheses in comment.
3824         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
3825         (CFLAGS-test-math-iscanonical.cc): New variable.
3826         * math/test-math-iscanonical.cc: New file.
3827         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
3828         Provide a C++ implementation based on function overloading,
3829         rather than using __MATH_TG, which uses C-only builtins.
3830         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
3831         Likewise.
3832         * sysdeps/powerpc/powerpc64le/Makefile
3833         (CFLAGS-test-math-iscanonical.cc): New variable.
3835 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3837         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
3838         (ceil): Define using libm_alias_double.
3839         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
3840         (floor): Define using libm_alias_double.
3841         * sysdeps/ieee754/dbl-64/s_llround.c: Include
3842         <libm-alias-double.h>.
3843         (llround): Define using libm_alias_double.
3844         * sysdeps/ieee754/dbl-64/s_lround.c: Include
3845         <libm-alias-double.h>.
3846         (lround): Define using libm_alias_double.
3847         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
3848         <libm-alias-double.h>.
3849         (nearbyint): Define using libm_alias_double.
3850         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
3851         <libm-alias-double.h>.
3852         (remquo): Define using libm_alias_double.
3853         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
3854         (rint): Define using libm_alias_double.
3855         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
3856         (round): Define using libm_alias_double.
3857         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
3858         (trunc): Define using libm_alias_double.
3859         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
3860         <libm-alias-double.h>.
3861         (ceil): Define using libm_alias_double.
3862         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
3863         <libm-alias-double.h>.
3864         (floor): Define using libm_alias_double.
3865         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
3866         <libm-alias-double.h>.
3867         (llround): Define using libm_alias_double.
3868         [_LP64] (lround): Likewise.
3869         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
3870         <libm-alias-double.h>.
3871         [!_LP64] (lround): Define using libm_alias_double.
3872         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
3873         <libm-alias-double.h>.
3874         (nearbyint): Define using libm_alias_double.
3875         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
3876         <libm-alias-double.h>.
3877         (remquo): Define using libm_alias_double.
3878         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
3879         <libm-alias-double.h>.
3880         (rint): Define using libm_alias_double.
3881         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
3882         <libm-alias-double.h>.
3883         (round): Define using libm_alias_double.
3884         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
3885         <libm-alias-double.h>.
3886         (trunc): Define using libm_alias_double.
3887         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
3888         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
3889         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
3890         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
3891         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
3892         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
3893         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
3894         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
3895         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
3897 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3899         * math/w_remainder.c: New file.
3900         * math/w_remainderf.c: New file.
3901         * math/w_remainderl.c: New file.
3903 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3905         * elf/rtld.c (BOOTSTRAP_MAP): New.
3906         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
3907         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3908         Likewise.
3909         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3910         Likewise.
3911         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3912         Likewise.
3914 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3916         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
3917         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
3918         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
3919         rtld_hidden_data_ver): Define to empty.
3920         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
3921         __assert_perror_fail): Likewise.
3922         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3923         (__rewinddir): Likewise.
3924         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3925         (__profile_frequency): Likewise.
3926         * include/setjmp.h (__sigsetjmp): Likewise.
3927         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
3928         __libc_sigaction): Likewise.
3929         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
3930         not set hidden attribute.
3931         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
3932         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
3933         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
3934         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
3935         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
3936         __fxstatat64): Likewise.
3937         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3938         (__uname): Likewise.
3939         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3940         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
3941         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
3942         (NO_RTLD_HIDDEN): Set.
3943         * sysdeps/mach/hurd/configure: Refresh.
3944         * config.h.in: Refresh.
3946 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
3948         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
3949         (atan): Define using libm_alias_double.
3950         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
3951         (tan): Define using libm_alias_double.
3952         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
3953         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
3955         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
3956         define as weak alias of __atan.  Do not define any aliases if
3957         [__atan].
3958         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
3959         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
3960         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
3961         as weak alias of __tan.  Do not define any aliases if [__tan].
3962         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
3963         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
3964         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
3965         __atan.
3966         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
3967         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
3968         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
3969         and define as weak alias of __atan.
3970         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
3971         __atan.
3972         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
3973         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
3974         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
3975         define as weak alias of __tan.
3977 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3979         * math/w_lgamma.c: New file.
3980         * math/w_lgammaf.c: New file.
3981         * math/w_lgammal.c: New file.
3983 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3985         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
3986         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
3987         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
3988         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
3989         * sysdeps/ieee754/flt-32/w_logf.c: New file.
3990         * sysdeps/ieee754/flt-32/w_powf.c: New file.
3991         * sysdeps/i386/fpu/w_log2f.c: New file.
3992         * sysdeps/i386/fpu/w_logf.c: New file.
3993         * sysdeps/i386/fpu/w_powf.c: New file.
3994         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
3995         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
3996         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
3998 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3999             H.J. Lu  <hongjiu.lu@intel.com>
4001         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
4002         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
4003         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
4004         * sysdeps/ieee754/flt-32/w_expf.c: New file.
4005         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
4006         the new expf code.
4007         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
4008         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
4009         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
4010         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
4011         * sysdeps/i386/fpu/w_exp2f.c: New file.
4012         * sysdeps/i386/fpu/w_expf.c: New file.
4013         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
4014         * sysdeps/x86_64/fpu/w_expf.c: New file.
4016 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4018         * math/Versions (logf): New libm symbol at GLIBC_2.27.
4019         (log2f): Likewise.
4020         (powf): Likewise.
4021         * math/w_log2f.c: New file.
4022         * math/w_logf.c: New file.
4023         * math/w_powf.c: New file.
4024         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
4025         * math/w_logf_compat.c (__logf_compat): Likewise.
4026         * math/w_powf_compat.c (__powf_compat): Likewise.
4027         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
4028         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4029         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4030         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4031         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4032         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4033         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4034         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4035         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4036         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4037         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4038         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4039         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4040         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4041         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4043         Likewise.
4044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4045         Likewise.
4046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4047         Likewise.
4048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4049         Likewise.
4050         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4051         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4052         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4053         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4054         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4055         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4056         Likewise.
4057         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4058         Likewise.
4059         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4060         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4061         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4063 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4065         * sysdeps/powerpc/powerpc64/multiarch/Makefile
4066         (sysdep_routines): Add memrchr_power8.
4067         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4068         (memrchr): Add __memrchr_power8 to list of memrchr functions.
4069         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
4070         New file.
4071         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
4072         (memrchr): Add __memrchr_power8 to ifunc list.
4073         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
4075 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4077         [BZ #18822]
4078         * sysdeps/unix/sysv/linux/posix_fadvise64.c
4079         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
4080         libc_hidden_def.
4081         * sysdeps/unix/sysv/linux/posix_fallocate64.c
4082         (__posix_fallocate64_l64): Likewise.
4084 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4086         [BZ #18822]
4087         * sysdeps/unix/sysv/linux/sched_setaffinity.c
4088         (__sched_setaffinity_new): Add libc_hidden_proto and
4089         libc_hidden_def.
4091 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4093         [BZ #18822]
4094         * include/glob.h (__glob64): Add libc_hidden_proto.
4095         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
4096         libc_hidden_def.
4098 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4100         [BZ #18822]
4101         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
4102         attribute_hidden.
4104 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4106         [BZ #18822]
4107         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
4109 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4111         [BZ #18822]
4112         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
4113         libc_hidden_def.
4115 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4117         [BZ #18822]
4118         * csu/version.c (__libc_print_version): Add attribute_hidden.
4120 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4122         [BZ #18822]
4123         * include/libc-internal.h (__init_misc): Add attribute_hidden.
4125 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4127         [BZ #18822]
4128         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
4130 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4132         [BZ #18822]
4133         * nscd/nscd_helper.c (__nis_hash): New prototype.
4135 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4137         [BZ #18822]
4138         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
4139         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
4140         libc_hidden_def.
4141         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
4142         * termios/tcgetattr.c (__tcgetattr): Likewise.
4144 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4146         [BZ #18822]
4147         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
4148         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
4149         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
4150         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
4151         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
4153 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4155         [BZ #18822]
4156         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
4158 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4160         [BZ #18822]
4161         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
4162         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
4164 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4166         [BZ #18822]
4167         * intl/hash-string.h (__hash_string): Add attribute_hidden.
4169 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4171         [BZ #18822]
4172         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4173         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4175 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4177         [BZ #18822]
4178         * include/ifreq.h: New file.
4179         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4180         (__ifreq): Likewise.
4181         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4182         (__ifreq): Likewise.
4184 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4186         [BZ #18822]
4187         * include/idna.h: New file.
4188         * inet/getnameinfo.c: Include <idna.h> instead of
4189         <libidn/idna.h>.
4190         (__idna_to_unicode_lzlz): Removed.
4191         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4192         <libidn/idna.h>.
4193         (__idna_to_ascii_lz): Removed.
4194         (__idna_to_unicode_lzlz): Likewise.
4196 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4198         [BZ #18822]
4199         * include/plural-exp.h: New file.
4200         * intl/plural-exp.c: Include <plural-exp.h> instead of
4201         "plural-exp.h".
4203 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4205         [BZ #18822]
4206         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4207         "getsourcefilter.h".
4208         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4209         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4210         "getsourcefilter.h".
4211         (__get_sol): Removed.
4213 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4215         [BZ #18822]
4216         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4217         to ...
4218         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4220 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4222         [BZ #18822]
4223         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4224         attribute_hidden.
4226 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4228         [BZ #18822]
4229         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4231 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4233         [BZ #18822]
4234         * include/search.h (__tdestroy): Add libc_hidden_proto.
4235         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4237 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4239         [BZ #18822]
4240         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4242 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4244         [BZ #18822]
4245         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4246         attribute_hidden.
4248 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4250         [BZ #18822]
4251         * include/signal.h (__kill): Add libc_hidden_proto.
4252         (__sigblock): Likewise.
4253         (__sigprocmask): Likewise.
4254         (__sigaltstack): Likewise.
4255         * signal/kill.c (__kill): Add libc_hidden_def.
4256         * signal/sigblock.c (__sigblock): Likewise.
4257         * signal/sigprocmask.c (__sigprocmask): Likewise.
4258         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4259         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4260         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4261         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4262         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4263         Likewise.
4264         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4265         Likewise.
4266         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4267         (__sigprocmask): Likewise.
4268         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4269         Likewise.
4270         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4271         (__sigprocmask): Likewise.
4272         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4273         Likewise.
4275 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4277         [BZ #18822]
4278         * include/string.h (__strsep): Add libc_hidden_proto.
4279         * string/strsep.c (__strsep): Add libc_hidden_def.
4281 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4283         [BZ #18822]
4284         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4285         attribute_hidden.
4286         (__spawni): Likewise.
4288 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4290         [BZ #18822]
4291         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
4292         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
4293         libc_hidden_def.
4295 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4297         [BZ #18822]
4298         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
4300 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4302         [BZ #18822]
4303         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
4304         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
4305         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4306         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
4307         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
4308         Likewise.
4309         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
4310         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
4312 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4314         [BZ #18822]
4315         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
4316         (__dcigettext): Likewise.
4318 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4320         [BZ #18822]
4321         * include/sys/sysinfo.h (__get_nprocs_conf): Add
4322         libc_hidden_proto.
4323         (__get_nprocs): Likewise.
4324         (__get_phys_pages): Likewise.
4325         (__get_avphys_pages): Likewise.
4326         (__get_child_max): Add attribute_hidden.
4327         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
4328         (__get_nprocs): Likewise.
4329         (__get_phys_pages): Likewise.
4330         (__get_avphys_pages): Likewise.
4331         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
4332         libc_hidden_def.
4333         (__get_nprocs): Likewise.
4334         (__get_phys_pages): Likewise.
4335         (__get_avphys_pages): Likewise.
4336         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
4337         libc_hidden_def.
4338         (__get_nprocs_conf): Likewise.
4339         (__get_phys_pages): Likewise.
4340         (__get_avphys_pages): Likewise.
4342 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4344         [BZ #18822]
4345         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
4346         attribute_hidden.
4347         (__netlink_close): Likewise.
4348         (__netlink_free_handle): Likewise.
4349         (__netlink_request): Likewise.
4351 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4353         [BZ #18822]
4354         * include/rpc/rpc.h (__rpc_thread_variables): Add
4355         attribute_hidden.
4356         (__rpc_thread_svc_cleanup): Likewise.
4357         (__rpc_thread_clnt_cleanup): Likewise.
4358         (__rpc_thread_key_cleanup): Likewise.
4360 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4362         [BZ #18822]
4363         * include/sys/uio.h (__readv): Add libc_hidden_proto.
4364         (__writev): Likewise.
4365         * misc/readv.c (__readv): Add libc_hidden_def.
4366         * misc/writev.c (__writev): Likewise.
4367         * sysdeps/posix/readv.c (__readv): Likewise.
4368         * sysdeps/posix/writev.c (__writev): Likewise.
4369         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
4370         (__readv): Likewise.
4371         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
4372         (__writev): Likewise.
4374 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4376         [BZ #18822]
4377         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
4378         (__regcomp): Add libc_hidden_proto.
4379         (__regexec): Likewise.
4380         (__regfree): Likewise.
4381         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
4382         (__regfree): Likewise.
4383         * posix/regexec.c (__regexec): Likewise.
4385 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4387         [BZ #18822]
4388         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
4389         (__getutent): Likewise.
4390         (__getutid): Likewise.
4391         (__getutline): Likewise.
4392         (__pututline): Likewise.
4393         (__getutent_r): Likewise.
4394         (__getutid_r): Likewise.
4395         (__getutline_r): Likewise.
4396         (__utmpname): Add attribute_hidden.
4397         (__setutent): Likewise.
4398         (__endutent): Likewise.
4399         * login/getutent.c (__getutent): Add libc_hidden_def.
4400         * login/getutent_r.c (__getutent_r): Likewise.
4401         (__pututline): Likewise.
4402         * login/getutid.c (__getutid): Likewise.
4403         * login/getutid_r.c (__getutid_r): Likewise.
4404         * login/getutline.c (__getutline): Likewise.
4405         * login/getutline_r.c (__getutline_r): Likewise.
4406         * login/updwtmp.c (__updwtmp): Likewise.
4408 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4410         [BZ #18822]
4411         * include/dirent.h (__opendir): Always add attribute_hidden.
4412         (__fdopendir): Likewise.
4413         (__closedir): Likewise.
4414         (__readdir): Likewise.
4415         (__readdir64): Add libc_hidden_proto.
4416         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
4417         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
4418         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
4419         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
4420         New alias.
4422 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4424         [BZ #18822]
4425         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
4426         * include/netdb.h (__gethostbyaddr_r): Likewise.
4427         (__gethostbyname_r): Likewise.
4428         (__gethostbyname2_r): Likewise.
4429         (__getnetbyaddr_r): Likewise.
4430         (__getnetbyname_r): Likewise.
4431         (__getservbyname_r): Likewise.
4432         (__getservbyport_r): Likewise.
4433         (__getprotobyname_r): Likewise.
4434         (__getprotobynumber_r): Likewise.
4435         (__getnetgrent_r): Likewise.
4436         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
4437         (__getrpcbynumber_r): Likewise.
4438         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
4440 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4442         [BZ #18822]
4443         * include/stdio.h (__fcloseall): Add attribute_hidden.
4444         (__getline): Likewise.
4445         (__path_search): Likewise.
4446         (__gen_tempname): Likewise.
4447         (__libc_message): Likewise.
4448         (__flockfile): Likewise.
4449         (__funlockfile): Likewise.
4450         (__fxprintf): Likewise.
4451         (__fxprintf_nocancel): Likewise.
4453 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4455         [BZ #18822]
4456         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
4457         (__sgetsgent_r): Likewise.
4459 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4461         [BZ #18822]
4462         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
4463         (__statfs64): Likewise.
4464         (__fstatfs64): Likewise.
4465         * include/sys/statvfs.h (__statvfs64): Likewise.
4466         (__fstatvfs64): Likewise.
4467         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
4468         (__statfs_filesize_max): Likewise.
4469         (__statfs_symlinks): Likewise.
4470         (__statfs_chown_restricted): Likewise.
4472 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4474         [BZ #18822]
4475         * include/time.h (__tzstring): Add attribute_hidden.
4476         (__tzfile_read): Likewise.
4477         (__tzfile_compute): Likewise.
4478         (__tzfile_default): Likewise.
4479         (__tzset_parse_tz): Likewise.
4480         (__offtime): Likewise.
4481         (__asctime_r): Likewise.
4482         (__tzset): Likewise.
4483         (__tz_convert): Likewise.
4484         (__getdate_r): Likewise.
4485         (__getclktck): Likewise.
4487 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4489         [BZ #18822]
4490         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
4491         (__nscd_unmap): Likewise.
4492         (__nscd_cache_search): Likewise.
4493         (__nscd_get_nl_timestamp): Likewise.
4494         (__nscd_getpwnam_r): Likewise.
4495         (__nscd_getpwuid_r): Likewise.
4496         (__nscd_getgrnam_r): Likewise.
4497         (__nscd_getgrgid_r): Likewise.
4498         (__nscd_gethostbyname_r): Likewise.
4499         (__nscd_gethostbyname2_r): Likewise.
4500         (__nscd_gethostbyaddr_r): Likewise.
4501         (__nscd_getai): Likewise.
4502         (__nscd_getgrouplist): Likewise.
4503         (__nscd_getservbyname_r): Likewise.
4504         (__nscd_getservbyport_r): Likewise.
4505         (__nscd_innetgr): Likewise.
4506         (__nscd_setnetgrent): Likewise.
4508 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4510         [BZ #18822]
4511         * include/gmp.h: Declare internal functions only if _ISOMAC is
4512         undefined.
4513         (__mpn_extract_double): Add attribute_hidden.
4514         (__mpn_extract_long_double): Likewise.
4515         (__mpn_extract_float128): Likewise.
4516         (__mpn_construct_float): Likewise.
4517         (__mpn_construct_double): Likewise.
4518         (__mpn_construct_long_double): Likewise.
4519         (__mpn_construct_float128): Likewise.
4520         (mpn_add_1): Likewise.
4521         (mpn_addmul_1): Likewise.
4522         (mpn_add_n): Likewise.
4523         (mpn_cmp): Likewise.
4524         (mpn_divrem): Likewise.
4525         (mpn_lshift): Likewise.
4526         (mpn_mul): Likewise.
4527         (mpn_mul_1): Likewise.
4528         (mpn_rshift): Likewise.
4529         (mpn_sub_1): Likewise.
4530         (mpn_submul_1): Likewise.
4531         (mpn_sub_n): Likewise.
4533 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4535         [BZ #18822]
4536         * include/wchar.h (__wcsnlen): Add attribute_hidden.
4537         (__wcscat): Likewise.
4538         (__btowc): Likewise.
4539         (__wcrtomb): Likewise.
4540         (__mbsrtowcs): Likewise.
4541         (__wcsrtombs): Likewise.
4542         (__mbsnrtowcs): Likewise.
4543         (__wcsnrtombs): Likewise.
4544         (__wcsncpy): Likewise.
4545         (__wcpncpy): Likewise.
4546         (__wmemcpy): Likewise.
4547         (__wmempcpy): Likewise.
4548         (__wmemmove): Likewise.
4549         (__wcschrnul): Likewise.
4550         (__vfwscanf): Likewise.
4551         (__vswprintf): Likewise.
4552         (__fwprintf): Likewise.
4553         (__vfwprintf): Likewise.
4555 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4557         [BZ #18822]
4558         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
4559         (__getgrgid_r): Likewise.
4560         (__getgrnam_r): Likewise.
4561         * include/pwd.h (__getpwuid_r): Likewise.
4562         (__getpwnam_r): Likewise.
4563         (__fgetpwent_r): Likewise.
4564         * include/shadow.h (__getspnam_r): Likewise.
4565         (__sgetspent_r): Likewise.
4566         (__fgetspent_r): Likewise.
4568 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4570         [BZ #18822]
4571         * include/unistd.h (__access): Add attribute_hidden.
4572         (__lseek64): Likewise.
4573         (__libc_pread64): Likewise.
4574         (__pipe2): Likewise.
4575         (__sleep): Likewise.
4576         (__chdir): Likewise.
4577         (__fchdir): Likewise.
4578         (__getcwd): Likewise.
4579         (__rmdir): Likewise.
4580         (__execvpe): Likewise.
4581         (__execve): Likewise.
4582         (__setsid): Likewise.
4583         (__getuid): Likewise.
4584         (__geteuid): Likewise.
4585         (__getgid): Likewise.
4586         (__getegid): Likewise.
4587         (__getgroups): Likewise.
4588         (__group_member): Likewise.
4589         (__ttyname_r): Likewise.
4590         (__isatty): Likewise.
4591         (__readlink): Likewise.
4592         (__unlink): Likewise.
4593         (__gethostname): Likewise.
4594         (__profil): Likewise.
4595         (__getdtablesize): Likewise.
4596         (__brk): Likewise.
4597         (__ftruncate): Likewise.
4598         (__ftruncate64): Likewise.
4600 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4602         [BZ #18822]
4603         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
4604         * argp/argp-fs-xinl.c: Likewise.
4605         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
4606         * argp/argp-parse.c: Include <argp.h>.
4607         * argp/argp-xinl.c: Likewise.
4608         * include/argp-fmtstream.h: New file.
4609         * include/argp.h (__argp_error): Add attribute_hidden.
4610         (__argp_failure): Likewise.
4611         (__argp_input): Likewise.
4612         (__argp_state_help): Likewise.
4614 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4616         [BZ #18822]
4617         * include/wchar.h (____wcstof_l_internal): New prototype.
4618         (____wcstod_l_internal): Likewise.
4619         (____wcstold_l_internal): Likewise.
4620         (____wcstol_l_internal): Likewise.
4621         (____wcstoul_l_internal): Likewise.
4622         (____wcstoll_l_internal): Likewise.
4623         (____wcstoull_l_internal): Likewise.
4624         (____wcstof128_l_internal): Likewise.
4625         * sysdeps/ieee754/float128/wcstof128.c
4626         (____wcstof128_l_internal): Removed.
4627         * sysdeps/ieee754/float128/wcstof128_l.c
4628         (____wcstof128_l_internal): Likewise.
4629         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
4630         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
4631         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
4632         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
4633         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
4634         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
4635         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
4636         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
4637         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
4638         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
4640 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4642         [BZ #18822]
4643         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
4644         instead of <sys/statvfs.h>.
4645         (__internal_statvfs): Removed.
4646         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
4647         instead of <sys/statvfs.h>.
4648         (__internal_statvfs64): Removed.
4649         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
4650         "internal_statvfs.h" instead of <sys/statvfs.h>.
4651         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
4652         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
4653         instead of <sys/statvfs.h>.
4654         (__internal_statvfs): Removed.
4655         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
4656         instead of <sys/statvfs.h>.
4657         (__internal_statvfs64): Removed.
4659 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4661         [BZ #18822]
4662         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
4663         (__gconv_close): Likewise.
4664         (__gconv): Likewise.
4665         (__gconv_find_transform): Likewise.
4666         (__gconv_lookup_cache): Likewise.
4667         (__gconv_compare_alias_cache): Likewise.
4668         (__gconv_load_cache): Likewise.
4669         (__gconv_get_path): Likewise.
4670         (__gconv_close_transform): Likewise.
4671         (__gconv_release_cache): Likewise.
4672         (__gconv_find_shlib): Likewise.
4673         (__gconv_release_shlib): Likewise.
4674         (__gconv_get_builtin_trans): Likewise.
4675         (__gconv_compare_alias): Likewise.
4676         * include/dlfcn.h (_dlerror_run): Likewise.
4677         * include/stdio.h (__fortify_fail_abort): Likewise.
4678         * include/time.h (__tz_compute): Likewise.
4679         (__strptime_internal): Likewise.
4680         * intl/gettextP.h (_nl_find_domain): Likewise.
4681         (_nl_load_domain): Likewise.
4682         (_nl_find_msg): Likewise.
4683         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
4684         (EXTRACT_PLURAL_EXPRESSION): Likewise.
4685         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
4686         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
4687         (__gai_find_request): Likewise.
4688         (__gai_remove_request): Likewise.
4689         (__gai_notify): Likewise.
4690         (__gai_notify_only): Likewise.
4691         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4692         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4693         (_dl_non_dynamic_init): Likewise.
4694         (_dl_aux_init): Likewise.
4695         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
4696         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4697         Likewise.
4698         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
4699         (__wcsmbs_clone_conv): Likewise.
4700         (__wcsmbs_named_conv): Likewise.
4702 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4704         [BZ #18822]
4705         * include/stdlib.h (__random): Add attribute_hidden.
4706         (__random_r): Likewise.
4707         (__srandom_r): Likewise.
4708         (__initstate_r): Likewise.
4709         (__setstate_r): Likewise.
4710         (__erand48_r): Likewise.
4711         (__nrand48_r): Likewise.
4712         (__jrand48_r): Likewise.
4713         (__srand48_r): Likewise.
4714         (__seed48_r): Likewise.
4715         (__lcong48_r): Likewise.
4716         (__drand48_iterate): Likewise.
4717         (__setenv): Likewise.
4718         (__unsetenv): Likewise.
4719         (__clearenv): Likewise.
4720         (__ptsname_r): Likewise.
4721         (__posix_openpt): Likewise.
4722         (__add_to_environ): Likewise.
4723         (__realpath): Add libc_hidden_proto.
4724         (__ecvt_r): Likewise.
4725         (__fcvt_r): Likewise.
4726         (__qecvt_r): Likewise.
4727         (__qfcvt_r): Likewise.
4728         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
4729         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
4731 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4733         [BZ #18822]
4734         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
4735         * include/time.h (__mktime_internal): Likewise.
4736         * libio/iolibio.h (__fopen_internal): Likewise.
4738 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
4740         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
4741         pointer in frame.
4742         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
4743         Correct offset used to restore PIC register.
4745 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
4747         [BZ libc/22165]
4748         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
4749         code to load address of __getcontext_ret when generating PIC code.
4751 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
4753         * elf/Makefile (tests-static-internal): Add
4754         tst-tls1-static-non-pie.
4755         (LDFLAGS-tst-tls1-static-non-pie): New.
4756         * elf/tst-tls1-static-non-pie.c: New file.
4758 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4760         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
4761         (asinh): Define using libm_alias_double.
4762         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
4763         (cbrt): Define using libm_alias_double.
4764         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
4765         <libm-alias-double.h>.
4766         (copysign): Define using libm_alias_double.
4767         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
4768         (erf): Define using libm_alias_double.
4769         (erfc): Likewise.
4770         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
4771         (expm1): Define using libm_alias_double.
4772         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
4773         (fabs): Define using libm_alias_double.
4774         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
4775         libm_alias_double.
4776         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
4777         <libm-alias-double.h>.
4778         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
4779         libm_alias_double.
4780         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
4781         <libm-alias-double.h>.
4782         (getpayload): Define using libm_alias_double.
4783         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
4784         <libm-alias-double.h>.
4785         (llrint): Define using libm_alias_double.
4786         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
4787         (lrint): Define using libm_alias_double.
4788         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
4789         <libm-alias-double.h>.
4790         (nextup): Define using libm_alias_double.
4791         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
4792         <libm-alias-double.h>.
4793         (roundeven): Define using libm_alias_double.
4794         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
4795         libm_alias_double.
4796         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
4797         <libm-alias-double.h>.
4798         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
4799         using libm_alias_double.
4800         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
4801         (cos): Define using libm_alias_double.
4802         (sin): Likewise.
4803         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
4804         <libm-alias-double.h>.
4805         (sincos): Define using libm_alias_double.
4806         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
4807         (tanh): Define using libm_alias_double.
4808         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
4809         <libm-alias-double.h>.
4810         (totalorder): Define using libm_alias_double.
4811         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
4812         <libm-alias-double.h>.
4813         (totalordermag): Define using libm_alias_double.
4814         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
4815         libm_alias_double.
4816         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
4817         libm_alias_double.
4818         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
4819         <libm-alias-double.h>.
4820         (getpayload): Define using libm_alias_double.
4821         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
4822         <libm-alias-double.h>.
4823         (roundeven): Define using libm_alias_double.
4824         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
4825         <libm-alias-double.h>.
4826         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
4827         <libm-alias-double.h>.
4828         (totalorder): Define using libm_alias_double.
4829         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
4830         <libm-alias-double.h>.
4831         (totalordermag): Define using libm_alias_double.
4832         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
4833         libc compat symbol here.
4834         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
4835         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
4836         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
4837         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
4838         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
4839         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
4840         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
4841         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
4842         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
4843         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
4845 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4847         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
4848         _dl_relocate_static_pie instead of _dl_start to compute load
4849         address in static PIE.  Return 0 if _DYNAMIC is undefined for
4850         static executable.
4852 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4854         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
4855         _DYNAMIC is undefined for static executable.
4857 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4859         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
4861 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4863         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4865 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4867         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
4868         (__ieee754_lgamma_r): Use fabs rather than __fabs.
4869         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4870         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4871         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
4872         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
4873         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4874         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
4875         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
4876         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4877         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4878         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
4879         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4880         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4881         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4882         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4883         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
4885 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4887         * math/bits/cmathcalls.h (cimag): Remove inline.
4888         (creal): Remove inline.
4889         (conj): Remove inline.
4891 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4893         * math/Makefile (type-float-routines): Add e_powf_log2_data.
4894         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
4895         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
4896         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
4897         (issignalingf_inline): Likewise.
4898         (POWF_LOG2_TABLE_BITS): Likewise.
4899         (POWF_LOG2_POLY_ORDER): Likewise.
4900         (POWF_SCALE_BITS): Likewise.
4901         (POWF_SCALE): Likewise.
4902         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
4903         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
4904         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
4906 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4908         * math/Makefile (type-float-routines): Add e_log2f_data.
4909         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
4910         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
4911         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
4912         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
4913         * sysdeps/i386/fpu/e_log2f_data.c: New file.
4914         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
4915         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
4917 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4919         * math/Makefile (type-float-routines): Add e_logf_data.
4920         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
4921         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
4922         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
4923         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
4924         * sysdeps/i386/fpu/e_logf_data.c: New file.
4925         * sysdeps/ia64/fpu/e_logf_data.c: New file.
4926         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
4928 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
4930         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
4931         undefined _DYNAMIC in PIE libc.a.
4932         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4933         Likewse.
4935 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4937         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
4938         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
4939         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
4940         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
4941         (__signbit): Remove.
4942         (__signbitl): Remove.
4943         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
4944         (__signbit): Remove.
4945         (__signbitl): Remove.
4946         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
4947         (__signbit): Remove.
4948         (__signbitl): Remove.
4949         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
4950         (__signbit): Remove.
4951         (__signbitl): Remove.
4952         * sysdeps/tile/bits/mathinline.h: Delete file.
4953         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
4954         (__signbit): Remove.
4955         (__signbitl): Remove.
4957 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4959         * math/math.h: Improve handling of C99 isgreater macros.
4960         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
4961         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
4962         * sysdeps/powerpc/bits/mathinline.h: Likewise.
4963         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4964         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
4966 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4968         * sysdeps/aarch64/libm-test-ulps: Update.
4970 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
4972         [BZ #22225]
4973         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4974         math_opt_barrier on argument when doing arithmetic on it.
4975         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4976         Likewise.  Use math_force_eval not math_opt_barrier after
4977         arithmetic.
4978         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
4979         math_opt_barrier on argument when doing arithmetic on it.
4980         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4981         Likewise.
4983 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
4985         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
4986         libc_hidden_def.
4987         (__freeifaddrs): Likewise.
4989 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4991         * include/dirent.h (__dirfd): New declaration.
4992         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
4993         alias.
4994         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
4995         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
4996         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
4997         * include/unistd.h (__revoke): New declaration.
4998         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
4999         alias.
5000         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
5001         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
5002         revoke.
5003         * include/dirent.h (__seekdir): New declaration.
5004         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
5005         redefine as weak alias.
5006         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
5007         of seekdir.
5008         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
5009         and use libc_hidden_def on them.
5010         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
5011         them.
5012         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
5013         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
5014         instead of getifaddrs and freeifaddrs.
5016 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5018         [BZ #18822]
5019         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
5020         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
5021         (__dso_handle): Remove declaration.
5022         * dlfcn/tstatexit.c (__dso_handle): Removed.
5023         (main): Don't check __dso_handle.
5024         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
5025         (main): Don't check __dso_handle.
5026         * include/dso_handle.h: New file.
5027         * malloc/mtrace.c: Include <dso_handle.h>.
5028         (mtrace): Pass __dso_handle directly.
5029         * nptl/pthread_atfork.c: Include <dso_handle.h>.
5030         (__dso_handle): Remove declaration.
5031         (__pthread_atfork): Pass __dso_handle directly.
5032         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
5033         (__dso_handle): Removed.
5034         * posix/wordexp-test.c: Include <dso_handle.h>.
5035         (__dso_handle): Remove declaration.
5036         (__app_register_atfork): Pass __dso_handle directly.
5037         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
5038         (__dso_handle): Remove declaration.
5039         (at_quick_exit): Pass __dso_handle directly.
5040         * stdlib/atexit.c: Include <dso_handle.h>.
5041         (__dso_handle): Remove declaration.
5042         (atexit): Pass __dso_handle directly.
5043         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
5044         (__dso_handle): Removed.
5046 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5048         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
5049         using VDSO.
5051 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
5053         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
5054         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
5055         values to correct default value for given type.
5057 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5059         [BZ #22101]
5060         * elf/Makefile (tests): Add tst-debug1.
5061         ($(objpfx)tst-debug1): New.
5062         ($(objpfx)tst-debug1.out): Likewise.
5063         ($(objpfx)tst-debug1mod1.so): Likewise.
5064         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
5065         with p_filesz == 0.
5066         * elf/tst-debug1.c: New file.
5068 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5070         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
5071         Define using __ifunc.
5073 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5075         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
5076         exp2f() values.
5078 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5080         [BZ #22156]
5081         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
5083 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5085         * resolv/Makefile (tests-internal): Fix typo in comment.
5087 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5089         * resolv/nss_dns/dns-host.c: Fix typo in comment.
5091 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5093         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
5094         Use an union instead of a max_align_t array for __space,
5095         so that __space is the same size on all platforms.
5096         * malloc/scratch_buffer_grow_preserve.c
5097         (__libc_scratch_buffer_grow_preserve): Likewise.
5099         [BZ #22183]
5100         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
5101         version to 2.
5102         * posix/Makefile (routines): Add glob-lstat-compat and
5103         glob64-lstat-compat.
5104         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
5105         * posix/glob-lstat-compat.c: New file.
5106         * posix/glob64-lstat-compat.c: Likewise.
5107         * posix/tst-glob_lstat_compat.c: Likewise.
5108         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
5109         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
5110         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
5111         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
5112         Likewise.
5113         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
5114         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5115         * posix/glob.c (glob_lstat): New function.
5116         (glob): Rename to __glob and add versioned symbol to 2.27.
5117         (glob_in_dir): Use glob_lstat.
5118         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
5119         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5120         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
5121         2.27.
5122         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
5123         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
5124         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
5125         gl_lstat on glob call.
5126         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
5127         and glob64 symbols.
5128         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5129         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5130         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5131         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5132         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5133         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5134         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5135         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5136         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5137         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5138         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5139         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5141         Likewise.
5142         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5144         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5145         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5146         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5147         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5148         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5149         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5150         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5151         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5152         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5153         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5155 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
5157         * configure.ac (AS): Require binutils 2.25 or later.
5158         * configure: Regenerated.
5160 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5162         [BZ #22207]
5163         * stdlib/test-atexit-race-common.c (do_test): Minimize required
5164         VM size.
5166 2017-09-25  DJ Delorie  <dj@redhat.com>
5168         [BZ #22161]
5169         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
5170         resetting timeout.
5172 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5174         * sysdeps/ieee754/dbl-64/sincos32.h
5175         [SINCCOS32_H]: Remove define.
5176         [SINCOS32_H]: Define.
5178 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5180         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5181         (exp2f): Likewise.
5182         * math/w_exp2f.c: New file.
5183         * math/w_expf.c: New file.
5184         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5185         * math/w_expf_compat.c (__expf_compat): Likewise.
5186         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5187         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5188         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5189         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5190         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5191         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5192         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5193         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5194         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5195         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5196         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5197         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5198         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5199         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5201         Likewise.
5202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5203         Likewise.
5204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5205         Likewise.
5206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5207         Likewise.
5208         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5209         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5210         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5211         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5212         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5213         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5214         Likewise.
5215         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5216         Likewise.
5217         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5218         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5219         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5221 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5223         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5224         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5225         (roundtoint, converttoint): Likewise.
5226         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5227         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5228         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5229         * sysdeps/ieee754/flt-32/math_config.h: New file.
5230         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5231         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5232         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5233         * sysdeps/i386/fpu/math_errf.c: New file.
5234         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5235         * sysdeps/ia64/fpu/math_errf.c: New file.
5236         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5237         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5239 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5241         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5242         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5243         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5244         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5245         to make sure that these symbols are defined.
5246         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5247         of <limits.h>
5248         (__need_NULL): Do not define.
5249         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5250         alignment.
5251         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5252         CMGROUP_MAX, cmsgcred): Do not define.
5253         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5254         NULL.
5255         * bits/socket.h: Likewise.
5256         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5257         __gettimeofday instead of gettimeofday.
5258         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5259         instead of settimeofday.
5261 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5263         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5264         (asinhf): Define using libm_alias_float.
5265         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5266         (atanf): Define using libm_alias_float.
5267         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5268         (cbrtf): Define using libm_alias_float.
5269         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5270         (ceilf): Define using libm_alias_float.
5271         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5272         <libm-alias-float.h>.
5273         (copysignf): Define using libm_alias_float.
5274         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5275         (cosf): Define using libm_alias_float.
5276         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5277         (erff): Define using libm_alias_float.
5278         (erfcf): Likewise.
5279         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5280         (expm1f): Define using libm_alias_float.
5281         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5282         (fabsf): Define using libm_alias_float.
5283         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5284         (floorf): Define using libm_alias_float.
5285         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5286         (frexpf): Define using libm_alias_float.
5287         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5288         libm_alias_float.
5289         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
5290         <libm-alias-float.h>.
5291         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
5292         libm_alias_float.
5293         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
5294         <libm-alias-float.h>.
5295         (getpayloadf): Define using libm_alias_float.
5296         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
5297         <libm-alias-float.h>.
5298         (llrintf): Define using libm_alias_float.
5299         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
5300         <libm-alias-float.h>.
5301         (llroundf): Define using libm_alias_float.
5302         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
5303         (logbf): Define using libm_alias_float.
5304         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
5305         (lrintf): Define using libm_alias_float.
5306         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
5307         (lroundf): Define using libm_alias_float.
5308         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
5309         (modff): Define using libm_alias_float.
5310         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
5311         <libm-alias-float.h>.
5312         (nearbyintf): Define using libm_alias_float.
5313         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
5314         <libm-alias-float.h>.
5315         (nextafterf): Define using libm_alias_float.
5316         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
5317         <libm-alias-float.h>.
5318         (nextupf): Define using libm_alias_float.
5319         * sysdeps/ieee754/flt-32/s_remquof.c: Include
5320         <libm-alias-float.h>.
5321         (remquof): Define using libm_alias_float.
5322         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
5323         (rintf): Define using libm_alias_float.
5324         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
5325         <libm-alias-float.h>.
5326         (roundevenf): Define using libm_alias_float.
5327         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
5328         (roundf): Define using libm_alias_float.
5329         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
5330         using libm_alias_float.
5331         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
5332         <libm-alias-float.h>.
5333         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
5334         Define using libm_alias_float.
5335         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
5336         <libm-alias-float.h>.
5337         (sincosf): Define using libm_alias_float.
5338         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
5339         (sinf): Define using libm_alias_float.
5340         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
5341         (tanf): Define using libm_alias_float.
5342         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
5343         (tanhf): Define using libm_alias_float.
5344         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
5345         <libm-alias-float.h>.
5346         (totalorderf): Define using libm_alias_float.
5347         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
5348         <libm-alias-float.h>.
5349         (totalordermagf): Define using libm_alias_float.
5350         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
5351         (truncf): Define using libm_alias_float.
5352         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
5353         libm_alias_float.
5354         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
5355         libm_alias_float.
5357 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5359         [BZ #22146]
5360         math/math.h: Let fpclassify use the builtin in C++ mode, even
5361         when optimazing for size.
5363 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5365         * csu/Makefile (generated): Do not add version-info.h.
5366         (before-compile): Likewise.
5367         (all-Banner-files): Remove variable.
5368         ($(objpfx)version-info.h): Remove rule.
5369         * csu/version.c (banner): Do not include "version-info.h".
5370         * libidn/Banner: Remove.
5371         * manual/contrib.texi (Simon Josefsson): New entry.
5373 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5375         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5376         Remove conditionals on LDBL_MANT_DIG.
5377         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5378         (__ieee754_lgammal_r): Likewise.
5380 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5382         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
5383         _Float128 and L().
5384         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
5385         _Float128 and L(). Replace _Float128 with long double and L(x)
5386         with xL, throughout the file.
5387         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5388         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5389         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5390         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5392 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5394         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
5395         sysdeps/ieee754/ldbl-128ibm.
5396         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
5397         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
5398         of including it.  Keep _Float128 and L() intact.  These will be
5399         reviewed by a separate patch.
5400         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5401         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5402         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5403         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5405 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
5408         (__finitef128): Define to __redirect___finitef128.
5409         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
5410         (__isinff128): Define to __redirect___isinff128.
5411         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
5412         (__isnanf128): Define to __redirect___isnanf128.
5414 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5416         * sysdeps/powerpc/powerpc64le/Makefile
5417         (CFLAGS-tst-strtod-nan-locale.c): New variable.
5418         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
5420 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5421             Carlos O'Donell  <carlos@redhat.com>
5423         [BZ #22180]
5424         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
5425         * stdlib/test-dlclose-exit-race.c: New file.
5426         * stdlib/test-dlclose-exit-race-helper.c: New file.
5427         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
5429 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
5431         * crypt/Banner: Remove file.
5432         * nptl/Banner: Likewise.
5433         * resolv/Banner: Likewise.
5434         * soft-fp/Banner: Likewise.
5435         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
5436         ($(objpfx)version.d): Remove dependency on banner.h.
5437         ($(objpfx)version.os): Likewise.
5438         * nptl/version.c (banner): Do not include banner.h.
5439         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
5440         Jelinek and BIND code.
5442 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5443             Carlos O'Donell  <carlos@redhat.com>
5445         * support/xdlfcn.h: New file.
5446         * support/xdlfcn.c: New file.
5447         * support/Makefile (libsupport-routines): Add xdlfcn.
5448         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
5450 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
5452         [BZ #20142]
5453         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5454         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
5455         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
5456         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
5457         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
5458         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
5459         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
5460         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
5462 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5463             Ricky Zhou  <rickyz@google.com>
5464             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
5466         [BZ #14333]
5467         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
5468         Remove atomics.
5469         (__new_exitfn): Fail registration when we finished at_exit processing.
5470         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
5471         * stdlib/on_exit.c (__on_exit): Likewise.
5472         * stdlib/exit.c (__exit_funcs_done): New variable.
5473         (__run_exit_handlers): Use __exit_funcs_lock.
5474         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
5475         declarations.
5476         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
5477         (test-cxa_atexit-race, test-on_exit-race): New tests.
5478         * stdlib/test-atexit-race-common.c: New file.
5479         * stdlib/test-atexit-race.c: New file.
5480         * stdlib/test-at_quick_exit-race.c: New file.
5481         * stdlib/test-cxa_atexit-race.c: New file.
5482         * stdlib/test-on_exit-race.c: New file.
5484 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5486         * benchtests/Makefile: Add exp2f and log2f benchmarks.
5487         * benchtests/exp2f-inputs: Copy of expf-inputs.
5488         * benchtests/log2f-inputs: Copy of logf-inputs.
5490 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5492         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
5493         Explicitly take address of first element of array arguments in
5494         call to INLINE_SYSCALL.
5496 2017-09-19  Andreas Schwab  <schwab@suse.de>
5498         [BZ #22134]
5499         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
5500         execveat first.
5501         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
5502         unimplemented.
5503         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
5504         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
5505         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5506         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
5507         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5508         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5509         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5510         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5511         * posix/Makefile (tests): Add tst-fexecve.
5512         * posix/tst-fexecve.c: New file.
5514 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5516         * benchtests/Makefile: Add logf benchmark.
5517         * benchtests/logf-inputs: Add reduced trace from wrf_r.
5519 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5521         * benchtests/Makefile: Add expf benchmark.
5522         * benchtests/expf-inputs: Add reduced trace from wrf_r.
5524 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5526         * csu/Makefile: Add -funwind-tables to libc-start.c.
5527         * debug/Makefile: Add -funwind-tables to backtrace.c.
5528         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
5529         * sysdeps/arm/Makefile: Likewise.
5530         * sysdeps/i386/Makefile: Likewise.
5531         * sysdeps/m68k/Makefile: Likewise.
5532         * sysdeps/mips/Makefile: Likewise.
5533         * sysdeps/nios2/Makefile: Likewise.
5534         * sysdeps/sh/Makefile: Likewise.
5535         * sysdeps/sparc/Makefile: Likewise.
5537 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5539         * benchtests/Makefile (bench-math): Add trunc and truncf.
5540         (CFLAGS-bench-trunc.c): New variable.
5541         (CFLAGS-bench-truncf.c): Likewise.
5542         * benchtests/trunc-inputs: New file.
5543         * benchtests/truncf-inputs: Likewise.
5545 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5547         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
5549 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
5551         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
5552         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
5553         redefine.
5554         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
5555         (exp10l): Define as weak alias.
5556         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
5557         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
5558         and redefine.
5559         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
5560         (remainderl): Define as weak alias.
5562         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
5563         (fmal): Define using libm_alias_ldouble.
5564         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
5565         (acoshl): Define using libm_alias_ldouble.
5566         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
5567         (acosl): Define using libm_alias_ldouble.
5568         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
5569         (asinl): Define using libm_alias_ldouble.
5570         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
5571         (atan2l): Define using libm_alias_ldouble.
5572         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
5573         (atanhl): Define using libm_alias_ldouble.
5574         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
5575         (coshl): Define using libm_alias_ldouble.
5576         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
5577         (exp10l): Define using libm_alias_ldouble.
5578         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
5579         (exp2l): Define using libm_alias_ldouble.
5580         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
5581         (expl): Define using libm_alias_ldouble.
5582         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
5583         (fmodl): Define using libm_alias_ldouble.
5584         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
5585         (hypotl): Define using libm_alias_ldouble.
5586         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
5587         (j0l): Define using libm_alias_ldouble.
5588         (y0l): Likewise.
5589         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
5590         (j1l): Define using libm_alias_ldouble.
5591         (y1l): Likewise.
5592         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
5593         (jnl): Define using libm_alias_ldouble.
5594         (ynl): Likewise.
5595         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
5596         (log10l): Define using libm_alias_ldouble.
5597         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
5598         (log2l): Define using libm_alias_ldouble.
5599         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
5600         (logl): Define using libm_alias_ldouble.
5601         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
5602         (powl): Define using libm_alias_ldouble.
5603         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
5604         (remainderl): Define using libm_alias_ldouble.
5605         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
5606         (sinhl): Define using libm_alias_ldouble.
5607         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
5608         (sqrtl): Define using libm_alias_ldouble.
5609         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
5610         (tgammal): Define using libm_alias_ldouble.
5611         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
5612         (exp10l): Do not use long_double_symbol here.
5613         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
5614         [LIBM_SVID_COMPAT] (remainderl): Likewise.
5615         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
5616         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5617         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5618         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5619         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5620         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5621         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5622         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5623         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5624         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5625         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5626         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5627         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5628         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5629         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5630         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5631         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5632         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5633         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5634         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5636 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
5638         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
5639         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
5641 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5643         * io/read.c (read): Add libc_hidden_weak.
5644         * sysdeps/mach/hurd/read.c (read): Likewise.
5645         * io/write.c (write): Likewise.
5646         * sysdeps/mach/hurd/write.c (write): Likewise.
5647         * io/pread64.c (__pread64): Likewise.
5648         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
5649         * posix/pread64.c (__pread64): Add libc_hidden_def.
5651 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5653         * benchtests/scripts/compare_strings.py: New option -g.
5654         (draw_graph): Print a message that a graph is being generated.
5655         (process_results): Generate graph only if -g is passed.
5656         (main): Process option -g.
5658         * benchtests/scripts/compare_strings.py (process_results):
5659         Better spacing for output.
5661         * benchtests/scripts/compare_strings.py: Use argparse.
5662         * benchtests/README: Document existence of compare_strings.py.
5664 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5666         * math/s_fma.c: Include <libm-alias-double.h>.
5667         (fma): Define using libm_alias_double.
5668         * math/s_nextafter.c: Include <libm-alias-double.h>.
5669         (nextafter): Define using libm_alias_double.
5670         * math/w_acos_compat.c: Include <libm-alias-double.h>.
5671         (acos): Define using libm_alias_double.
5672         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
5673         (aocsh): Define using libm_alias_double.
5674         * math/w_asin_compat.c: Include <libm-alias-double.h>.
5675         (asin): Define using libm_alias_double.
5676         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
5677         (atan2): Define using libm_alias_double.
5678         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
5679         (atanh): Define using libm_alias_double.
5680         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
5681         (cosh): Define using libm_alias_double.
5682         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
5683         (exp10): Define using libm_alias_double.
5684         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
5685         (exp2): Define using libm_alias_double.
5686         * math/w_exp_compat.c: Include <libm-alias-double.h>.
5687         (exp): Define using libm_alias_double.
5688         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
5689         (fmod): Define using libm_alias_double.
5690         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
5691         (hypot): Define using libm_alias_double.
5692         * math/w_j0_compat.c: Include <libm-alias-double.h>.
5693         (j0): Define using libm_alias_double.
5694         (y0): Likewise.
5695         * math/w_j1_compat.c: Include <libm-alias-double.h>.
5696         (j1): Define using libm_alias_double.
5697         (y1): Likewise.
5698         * math/w_jn_compat.c: Include <libm-alias-double.h>.
5699         (jn): Define using libm_alias_double.
5700         (yn): Likewise.
5701         * math/w_log10_compat.c: Include <libm-alias-double.h>.
5702         (log10): Define using libm_alias_double.
5703         * math/w_log2_compat.c: Include <libm-alias-double.h>.
5704         (log2): Define using libm_alias_double.
5705         * math/w_log_compat.c: Include <libm-alias-double.h>.
5706         (log): Define using libm_alias_double.
5707         * math/w_pow_compat.c: Include <libm-alias-double.h>.
5708         (pow): Define using libm_alias_double.
5709         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
5710         (remainder): Define using libm_alias_double.
5711         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
5712         (sinh): Define using libm_alias_double.
5713         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
5714         (sqrt): Define using libm_alias_double.
5715         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
5716         (tgamma): Define using libm_alias_double.
5717         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
5718         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
5719         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
5720         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
5721         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
5722         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
5723         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
5724         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5725         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5726         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5727         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5728         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5729         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
5730         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5731         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5732         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5733         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5734         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5735         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5736         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5737         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5738         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5739         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5740         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5741         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5743         * math/e_acoshl.c: Remove.
5744         * math/e_acosl.c: Likewise.
5745         * math/e_asinl.c: Likewise.
5746         * math/e_atan2l.c: Likewise.
5747         * math/e_atanhl.c: Likewise.
5748         * math/e_coshl.c: Likewise.
5749         * math/e_expl.c: Likewise.
5750         * math/e_fmodl.c: Likewise.
5751         * math/e_gammal_r.c: Likewise.
5752         * math/e_hypotl.c: Likewise.
5753         * math/e_j0l.c: Likewise.
5754         * math/e_j1l.c: Likewise.
5755         * math/e_jnl.c: Likewise.
5756         * math/e_lgammal_r.c: Likewise.
5757         * math/e_log10l.c: Likewise.
5758         * math/e_log2l.c: Likewise.
5759         * math/e_logl.c: Likewise.
5760         * math/e_powl.c: Likewise.
5761         * math/e_rem_pio2l.c: Likewise.
5762         * math/e_sinhl.c: Likewise.
5763         * math/e_sqrtf128.c: Likewise.
5764         * math/e_sqrtl.c: Likewise.
5765         * math/k_cosl.c: Likewise.
5766         * math/k_sinl.c: Likewise.
5767         * math/k_tanl.c: Likewise.
5768         * math/s_asinhl.c: Likewise.
5769         * math/s_atanl.c: Likewise.
5770         * math/s_cbrtl.c: Likewise.
5771         * math/s_erfl.c: Likewise.
5772         * math/s_expm1l.c: Likewise.
5773         * math/s_log1pl.c: Likewise.
5774         * math/s_tanhl.c: Likewise.
5776 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5778         [BZ #21745]
5779         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
5780         [$(subdir) = math] (sysdep_calls): New variable.  Has the
5781         previous contents of sysdep_routines, but re-sorted..
5782         [$(subdir) = math] (sysdep_routines): Re-use the contents from
5783         sysdep_calls.
5784         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
5785         defined in sysdep_calls and replace by the respective m_* names.
5786         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
5787         (compat_symbol): Undefine to avoid duplicated compat symbols in
5788         libc.
5790 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5792         * math/s_fmaf.c: Include <libm-alias-float.h>.
5793         (fmaf): Define using libm_alias_float.
5794         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
5795         (acosf): Define using libm_alias_float.
5796         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
5797         (acoshf): Define using libm_alias_float.
5798         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
5799         (asinf): Define using libm_alias_float.
5800         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
5801         (atan2f): Define using libm_alias_float.
5802         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
5803         (atanhf): Define using libm_alias_float.
5804         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
5805         (coshf): Define using libm_alias_float.
5806         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
5807         (exp10f): Define using libm_alias_float.
5808         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
5809         (fmodf): Define using libm_alias_float.
5810         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
5811         (hypotf): Define using libm_alias_float.
5812         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
5813         (j0f): Define using libm_alias_float.
5814         (y0f): Likewise.
5815         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
5816         (j1f): Define using libm_alias_float.
5817         (y1f): Likewise.
5818         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
5819         (jnf): Define using libm_alias_float.
5820         (ynf): Likewise.
5821         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
5822         (log10f): Define using libm_alias_float.
5823         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
5824         (log2f): Define using libm_alias_float.
5825         * math/w_logf_compat.c: Include <libm-alias-float.h>.
5826         (logf): Define using libm_alias_float.
5827         * math/w_powf_compat.c: Include <libm-alias-float.h>.
5828         (powf): Define using libm_alias_float.
5829         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
5830         (remainderf): Define using libm_alias_float.
5831         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
5832         (sinhf): Define using libm_alias_float.
5833         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
5834         (sqrtf): Define using libm_alias_float.
5835         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
5836         (tgammaf): Define using libm_alias_float.
5838 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5840         * include/math.h (roundeven): Change hidden_proto call to
5841         __roundeven.
5842         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
5843         alias.
5844         [NO_LONG_DOUBLE] (__j0l): New strong alias.
5845         (y0): Rename to __y0 and define as weak alias.
5846         [NO_LONG_DOUBLE] (__y0l): New strong alias.
5847         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
5848         alias.
5849         (y0f): Rename to __y0f and define as weak alias.
5850         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
5851         alias.
5852         [NO_LONG_DOUBLE] (__j1l): New strong alias.
5853         (y1): Rename to __y1 and define as weak alias.
5854         [NO_LONG_DOUBLE] (__y1l): New strong alias.
5855         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
5856         alias.
5857         (y1f): Rename to __y1f and define as weak alias.
5858         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
5859         alias.
5860         [NO_LONG_DOUBLE] (__jnl): New strong alias.
5861         (yn): Rename to __yn and define as weak alias.
5862         [NO_LONG_DOUBLE] (__ynl): New strong alias.
5863         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
5864         alias.
5865         (ynf): Rename to __ynf and define as weak alias.
5866         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
5867         (fromfp): Define as weak alias.
5868         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
5869         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
5870         (fromfpx): Define as weak alias.
5871         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
5872         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
5873         __getpayload and define as weak alias.
5874         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5875         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
5876         __roundeven and define as weak alias.
5877         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5878         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
5879         __setpayload.
5880         (setpayload): Define as weak alias.
5881         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
5882         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
5883         __setpayloadsig.
5884         (setpayloadsig): Define as weak alias.
5885         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
5886         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
5887         __totalorder and define as weak alias.
5888         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5889         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
5890         to __totalordermag and define as weak alias.
5891         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5892         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
5893         (ufromfp): Define as weak alias.
5894         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
5895         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
5896         __ufromfpx.
5897         (ufromfpx): Define as weak alias.
5898         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
5899         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
5900         Rename to __getpayload and define as weak alias.
5901         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5902         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
5903         Rename to __roundeven and define as weak alias.
5904         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5905         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
5906         Rename to __totalorder and define as weak alias.
5907         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5908         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
5909         (totalordermag): Rename to __totalordermag and define as weak
5910         alias.
5911         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5912         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
5913         macro.
5914         (__roundevenl): Likewise.
5915         (__totalorderl): Likewise.
5916         (__totalordermagl): Likewise
5917         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
5918         __fromfpf128.
5919         (fromfpf128): Define as weak alias.
5920         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
5921         __fromfpxf128.
5922         (fromfpxf128): Define as weak alias.
5923         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
5924         __setpayloadf128.
5925         (setpayloadf128): Define as weak alias.
5926         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
5927         __setpayloadsigf128.
5928         (setpayloadsigf128): Define as weak alias.
5929         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
5930         __ufromfpf128.
5931         (ufromfpf128): Define as weak alias.
5932         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
5933         __ufromfpxf128.
5934         (ufromfpxf128): Define as weak alias.
5935         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
5936         (fromfpf): Define as weak alias.
5937         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
5938         __fromfpxf.
5939         (fromfpxf): Define as weak alias.
5940         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
5941         __getpayloadf and define as weak alias.
5942         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
5943         __roundevenf and define as weak alias.
5944         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
5945         __setpayloadf.
5946         (setpayloadf): Define as weak alias.
5947         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
5948         __setpayloadsigf.
5949         (setpayloadsigf): Define as weak alias.
5950         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
5951         __totalorderf and define as weak alias.
5952         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
5953         Rename to __totalordermagf and define as weak alias.
5954         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
5955         __ufromfpf.
5956         (ufromfpf): Define as weak alias.
5957         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
5958         __ufromfpxf.
5959         (ufromfpxf): Define as weak alias.
5960         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
5961         __fromfpl.
5962         (fromfpl): Define as weak alias.
5963         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
5964         __fromfpxl.
5965         (fromfpxl): Define as weak alias.
5966         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
5967         to __getpayloadl and define as weak alias.
5968         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
5969         __roundevenl and define as weak alias.
5970         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
5971         __setpayloadl.
5972         (setpayloadl): Define as weak alias.
5973         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
5974         __setpayloadsigl.
5975         (setpayloadsigl): Define as weak alias.
5976         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
5977         to __totalorderl and define as weak alias.
5978         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
5979         Rename to __totalordermagl and define as weak alias.
5980         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
5981         __ufromfpl.
5982         (ufromfpl): Define as weak alias.
5983         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
5984         __ufromfpxl.
5985         (ufromfpxl): Define as weak alias.
5986         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
5987         __fromfpl.
5988         (fromfpl): Define as weak alias.
5989         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
5990         __fromfpxl.
5991         (fromfpxl): Define as weak alias.
5992         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
5993         Rename to __getpayloadl and define as weak alias.
5994         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
5995         to __roundevenl and define as weak alias.  Call __roundeven
5996         instead of roundeven.
5997         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
5998         __setpayloadl.
5999         (setpayloadl): Define as weak alias.
6000         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
6001         __setpayloadsigl.
6002         (setpayloadsigl): Define as weak alias.
6003         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
6004         Rename to __totalorderl and define as weak alias.
6005         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
6006         Rename to __totalordermagl and define as weak alias.
6007         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
6008         __ufromfpl.
6009         (ufromfpl): Define as weak alias.
6010         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
6011         __ufromfpxl.
6012         (ufromfpxl): Define as weak alias.
6013         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
6014         __fromfpl.
6015         (fromfpl): Define as weak alias.
6016         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
6017         __fromfpxl.
6018         (fromfpxl): Define as weak alias.
6019         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
6020         __getpayloadl and define as weak alias.
6021         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
6022         __roundevenl and define as weak alias.
6023         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
6024         __setpayloadl.
6025         (setpayloadl): Define as weak alias.
6026         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
6027         __setpayloadsigl.
6028         (setpayloadsigl): Define as weak alias.
6029         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
6030         __totalorderl and define as weak alias.
6031         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
6032         Rename to __totalordermagl and define as weak alias.
6033         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
6034         __ufromfpl.
6035         (ufromfpl): Define as weak alias.
6036         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
6037         __ufromfpxl.
6038         (ufromfpxl): Define as weak alias.
6040 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6042         * benchtests/bench-string.h (realloc_bufs): New function.
6043         (test_init): Call it.
6044         * benchtests/bench-memset-large.c (do_test): Likewise.
6045         * benchtests/bench-memset.c (do_test): Likewise.
6047         * benchtests/bench-memset-large.c: Print output in JSON
6048         format.
6049         * benchtests/bench-memset.c: Likewise.
6051 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6053         [BZ #21084]
6054         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
6055         * iconvdata/Makefile: Add IBM858.
6056         * iconvdata/gconv-modules: Likewise.
6057         * iconvdata/tst-tables.sh: Likewise.
6058         * iconvdata/ibm858.c: New file.
6059         * localedata/charmaps/IBM858: Likewise.
6061 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
6063         [BZ #22023]
6064         * locales/niu_NZ (LC_TIME): copy "niu_NU".
6065         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
6067 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6069         [BZ #22112]
6070         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
6071         and add tel_int_fmt.
6073 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6075         * sysdeps/generic/libm-alias-float128.h: New file.
6076         * sysdeps/generic/math-type-macros-float128.h: Include
6077         <libm-alias-float128.h>.
6078         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6080 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6082         * sysdeps/generic/libm-alias-ldouble.h: New file.
6083         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
6084         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
6085         * sysdeps/generic/math-type-macros-ldouble.h: Include
6086         <libm-alias-ldouble.h>.
6087         [!declare_mgen_alias] (declare_mgen_alias): Define to use
6088         libm_alias_ldouble.
6090 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6092         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
6093         * math/w_exp_compat.c: ... here.
6094         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
6095         * math/w_expf_compat.c: ... here.
6096         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
6097         * math/w_expl_compat.c: ... here.
6098         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
6099         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
6100         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
6101         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6103 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6105         * math/w_scalbln_template.c (strong_alias): Do not undefine and
6106         redefine.
6107         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
6108         macro.
6109         (ldexpl): Only define as compat symbol for libc, not libm.
6110         (scalbnl): Define as compat symbol for libc here.
6111         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
6112         define for [IS_IN (libc)].
6113         (__ldexpl_2): Remove alias.
6114         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
6115         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
6116         name in long_double_symbol call.
6117         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
6118         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
6119         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
6120         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
6121         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
6122         Remove macro.
6123         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
6124         Define as compat symbol.
6126 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6128         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
6129         * sysdeps/unix/sysv/linux/alpha/Makefile
6130         [$(subdir) = csu] (sysdep_routines): Remove rule.
6132 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6134         * sysdeps/generic/libm-alias-double.h: New file.
6135         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
6136         * sysdeps/generic/math-type-macros-double.h: Include
6137         <libm-alias-double.h>.
6138         [declare_mgen_alias] (declare_mgen_alias): Define to use
6139         libm_alias_double.
6140         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
6141         (M_LIBM_NEED_COMPAT): Remove macro.
6142         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
6143         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
6144         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
6145         code.
6146         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6147         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6148         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6149         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6150         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6151         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6152         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6153         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6154         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6155         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6156         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6157         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6158         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6159         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6160         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6161         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6162         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6163         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6164         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6165         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6166         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6167         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6168         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6169         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6170         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6171         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6172         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6173         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6174         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6175         macro.
6176         (declare_mgen_alias): New macro.
6177         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6178         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6180         (M_LIBM_NEED_COMPAT): Remove macro.
6181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6182         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6183         <first-versions.h>.
6184         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6185         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6187 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6189         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6190         (declare_mgen_alias_2): Remove.
6191         * sysdeps/generic/math-type-macros-double.h
6192         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6193         Likewise.
6194         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6195         alias.
6196         (ldexp): Define with declare_mgen_alias.
6197         (scalbn): Likewise.
6199 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6201         * grp/initgroups.c: Include config.h.
6202         (DEFAULT_CONFIG): New macro.
6203         (internal_getgrouplist): Use DEFAULT_CONFIG.
6204         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6205         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6206         (DEFAULT_DEFCONFIG): New macro.
6207         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6208         * nss/grp-lookup.c: Include config.h
6209         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6210         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6211         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6212         * manual/nss.texi: Update default values section.
6214 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6216         [BZ #21967]
6217         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6218         New.
6219         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6220         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6221         Handle MathVec_Prefer_No_AVX512.
6222         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6223         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6224         is set.
6226 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6228         * posix/sched_primax.c (__sched_get_priority_max): Add
6229         libc_hidden_def.
6230         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6231         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6232         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6233         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6234         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6235         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6236         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6237         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6238         Add aliases.
6240 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6242         * sysdeps/generic/libm-alias-float.h: New file.
6243         * sysdeps/generic/math-type-macros-float.h: Include
6244         <libm-alias-float.h>.
6245         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6247 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6249         [BZ #22093]
6250         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6251         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6252         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6253         (HWCAP_IMPORTANT): Likewise.
6254         (HWCAP_X86_64): New enum.
6255         (HWCAP_X86_AVX512_1): Updated.
6256         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6257         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6258         (modules-names): Add x86_64/tst-x86_64mod-1.
6259         (LDFLAGS-tst-x86_64mod-1.so): New.
6260         ($(objpfx)tst-x86_64-1): Likewise.
6261         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6262         (tst-x86_64-1-clean): Likewise.
6263         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6264         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6266 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6268         * po/sv.po: Update translations.
6269         * po/fr.po: Likewise.
6271 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6273         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6274         seconds.
6275         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6276         seconds.
6277         * elf/rtld-Rules: Fix $(error) use.
6279 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6281         [BZ #14925]
6282         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6283         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6284         * localedata/locales/bn_BD: “Bengali” was still used in some
6285         comments. Change it to “Bangla”.
6287 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
6289         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
6291 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6293         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
6294         thunderx2t99p1 to list of cpu names.
6295         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6296         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
6298 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6300         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
6301         Use strcmp instead of tunable_is_name.
6303 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
6305         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6306         (F_GET_RW_HINT): New macro.
6307         [__USE_GNU] (F_SET_RW_HINT): Likewise.
6308         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
6309         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
6310         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
6311         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
6312         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
6313         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
6314         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
6315         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
6317         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6318         (F_ADD_SEALS): New macro.
6319         [__USE_GNU] (F_GET_SEALS): Likewise.
6320         [__USE_GNU] (F_SEAL_SEAL): Likewise.
6321         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
6322         [__USE_GNU] (F_SEAL_GROW): Likewise.
6323         [__USE_GNU] (F_SEAL_WRITE): Likewise.
6325 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6327         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
6328         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
6329         * posix/glob_internal.h (__glob_pattern_type):
6330         * posix/glob.c (glob):
6331         * posix/glob_pattern_p.c (__glob_pattern_p):
6332         Use them.
6334         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
6335         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6336         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
6337         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
6338         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
6340         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
6341         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
6342         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6343         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6344         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6345         * sysdeps/wordsize-64/glob.c: Likewise.
6346         * sysdeps/wordsize-64/glob64.c: Likewise.
6347         * sysdeps/wordsize-64/globfree.c: Likewise.
6348         * sysdeps/wordsize-64/globfree64.c: Likewise.
6349         * sysdeps/unix/sysv/linux/glob.c: New file.
6350         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
6351         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
6352         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
6353         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
6354         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
6355         adds !GLOB_NO_OLD_VERSION as an extra condition.
6356         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
6357         using relative path instead of absolute one.
6358         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
6359         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6360         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6361         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
6362         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
6363         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
6365         [BZ #1062]
6366         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
6367         (glob): Use the same scratch buffer for both getlogin_r and
6368         getpwnam_r.  Don’t require preallocation of the login name.  This
6369         simplifies storage allocation, and corrects the handling of
6370         long login names.
6372         [BZ #1062]
6373         * posix/glob.c (glob): Port recent patches to platforms
6374         lacking getpwnam_r.
6375         (glob): Fix longstanding misuse of errno after getpwnam_r, which
6376         returns an error number rather than setting errno.
6378         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
6379         instead of GCC extension.
6380         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
6381         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
6382         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
6384         [BZ #866]
6385         [BZ #1062]
6386         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
6387         * posix/bug-glob1.c: Remove file.
6388         * posix/tst-glob_symlinks.c: New file.
6389         * posix/glob.c (__lstat64): New macro.
6390         (is_dir): New function.
6391         (glob, glob_in_dir): Match symlinks even if they are dangling.
6392         (link_stat, link_exists_p): Remove.  All uses removed.
6394         [BZ #1062]
6395         [BZ #19971]
6396         * posix/glob.c (struct readdir_result): Remove skip_entry member.
6397         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6398         All uses removed.
6400         [BZ #1062]
6401         CVE-2017-15671
6402         * posix/Makefile (routines): Add globfree, globfree64, and
6403         glob_pattern_p.
6404         * posix/flexmember.h: New file.
6405         * posix/glob_internal.h: Likewise.
6406         * posix/glob_pattern_p.c: Likewise.
6407         * posix/globfree.c: Likewise.
6408         * posix/globfree64.c: Likewise.
6409         * sysdeps/gnu/globfree64.c: Likewise.
6410         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
6411         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6412         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
6413         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6414         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6415         * sysdeps/wordsize-64/globfree.c: Likewise.
6416         * sysdeps/wordsize-64/globfree64.c: Likewise.
6417         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
6418         [NDEBUG): Remove comments.
6419         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
6420         (dirent_type): New type.  Use uint_fast8_t not
6421         uint8_t, as C99 does not require uint8_t.
6422         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
6423         (struct readdir_result): Use dirent_type.  Do not define skip_entry
6424         unless it is needed; this saves a byte on platforms lacking d_ino.
6425         (readdir_result_type, readdir_result_skip_entry):
6426         New functions, replacing ...
6427         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6428          these functions, which were removed.  This makes the callers
6429         easier to read.  All callers changed.
6430         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6431         (size_add_wrapv, glob_use_alloca): New static functions.
6432         (glob, glob_in_dir): Check for size_t overflow in several places,
6433         and fix some size_t checks that were not quite right.
6434         Remove old code using SHELL since Bash no longer
6435         uses this.
6436         (glob, prefix_array): Separate MS code better.
6437         (glob_in_dir): Remove old Amiga and VMS code.
6438         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6439         separate files.
6440         (glob_in_dir): Do not rely on undefined behavior in accessing
6441         struct members beyond their bounds.  Use a flexible array member
6442         instead
6443         (link_stat): Rename from link_exists2_p and return -1/0 instead of
6444         0/1.  Caller changed.
6445         (glob): Fix memory leaks.
6446         * posix/glob64 (globfree64): Move to separate file.
6447         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
6448         (globfree64): Remove hidden alias.
6449         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
6450         oldglob.
6451         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
6452         separate file.
6453         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
6454         define.
6455         Move compat code to separate file.
6456         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
6457         separate file.
6459 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6461         * resolv/tst-resolv-qtypes.c (domain): Changed to
6462         "const char domain[] =".
6464 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
6466         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6467         version to 3.1.6.
6469         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
6470         (TCP_MD5SIG_EXT): Likewise.
6471         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
6472         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
6473         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
6475         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
6477 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
6479         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
6481 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
6483         [BZ #22100]
6484         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
6486 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6488         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
6489         before assuming that the file is empty.  Avoid testing buffer content
6490         when nread == 0.
6492 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6494         [BZ #18858]
6495         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6496         Remove define.
6497         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
6498         Likewise.
6499         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
6500         Likewise.
6501         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
6502         Likewise.
6503         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6504         Likewise.
6505         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
6506         Likewise.
6507         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
6508         Likewise.
6510 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6512         * malloc/dynarray_emplace_enlarge.c
6513         (__libc_dynarray_emplace_enlarge): Add missing else.
6515 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6517         [BZ #22096]
6518         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
6519         case of failure to obtain the global conf object.
6521 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6523         [BZ #22095]
6524         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
6525         dynarray allocation failure.
6527 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6529         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
6530         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
6531         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
6532         New functions.
6533         (response): Call them.  Add 'p', '6' flag processing.
6534         (test_reverse): New function.
6535         (test_get2_any): Call it.
6536         (test_no_inet6): Add 'p' test.
6537         (test_inet6): Likewise.
6539 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6541         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
6542         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
6543         the QNAME.
6544         (test_gai): Adjust query names.  Add additional tests.
6545         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
6546         test_get2.  Adjust query names.  Add additional tests.
6547         (test_no_inet6): New function, extracted from threadfunc.
6548         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
6549         Add additional tests.
6551 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6553         [BZ #22070]
6554         * localedata/unicode-gen/utf8_gen.py: Set the width for
6555         characters with Prepended_Concatenation_Mark property to 1
6556         * localedata/charmaps/UTF-8: Updated using the improved script.
6558 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6560         [BZ #21750]
6561         * localedata/unicode-gen/utf8_gen.py: Improve the script to
6562         use the range notation for all ranges of neighbouring characters
6563         with the same width.
6565 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6567         * sysdeps/generic/math-type-macros-double.h: Include
6568         <math-svid-compat.h>.
6569         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6570         * sysdeps/generic/math-type-macros-float.h: Include
6571         <math-svid-compat.h>.
6572         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6573         * sysdeps/generic/math-type-macros-ldouble.h: Include
6574         <math-svid-compat.h>.
6575         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6576         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
6577         condition.
6578         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
6579         * math/w_acosf_compat.c: Likewise.
6580         * math/w_acosh_compat.c: Likewise.
6581         * math/w_acoshf_compat.c: Likewise.
6582         * math/w_acoshl_compat.c: Likewise.
6583         * math/w_acosl_compat.c: Likewise.
6584         * math/w_asin_compat.c: Likewise.
6585         * math/w_asinf_compat.c: Likewise.
6586         * math/w_asinl_compat.c: Likewise.
6587         * math/w_atan2_compat.c: Likewise.
6588         * math/w_atan2f_compat.c: Likewise.
6589         * math/w_atan2l_compat.c: Likewise.
6590         * math/w_atanh_compat.c: Likewise.
6591         * math/w_atanhf_compat.c: Likewise.
6592         * math/w_atanhl_compat.c: Likewise.
6593         * math/w_cosh_compat.c: Likewise.
6594         * math/w_coshf_compat.c: Likewise.
6595         * math/w_coshl_compat.c: Likewise.
6596         * math/w_exp10_compat.c: Likewise.
6597         * math/w_exp10f_compat.c: Likewise.
6598         * math/w_exp10l_compat.c: Likewise.
6599         * math/w_exp2_compat.c: Likewise.
6600         * math/w_exp2f_compat.c: Likewise.
6601         * math/w_exp2l_compat.c: Likewise.
6602         * math/w_fmod_compat.c: Likewise.
6603         * math/w_fmodf_compat.c: Likewise.
6604         * math/w_fmodl_compat.c: Likewise.
6605         * math/w_hypot_compat.c: Likewise.
6606         * math/w_hypotf_compat.c: Likewise.
6607         * math/w_hypotl_compat.c: Likewise.
6608         * math/w_j0_compat.c: Likewise.
6609         * math/w_j0f_compat.c: Likewise.
6610         * math/w_j0l_compat.c: Likewise.
6611         * math/w_j1_compat.c: Likewise.
6612         * math/w_j1f_compat.c: Likewise.
6613         * math/w_j1l_compat.c: Likewise.
6614         * math/w_jn_compat.c: Likewise.
6615         * math/w_jnf_compat.c: Likewise.
6616         * math/w_jnl_compat.c: Likewise.
6617         * math/w_lgamma_r_compat.c: Likewise.
6618         * math/w_lgammaf_r_compat.c: Likewise.
6619         * math/w_lgammal_r_compat.c: Likewise.
6620         * math/w_log10_compat.c: Likewise.
6621         * math/w_log10f_compat.c: Likewise.
6622         * math/w_log10l_compat.c: Likewise.
6623         * math/w_log2_compat.c: Likewise.
6624         * math/w_log2f_compat.c: Likewise.
6625         * math/w_log2l_compat.c: Likewise.
6626         * math/w_log_compat.c: Likewise.
6627         * math/w_logf_compat.c: Likewise.
6628         * math/w_logl_compat.c: Likewise.
6629         * math/w_pow_compat.c: Likewise.
6630         * math/w_powf_compat.c: Likewise.
6631         * math/w_powl_compat.c: Likewise.
6632         * math/w_remainder_compat.c: Likewise.
6633         * math/w_remainderf_compat.c: Likewise.
6634         * math/w_remainderl_compat.c: Likewise.
6635         * math/w_sinh_compat.c: Likewise.
6636         * math/w_sinhf_compat.c: Likewise.
6637         * math/w_sinhl_compat.c: Likewise.
6638         * math/w_sqrt_compat.c: Likewise.
6639         * math/w_sqrtf_compat.c: Likewise.
6640         * math/w_sqrtl_compat.c: Likewise.
6641         * math/w_tgamma_compat.c: Likewise.
6642         * math/w_tgammaf_compat.c: Likewise.
6643         * math/w_tgammal_compat.c: Likewise.
6644         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
6645         [LIBM_SVID_COMPAT].
6646         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
6647         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
6648         [LIBM_SVID_COMPAT].
6649         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
6650         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
6651         [LIBM_SVID_COMPAT].
6652         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
6653         * sysdeps/i386/fpu/w_sqrt.c: New file.
6654         * sysdeps/ia64/fpu/w_acos.c: Likewise.
6655         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
6656         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
6657         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
6658         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
6659         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
6660         * sysdeps/ia64/fpu/w_asin.c: Likewise.
6661         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
6662         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
6663         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
6664         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
6665         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
6666         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
6667         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
6668         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
6669         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
6670         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
6671         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
6672         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6673         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
6674         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
6675         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
6676         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
6677         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
6678         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
6679         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6680         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6681         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
6682         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
6683         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
6684         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
6685         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
6686         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
6687         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
6688         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
6689         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
6690         * sysdeps/ia64/fpu/w_log.c: Likewise.
6691         * sysdeps/ia64/fpu/w_log10.c: Likewise.
6692         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
6693         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
6694         * sysdeps/ia64/fpu/w_log2.c: Likewise.
6695         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
6696         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
6697         * sysdeps/ia64/fpu/w_logf.c: Likewise.
6698         * sysdeps/ia64/fpu/w_logl.c: Likewise.
6699         * sysdeps/ia64/fpu/w_pow.c: Likewise.
6700         * sysdeps/ia64/fpu/w_powf.c: Likewise.
6701         * sysdeps/ia64/fpu/w_powl.c: Likewise.
6702         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
6703         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
6704         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
6705         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
6706         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
6707         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
6708         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
6709         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
6710         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
6711         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
6712         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
6713         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
6714         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
6715         [LIBM_SVID_COMPAT].
6716         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6717         * sysdeps/ieee754/k_standard.c: Likewise.
6718         * sysdeps/ieee754/k_standardf.c: Likewise.
6719         * sysdeps/ieee754/k_standardl.c: Likewise.
6720         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6721         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6722         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6723         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
6724         long_double_symbol call on [LIBM_SVID_COMPAT].
6725         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6726         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6727         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6728         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6729         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6730         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6731         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6732         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6733         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6734         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6735         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6736         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
6737         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6738         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6739         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6740         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6741         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
6742         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6743         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6744         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6745         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
6746         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
6748 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
6750         * include/shlib-compat.h (TEST_COMPAT): New Macro.
6751         * malloc/tst-mallocstate.c: Convert from test-skeleton
6752         to test-driver.  Ifdef code using TEST_COMPAT macro.
6753         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
6754         * math/test-matherr.c: Likewise.
6756 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6758         [BZ #22086]
6759         * debug/pcprofiledump.c (main): Use byte-swapped mask when
6760         comparing word with byte-swapped constant.
6762 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
6764         [BZ #20498]
6765         * locale/iso-639.def: add Miskito.
6766         * localedata/SUPPORTED: Add miq_NI/UTF-8.
6767         * localedata/locales/miq_NI: New file.
6769 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6771         [BZ #18822]
6772         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
6773         (__mkdir): Likewise.
6774         * io/chmod.c (__chmod): Add libc_hidden_def.
6775         * io/mkdir.c (__mkdir): Likewise.
6776         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
6777         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
6778         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
6779         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
6781 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6783         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6784         version to 4.13.
6786         [BZ #22082]
6787         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
6788         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
6790 2017-09-04  Florian Weimer  <fweimer@redhat.com>
6792         * math/math.h: Issue warning if log is defined.
6794 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6796         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6797         kernel version to 4.13.
6799 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6801         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
6802         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
6803         parameter.
6804         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
6805         just <bits/types.h>.
6806         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
6807         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
6808         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
6809         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
6810         * misc/preadv2.c: Include <errno.h>.
6811         * misc/preadv64v2.c: Include <errno.h>.
6812         * misc/pwritev2.c: Include <errno.h>.
6813         * misc/pwritev64v2.c: Include <errno.h>.
6814         * sysdeps/posix/preadv2.c: Include <errno.h>.
6815         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
6816         Fix <unistd.h> inclusion.
6817         * sysdeps/posix/pwritev2.c: Include <errno.h>.
6818         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
6819         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
6820         __strtoul_internal): New functions.
6821         * sysdeps/posix/pause.c: Include <sigsetops.h>.
6822         * sysdeps/posix/system.c: Include <sigsetops.h>.
6823         * sysdeps/mach/hurd/i386/Makefile
6824         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
6825         [$(subdir) = csu] (sysdep-only-routines): Likewise.
6826         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
6827         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
6828         __feraiseexcept_renamed to feraiseexcept instead of
6829         __GI_feraiseexcept.
6830         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
6831         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
6832         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
6833         RWF_NOWAIT): Define to 0 if undefined already.
6834         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
6835         boils down to 0.
6836         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
6837         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
6839 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6841         * manual/math.texi (pow10): Do not document.
6842         (pow10f): Likewise.
6843         (pow10l): Likewise.
6844         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
6845         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
6846         * math/libm-test-exp10.inc (pow10_test): Remove.
6847         (do_test): Do not call pow10.
6848         * math/w_exp10_compat.c (pow10): Make into compat symbol.
6849         [NO_LONG_DOUBLE] (pow10l): Likewise.
6850         * math/w_exp10f_compat.c (pow10f): Likewise.
6851         * math/w_exp10l_compat.c (pow10l): Likewise.
6852         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
6853         (pow10): Make into compat symbol.
6854         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
6855         (pow10f): Make into compat symbol.
6856         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
6857         (pow10l): Make into compat symbol.
6858         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
6859         pow10.
6860         (CFLAGS-nldbl-pow10.c): Remove variable..
6861         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
6862         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
6863         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
6864         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
6865         Undefine and redefine.
6866         (pow10l): Make into compat symbol.
6867         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
6868         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6869         * sysdeps/arm/libm-test-ulps: Likewise.
6870         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
6871         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6872         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6873         * sysdeps/microblaze/libm-test-ulps: Likewise.
6874         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6875         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6876         * sysdeps/nios2/libm-test-ulps: Likewise.
6877         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6878         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6879         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6880         * sysdeps/sh/libm-test-ulps: Likewise.
6881         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6882         * sysdeps/tile/libm-test-ulps: Likewise.
6883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6885 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6887         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
6889 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6891         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
6892         "../ChangeLog.old/ChangeLog.8".
6893         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
6894         "../ChangeLog.old/ChangeLog.14".
6896 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6898         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
6899         Threads Library.
6901 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6903         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
6905 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6907         * csu/version.c (banner): Remove "by Roland McGrath et al.".
6908         * nptl/Banner: Remove "by Ulrich Drepper et al.".
6910 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6912         * stdlib/tst-atexit-common.c (do_test): Test support for at least
6913         32 atexit handlers.
6915 2017-09-01  Zack Weinberg  <zackw@panix.com>
6917         * math/math.h (HUGE_VAL): Improve commentary.
6919 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6920             Andreas Schwab  <schwab@suse.de>
6922         [BZ #21530]
6923         * include/stdio.h (__gen_tempfd): New function.
6924         * stdio-common/Makefile (routines): Add gentempfd.
6925         * stdio-common/gentempfd.c: New file.
6926         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
6927         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
6928         unnamed file first.
6930 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6932         [BZ #21915]
6933         [BZ #21922]
6934         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
6935         result to determine success or failure, not the errno value.
6936         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
6937         (tst-nss-files-hosts-erange): Link with -ldl.
6938         * nss/tst-nss-files-hosts-erange.c: New file.
6939         * nss/tst-resolv-basic.c (response): Handle nodata.example.
6940         (do_test): Add NO_DATA tests.
6941         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
6942         (do_test): Call it.
6944 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6946         [BZ #21922]
6947         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
6948         coming from gethostbyname2_r.
6950 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6952         * support/namespace.h (struct support_chroot_configuration): Add
6953         hosts, host_conf.
6954         (struct support_chroot): Add path_hosts, path_host_conf.
6955         * support/support_chroot.c (write_file): New function.
6956         (support_chroot_create): Call it to process /etc/resolv.conf,
6957         /etc/hosts, /etc/host.conf.
6958         (support_chroot_free): Update.
6960 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6962         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
6963         status indicates it is set.
6965 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6967         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
6968         function lookup failures more reliable.
6970 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6972         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
6973         (getcanonname): Likewise.
6974         (gaih_inet): Likewise.
6976 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6978         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
6979         (getcanonname): Likewise.
6980         (gaih_inet): Likewise.
6982 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6983             Richard Henderson <rth@twiddle.net>
6985         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
6986         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
6987         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
6988         (IREG_SIZE, OREG_SIZE): New macros.
6989         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
6990         (IREG_SIZE, OREG_SIZE): New macros.
6991         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
6992         (IREG_SIZE): New macro.
6993         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
6994         (IREG_SIZE): New macro.
6995         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
6996         New includes.
6997         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
6998         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6999         (__CONCATX): Handle exceptions correctly on large values that may
7000         set FE_INVALID.
7001         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
7002         Initialize if not already set.
7003         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
7005 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7007         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
7008         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
7009         Likewise.
7010         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
7011         Likewise.
7012         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
7013         Likewise.
7014         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
7015         Likewise.
7016         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
7017         Likewise.
7018         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
7019         Likewise.
7020         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
7021         Likewise.
7022         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
7023         (NO_CANCELLATION): Likewise.
7024         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
7025         Likewise.
7026         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
7027         Likewise.
7028         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
7029         Likewise.
7030         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
7031         (NO_CANCELLATION): Likewise.
7032         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
7033         (NO_CANCELLATION): Likewise.
7034         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
7035         Likewise
7036         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
7037         Likewise.
7038         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
7039         Likewise.
7040         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
7041         Likewise.
7042         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
7043         hidden prototype.
7044         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
7045         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
7047 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7049         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
7050         in resolver call.
7052 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7054         * include/libc-symbols.h (internal_function): Remove.
7056 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7058         * stdlib/fmtmsg.c (internal_addseverity): Remove
7059         internal_function.
7061 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7063         * stdio-common/printf_fp.c (group_number): Remove
7064         internal_function.
7065         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
7067 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7069         * posix/fnmatch.c (internal_function): Remove definition.
7070         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
7071         * posix/regcomp.c (peek_token, init_word_char)
7072         (duplicate_node_closure, fetch_token, peek_token)
7073         (peek_token_bracket, build_range_exp, build_collating_symbol):
7074         Likewise.
7075         * posix/regex_internal.c (re_string_construct_common)
7076         (create_ci_newstate, create_cd_newstate, re_string_allocate)
7077         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
7078         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
7079         (re_string_translate_buffer, re_string_reconstruct)
7080         (re_string_peek_byte_case, re_string_fetch_byte_case)
7081         (re_string_destruct, re_string_context_at, re_node_set_alloc)
7082         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
7083         (re_node_set_add_intersect, re_node_set_init_union)
7084         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
7085         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
7086         (re_dfa_add_node, calc_state_hash, re_acquire_state)
7087         (re_acquire_state_context): Likewise.
7088         * posix/regex_internal.h (internal_function): Remove definition.
7089         (re_string_realloc_buffers, build_wcs_buffer)
7090         (build_wcs_upper_buffer, build_upper_buffer)
7091         (re_string_translate_buffer, re_string_context_at)
7092         (re_string_char_size_at, re_string_wchar_at)
7093         (re_string_elem_size_at): Likewise.
7094         * posix/regexec.c (match_ctx_init, match_ctx_clean)
7095         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
7096         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
7097         (re_search_internal, re_search_2_stub, re_search_stub)
7098         (re_copy_regs, prune_impossible_nodes, check_matching)
7099         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
7100         (free_fail_stack_return, sift_states_iter_mb)
7101         (sift_states_backward, build_sifted_states)
7102         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
7103         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
7104         (check_subexp_limits, sift_states_bkref, merge_state_array)
7105         (find_recover_state, transit_state, merge_state_with_log)
7106         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
7107         (transit_state_mb, transit_state_bkref, get_subexp)
7108         (get_subexp_sub, find_subexp_node, check_arrival)
7109         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7110         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
7111         (check_node_accept_bytes, find_collation_sequence_value)
7112         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
7113         (acquire_init_state_context, check_halt_node_context)
7114         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
7115         (sub_epsilon_src_nodes): Likewise.
7116         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
7117         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
7118         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
7119         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
7120         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
7121         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
7122         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
7123         * sysdeps/posix/ttyname.c (getttyname): Likewise.
7124         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
7125         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
7126         (PREADV): Likewise.
7127         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
7128         (PREADV): Likewise.
7129         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
7130         (PWRITEV): Likewise.
7131         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
7132         (PWRITEV): Likewise.
7133         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
7134         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
7136 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7138         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
7139         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
7140         Remove internal_function.
7141         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
7142         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
7143         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
7144         (__deallocate_stack, __libc_pthread_init)
7145         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
7146         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
7147         (__libc_disable_asynccancel, __librt_disable_asynccancel):
7148         Likewise.
7149         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
7150         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
7151         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
7152         Likewise.
7153         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
7154         (__pthread_mutex_unlock_usercnt): Likewise.
7156 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7158         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
7159         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
7160         (fts_safe_changedir): Remove internal_function.
7161         * io/ftw.c (internal_function): Remove definition.
7162         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
7164 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7166         * inet/deadline.c (__deadline_current_time)
7167         (__deadline_from_timeval, __deadline_to_ms): Remove
7168         internal_function.
7169         * inet/getnameinfo.c (nrl_domainname): Likewise.
7170         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7171         * inet/inet6_option.c (add_pad): Likewise.
7172         * inet/net-internal.h (__deadline_current_time)
7173         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7174         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7175         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7176         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7178 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7180         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7181         include <bits/nan.h>.
7182         * math/Makefile (headers): Remove bits/nan.h.
7183         * bits/nan.h: Remove.
7184         * sysdeps/ieee754/bits/nan.h: Likewise.
7185         * sysdeps/mips/bits/nan.h: Likewise.
7187         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7188         not include <bits/inf.h>.
7189         * math/Makefile (headers): Remove bits/inf.h.
7190         * bits/inf.h: Remove.
7191         * sysdeps/ieee754/bits/inf.h: Likewise.
7193         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7194         bits/huge_vall.h or bits/huge_val_flt128.h.
7195         (HUGE_VAL): Define directly here.
7196         [__USE_ISOC99] (HUGE_VALF): Likewise.
7197         [__USE_ISOC99] (HUGE_VALL): Likewise.
7198         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7199         (HUGE_VAL_F128): Likewise.
7200         * math/Makefile (headers): Remove bits/huge_val.h,
7201         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7202         * bits/huge_val.h: Remove.
7203         * bits/huge_val_flt128.h: Likewise.
7204         * bits/huge_valf.h: Likewise.
7205         * bits/huge_vall.h: Likewise.
7206         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7207         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7208         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7209         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7210         * sysdeps/sh/bits/huge_val.h: Likewise.
7211         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7212         * sysdeps/x86/bits/huge_vall.h: Likewise.
7214 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7216         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7217         internal_function.
7218         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7219         Likewise.
7220         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7221         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7222         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7223         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7224         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7225         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7226         * elf/dl-libc.c (dlerror_run): Likewise.
7227         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7228         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7229         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7230         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7231         Likewise.
7232         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7233         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7234         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7235         * elf/dl-profile.c (_dl_start_profile): Likewise.
7236         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7237         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7238         Likewise.
7239         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7240         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7241         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7242         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7243         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7244         (_dl_allocate_tls_storage): Likewise.
7245         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7246         (_dl_check_all_versions): Likewise.
7247         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7248         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7249         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7250         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7251         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7252         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7253         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7254         internal_function from __dl_start.
7255         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7256         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7257         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7258         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7259         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7260         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7261         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7262         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7263         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7264         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7265         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7266         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7267         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7268         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7269         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7270         Likewise.
7271         (struct rtld_global_ro): Remove internal_function from the
7272         _dl_lookup_symbol_x member.
7273         (_dl_symbol_value): Remove.  No longer defined anywhere.
7274         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7275         internal_function.
7276         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7277         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7278         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7279         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7280         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7281         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7282         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7283         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7284         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7285         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7286         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7287         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
7289 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7291         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
7292         Remove internal_function.
7293         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7294         Likewise.
7295         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7296         Likewise.
7298 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7300         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
7301         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
7302         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
7304 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7306         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
7307         (__gai_enqueue_request): Remove internal_function.
7308         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
7309         (__gai_remove_request, __gai_notify, __gai_notify_only)
7310         (__gai_sigqueue): Likewise.
7311         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
7312         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
7313         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
7314         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7315         Likewise.
7317 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7319         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
7320         * include/dirent.h (__opendirat, __getdents, __getdents64)
7321         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
7322         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
7323         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7324         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7325         Likewise.
7326         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
7328 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7330         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
7331         internal_function.
7332         (GETCWD_RETURN_TYPE): Likewise.
7334 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7336         * include/time.h (__tz_compute, __strptime_internal): Remove
7337         internal_function.
7338         * time/strptime_l.c (__strptime_internal): Likewise.
7339         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
7341 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7343         * iconv/gconv.c (__gconv): Remove internal_function.
7344         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
7345         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
7346         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
7347         (__gconv_release_cache): Likewise.
7348         * iconv/gconv_close.c (__gconv_close): Likewise.
7349         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
7350         (read_conf_file, __gconv_get_path): Likewise.
7351         * iconv/gconv_db.c (derivation_lookup, add_derivation)
7352         (__gconv_release_step, gen_steps, increment_counter)
7353         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
7354         (__gconv_close_transform, free_modules_db): Likewise.
7355         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
7356         Likewise.
7357         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
7358         (__gconv_find_transform, __gconv_lookup_cache)
7359         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
7360         (__gconv_close_transform, __gconv_release_cache)
7361         (__gconv_loaded_object, __gconv_release_shlib)
7362         (__gconv_compare_alias): Likewise.
7363         * iconv/gconv_open.c (__gconv_open): Likewise.
7364         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
7365         * iconv/iconvconfig.c (add_module): Likewise.
7366         * intl/dcigettext.c (plural_lookup, guess_category_value)
7367         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
7368         * intl/eval-plural.h (plural_eval): Likewise.
7369         * intl/finddomain.c (_nl_find_domain): Likewise.
7370         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
7371         (_nl_load_domain, _nl_find_msg): Likewise.
7372         (internal_function): Remove definition.
7373         * intl/loadinfo.h (internal_function): Likewise.
7374         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
7375         internal_function.
7376         * intl/localealias.c (internal_function): Remove definition.
7377         (read_alias_file): Remove internal_function.
7378         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
7379         * intl/plural-exp.h (internal_function): Remove definition.
7380         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
7381         internal_function.
7382         * intl/plural.c: Regenerate.
7383         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
7384         * locale/coll-lookup.c (__collidx_table_lookup)
7385         (__collseq_table_lookup): Likewise.
7386         * locale/coll-lookup.h (__collidx_table_lookup)
7387         (__collseq_table_lookup): Likewise.
7388         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
7389         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7390         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
7391         (_nl_unload_locale): Likewise.
7392         * locale/localeinfo.h (struct __locale_data): Remove
7393         internal_function from cleanup member.
7394         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
7395         (_nl_remove_locale, _nl_load_locale_from_archive)
7396         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
7397         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
7398         (_nl_cleanup_time): Remove internal_function.
7399         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
7400         (_nl_parse_alt_digit): Likewise.
7401         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
7402         (_nl_select_era_entry): Likewise.
7403         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7404         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7405         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7406         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7407         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7409 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7411         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
7412         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7413         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
7414         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
7415         Likewise.
7416         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
7417         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
7418         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
7419         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7420         Likewise.
7421         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
7423 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7425         * misc/getttyent.c (skip, value): Remove internal_function.
7426         * misc/syslog.c (openlog_internal): Likewise.
7427         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
7429 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7431         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
7432         (__nss_rewrite_field): Remove internal_function.
7433         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7434         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7435         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7436         * nss/nsswitch.c (nss_parse_file, nss_getline)
7437         (nss_parse_service_list, nss_new_service): Likewise.
7438         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
7439         * nss/valid_field.c (__nss_valid_field): Likewise.
7440         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
7442 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7444         * malloc/arena.c (__malloc_fork_lock_parent)
7445         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
7446         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
7447         internal_function from defintions.
7448         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
7449         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
7450         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
7451         internal_function from declarations.
7452         * malloc/malloc.c (internal_function): Do not define.
7453         (mem2mem_check): Remove internal_function from declaration.
7454         (munmap_chunk, mremap_chunk): Remove internal_function.
7455         * malloc/mtrace.c (tr_where): Likewise.
7457 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7459         * include/rpc/pmap_clnt.h (__get_socket): Remove
7460         internal_function.
7461         * sunrpc/auth_des.c (synchronize): Likewise.
7462         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
7463         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
7464         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
7465         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
7466         (key_call): Likewise.
7467         * sunrpc/pm_getport.c (__get_socket): Likewise.
7468         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
7469         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
7470         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
7471         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
7472         (invalidate): Likewise.
7473         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
7474         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
7475         (set_input_fragment, get_input_bytes): Likewise.
7477 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7479         * malloc/malloc.c (_int_free): Remove locked variable and related
7480         asserts.
7482 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
7484         [BZ #22051]
7485         * Makerules (build-module-helper-objlist): Filter out
7486         $(elf-objpfx)sofini.os.
7487         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
7488         needed.
7490 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7492         * libio/fcloseall.c: Assume weak_alias is defined.
7493         * libio/feof.c: Likewise.
7494         * libio/fileno.c: Likewise.
7495         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
7496         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7497         definitions.
7498         (_IO_file_open): Call __open directly.
7499         (_IO_new_file_sync): Assume ESPIPE is defined.
7500         (_IO_file_seekoff_maybe_mmap): Call __read directly.
7501         (_IO_new_file_write): Call __write directly.
7502         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
7503         * libio/ftello64.c (__ftello64): Assume EIO is defined.
7504         * libio/genops.c: Assume _LIBC is defined.
7505         (save_for_backup): Remove internal_function.
7506         * libio/getc.c: Assume weak_alias is defined.
7507         * libio/getwc.c: Likewise.
7508         * libio/iofclose.c: Assume _LIBC is defined.
7509         * libio/iofdopen.c: Likewise.
7510         (_IO_fcntl): Remove macro definition.
7511         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
7512         Call __fcntl directly.
7513         * libio/iofflush.c: Assume weak_alias is defined.
7514         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
7515         defined.
7516         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
7517         * libio/iofgets.c: Likewise.
7518         * libio/iofopen.c: Assume _LIBC is defined.
7519         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
7520         * libio/iofputs.c: Assume weak_alias is defined.
7521         * libio/iofread.c: Likewise.
7522         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
7523         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
7524         * libio/ioftell.c: Assume weak_alias is defined.
7525         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
7526         * libio/iofwide.c: Assume _LIBC is defined.
7527         (_IO_fwide): Drop SHARED conditional because it is implied by
7528         SHLIB_COMPAT.
7529         * libio/iofwrite.c: Assume weak_alias is defined.
7530         * libio/iogetdelim.c: Likewise.
7531         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
7532         * libio/iogetwline.c (wmemcpy): Remove macro definition.
7533         (_IO_getwline): Call __wmemcpy directly.
7534         * libio/iopopen.c: Assume _LIBC is defined.
7535         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7536         (_IO_close): Remove macro definitions.
7537         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
7538         _exit directly.
7539         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
7540         directly.
7541         * libio/ioputs.c: Assume weak_alias is defined.
7542         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
7543         * libio/iosetbuffer.c: Assume weak_alias is defined.
7544         * libio/iosetvbuf.c: Likewise.
7545         * libio/ioungetc.c: Likewise.
7546         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
7547         libc_hidden_def, libc_hidden_weak, NULL are defined.
7548         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
7549         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
7550         defined.
7551         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7552         definitions.
7553         (_IO_old_file_init_internal): Drop SHARED conditional because it
7554         is implied by SHLIB_COMPAT.
7555         (_IO_old_file_fopen): Call __open directly.
7556         (_IO_old_file_sync): Assume ESPIPE is defined.
7557         (_IO_old_file_write): Call __write directly.
7558         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
7559         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
7560         Call __fcntl directly.
7561         * libio/oldiofgetpos.c: Assume weak_alias is defined.
7562         (_IO_old_fgetpos): Assume EIO is defined.
7563         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
7564         (_IO_old_fgetpos64): Assume EIO is defined.
7565         * libio/oldiofsetpos.c: Assume weak_alias is defined.
7566         (_IO_old_fsetpos): Assume EIO is defined.
7567         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
7568         (_IO_old_fsetpos64): Assume EIO is defined.
7569         * libio/oldiopopen.c:  Assume _LIBC is defined.
7570         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7571         (_IO_close): Remove macro definitions.
7572         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
7573         directly.
7574         (_IO_old_proc_close): Call __close, __waitpid directly.
7575         * libio/put.c: Assume weak_alias is defined.
7576         * libio/stdfiles.c: Assume _LIBC is defined.
7577         * libio/stdio.c: Likewise.
7578         * libio/wfileops.c: Likewise.
7579         (_IO_wfile_sync): Assume ESPIPE is defined.
7580         * libio/wgenops.c: Assume _LIBC is defined.
7581         (save_for_wbackup): Remove internal_function.
7583 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7585         * malloc/malloc.c (top_check): Change return type to void.  Remove
7586         internal_function.
7587         * malloc/hooks.c (top_check): Likewise.
7588         (malloc_check, realloc_check, memalign_check): Adjust.
7590 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
7592         [BZ #21457]
7593         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7594         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
7595         sigcontext and namespace requirements.
7596         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7597         * sysdeps/m68k/sys/ucontext.h: Likewise.
7598         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
7599         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
7600         <bits/sigcontext.h>.
7601         (__ctx): Define earlier.
7602         (mcontext_t): Define structure contents rather than using struct
7603         sigcontext.
7604         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
7605         __glibc_reserved1 instead of __reserved.
7606         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
7607         <bits/sigcontext.h>.
7608         (__ctx): Define earlier.
7609         (mcontext_t): Define structure contents rather than using struct
7610         sigcontext.
7611         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
7612         mcontext_t instead of struct sigcontext.
7613         * sysdeps/unix/sysv/linux/arm/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/hppa/sys/ucontext.h: Do not include
7619         <bits/sigcontext.h>.
7620         (__ctx): Define earlier.
7621         (mcontext_t): Define structure contents rather than using struct
7622         sigcontext.
7623         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
7624         mcontext_t instead of struct sigcontext.
7625         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
7626         mcontext_t instead of struct sigcontext.
7627         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
7628         <bits/sigcontext.h>.
7629         (__ctx): New macro.
7630         (struct __ia64_fpreg_mcontext): New type.
7631         (mcontext_t): Define structure contents rather than using struct
7632         sigcontext.
7633         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
7634         (uc_sigmask): Define using __ctx.
7635         (uc_stack): Likewise.
7636         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
7637         <bits/sigcontext.h>.
7638         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7639         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
7640         <bits/sigcontext.h>.
7641         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
7642         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
7643         <bits/sigcontext.h>.
7644         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
7645         <bits/sigcontext.h>.
7646         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
7647         <bits/sigcontext.h>.
7648         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
7649         <bits/sigcontext.h>.
7650         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
7651         <bits/sigcontext.h>.
7652         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
7653         <bits/sigcontext.h>.
7654         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
7655         <bits/sigcontext.h>.
7656         (__ctx): Define earlier.
7657         (mcontext_t): Define structure contents rather than using struct
7658         sigcontext.
7659         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
7660         <bits/sigcontext.h>.  Include <bits/types.h>.
7661         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
7662         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
7663         (test-xfail-XPG42/ucontext.h/conform): Likewise.
7664         (test-xfail-UNIX98/signal.h/conform): Likewise.
7665         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
7666         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
7667         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
7668         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
7669         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7670         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7671         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7672         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7673         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7675 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7677         * malloc/dynarray_emplace_enlarge.c
7678         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
7679         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7680         * malloc/tst-dynarray.c (test_long_overflow): New function.
7681         (do_test): Call it.
7683 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7685         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
7686         (set_arena_corrupt): Remove definitions.
7687         (mtrim): Do not check for corrupt arena.
7688         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
7689         Likewise.
7691 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7693         [BZ #21754]
7694         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
7695         check_action.
7696         (ptmalloc_init): Do not set or use check_action.
7697         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
7698         call to malloc_printerr.  Remove return statement.
7699         (free_check): Likewise.  Remove arena unlock.
7700         (top_check): Update comment.  Adjust call to malloc_printerr.
7701         Remove heap repair code.
7702         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
7703         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
7704         (sysmalloc): Adjust call to malloc_printerr.
7705         (munmap_chunk, __libc_realloc): Likewise.  Remove return
7706         statement.
7707         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
7708         Remove errout label and corresponding gotos.
7709         (_int_free): Likewise.  Remove arena unlock.
7710         (do_set_mallopt_check): Do not set check_action.
7711         (malloc_printerr): Adjust parameter list.  Do not mark arena as
7712         corrupt.
7713         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
7714         comment.
7715         * manual/probes.texi (Memory Allocation Probes): Remove
7716         memory_mallopt_check_action.
7718 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
7720         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
7721         Use pointer to uint64_t instead of long int for sp.
7723 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7725         [BZ #21754]
7726         * malloc/malloc.c (malloc_printerr): Always terminate the process,
7727         without printing a backtrace.  Do not leak any information in the
7728         error message.
7729         * manual/memory.texi (Heap Consistency Checking): Update.
7730         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
7732 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7734         Do not scale NPTL tests with available number of CPUs.
7735         * nptl/tst-cond16.c (count): Set to constant value of 8.
7736         * nptl/tst-cond18.c (count): Likewise.
7738 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7740         [BZ #22035]
7741         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
7742         Define to take a second argument that is a macro that
7743         concatentates a suffix, not the suffix itself.
7744         (__CONCAT_d): New macro.
7745         (__CONCAT_f): Likewise.
7746         (__CONCAT_l): Likewise.
7748 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
7750         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
7751         by child.
7753 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7754             Aurelien Jarno  <aurelien@aurel32.net>
7755             Maciej W. Rozycki  <macro@imgtec.com>
7757         [BZ #21956]
7758         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
7759         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
7760         `mips16-syscall6' and `mips16-syscall7'.
7761         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
7762         (CFLAGS-mips16-syscall7.c): Remove.
7763         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
7764         Remove `__mips16_syscall5', `__mips16_syscall6' and
7765         `__mips16_syscall7'.
7766         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
7767         (__mips16_syscall0): Rename `__mips16_syscall_return' to
7768         `__mips_syscall_return'.
7769         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
7770         (__mips16_syscall1): Likewise.
7771         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
7772         (__mips16_syscall2): Likewise.
7773         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
7774         (__mips16_syscall3): Likewise.
7775         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
7776         (__mips16_syscall4): Likewise.
7777         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
7778         Remove.
7779         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
7780         Remove.
7781         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
7782         Remove.
7783         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
7784         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
7785         `__mips16_syscall5'.  Remove prototype.
7786         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
7787         `__mips16_syscall6'.  Remove prototype.
7788         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
7789         `__mips16_syscall7'.  Remove prototype.
7790         (__nomips16, __mips16_syscall_return): Move to...
7791         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
7792         (__nomips16, __mips_syscall_return): ... here.
7793         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
7794         `__mips16_syscall_return' to `__mips_syscall_return'.
7795         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
7796         `internal_syscall##nr'.
7797         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
7798         `internal_syscall##nr'.
7799         (FORCE_FRAME_POINTER): Remove.
7800         (__mips_syscall5): New prototype.
7801         (internal_syscall5): Rewrite to call `__mips_syscall5'.
7802         (__mips_syscall6): New prototype.
7803         (internal_syscall6): Rewrite to call `__mips_syscall6'.
7804         (__mips_syscall7): New prototype.
7805         (internal_syscall7): Rewrite to call `__mips_syscall7'.
7806         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
7807         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
7808         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
7809         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
7810         (sysdep_routines): Add libc-do-syscall.
7811         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
7812         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
7814 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7816         [BZ #21672]
7817         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
7818         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
7819         (advise_stack_range): New function.
7820         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
7821         stack non required to advise_stack_range at allocatestack.c
7823 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7825         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
7827 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7829         [BZ #22026]
7830         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
7831         __end_fct.  Mangle __end_fct after setting it to NULL.
7832         * iconv/Makefile (tests): Add tst-gconv-init-failure.
7833         (modules-names, modules-names-tests): Add
7834         tst-gconv-init-failure-mod.
7835         (gconv-modules): New target.
7836         (tst-gconv-init-failure-mod.so): Link against libsupport.
7837         (tst-gconv-init-failure): Depend on gconv-modules,
7838         tst-gconv-init-failure-mod.so.
7839         * iconv/tst-gconv-init-failure-mod.c: New file.
7840         * iconv/tst-gconv-init-failure.c: Likewise.
7841         * iconv/test-gconv-modules: Likewise.
7843 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7845         [BZ #22025]
7846         * iconv/gconv_db.c (free_derivation): Remove redundant
7847         parentheses.
7848         (gen_steps): Unconditionally mangle __btowc_fct after
7849         initialization.
7850         (increment_counter): Likewise.  Do not call init_fct for internal
7851         modules.
7853 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7855         [BZ #22028]
7856         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7857         (_MSUF_): Remove macro.
7858         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
7859         Likewise.
7860         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7861         (__REDIRFROM_X): New macro.
7862         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
7863         Likewise.
7864         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
7865         (__REDIRTO_X): Likewise.
7866         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
7867         arguments.
7868         (__MATH_REDIRCALL_2): Likewise.
7869         (__MATH_REDIRCALL_INTERNAL): Likewise.
7870         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7871         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
7872         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
7873         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7874         * math/test-finite-macros.c: New file.
7875         * math/Makefile (tests): Add test-finite-macros.
7876         (CFLAGS-test-finite-macros.c): New variable.
7878 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
7879             Jeff Law  <law@redhat.com>
7881         [BZ #22025]
7882         Mangle NULL pointers in iconv/gconv.
7883         * iconv/gconv_cache.c (find_module): Demangle init_fct before
7884         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
7885         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
7886         is non-NULL before demangling the end_fct.  Check for NULL
7887         end_fct after demangling.
7888         (__gconv_release_step): Demangle the end_fct before checking
7889         it for NULL.   Remove assert on __shlibc_handle != NULL.
7890         (gen_steps): Don't check btowc_fct for NULL before mangling.
7891         Demangle init_fct before checking for NULL.
7892         (increment_counter): Likewise.
7893         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
7894         end_fct for NULL before mangling.
7895         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
7896         for NULL.
7898 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
7900         [BZ #21971]
7901         * locale/iso-639.def: add Morisyen.
7903 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7905         [BZ #21930]
7906         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
7907         (iszero): New C++ implementation that does not use
7908         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
7909         signaling nans are enabled, since __builtin_types_compatible_p
7910         is a C-only feature.
7911         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
7912         defined, include ieee754_float128.h for access to the union and
7913         member ieee854_float128.ieee.
7914         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
7915         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
7916         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7917         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
7918         options of test-math-zero on powerpc64le.
7920 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
7922         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
7923         Change double to float.
7925 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
7927         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
7928         unconditional.
7929         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
7930         conditional code; define contents only for [LIBM_SVID_COMPAT].
7932 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7934         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
7935         (abi-lp64_be-options): Remove.
7936         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
7937         (abi-hard-options): Likewise.
7938         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
7939         (abi-o32_hard-options, abi-o32_soft_2008-options)
7940         (abi-o32_hard_2008-options, abi-n32_soft-options)
7941         (abi-n32_hard-options, abi-n32_soft_2008-options)
7942         (abi-n32_hard_2008-options, abi-n64_soft-options)
7943         (abi-n64_hard-options, abi-n64_soft_2008-options)
7944         (abi-n64_hard_2008-options): Likewise.
7945         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
7946         (abi-64-v1-options, abi-64-v2-options): Likewise.
7947         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
7948         (abi-64-options): Likewise.
7949         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
7950         (abi-64-options): Likewise.
7951         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
7952         (abi-64-options): Likewise.
7953         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
7954         (abi-64-options, abi-x32-options): Likewise.
7956 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7958         Store supported list of SYS_* system calls in the source tree.
7959         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7960         (bits/syscall.h): Generate from list file.
7961         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
7962         [$(subdir) = misc] (tests): Add tst-syscall-list.
7963         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
7964         [$(subdir) = misc] (tst-syscall-list-macros.list)
7965         [$(subdir) = misc] (tst-syscall-list-nr.list)
7966         (tst-syscall-list-sys.list): Helper targets for new
7967         tst-syscall-list test.
7968         [$(subdir) = misc] (tst-syscall-list.out): Run test script
7969         tst-syscall-list.sh.
7970         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
7971         target. Do not include bits/syscall.d.
7972         [$(subdir) = misc] (generated): Do not update.
7973         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
7974         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
7975         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
7976         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
7978 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
7980         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
7981         (tst-cxa_atexit, tst-on_exit): Likewise.
7982         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
7983         tst-cxa_atexit, and tst-on_exit.
7984         * stdlib/tst-atexit-common.c: New file.
7985         * stdlib/tst-atexit.c: New file.
7986         * stdlib/tst-at_quick_exit.c: New file.
7987         * stdlib/tst-cxa_atexit.c: New file.
7988         * stdlib/tst-on_exit.c: New file.
7990 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7992         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
7993         * mach/stack_chk_fail_local.c: New file.
7994         * hurd/stack_chk_fail_local.c: New file.
7995         * mach/Machrules ($(interface-library)-routines): Add
7996         stack_chk_fail_local.
7997         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
7998         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
7999         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
8000         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
8001         * hurd/Makefile (CFLAGS-hurdstartup.o,
8002         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
8004 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
8006         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8007         (index_cpu_*, index_arch_*): Removed.
8009 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8011         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
8012         Use uint64_t instead of unsigned long.
8014 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
8016         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
8017         [__HAVE_DISTINCT_FLOAT128].
8019         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
8020         of <bits/math-finite.h>.
8021         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
8022         inclusion of <bits/math-finite.h>.
8023         * math/bits/math-finite.h (__REDIRTO_X): Do not define
8024         conditionally on [__MATH_DECLARING_LDOUBLE && defined
8025         __NO_LONG_DOUBLE_MATH].
8026         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
8027         (__MATH_REDIRCALL_2): Likewise.
8028         (__MATH_REDIRCALL_INTERNAL): Likewise.
8029         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
8030         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
8031         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
8033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
8034         Remove file.
8035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
8036         Likewise.
8037         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
8038         Likewise.
8039         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
8040         Likewise.
8041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
8042         Likewise.
8043         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
8044         Likewise.
8045         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8046         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8047         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8048         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8049         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
8050         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
8051         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
8052         w_sqrtf_compat-ppc32.
8054 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8056         * math/math.h [defined __cplusplus] (issignaling): In the long
8057         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
8058         is not defined.  Call __issignaling, otherwise.
8060 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8062         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
8063         syscall definitions and replace __builtin_expect with __glibc_likely.
8064         * sysdeps/unix/syscall-template.S: Update comment about cancellable
8065         syscall.
8066          (SYSCALL_CANCELLABLE): Removedefinition
8067         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
8068         definition.
8069         (PSEUDO_END): Likewise.
8070         [IS_IN (libpthread)] (CENABLE): Likewise.
8071         [IS_IN (libpthread)] (CDISABLE): Likewise.
8072         [IS_IN (libc)] (CENABLE): Likewise.
8073         [IS_IN (libc)] (CENABLE): Likewise.
8074         [IS_IN (librt)] (CDISABLE): Likewise.
8075         [IS_IN (librt)] (CDISABLE): Likewise.
8076         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8077         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
8078         definition.
8079         (PSEUDO_END): Likewise.
8080         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
8081         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
8082         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8083         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8084         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8085         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8086         (CENABLE): Likewise.
8087         (CDISABLE): Likewise.
8088         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8089         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
8090         defintion.
8091         (PSEUDO_END): Likewise.
8092         [IS_IN (libpthread)] (CENABLE): Likewise.
8093         [IS_IN (libpthread)] (CDISABLE): Likewise.
8094         [IS_IN (libc)] (CENABLE): Likewise.
8095         [IS_IN (libc)] (CENABLE): Likewise.
8096         [IS_IN (librt)] (CDISABLE): Likewise.
8097         [IS_IN (librt)] (CDISABLE): Likewise.
8098         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8099         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
8100         definition.
8101         (PSEUDO_END): Likewise.
8102         [IS_IN (libpthread)] (CENABLE): Likewise.
8103         [IS_IN (libpthread)] (CDISABLE): Likewise.
8104         [IS_IN (libc)] (CENABLE): Likewise.
8105         [IS_IN (libc)] (CENABLE): Likewise.
8106         [IS_IN (librt)] (CDISABLE): Likewise.
8107         [IS_IN (librt)] (CDISABLE): Likewise.
8108         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8109         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
8110         definition.
8111         (PSEUDO_END): Likewise.
8112         [IS_IN (libpthread)] (CENABLE): Likewise.
8113         [IS_IN (libpthread)] (CDISABLE): Likewise.
8114         [IS_IN (libc)] (CENABLE): Likewise.
8115         [IS_IN (libc)] (CENABLE): Likewise.
8116         [IS_IN (librt)] (CDISABLE): Likewise.
8117         [IS_IN (librt)] (CDISABLE): Likewise.
8118         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8119         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
8120         definition.
8121         (PSEUDO_END): Likewise.
8122         [IS_IN (libpthread)] (CENABLE): Likewise.
8123         [IS_IN (libpthread)] (CDISABLE): Likewise.
8124         [IS_IN (libc)] (CENABLE): Likewise.
8125         [IS_IN (libc)] (CENABLE): Likewise.
8126         [IS_IN (librt)] (CDISABLE): Likewise.
8127         [IS_IN (librt)] (CDISABLE): Likewise.
8128         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8129         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
8130         definition.
8131         (PSEUDO_END): Likewise.
8132         [IS_IN (libpthread)] (CENABLE): Likewise.
8133         [IS_IN (libpthread)] (CDISABLE): Likewise.
8134         [IS_IN (libc)] (CENABLE): Likewise.
8135         [IS_IN (libc)] (CENABLE): Likewise.
8136         [IS_IN (librt)] (CDISABLE): Likewise.
8137         [IS_IN (librt)] (CDISABLE): Likewise.
8138         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8139         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
8140         definition.
8141         (PSEUDO_END): Likewise.
8142         [IS_IN (libpthread)] (CENABLE): Likewise.
8143         [IS_IN (libpthread)] (CDISABLE): Likewise.
8144         [IS_IN (libc)] (CENABLE): Likewise.
8145         [IS_IN (libc)] (CENABLE): Likewise.
8146         [IS_IN (librt)] (CDISABLE): Likewise.
8147         [IS_IN (librt)] (CDISABLE): Likewise.
8148         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8149         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
8150         Remove definition.
8151         (PSEUDO_END): Likewise.
8152         [IS_IN (libpthread)] (CENABLE): Likewise.
8153         [IS_IN (libpthread)] (CDISABLE): Likewise.
8154         [IS_IN (libc)] (CENABLE): Likewise.
8155         [IS_IN (libc)] (CENABLE): Likewise.
8156         [IS_IN (librt)] (CDISABLE): Likewise.
8157         [IS_IN (librt)] (CDISABLE): Likewise.
8158         (SINGLE_THREAD_P): Likewise.
8159         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
8160         definition.
8161         (PSEUDO_END): Likewise.
8162         [IS_IN (libpthread)] (CENABLE): Likewise.
8163         [IS_IN (libpthread)] (CDISABLE): Likewise.
8164         [IS_IN (libc)] (CENABLE): Likewise.
8165         [IS_IN (libc)] (CENABLE): Likewise.
8166         [IS_IN (librt)] (CDISABLE): Likewise.
8167         [IS_IN (librt)] (CDISABLE): Likewise.
8168         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8169         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
8170         definition.
8171         (PSEUDO_END): Likewise.
8172         [IS_IN (libpthread)] (CENABLE): Likewise.
8173         [IS_IN (libpthread)] (CDISABLE): Likewise.
8174         [IS_IN (libc)] (CENABLE): Likewise.
8175         [IS_IN (libc)] (CENABLE): Likewise.
8176         [IS_IN (librt)] (CDISABLE): Likewise.
8177         [IS_IN (librt)] (CDISABLE): Likewise.
8178         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8179         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8180         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8181         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8182         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8183         definition.
8184         (PSEUDO_END): Likewise.
8185         [IS_IN (libpthread)] (CENABLE): Likewise.
8186         [IS_IN (libpthread)] (CDISABLE): Likewise.
8187         [IS_IN (libc)] (CENABLE): Likewise.
8188         [IS_IN (libc)] (CENABLE): Likewise.
8189         [IS_IN (librt)] (CDISABLE): Likewise.
8190         [IS_IN (librt)] (CDISABLE): Likewise.
8191         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8192         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
8193         definition.
8194         (PSEUDO_END): Likewise.
8195         [IS_IN (libpthread)] (CENABLE): Likewise.
8196         [IS_IN (libpthread)] (CDISABLE): Likewise.
8197         [IS_IN (libc)] (CENABLE): Likewise.
8198         [IS_IN (libc)] (CENABLE): Likewise.
8199         [IS_IN (librt)] (CDISABLE): Likewise.
8200         [IS_IN (librt)] (CDISABLE): Likewise.
8201         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8202         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
8203         definition.
8204         (PSEUDO_END): Likewise.
8205         [IS_IN (libpthread)] (CENABLE): Likewise.
8206         [IS_IN (libpthread)] (CDISABLE): Likewise.
8207         [IS_IN (libc)] (CENABLE): Likewise.
8208         [IS_IN (libc)] (CENABLE): Likewise.
8209         [IS_IN (librt)] (CDISABLE): Likewise.
8210         [IS_IN (librt)] (CDISABLE): Likewise.
8211         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8212         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8213         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8214         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8215         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8216         definition.
8217         (PSEUDO_END): Likewise.
8218         [IS_IN (libpthread)] (CENABLE): Likewise.
8219         [IS_IN (libpthread)] (CDISABLE): Likewise.
8220         [IS_IN (libc)] (CENABLE): Likewise.
8221         [IS_IN (libc)] (CENABLE): Likewise.
8222         [IS_IN (librt)] (CDISABLE): Likewise.
8223         [IS_IN (librt)] (CDISABLE): Likewise.
8224         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8225         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8226         definition.
8227         (PSEUDO_END): Likewise.
8228         [IS_IN (libpthread)] (CENABLE): Likewise.
8229         [IS_IN (libpthread)] (CDISABLE): Likewise.
8230         [IS_IN (libc)] (CENABLE): Likewise.
8231         [IS_IN (libc)] (CENABLE): Likewise.
8232         [IS_IN (librt)] (CDISABLE): Likewise.
8233         [IS_IN (librt)] (CDISABLE): Likewise.
8234         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8236 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8238         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8240 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8242         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8244 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8246         [BZ #21982]
8247         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8248         middle and outer with size_t instead of int.  Repleace %d and
8249         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8250         "MAX (outer, nchars - 64)" to support unsigned outer and
8251         nchars.  Also exit loop when outer == 0.
8253 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8255         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8256         * include/signal.h (__sigsuspend_nocancel): Likewise.
8257         * include/time.h (__nanosleep_nocancel): Likewise.
8258         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8259         * login/utmp_file.c: Include non cancellable syscall header.
8260         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8261         prototype.
8263 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8265         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8266         .byte sequences with AVX512F instructions.
8267         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8268         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8269         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8270         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8271         Likewise.
8272         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8273         Likewise.
8275 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8276             Steve Ellcey  <sellcey@cavium.com>
8278         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8279         Use PTR_REG macro in cmp instruction.
8281 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8283         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8284         Change the return type of the ifunc resolver to match the return
8285         type of the target function.
8287 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8289         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
8290         (preadv64): Likewise.
8291         (pwrite64(: Likewise.
8292         (pwritev64): Likewise.
8294         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8295         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
8296         (LOAD_ARGS_0): Likewise.
8297         (LOAD_ARGS_1): Likewise.
8298         (LOAD_ARGS_2): Likewise.
8299         (LOAD_ARGS_3): Likewise.
8300         (LOAD_ARGS_4): Likewise.
8301         (LOAD_ARGS_5): Likewise.
8302         (LOAD_ARGS_6): Likewise.
8303         (LOAD_REGS_0): Likewise.
8304         (LOAD_REGS_1): Likewise.
8305         (LOAD_REGS_2): Likewise.
8306         (LOAD_REGS_3): Likewise.
8307         (LOAD_REGS_4): Likewise.
8308         (LOAD_REGS_5): Likewise.
8309         (LOAD_REGS_6): Likewise.
8310         (ASM_ARGS_0): Likewise.
8311         (ASM_ARGS_1): Likewise.
8312         (ASM_ARGS_2): Likewise.
8313         (ASM_ARGS_3): Likewise.
8314         (ASM_ARGS_4): Likewise.
8315         (ASM_ARGS_5): Likewise.
8316         (ASM_ARGS_6): Likewise.
8317         (LOAD_ARGS_TYPES_1): Likewise.
8318         (LOAD_ARGS_TYPES_2): Likewise.
8319         (LOAD_ARGS_TYPES_3): Likewise.
8320         (LOAD_ARGS_TYPES_4): Likewise.
8321         (LOAD_ARGS_TYPES_5): Likewise.
8322         (LOAD_ARGS_TYPES_6): Likewise.
8323         (LOAD_REGS_TYPES_1): Likewise.
8324         (LOAD_REGS_TYPES_2): Likewise.
8325         (LOAD_REGS_TYPES_3): Likewise.
8326         (LOAD_REGS_TYPES_4): Likewise.
8327         (LOAD_REGS_TYPES_5): Likewise.
8328         (LOAD_REGS_TYPES_6): Likewise.
8329         (TYPEFY): New define.
8330         (ARGIFY): Likewise.
8331         (internal_syscall0): Likewise.
8332         (internal_syscall1): Likewise.
8333         (internal_syscall2): Likewise.
8334         (internal_syscall3): Likewise.
8335         (internal_syscall4): Likewise.
8336         (internal_syscall5): Likewise.
8337         (internal_syscall6): Likewise.
8338         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
8339         (INTERNAL_SYSCALL_NCS): Remove define.
8340         (internal_syscall1): Add define.
8342 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8344         * math/w_remainder_compat.c: Remove duplicate inclusion of
8345         math-svid-compat.h.
8346         * math/w_remainderf_compat.c: Likewise.
8347         * math/w_remainderl_compat.c: Likewise.
8349 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8351         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8353 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8355         [BZ #21684]
8356         * math/tgmath.h (__floating_type): Simplify definitions.
8357         (__real_integer_type): New macro.
8358         (__complex_integer_type): Likewise.
8359         (__expr_is_real): Likewise.
8360         (__tgmath_real_type_sub): Update comment to describe handling of
8361         complex types.
8362         (__tgmath_complex_type_sub): New macro.
8363         (__tgmath_complex_type): Likewise.
8364         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8365         (__TGMATH_CF128): Use __expr_is_real.
8366         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
8367         __expr_is_real.
8368         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8369         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
8370         * math/gen-tgmath-tests.py (Type.create_type): Create complex
8371         integer types.
8373 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8375         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
8376         macro.
8377         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
8378         alias.
8379         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
8380         Likewise.
8382         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
8383         nanosleep_not_cancel with __nanosleep_nocancel.
8384         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
8385         (__nanosleep_nocancel): New macro.
8386         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
8387         function.
8388         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
8389         macro.
8390         (__nanosleep_nocancel): New prototype.
8392         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
8393         pause_not_cancel with __pause_nocancel.
8394         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
8395         (__pause_nocancel): New macro.
8396         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
8397         macro.
8398         (__pause_nocancel): New prototype.
8399         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
8401 2017-08-22  Martin Sebor  <msebor@redhat.com>
8403         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
8404         to return a pointer to the same type as the target function.
8406 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8408         [BZ #18822]
8409         [BZ #21986]
8410         * include/printf.h (__printf_fphex): Add attribute_hidden.
8411         (__guess_grouping): New prototype.
8412         * stdio-common/printf_fp.c (__guess_grouping): Removed.
8413         * stdio-common/reg-printf.c (__register_printf_specifier): Add
8414         libc_hidden_proto and libc_hidden_def.
8415         * stdlib/strfmon_l.c (__guess_grouping): Removed.
8416         (__vstrfmon_l): Remove the third argument passed to
8417         __guess_grouping.
8419 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8421         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
8422         definition for issignaling that does not rely on __MATH_TG,
8423         since __MATH_TG uses __builtin_types_compatible_p, which is only
8424         available in C mode.
8425         (CFLAGS-test-math-issignaling.cc): New variable.
8426         * math/Makefile [CXX] (tests): Add test-math-issignaling.
8427         * math/test-math-issignaling.cc: New test for C++ implementation
8428         of type-generic issignaling.
8429         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8430         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
8431         options of test-math-issignaling on powerpc64le.
8433 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8435         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8436         building libc.a.
8437         (hidden_proto): Likewise.
8438         (hidden_tls_proto): Likewise.
8439         (__hidden_proto): Likewise.
8441 2017-08-22  Florian Weimer  <fweimer@redhat.com>
8443         math: Statically link tests of internal functionality.
8444         * math/Makefile (tests): Remove atest-exp, atest-sincos,
8445         atest-exp2.
8446         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
8447         (gmp-objs): Remove assignment.
8448         (atest-exp, atest-sincos, atest-exp2): Remove targets.
8450 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8452         [BZ #21987]
8453         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
8454         and copy to ...
8455         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
8456         ... here.
8457         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
8458         ... and here.
8460         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
8461         variable definitions above inclusion of ../Rules.
8463 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8465         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
8466         case calling __builtin_unreachable.
8468 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8470         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
8471         __waitpid_nocancel.
8472         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
8473         (__waitpid_nocancel): New macro.
8474         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
8475         macro.
8476         (__waitpid_nocancel): Replace macro with a function.
8477         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
8478         function.
8480         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
8481         __fcntl_nocancel.
8482         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
8483         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
8485         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
8486         __writev_nocancel_nostatus.
8487         (write_call_graph): Likewise.
8488         (write_bb_counts): Likewise.
8489         * resolv/herror.c (herror): Likewise.
8490         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
8491         macro.
8492         (__writev_nocancel_nostatus): New macro.
8493         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
8494         Remove macro.
8495         (__writev_nocancel_nostatus): New function.
8497 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8499         Revert:
8500         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8502         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8503         building libc.a.
8504         (hidden_proto): Likewise.
8505         (hidden_tls_proto): Likewise.
8506         (__hidden_proto): Likewise.
8508         [BZ #21973]
8509         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
8510         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8512         Likewise.
8513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
8514         Likewise.
8515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8516         Likewise.
8517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
8518         Likewise.
8519         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
8520         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8521         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8522         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8523         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8524         GLIBC_2.0 sqrtl symbol.
8526         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
8527         [__USE_MISC] (_LIB_VERSION): Likewise.
8528         [__USE_MISC] (struct exception): Likewise.
8529         [__USE_MISC] (matherr): Likewise.
8530         [__USE_MISC] (DOMAIN): Likewise.
8531         [__USE_MISC] (SING): Likewise.
8532         [__USE_MISC] (OVERFLOW): Likewise.
8533         [__USE_MISC] (UNDERFLOW): Likewise.
8534         [__USE_MISC] (TLOSS): Likewise.
8535         [__USE_MISC] (PLOSS): Likewise.
8536         [__USE_MISC] (HUGE): Likewise.
8537         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
8538         * math/math-svid-compat.h: New file.
8539         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
8540         and matherrl.
8541         * include/math.h [!_ISOMAC] (__matherr): Remove.
8542         * manual/arith.texi (FP Exceptions): Do not document matherr.
8543         * math/Makefile (tests): Change test-matherr to test-matherr-3.
8544         (tests-internal): New variable.
8545         (install-lib): Do not add libieee.a.
8546         (non-lib.a): Likewise.
8547         (extra-objs): Do not add libieee.a and ieee-math.o.
8548         (CPPFLAGS-s_lib_version.c): Remove variable.
8549         ($(objpfx)libieee.a): Remove rule.
8550         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
8551         * math/ieee-math.c: Remove.
8552         * math/libm-test-support.c (matherr): Remove.
8553         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
8554         and license notices.  Include <math-svid-compat.h> and
8555         <shlib-compat.h>.
8556         (matherr): Undefine as macro.  Use compat_symbol_reference.
8557         (_LIB_VERSION): Likewise.
8558         * math/test-matherr-2.c: New file.
8559         * math/test-matherr-3.c: Likewise.
8560         * sysdeps/generic/math_private.h (__kernel_standard): Remove
8561         declaration.
8562         (__kernel_standard_f): Likewise.
8563         (__kernel_standard_l): Likewise.
8564         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
8565         <math_private.h>.  Include <math-svid-compat.h>.
8566         (_LIB_VERSION): Undefine as macro.
8567         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
8568         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
8569         [LIBM_SVID_COMPAT], use compat_symbol.
8570         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
8571         <math_private.h>.  Include <math-svid-compat.h>.
8572         (matherr): Undefine as macro.
8573         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
8574         compat_symbol.
8575         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
8576         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
8577         compat_symbol_reference.
8578         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
8579         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
8580         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
8581         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
8582         (MATHERR_D): Remove declaration.
8583         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
8584         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
8585         [LIBM_BUILD] (pmatherrf): Likewise.
8586         [LIBM_BUILD] (pmatherr): Likewise.
8587         [LIBM_BUILD] (pmatherrl): Likewise.
8588         (DOMAIN): Likewise.
8589         (SING): Likewise.
8590         (OVERFLOW): Likewise.
8591         (UNDERFLOW): Likewise.
8592         (TLOSS): Likewise.
8593         (PLOSS): Likewise.
8594         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
8595         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
8596         compat_symbol.
8597         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
8598         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
8599         compat_symbol.
8600         * math/lgamma-compat.h: Include <math-svid-compat.h>.
8601         * math/w_acos_compat.c: Likewise.
8602         * math/w_acosf_compat.c: Likewise.
8603         * math/w_acosh_compat.c: Likewise.
8604         * math/w_acoshf_compat.c: Likewise.
8605         * math/w_acoshl_compat.c: Likewise.
8606         * math/w_acosl_compat.c: Likewise.
8607         * math/w_asin_compat.c: Likewise.
8608         * math/w_asinf_compat.c: Likewise.
8609         * math/w_asinl_compat.c: Likewise.
8610         * math/w_atan2_compat.c: Likewise.
8611         * math/w_atan2f_compat.c: Likewise.
8612         * math/w_atan2l_compat.c: Likewise.
8613         * math/w_atanh_compat.c: Likewise.
8614         * math/w_atanhf_compat.c: Likewise.
8615         * math/w_atanhl_compat.c: Likewise.
8616         * math/w_cosh_compat.c: Likewise.
8617         * math/w_coshf_compat.c: Likewise.
8618         * math/w_coshl_compat.c: Likewise.
8619         * math/w_exp10_compat.c: Likewise.
8620         * math/w_exp10f_compat.c: Likewise.
8621         * math/w_exp10l_compat.c: Likewise.
8622         * math/w_exp2_compat.c: Likewise.
8623         * math/w_exp2f_compat.c: Likewise.
8624         * math/w_exp2l_compat.c: Likewise.
8625         * math/w_fmod_compat.c: Likewise.
8626         * math/w_fmodf_compat.c: Likewise.
8627         * math/w_fmodl_compat.c: Likewise.
8628         * math/w_hypot_compat.c: Likewise.
8629         * math/w_hypotf_compat.c: Likewise.
8630         * math/w_hypotl_compat.c: Likewise.
8631         * math/w_j0_compat.c: Likewise.
8632         * math/w_j0f_compat.c: Likewise.
8633         * math/w_j0l_compat.c: Likewise.
8634         * math/w_j1_compat.c: Likewise.
8635         * math/w_j1f_compat.c: Likewise.
8636         * math/w_j1l_compat.c: Likewise.
8637         * math/w_jn_compat.c: Likewise.
8638         * math/w_jnf_compat.c: Likewise.
8639         * math/w_jnl_compat.c: Likewise.
8640         * math/w_lgamma_main.c: Likewise.
8641         * math/w_lgamma_r_compat.c: Likewise.
8642         * math/w_lgammaf_main.c: Likewise.
8643         * math/w_lgammaf_r_compat.c: Likewise.
8644         * math/w_lgammal_main.c: Likewise.
8645         * math/w_lgammal_r_compat.c: Likewise.
8646         * math/w_log10_compat.c: Likewise.
8647         * math/w_log10f_compat.c: Likewise.
8648         * math/w_log10l_compat.c: Likewise.
8649         * math/w_log2_compat.c: Likewise.
8650         * math/w_log2f_compat.c: Likewise.
8651         * math/w_log2l_compat.c: Likewise.
8652         * math/w_log_compat.c: Likewise.
8653         * math/w_logf_compat.c: Likewise.
8654         * math/w_logl_compat.c: Likewise.
8655         * math/w_pow_compat.c: Likewise.
8656         * math/w_powf_compat.c: Likewise.
8657         * math/w_powl_compat.c: Likewise.
8658         * math/w_remainder_compat.c: Likewise.
8659         * math/w_remainderf_compat.c: Likewise.
8660         * math/w_remainderl_compat.c: Likewise.
8661         * math/w_scalb_compat.c: Likewise.
8662         * math/w_scalbf_compat.c: Likewise.
8663         * math/w_scalbl_compat.c: Likewise.
8664         * math/w_sinh_compat.c: Likewise.
8665         * math/w_sinhf_compat.c: Likewise.
8666         * math/w_sinhl_compat.c: Likewise.
8667         * math/w_sqrt_compat.c: Likewise.
8668         * math/w_sqrtf_compat.c: Likewise.
8669         * math/w_sqrtl_compat.c: Likewise.
8670         * math/w_tgamma_compat.c: Likewise.
8671         * math/w_tgammaf_compat.c: Likewise.
8672         * math/w_tgammal_compat.c: Likewise.
8673         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
8674         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
8675         * sysdeps/ieee754/k_standard.c: Likewise.
8676         * sysdeps/ieee754/k_standardf.c: Likewise.
8677         * sysdeps/ieee754/k_standardl.c: Likewise.
8678         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
8679         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
8680         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
8681         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8682         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8683         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8684         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8685         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8686         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8688         Likewise.
8689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8690         Likewise.
8691         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
8692         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8693         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8694         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8696 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8698         [BZ #21864]
8699         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
8700         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
8701         Move before inclusion of ../Rules.
8703 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8705         [BZ #21972]
8706         * assert/assert.h (assert): Use static_cast (bool) for C++.
8707         Use the ternary operator in the warning branch for GNU C.
8708         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
8709         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
8710         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
8711         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
8712         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
8714 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8716         [BZ #18822]
8717         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8718         (__syscall_clock_gettime): Add attribute_hidden.
8719         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
8720         (__start_context): Likewise.
8722 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8724         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8725         building libc.a.
8726         (hidden_proto): Likewise.
8727         (hidden_tls_proto): Likewise.
8728         (__hidden_proto): Likewise.
8730 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8732         * include/libc-symbols.h (attribute_hidden): Enable hidden
8733         visibility in libc.a compiled with PIE.
8735 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8737         [BZ #18822]
8738         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
8739         Add attribute_hidden.
8741 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8743         [BZ #21864]
8744         * Makerules (all-nonlib): Add $(others-extras).
8745         * catgets/Makefile (others-extras): New.
8746         * elf/Makefile (others-extras): Likewise.
8747         * nss/Makefile (others-extras): Likewise.
8749 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8751         [BZ #18822]
8752         * csu/libc-start.c (__libc_multiple_libcs): Removed.
8753         * elf/dl-open.c: Include <libc-internal.h>.
8754         (__libc_multiple_libcs): Removed.
8755         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
8756         <hp-timing.h>.
8757         * include/libc-internal.h (__libc_multiple_libcs): New.
8758         * misc/sbrk.c: Include <libc-internal.h>.
8759         (__libc_multiple_libcs): Removed.
8761 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8763         [BZ #18822]
8764         * grp/initgroups.c (__nss_group_database): Removed.
8765         (__nss_initgroups_database): Likewise.
8766         * nscd/gai.c (__nss_hosts_database): Likewise.
8767         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
8768         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
8769         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
8770         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
8771         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
8772         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
8773         attribute_hidden.
8774         * nss/nsswitch.c (__nss_database_custom): Define only if
8775         USE_NSCD is defined.
8776         (__nss_configure_lookup): Use __nss_database_custom only if
8777         USE_NSCD is defined.
8778         * nss/nsswitch.h (__nss_database_custom): Declare only if
8779         USE_NSCD is defined.  Add attribute_hidden.
8780         (__nss_setent): Add attribute_hidden.
8781         (__nss_endent): Likewise.
8782         (__nss_getent_r): Likewise.
8783         (__nss_getent): Likewise.
8784         (DEFINE_DATABASE): Declare __nss_##arg##_database.
8786 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8788         [BZ #18822]
8789         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
8790         libc_hidden_proto and libc_hidden_def.
8792 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8794         [BZ #18822]
8795         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
8796         Add libc_hidden_proto.
8797         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
8798         Add libc_hidden_def.
8800 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8802         [BZ #21974]
8803         * gmon/Makefile (routines): Remove bb_init_func and
8804         bb_exit_func.
8805         (elide-routines.os): Removed.
8806         * gmon/bb_exit_func.c: Likewise.
8807         * gmon/bb_init_func.c: Likewise.
8808         * include/sys/gmon.h (__bb): Likewise.
8809         (__bb_init_func): Likewise.
8810         (__bb_exit_func): Likewise.
8811         * sysdeps/alpha/bb_init_func.S: Likewise.
8813 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8815         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
8816         * include/setjmp.h (____longjmp_chk): Here.  Add
8817         attribute_hidden.
8819 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8821         [BZ #18822]
8822         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
8823         attribute_hidden.
8824         (__strspn_sse2): Likewise.
8826 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8828         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
8829         (close_not_cancel_no_status): Likewise.
8830         (__close_nocancel): New macro.
8831         (__close_nocancel_nostatus): Likewise.
8832         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
8833         macro.
8834         (close_not_cancel): Likewise.
8835         (close_not_cancel_no_status): Likewise.
8836         (__close_nocancel): New prototype.
8837         (__close_nocancel_nostatus): New function.
8838         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
8839         * catgets/open_catalog.c (__open_catalog): Replace
8840         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
8841         * gmon/gmon.c (write_gmon): Likewise.
8842         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8843         * intl/loadmsgcat.c (close): Likewise.
8844         * io/ftw.c (open_dir_stream): Likewise.
8845         (ftw_startup): Likewise.
8846         * libio/fileops.c (_IO_file_open): Likewise.
8847         (_IO_file_close_mmap): Likewise.
8848         (_IO_file_close): Likewise.
8849         * libio/iopopen.c (_IO_dup2): Likewise.
8850         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8851         * locale/loadlocale.c (_nl_load_locale): Likewise.
8852         * login/utmp_file.c (pututline_file): Likewise.
8853         (endutent_file): Likewise.
8854         * misc/daemon.c (daemon): Likewise.
8855         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8856         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8857         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8858         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8859         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8860         * nscd/nscd_helper.c (open_socket): Likewise.
8861         (__nscd_open_socket): Likewise.
8862         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8863         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
8864         (__nscd_innetgr): Likewise.
8865         * nss/nss_db/db-open.c (internal_setent): Likewise.
8866         * resolv/res-close.c (__res_iclose): Likewise.
8867         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
8868         * sysdeps/posix/closedir.c (__closedir): Likewise.
8869         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
8870         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8871         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8872         (opendir_tail): Likewise.
8873         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8874         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
8875         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8876         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8877         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8878         (gethostid): Likewise.
8879         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8880         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8881         Likewise.
8882         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8883         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
8884         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8885         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8886         Likewise.
8887         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
8888         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
8889         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8890         Likewise.
8891         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
8892         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8893         Likewise.
8894         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8895         Likewise.
8896         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8897         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8898         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8899         __close_nocancel.
8901         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
8902         (openat_not_cancel_3): Likewise.
8903         (openat64_not_cancel_3): Likewise).
8904         (openat_not_cancel_3): Likewise).
8905         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
8906         macro.
8907         (openat_not_cancel_3): Likewise.
8908         (openat64_not_cancel): Likewise.
8909         (openat64_not_cancel_3): Likewise.
8910         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
8911         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
8912         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
8913         __open{64}_nocancel.
8914         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8915         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8916         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8918 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8920         [BZ #18822]
8921         * include/argz.h (__argz_create_sep): New function prototype.
8922         (__argz_append): Likewise.
8923         (__argz_add): Likewise.
8924         (__argz_add_sep): Likewise.
8925         (__argz_delete): Likewise.
8926         (__argz_insert): Likewise.
8927         (__argz_replace): Likewise.
8928         * string/argz.h (__argz_create_sep): Removed.
8929         (__argz_append): Likewise.
8930         (__argz_add): Likewise.
8931         (__argz_add_sep): Likewise.
8932         (__argz_delete): Likewise.
8933         (__argz_insert): Likewise.
8934         (__argz_replace): Likewise.
8936 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8938         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
8939         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
8940         (GNU_PROPERTY_STACK_SIZE): Likewie.
8941         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
8942         (GNU_PROPERTY_LOPROC): Likewise.
8943         (GNU_PROPERTY_HIPROC): Likewise.
8944         (GNU_PROPERTY_LOUSER): Likewise.
8945         (GNU_PROPERTY_HIUSER): Likewise.
8946         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
8947         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
8948         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
8949         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
8950         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
8951         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
8952         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
8953         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
8954         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
8955         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
8956         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
8957         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
8958         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
8959         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
8960         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
8961         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
8962         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
8963         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
8964         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
8965         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
8966         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
8967         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
8968         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
8970 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8972         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
8973         in C++ mode.
8975 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8977         [BZ #21930]
8978         * math/math.h (isinf): Check if in C or C++ mode before using
8979         __builtin_types_compatible_p, since this is a C mode feature.
8981 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8983         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
8984         (__write_nocancel): New macro.
8985         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
8986         Rewrite as a function prototype.
8987         (write_not_cancel): Remove macro.
8988         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
8989         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
8990         (write_gmon): Likewise.
8991         * libio/fileops.c (_IO_new_file_write): Likewise.
8992         * login/utmp_file.c (pututline_file): Likewise.
8993         (updwtmp_file): Likewise.
8994         * stdio-common/psiginfo.c (psiginfo): Likewise.
8995         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8996         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8997         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8998         Likewise.
8999         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9000         Likewise.
9002         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
9003         (__read_nocancel): New macro.
9004         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9005         __read_nocancel.
9006         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
9007         macro.
9008         (__read_nocancel): New prototype.
9009         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
9010         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
9011         with __read_nocancel.
9012         * intl/loadmsgcat.c (read): Likewise.
9013         * libio/fileops.c (_IO_file_read): Likewise.
9014         * locale/loadlocale.c (_nl_load_locale): Likewise.
9015         * login/utmp_file.c (getutent_r_file): Likewise.
9016         (internal_getut_r): Likewise.
9017         (getutline_r_file): Likewise.
9018         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9019         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
9020         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9021         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9022         Likewise.
9023         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
9024         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9025         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9026         Likewise.
9027         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9028         Likewise.
9029         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9030         Likewise.
9031         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9032         Likewise.
9033         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9035 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9037         [BZ #21966]
9038         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
9039         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
9040         usable.
9042 2017-08-17  DJ Delorie  <dj@redhat.com>
9044         * bug17079.c: Update to new test harness.
9045         * test-digits-dots.c: Likewise.
9046         * test-netdb.c: Likewise.
9047         * tst-field.c: Likewise.
9048         * tst-nss-getpwent.c: Likewise.
9049         * tst-nss-static.c: Likewise.
9050         * tst-nss-test1.c: Likewise.
9051         * tst-nss-test2.c: Likewise.
9052         * tst-nss-test3.c: Likewise.
9053         * tst-nss-test4.c: Likewise.
9054         * tst-nss-test5.c: Likewise.
9056 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9058         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
9059         (open_not_cancel_2): Likewise.
9060         (open_nocancel): New macro.
9061         (open64_nocancel): Likewise.
9062         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
9063         (open_not_cancel_2): Likewise.
9064         (__open_nocancel): New prototype.
9065         (__open64_nocancel): Likewise.
9066         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9067         __open_nocancel.
9068         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
9069         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
9070         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
9071         with __open_nocancel.
9072         * csu/check_fds.c (check_one_fd): Likewise.
9073         * gmon/gmon.c (write_gmon): Likewise.
9074         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
9075         * intl/loadmsgcat.c (open): Likewise.
9076         * libio/fileops.c (_IO_file_open): Likewise.
9077         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9078         * locale/loadlocale.c (_nl_load_locale): Likewise.
9079         * login/utmp_file.c (setutent_file): Likewise.
9080         * misc/daemon.c (daemon): Likewise.
9081         * nss/nss_db/db-open.c (internal_setent): Likewise.
9082         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9083         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
9084         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9085         (__opendir): Likewise.
9086         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9087         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9088         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9089         (gethostid): Likewise.
9090         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9091         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9092         Likewise.
9093         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9094         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
9095         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9096         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9097         Likewise.
9098         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9099         Likewise.
9100         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9101         Likewise.
9102         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
9103         Likewise.
9104         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9105         Likewise.
9106         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9107         Likewise.
9108         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9109         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9111 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
9113         * benchtests/bench-skeleton.c (main): Add support for
9114         latency benchmarking.
9115         * benchtests/scripts/bench.py: Add support for latency benchmarking.
9117 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
9119         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
9120         the startup object.
9122 2017-08-17  Florian Weimer  <fweimer@redhat.com>
9124         * include/sys/socket.h (__opensock): Remove internal_function.
9125         * socket/opensock.c (__opensock): Likewise.
9126         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
9128 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9130         [BZ #21944]
9131         * signal/bits/types/__sigval_t.h: New file.
9132         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
9133         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
9134         and define sigval_t using __sigval_t.
9135         * include/bits/types/__sigval_t.h: New file.
9136         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
9137         instead of <bits/types/__sigval_t.h>.
9138         (struct sigevent): Use __sigval_t instead of sigval_t.
9139         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
9140         instead of <bits/types/__sigval_t.h>.
9141         (siginfo_t): Use __sigval_t instead of sigval_t.
9142         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
9143         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9144         (struct sigevent): Use __sigval_t instead of sigval_t.
9145         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
9146         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9147         (siginfo_t): Use __sigval_t instead of sigval_t.
9148         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
9150 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9152         * NEWS: Remove "[Add new features here]" for 2.27.
9154 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9156         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
9157         libc.so.
9159 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9161         * NEWS: Mention x86-64 FMA optimization.
9163 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9165         [BZ #21912]
9166         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9167         Add e_expf-fma.
9168         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
9169         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
9170         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9172 2017-08-16  Andreas Schwab  <schwab@suse.de>
9174         [BZ #16750]
9175         CVE-2009-5064
9176         * elf/ldd.bash.in: Never run file directly.
9178 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9180         [BZ #21955]
9181         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9182         (L(SP_INF_0)): Likewise.
9184 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9186         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9187         run-built-tests.
9189 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9191         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9192         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9193         BROKEN_THREAD_SIGNALS code.
9194         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9195         request_list): Remove caller_pid member used for
9196         BROKEN_THREAD_SIGNALS.
9197         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9198         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9199         Remove BROKEN_THREAD_SIGNALS support.
9200         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9201         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9203 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9205         * gmon/Makefile (tests): Add tst-gmon.
9206         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9207         Set.
9208         (tests-special): Add tst-gmon-prof.out.
9209         (tst-gmon.out): Depend on clean-tst-gmon-data.
9210         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9211         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9212         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9213         startup object.
9214         * aclocal.m4 (GPROF): Set and substitute.
9215         * config.amke.in (GPROF): Set.
9216         * configure: Regenerate.
9218 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9220         * elf/elf.h A (NT_PPC_TAR): New macro.
9221         (NT_PPC_PPR): Likewise.
9222         (NT_PPC_DSCR): Likewise.
9223         (NT_PPC_EBB): Likewise.
9224         (NT_PPC_PMU): Likewise.
9225         (NT_PPC_TM_CGPR): Likewise.
9226         (NT_PPC_TM_CFPR): Likewise.
9227         (NT_PPC_TM_CVMX): Likewise.
9228         (NT_PPC_TM_CVSX): Likewise.
9229         (NT_PPC_TM_SPR): Likewise.
9230         (NT_PPC_TM_CTAR): Likewise.
9231         (NT_PPC_TM_CPPR): Likewise.
9232         (NT_PPC_TM_CDSCR): Likewise.
9234 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9236         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9237         regparm (2) instead of internal_function.
9238         (_MCOUNT_DECL): Adjust.
9240 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9242         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9243         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9245 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9247         * conform/data/sys/wait.h-data (si_value): Do not expect for
9248         XPG42.
9250 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9252         [BZ #21962]
9253         NSS: Create stubs for accidentally exported lookup functions.
9254         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9255         Remove declaration.
9256         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9257         (ether_hostton): Call __nss_ethers_lookup2 instead.
9258         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9259         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9260         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9261         (setup): Call __nss_netgroup_lookup2 instead.
9262         * nss/Makefile (routines): Add compat-lookup.
9263         * nss/Versions (GLIBC_2.27): Add symbol version.
9264         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9265         (DB_COMPAT_FCT): Remove.
9266         * nss/compat-lookup.c: New file.
9267         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9268         from databases.def.
9269         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9270         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9271         (netname2user): Call __nss_publickey_lookup2 instead.
9272         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9273         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9274         instead.
9276 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9277             Sergei Trofimovich  <slyfox@inbox.ru>
9279         [BZ #21908]
9280         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9281         Rename to MMAP2_PAGE_UNIT.
9282         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9283         __OFF_T_MATCHES_OFF64_T is not defined.
9284         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9285         uint64_t.
9286         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9287         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
9289 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9291         i386: Do not set internal_function.
9292         * config.h.in (USE_REGPARMS, internal_function): Remove.
9293         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
9294         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
9296 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9298         * elf/dl-init.c (_dl_init): Remove internal_function.
9299         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
9300         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
9302 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9304         * elf/rtld.c (_dl_start): Remove internal_function.
9305         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
9306         _dl_start.
9308 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9310         * elf/dl-fini.c (_dl_fini): Remove internal_function
9311         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
9313 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
9315         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
9316         (bit_cpu_SHSTK): Likewise.
9317         (index_cpu_IBT): Likewise.
9318         (index_cpu_SHSTK): Likewise.
9319         (reg_IBT): Likewise.
9320         (reg_SHSTK): Likewise.
9321         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
9322         Handle index_cpu_IBT and index_cpu_SHSTK.
9324 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
9326         [BZ #19982]
9327         * po/fr.po: Fix spelling mistake.
9329 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9331         * elf/dl-addr.c (_dl_addr): Remove internal_function.
9332         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
9333         (_dl_catch_error, _dl_receive_error): Likewise.
9334         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
9335         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
9336         (_dl_deallocate_tls): Likewise.
9337         * include/dlfcn.h (_dl_addr): Likewise.
9338         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
9339         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
9340         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
9341         Likewise.
9343 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9345         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
9346         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
9347         internal_function.
9348         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
9350 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9352         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
9353         internal_function.
9354         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
9355         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
9356         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
9357         internal_function from _dl_make_stack_executable_hook member.
9358         (_dl_make_stack_executable): Remove internal_function.
9359         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
9360         Likewise.
9361         * sysdeps/unix/sysv/linux/dl-execstack.c
9362         (_dl_make_stack_executable): Likewise.
9364 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9366         * sysdeps/unix/sysv/linux/netlinkaccess.h
9367         (__netlink_assert_response): Remove internal_function.
9368         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9369         (__netlink_assert_response): Likewise.
9371 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9373         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
9374         internal_function.
9375         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
9377 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9379         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
9380         internal_function.
9381         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
9382         * inet/netgroup.h (__internal_setnetgrent)
9383         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9384         * inet/getnetgrent_r.c (__internal_setnetgrent)
9385         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9386         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
9387         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
9388         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
9389         * nss/nsswitch.h (db_lookup_function): Likewise.
9391 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9393         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
9394         Remove internal_function.
9395         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
9396         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
9397         message argument on the stack.
9398         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
9399         Likeweise.
9401 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
9403         Adapt test case data to the changes in the thousands
9404         separators.
9406         [BZ #20756]
9407         * localedata/tst-langinfo.sh: Adapt test case data.
9408         * stdlib/tst-strfmon_l.c: Likewise.
9409         * stdlib/tst-strtod4.c: Likewise.
9410         * stdlib/tst-strtod5i.c: Likewise.
9412 2017-08-11  Florian Weimer  <fweimer@redhat.com>
9414         [BZ #21242]
9415         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
9416         Suppress pedantic warning resulting from statement expression.
9417         (__ASSERT_FUNCTION): Add missing __extension__.
9419 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9421         * benchtests/bench-memmove-large.c: Print output in JSON
9422         format.
9423         * benchtests/bench-memmove.c: Likewise.
9425         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
9426         * benchtests/bench-memchr.c (do_one_test): Likewise.
9427         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
9428         * benchtests/bench-memcpy.c (do_one_test): Likewise.
9429         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
9430         * benchtests/bench-memmove.c (do_one_test): Likewise.
9431         * benchtests/bench-memset-large.c (do_one_test): Likewise.
9432         * benchtests/bench-memset.c (do_one_test): Likewise.
9433         * benchtests/bench-string.h (test_init): Remove memsets.
9435 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9437         * manual/lang.texi
9438         (Computing the Width of an Integer Data Type): Rename section to
9439         "Width of an Integer Type".  Remove inaccurate statement regarding
9440         lack of C language facilities for determining width of integer
9441         types, and reorder content to improve flow and context of
9442         discussion.
9444 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9446         * lang.texi (va_copy): Change standard from ISO to C99.
9447         (__va_copy): Add standard and header annotation.
9448         Update description for clarity of origins and current use.
9450 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9452         [BZ #21941]
9453         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
9454         xssqrtqp requires operands to be in Vector Registers
9455         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
9456         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
9457         (__ieee754_sqrtf128): Likewise.
9459 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
9461         * sysdeps/aarch64/memcmp.S (memcmp):
9462         Rewrite of optimized memcmp.
9464 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9466         Introduce ld.so exceptions.
9467         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
9468         (_dl_exception_create, _dl_exception_create_format)
9469         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
9470         (_dl_catch_exception): Declare.
9471         (_dl_catch_error): Update comment.
9472         * elf/dl-error-skeleton.c (struct catch): Replace objname,
9473         errstring, malloced members with exception member.
9474         (_dl_out_of_memory): Remove.
9475         (fatal_error): New function, extracted from _dl_signal_error.
9476         (_dl_signal_exception, _dl_signal_cexception): New functions.
9477         (_dl_signal_error): Call _dl_exception_create to allocate an
9478         exception object.
9479         (_dl_catch_exception): New function, based on _dl_catch_error.
9480         (_dl_catch_error): Implement using _dl_catch_exception.
9481         * elf/dl-exception.c: New file.
9482         * elf/Makefile (dl-routines): Add dl-exception.
9483         (elide-routines.os): Likewise.
9484         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
9485         _dl_exception_create_format, _dl_exception_free.
9486         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
9487         _dl_signal_exception.
9488         * elf/dl-lookup.c (make_string): Remove.
9489         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
9490         _dl_signal_cexception, _dl_exception_free.
9491         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
9492         _dl_signal_exception.
9493         * elf/dl-sym.c (do_sym): Likewise.
9494         * elf/dl-version.c (make_string): Remove.
9495         (match_symbol): Use _dl_exception_create_format,
9496         _dl_signal_cexception, _dl_exception_free.
9497         (_dl_check_map_versions): Likewise.
9498         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
9499         _dl_catch_exception.
9500         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
9501         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
9502         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
9503         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
9504         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
9505         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
9506         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
9507         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
9508         Likewise.
9509         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
9510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
9511         (ld.so): Likewise.
9512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
9513         (ld.so): Likewise.
9514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
9515         Likewise.
9516         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
9517         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
9518         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
9519         Likewise.
9520         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
9521         Likewise.
9522         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
9524 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9526         * inet/net-internal.h (__inet6_scopeid_pton): Remove
9527         attribute_hidden, internal_function.
9528         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
9529         internal_function.
9531 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9533         * malloc/malloc.c (get_max_fast): Reimplement as an inline
9534         function which calls __builtin_unreachable.
9536 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
9538         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
9539         Indian monetary formatting
9540         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
9541         test cases.
9543 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
9545         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
9546         Fix typo in comment.
9548         [BZ #21928]
9549         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
9550         PTRACE_SEIZE_DEVEL): Remove.
9551         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
9552         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9553         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9554         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9555         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9557 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
9559         * posix/bits/types.h (__qaddr_t): Remove.
9561         [BZ #21457]
9562         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
9563         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9564         __glibc_reserved1.
9565         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
9566         (ucontext_t): Use __ctx with uc_flags.
9567         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
9568         (__ctxt): Likewise.
9569         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9570         __glibc_reserved1.
9571         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
9572         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9573         __glibc_reserved1.
9574         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
9575         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9576         __glibc_reserved1.
9577         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
9578         macro.
9579         (ucontext_t): Use __ctx with uc_flags.
9580         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
9581         (ucontext_t): Use __ctx with uc_flags.
9582         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
9583         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
9584         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
9585         (ucontext_t): Use __ctx with uc_flags.
9586         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
9587         undefine further down.
9588         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9589         __glibc_reserved1.
9590         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
9591         undefine further down.
9592         (ucontext_t): Use __ctx with uc_flags.
9593         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
9594         undefine further down.
9595         (ucontext_t): Use __ctx with uc_flags.
9596         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
9597         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
9598         Rename uc_pad to __glibc_reserved1.
9599         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
9600         undefine further down.
9601         (ucontext_t): Use __ctx with uc_flags.
9602         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
9603         further down.
9604         (ucontext_t): Use __ctx with uc_flags.
9605         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
9606         __ctx with uc_flags.
9607         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
9608         (ucontext_t): Use __ctx with uc_flags.
9609         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
9610         __ctx with uc_flags.
9612 2017-08-09  Florian Weimer  <fweimer@redhat.com>
9614         [BZ #21932]
9615         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
9616         before early return.
9618 2017-08-09  Andreas Schwab  <schwab@suse.de>
9620         [BZ #21041]
9621         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
9622         renamed alias.
9624         [BZ #21041]
9625         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
9626         tst-compat-forwarder.
9627         (modules-names): Add tst-compat-forwarder-mod.
9628         ($(objpfx)tst-compat-forwarder): Depend on
9629         $(objpfx)tst-compat-forwarder-mod.so.
9630         * nptl/tst-compat-forwarder.c: New file.
9631         * nptl/tst-compat-forwarder-mod.c: New file.
9633 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9635         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
9636         comments.
9638         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
9639         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9640         memcpy_falkor.
9641         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
9642         Bump.
9643         (__libc_ifunc_impl_list): Add __memcpy_falkor.
9644         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
9645         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
9646         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
9647         Add falkor.
9648         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
9649         New macro.
9651 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9653         [BZ #759]
9654         * manual/setjmp.texi (getcontex): Document uc_stack value
9655         compatibility differences.
9657 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
9659         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
9660         (old_malloc_hook): Likewise.
9661         (old_memalign_hook): Likewise.
9662         (old_realloc_hook): Likewise.
9663         (struct hdr): Likewise.
9664         (flood): Likewise.
9665         (freehook): Likewise.
9666         (mallochook): Likewise.
9667         (memalignhook): Likewise.
9668         (reallochook): Likewise.
9669         (mprobe): Likewise.
9670         * malloc/mtrace.c (mallwatch): Likewise.
9671         (tr_old_free_hook): Likewise.
9672         (tr_old_malloc_hook): Likewise.
9673         (tr_old_realloc_hook): Likewise.
9674         (tr_old_memalign_hook): Likewise.
9675         (tr_where): Likewise.
9676         (lock_and_info): Likewise.
9677         (tr_freehook): Likewise.
9678         (tr_mallochook): Likewise.
9679         (tr_reallochook): Likewise.
9680         (tr_memalignhook): Likewise.
9681         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
9682         * misc/mmap.c (__mmap): Likewise.
9683         * misc/mmap64.c (__mmap64): Likewise.
9684         * misc/mprotect.c (__mprotect): Likewise.
9685         * misc/msync.c (msync): Likewise.
9686         * misc/munmap.c (__munmap): Likewise.
9687         * posix/posix_madvise.c (posix_madvise): Likewise.
9688         * socket/send.c (__send): Likewise.
9689         * socket/sendto.c (__sendto): Likewise.
9690         * socket/setsockopt.c (__setsockopt): Likewise.
9691         * string/memcmp.c (__ptr_t): Remove macro.
9692         (MEMCMP): Use void * instead of ptr_t.
9693         * string/memrchr.c (__ptr_t): Remove macro.
9694         (__memrchr): Use void * instead of ptr_t.
9695         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
9696         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9697         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9698         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
9699         * sysdeps/mach/msync.c (msync): Likewise.
9700         * sysdeps/mach/munmap.c (__munmap): Likewise.
9701         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
9702         Likewise.
9703         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9704         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
9705         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
9706         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
9707         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
9708         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
9709         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
9710         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
9711         Likewise.
9712         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
9713         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
9714         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
9715         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
9716         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
9717         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
9718         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
9719         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
9720         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
9721         Likewise.
9722         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
9723         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
9724         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
9725         (MEMCMP): Use void * instead of ptr_t.
9726         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
9727         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
9729 2017-08-08  Florian Weimer  <fweimer@redhat.com>
9731         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
9732         return statement.
9734 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
9736         [BZ #21913]
9737         * csu/libc-tls.c: Include <startup.h> first.
9738         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
9739         * elf/dl-tunables.c: Include <startup.h> first.
9740         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
9741         * sysdeps/generic/startup.h: New file.
9742         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
9743         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
9744         (I386_USE_SYSENTER): New.  Defined to 0.
9746 2017-08-08  Andreas Schwab  <schwab@suse.de>
9748         [BZ #21041]
9749         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
9750         * nptl/pt-system.c (system): Likewise.
9752 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9754         [BZ #21780]
9755         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
9756         EOPNOTSUPP.
9757         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9758         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9759         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
9760         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9761         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9762         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9763         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9765 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
9767         [BZ #21899]
9768         * bits/sigaction.h (struct sigaction): Define sa_handler and
9769         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
9770         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9771         [__USE_XOPEN_EXTENDED].
9772         (SA_RESTART): Likewise.
9773         (SA_NODEFER): Likewise.
9774         (SA_RESETHAND): Likewise.
9775         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
9776         (struct sigaction): Define sa_handler and sa_sigaction using union
9777         also for [__USE_XOPEN_EXTENDED].
9778         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9779         [__USE_XOPEN_EXTENDED].
9780         (SA_RESTART): Likewise.
9781         (SA_NODEFER): Likewise.
9782         (SA_RESETHAND): Likewise.
9783         * sysdeps/unix/sysv/linux/bits/sigaction.h
9784         (struct sigaction): Define sa_handler and sa_sigaction using union
9785         also for [__USE_XOPEN_EXTENDED].
9786         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9787         [__USE_XOPEN_EXTENDED].
9788         (SA_RESTART): Likewise.
9789         (SA_NODEFER): Likewise.
9790         (SA_RESETHAND): Likewise.
9791         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
9792         (struct sigaction): Define sa_handler and sa_sigaction using union
9793         also for [__USE_XOPEN_EXTENDED].
9794         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9795         [__USE_XOPEN_EXTENDED].
9796         (SA_RESTART): Likewise.
9797         (SA_NODEFER): Likewise.
9798         (SA_RESETHAND): Likewise.
9799         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
9800         (struct sigaction): Define sa_handler and sa_sigaction using union
9801         also for [__USE_XOPEN_EXTENDED].
9802         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9803         [__USE_XOPEN_EXTENDED].
9804         (SA_RESTART): Likewise.
9805         (SA_NODEFER): Likewise.
9806         (SA_RESETHAND): Likewise.
9807         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
9808         (struct sigaction): Define sa_handler and sa_sigaction using union
9809         also for [__USE_XOPEN_EXTENDED].
9810         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9811         [__USE_XOPEN_EXTENDED].
9812         (SA_RESTART): Likewise.
9813         (SA_NODEFER): Likewise.
9814         (SA_RESETHAND): Likewise.
9815         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
9816         (struct sigaction): Define sa_handler and sa_sigaction using union
9817         also for [__USE_XOPEN_EXTENDED].
9818         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9819         [__USE_XOPEN_EXTENDED].
9820         (SA_RESTART): Likewise.
9821         (SA_NODEFER): Likewise.
9822         (SA_RESETHAND): Likewise.
9823         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
9824         (struct sigaction): Define sa_handler and sa_sigaction using union
9825         also for [__USE_XOPEN_EXTENDED].
9826         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9827         [__USE_XOPEN_EXTENDED].
9828         (SA_RESTART): Likewise.
9829         (SA_NODEFER): Likewise.  Define directly rather than as alias.
9830         (SA_RESETHAND): Likewise.
9831         (SA_INTERRUPT): Define only for [__USE_MISC].
9832         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
9833         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
9834         [__USE_MISC].
9835         (SA_STACK): Define only for [__USE_MISC].
9836         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
9837         (struct sigaction): Define sa_handler and sa_sigaction using union
9838         also for [__USE_XOPEN_EXTENDED].
9839         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9840         [__USE_XOPEN_EXTENDED].
9841         (SA_RESTART): Likewise.
9842         (SA_NODEFER): Likewise.
9843         (SA_RESETHAND): Likewise.
9844         (SA_NOPTRACE): Define only for [__USE_MISC].
9846         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
9847         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
9848         (struct catalog_info): Likewise.
9849         * inet/htontest.c (lo): Likewise.
9850         (foo): Likewise.
9851         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9852         * inet/inet_net.c (inet_network): Likewise.
9853         * inet/inet_netof.c (inet_netof): Likewise.
9854         * inet/rcmd.c (__ivaliduser): Likewise.
9855         (iruserok): Likewise.
9856         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
9857         * locale/programs/locale-spec.c (locale_special): Likewise.
9858         * nis/nis_findserv.c (struct findserv_req): Likewise.
9859         (__nis_findfastest_with_timeout): Likewise.
9860         * nss/test-netdb.c (test_network): Likewise.
9861         * resolv/inet_neta.c (inet_neta): Likewise.
9862         * resolv/ns_date.c (ns_datetosecs): Likewise.
9863         (SECS_PER_DAY): Likewise.
9864         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
9865         Likewise.
9866         * resolv/res_comp.c (__putlong): Likewise.
9867         (__putshort): Likewise.
9868         (_getlong): Likewise.
9869         (_getshort): Likewise.
9870         * resolv/res_debug.c (p_time): Likewise.
9871         (precsize_ntoa): Likewise.
9872         (precsize_aton): Likewise.
9873         (latlon2ul): Likewise.
9874         (loc_aton): Likewise.
9875         (loc_ntoa): Likewise.
9876         * resolv/res_hconf.c (struct netaddr): Likewise.
9877         (_res_hconf_reorder_addrs): Likewise.
9878         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
9879         (clnttcp_control): Likewise.
9880         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9881         (clntudp_control): Likewise.
9882         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
9883         (clntunix_control): Likewise.
9884         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
9885         * sunrpc/rpc/auth.h (union des_block): Likewise.
9886         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
9887         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
9888         (xdrrec_create): Likewise.
9889         (xdrrec_endofrecord): Likewise.
9890         (flush_out): Likewise.
9891         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
9892         (xdrstdio_putlong): Likewise.
9893         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
9894         Likewise.
9896         * misc/sys/cdefs.h (__long_double_t): Remove.
9897         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
9898         instead of __long_double_t,
9899         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
9901 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9903         * benchtests/scripts/compare_strings.py: Avoid display error when
9904         running on a text terminal.
9906         * benchtests/scripts/compare_strings.py (main): Add an
9907         optional -base option.
9908         (process_results): New argument base_func.
9910         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
9911         hardcoding memcpy.
9912         * benchtests/bench-memcpy-large.c (test_name): Likewise.
9913         * benchtests/bench-memcpy-random.c (test_name): Likewise.
9915 2017-08-07  Andreas Schwab  <schwab@suse.de>
9917         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
9918         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
9919         * intl/Makefile ($(objpfx)tst-gettext.out)
9920         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
9921         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
9922         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
9923         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
9924         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
9925         * posix/Makefile ($(objpfx)globtest.out)
9926         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
9927         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
9928         ($(objpfx)tst-printf.out): Likewise.
9929         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
9930         ($(objpfx)tst-setcontext3.out): Likewise.
9932 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
9934         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9935         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
9936         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
9937         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
9938         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
9939         and mptan-fma.
9940         (CFLAGS-doasin-fma.c): New.
9941         (CFLAGS-dosincos-fma.c): Likewise.
9942         (CFLAGS-e_asin-fma.c): Likewise.
9943         (CFLAGS-e_atan2-fma.c): Likewise.
9944         (CFLAGS-e_exp-fma.c): Likewise.
9945         (CFLAGS-e_log-fma.c): Likewise.
9946         (CFLAGS-e_pow-fma.c): Likewise.
9947         (CFLAGS-halfulp-fma.c): Likewise.
9948         (CFLAGS-mpa-fma.c): Likewise.
9949         (CFLAGS-mpatan-fma.c): Likewise.
9950         (CFLAGS-mpatan2-fma.c): Likewise.
9951         (CFLAGS-mpexp-fma.c): Likewise.
9952         (CFLAGS-mplog-fma.c): Likewise.
9953         (CFLAGS-mpsqrt-fma.c): Likewise.
9954         (CFLAGS-mptan-fma.c): Likewise.
9955         (CFLAGS-s_atan-fma.c): Likewise.
9956         (CFLAGS-sincos32-fma.c): Likewise.
9957         (CFLAGS-slowexp-fma.c): Likewise.
9958         (CFLAGS-slowpow-fma.c): Likewise.
9959         (CFLAGS-s_sin-fma.c): Likewise.
9960         (CFLAGS-s_tan-fma.c): Likewise.
9961         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
9962         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
9963         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
9964         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
9965         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
9966         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
9967         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
9968         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
9969         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
9970         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
9971         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
9972         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
9973         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
9974         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
9975         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
9976         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
9977         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
9978         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
9979         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
9980         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
9981         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
9982         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
9983         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
9984         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
9985         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9986         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9987         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9988         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
9989         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9990         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9991         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9993 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
9995         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
9996         (min_of_type_f): New macro.
9997         (min_of_type_): Likewise.
9998         (min_of_type_l): Likewise.
9999         (min_of_type_f128): Likewise.
10000         (min_of_type): Define using __MATH_TG and taking an expression
10001         argument.
10002         (math_check_force_underflow): Pass expression instead of type to
10003         min_of_type.
10004         (math_check_force_underflow_nonneg): Likewise.
10006 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10008         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
10009         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
10010         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
10012 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10014         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10015         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
10016         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
10017         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
10018         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
10019         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
10020         memcpy_chk-nonshared, mempcpy_chk-nonshared,
10021         memmove_chk-nonshared and memset_chk-nonshared
10022         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
10023         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
10024         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
10025         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
10026         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
10027         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
10028         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
10029         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
10030         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
10031         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
10032         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
10033         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
10034         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
10035         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
10036         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
10037         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
10038         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
10039         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
10040         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
10041         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
10042         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
10043         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
10044         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
10045         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
10046         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
10047         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
10048         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
10049         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
10050         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
10051         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
10052         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
10053         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
10054         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
10055         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10056         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10057         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
10058         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
10059         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
10060         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
10061         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
10062         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
10063         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
10064         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
10065         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
10066         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
10067         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
10068         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
10069         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
10070         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
10071         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
10072         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
10073         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
10074         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
10075         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
10076         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
10077         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
10078         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
10079         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
10080         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
10081         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
10082         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
10083         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
10084         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
10085         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
10086         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
10087         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
10088         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
10089         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
10090         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
10091         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
10092         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
10093         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10094         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10095         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10096         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10097         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10098         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10099         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10100         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10101         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10102         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10103         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10104         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10105         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10106         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
10107         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
10108         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10109         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
10110         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10111         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10112         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10113         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10114         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10115         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10116         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
10117         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
10118         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
10119         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
10120         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10121         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
10122         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10123         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10124         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10125         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10126         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10127         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10128         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10129         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10131 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10133         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
10134         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
10135         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
10136         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
10137         svml_d_log2_core-sse2, svml_d_log4_core-sse,
10138         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
10139         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
10140         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
10141         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
10142         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
10143         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
10144         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
10145         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
10146         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
10147         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
10148         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
10149         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
10150         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
10151         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
10152         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
10153         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
10154         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
10155         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
10156         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
10157         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
10158         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
10159         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
10160         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
10161         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
10162         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
10163         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
10164         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
10165         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
10166         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
10167         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
10168         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
10169         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
10170         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10171         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10172         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10173         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10174         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10175         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10176         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10177         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10178         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10179         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10180         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10181         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10182         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10183         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10184         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10185         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10186         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10187         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10188         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10189         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10190         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10191         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10192         ...
10193         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10194         Don't include <sysdep.h> nor <init-arch.h>.
10195         (_ZGVbN2v_cos): Removed.
10196         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10197         ...
10198         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10199         Don't include <sysdep.h> nor <init-arch.h>.
10200         (_ZGVdN4v_cos): Removed.
10201         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10202         ...
10203         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10204         Don't include <sysdep.h> nor <init-arch.h>.
10205         (_ZGVeN8v_cos): Removed.
10206         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10207         ...
10208         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10209         Don't include <sysdep.h> nor <init-arch.h>.
10210         (_ZGVbN2v_exp): Removed.
10211         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10212         ...
10213         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10214         Don't include <sysdep.h> nor <init-arch.h>.
10215         (_ZGVdN4v_exp): Removed.
10216         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10217         ...
10218         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10219         Don't include <sysdep.h> nor <init-arch.h>.
10220         (_ZGVeN8v_exp): Removed.
10221         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10222         ...
10223         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10224         Don't include <sysdep.h> nor <init-arch.h>.
10225         (_ZGVbN2v_log): Removed.
10226         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10227         ...
10228         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10229         Don't include <sysdep.h> nor <init-arch.h>.
10230         (_ZGVdN4v_log): Removed.
10231         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10232         ...
10233         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10234         Don't include <sysdep.h> nor <init-arch.h>.
10235         (_ZGVeN8v_log): Removed.
10236         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10237         ...
10238         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10239         Don't include <sysdep.h> nor <init-arch.h>.
10240         (_ZGVbN2vv_pow): Removed.
10241         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10242         ...
10243         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10244         Don't include <sysdep.h> nor <init-arch.h>.
10245         (_ZGVdN4vv_pow): Removed.
10246         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10247         ...
10248         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10249         Don't include <sysdep.h> nor <init-arch.h>.
10250         (_ZGVeN8vv_pow): Removed.
10251         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10252         ...
10253         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10254         Don't include <sysdep.h> nor <init-arch.h>.
10255         (_ZGVbN2v_sin): Removed.
10256         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10257         ...
10258         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10259         Don't include <sysdep.h> nor <init-arch.h>.
10260         (_ZGVbN4v_sin): Removed.
10261         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10262         ...
10263         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10264         Don't include <sysdep.h> nor <init-arch.h>.
10265         (_ZGVbN8v_sin): Removed.
10266         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10267         ...
10268         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10269         Don't include <sysdep.h> nor <init-arch.h>.
10270         (_ZGVbN2vvv_sincos): Removed.
10271         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10272         ...
10273         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10274         Don't include <sysdep.h> nor <init-arch.h>.
10275         (_ZGVdN4vvv_sincos): Removed.
10276         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10277         ...
10278         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10279         Don't include <sysdep.h> nor <init-arch.h>.
10280         (_ZGVeN8vvv_sincos): Removed.
10281         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10282         ...
10283         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10284         Don't include <sysdep.h> nor <init-arch.h>.
10285         (_ZGVeN16v_cosf): Removed.
10286         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10287         ...
10288         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
10289         Don't include <sysdep.h> nor <init-arch.h>.
10290         (_ZGVbN4v_cosf): Removed.
10291         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
10292         ...
10293         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
10294         Don't include <sysdep.h> nor <init-arch.h>.
10295         (_ZGVdN8v_cosf): Removed.
10296         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
10297         ...
10298         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
10299         Don't include <sysdep.h> nor <init-arch.h>.
10300         (_ZGVeN16v_expf): Removed.
10301         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
10302         ...
10303         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
10304         Don't include <sysdep.h> nor <init-arch.h>.
10305         (_ZGVbN4v_expf): Removed.
10306         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
10307         ...
10308         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
10309         Don't include <sysdep.h> nor <init-arch.h>.
10310         (_ZGVdN8v_expf): Removed.
10311         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
10312         ...
10313         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
10314         Don't include <sysdep.h> nor <init-arch.h>.
10315         (_ZGVeN16v_logf): Removed.
10316         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
10317         ...
10318         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
10319         Don't include <sysdep.h> nor <init-arch.h>.
10320         (_ZGVbN4v_logf): Removed.
10321         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
10322         ...
10323         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
10324         Don't include <sysdep.h> nor <init-arch.h>.
10325         (_ZGVdN8v_logf): Removed.
10326         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
10327         ...
10328         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
10329         Don't include <sysdep.h> nor <init-arch.h>.
10330         (_ZGVeN16vv_powf): Removed.
10331         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
10332         ...
10333         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
10334         Don't include <sysdep.h> nor <init-arch.h>.
10335         (_ZGVbN4vv_powf): Removed.
10336         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
10337         ...
10338         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
10339         Don't include <sysdep.h> nor <init-arch.h>.
10340         (_ZGVdN8vv_powf): Removed.
10341         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
10342         ...
10343         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
10344         Don't include <sysdep.h> nor <init-arch.h>.
10345         (_ZGVeN16vvv_sincosf): Removed.
10346         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
10347         ...
10348         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
10349         Don't include <sysdep.h> nor <init-arch.h>.
10350         (_ZGVbN4vvv_sincosf): Removed.
10351         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
10352         ...
10353         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
10354         Don't include <sysdep.h> nor <init-arch.h>.
10355         (_ZGVdN8vvv_sincosf): Removed.
10356         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
10357         ...
10358         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
10359         Don't include <sysdep.h> nor <init-arch.h>.
10360         (_ZGVeN16v_sinf): Removed.
10361         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
10362         ...
10363         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
10364         Don't include <sysdep.h> nor <init-arch.h>.
10365         (_ZGVbN4v_sinf): Removed.
10366         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
10367         ...
10368         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
10369         Don't include <sysdep.h> nor <init-arch.h>.
10370         (_ZGVdN8v_sinf): Removed.
10372 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10374         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10375         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
10376         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
10377         s_rint-sse4_1 and s_rintf-sse4_1.
10378         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
10379         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10380         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10381         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10382         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10383         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
10384         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
10385         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10386         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10387         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
10388         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
10389         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10390         (__ceil): Removed.
10391         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
10392         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
10393         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10394         (__ceilf): Removed.
10395         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
10396         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
10397         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10398         (__floor): Removed.
10399         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
10400         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
10401         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10402         (__floorf): Removed.
10403         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
10404         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
10405         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10406         (__nearbyint): Removed.
10407         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
10408         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
10409         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10410         (__nearbyintf): Removed.
10411         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
10412         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
10413         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10414         (__rint): Removed.
10415         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
10416         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
10417         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10418         (__rintf): Removed.
10420 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10422         * sysdeps/i386/start.S (_start): Check Check PIC instead of
10423         SHARED.  Avoid dynamic relocation against main in static PIE.
10425 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10427         [BZ #21815]
10428         * elf/Makefile (CFLAGS-tst-prelink.c): New.
10429         (LDFLAGS-tst-prelink): Likewise.
10431 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10433         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10434         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
10435         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
10436         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10437         (INTERNAL_SYSCALL_NCS): Likewise.
10438         (LOADARGS_1): Likewise.
10439         (LOADARGS_5): Likewise.
10440         (RESTOREARGS_1): Likewise.
10441         (RESTOREARGS_5): Likewise.
10443 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10445         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
10446         (MEMPCPY_SYMBOL): Likewise.
10447         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10448         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
10449         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
10450         in libc.a.
10451         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10452         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
10453         Likewise.
10454         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
10455         (__hidden_ver1): Don't use in libc.a.
10456         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
10457         (__mempcpy): Don't create a weak alias in libc.a.
10458         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
10459         libc.a.
10460         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
10461         (__hidden_ver1): Don't use in libc.a.
10463 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10465         * config.make.in (have-insert): New.
10466         * configure.ac (libc_cv_insert): New.  Set to yes if linker
10467         supports INSERT in linker script.
10468         (AC_SUBST(libc_cv_insert): New.
10469         * configure: Regenerated.
10470         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
10471         if $(have-insert) == yes.
10473 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10475         * elf/Makefile (tests): Add vismain only if
10476         $(have-protected-data) == yes.
10477         (tests-pie): Likewise.
10479 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10481         [BZ #21871]
10482         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10483         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
10485 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10487         [BZ #21790]
10488         * sysdeps/i386/i586/memset.S
10489         (__memset_zero_constant_len_parameter): Removed.
10490         * sysdeps/i386/i686/memset.S
10491         (__memset_zero_constant_len_parameter): Likewise.
10492         * sysdeps/i386/i686/multiarch/memset_chk.S
10493         (__memset_zero_constant_len_parameter): Likewise.
10494         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
10495         Likewise.
10497 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10499         * stdlib/getentropy.c (getentropy): Change return type to int.
10501 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10503         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
10505 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
10507         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
10508         u_intN_t.
10509         * math/s_nexttowardf.c (__nexttowardf): Likewise.
10510         * sysdeps/generic/math_private.h (ieee_double_shape_type):
10511         Likewise.
10512         (ieee_float_shape_type): Likewise.
10513         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
10514         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
10515         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
10516         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10517         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10518         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
10519         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
10520         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
10521         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10522         Likewise.
10523         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10524         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10525         (__ieee754_yn): Likewise.
10526         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
10527         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
10528         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
10529         Likewise.
10530         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10531         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
10532         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
10533         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
10534         (__erfc): Likewise.
10535         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10536         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
10537         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
10538         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
10539         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
10540         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
10541         Likewise.
10542         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10543         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
10544         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10545         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
10546         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
10547         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
10548         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
10549         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
10550         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
10551         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10552         (__issignaling): Likewise.
10553         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
10554         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
10555         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10556         Likewise.
10557         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
10558         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
10559         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10560         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
10561         Likewise.
10562         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
10563         Likewise.
10564         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
10565         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
10566         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
10567         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10568         (__erfcf): Likewise.
10569         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10570         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
10571         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
10572         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
10573         Likewise.
10574         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
10575         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
10576         Likewise.
10577         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10578         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
10579         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10580         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
10581         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
10582         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
10583         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
10584         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
10585         Likewise.
10586         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
10587         Likewise.
10588         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10589         Likewise.
10590         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
10591         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10592         Likewise.
10593         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10594         Likewise.
10595         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10596         (__ieee754_ynl): Likewise.
10597         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10598         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
10599         Likewise.
10600         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
10601         Likewise.
10602         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10603         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
10604         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10605         Likewise.
10606         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10607         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
10608         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
10609         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
10610         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
10611         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
10612         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
10613         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
10614         Likewise.
10615         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
10616         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
10617         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
10618         Likewise.
10619         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10620         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
10621         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10622         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10623         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
10624         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
10625         Likewise.
10626         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
10627         Likewise.
10628         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10629         Likewise.
10630         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10631         Likewise.
10632         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
10633         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
10634         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10635         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
10636         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10637         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
10638         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
10639         Likewise.
10640         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10641         Likewise.
10642         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10643         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
10644         Likewise.
10645         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10646         (__ieee754_remainderl): Likewise.
10647         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10648         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10649         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
10650         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
10651         Likewise.
10652         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
10653         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10654         Likewise.
10655         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
10656         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
10657         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10658         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10659         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
10660         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10661         Likewise.
10662         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10663         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10664         (__ieee754_y0l): Likewise.
10665         (pzero): Likewise.
10666         (qzero): Likewise.
10667         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10668         (__ieee754_y1l): Likewise.
10669         (pone): Likewise.
10670         (qone): Likewise.
10671         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10672         (__ieee754_ynl): Likewise.
10673         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10674         (__ieee754_lgammal_r): Likewise.
10675         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
10676         Likewise.
10677         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10678         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
10679         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10680         (__erfcl): Likewise.
10681         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
10682         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
10683         Likewise.
10684         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10685         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
10686         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10687         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
10688         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
10689         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10690         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10691         Likewise.
10692         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
10693         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
10694         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
10695         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
10696         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10697         Likewise.
10698         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
10699         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
10700         Likewise.
10701         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
10702         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
10703         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
10704         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
10705         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10707 2017-08-03  Florian Weimer  <fweimer@redhat.com>
10709         [BZ #21885]
10710         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
10711         on memory allocation failure.
10713 2017-08-03  Alan Modra  <amodra@gmail.com>
10715         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
10716         tst-tlsopt-powerpc.c with function name change and no test harness.
10717         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
10718         Call tls_get_addr_opt_test.
10719         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
10720         (modules-names): Add mod-tlsopt-powerpc.
10721         (mod-tlsopt-powerpc.so-no-z-defs): Define.
10722         (tst-tlsopt-powerpc): Depend on .so.
10723         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
10724         define.  Expand use in TLS_GD and TLS_LD.
10726 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10728         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
10729         function.
10730         * sysdeps/posix/shm_open.c: Include <pthread.h>.
10732 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10734         [BZ #21686]
10735         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
10736         comparing size with that of double.
10737         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10738         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10739         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10740         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10741         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10742         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
10743         unsigned __int128 types.
10745 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
10747         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
10748         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
10749         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
10750         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
10751         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
10753 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10755         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
10757 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10759         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
10760         of SHARED.
10761         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
10762         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10763         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10764         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10765         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10766         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10767         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10769 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10771         [BZ #21685]
10772         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
10773         bit-field expressions passed to sizeof or typeof.
10774         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10775         (__TGMATH_F128): Likewise.
10776         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10777         (__TGMATH_CF128): Likewise.
10778         (__TGMATH_UNARY_REAL_ONLY): Likewise.
10779         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
10780         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
10781         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
10782         (__TGMATH_BINARY_REAL_ONLY): Likewise.
10783         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10784         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10785         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10786         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10787         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
10788         (__TGMATH_UNARY_REAL_IMAG): Likewise.
10789         (__TGMATH_UNARY_IMAG): Likewise.
10790         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10791         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10792         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
10793         type.
10794         (define_vars_for_type): Handle bit_field type specially.
10795         (Tests.__init__): Declare structure with bit-field element.
10797 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10799         [BZ #21791]
10800         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
10801         (MEMCPY_CHK): Define only if SHARED is defined.
10802         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
10803         Likewise.
10804         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
10805         Likewise.
10807 See ChangeLog.18 for earlier changes.