Use libm_alias_ldouble in sysdeps/x86_64/fpu.
[glibc.git] / ChangeLog
blobafb8fd249721617c332a170c0dd75f84992f5955
1 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
3         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
4         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
5         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
6         (ceill): Define using libm_alias_ldouble.
7         * sysdeps/x86_64/fpu/s_copysignl.S: Include
8         <libm-alias-ldouble.h>.
9         (copysignl): Define using libm_alias_ldouble.
10         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
11         (fabsl): Define using libm_alias_ldouble.
12         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
13         (floorl): Define using libm_alias_ldouble.
14         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
15         (fmaxl): Define using libm_alias_ldouble.
16         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
17         (fminl): Define using libm_alias_ldouble.
18         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
19         (llrintl): Define using libm_alias_ldouble.
20         (lrintl): Likewise.
21         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22         <libm-alias-ldouble.h>.
23         (nearbyintl): Define using libm_alias_ldouble.
24         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
25         (truncl): Define using libm_alias_ldouble.
26         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27         <libm-alias-ldouble.h>.
28         (lrintl): Define using libm_alias_ldouble.
30         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
31         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
32         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
33         (asinhl): Define using libm_alias_ldouble.
34         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
35         (atanl): Define using libm_alias_ldouble.
36         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
37         (cbrtl): Define using libm_alias_ldouble.
38         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
39         (ceill): Define using libm_alias_ldouble.
40         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
41         (copysignl): Define using libm_alias_ldouble.
42         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
43         (fabsl): Define using libm_alias_ldouble.
44         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
45         (floorl): Define using libm_alias_ldouble.
46         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
47         (fmaxl): Define using libm_alias_ldouble.
48         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
49         (fminl): Define using libm_alias_ldouble.
50         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
51         (frexpl): Define using libm_alias_ldouble.
52         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
53         (llrintl): Define using libm_alias_ldouble.
54         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
55         (logbl): Define using libm_alias_ldouble.
56         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
57         (lrintl): Define using libm_alias_ldouble.
58         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
59         (nearbyintl): Define using libm_alias_ldouble.
60         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
61         (nextafterl): Define using libm_alias_ldouble.
62         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
63         (remquol): Define using libm_alias_ldouble.
64         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
65         (rintl): Define using libm_alias_ldouble.
66         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
67         (truncl): Define using libm_alias_ldouble.
68         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
69         (fmaxl): Define using libm_alias_ldouble.
70         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
71         (fminl): Define using libm_alias_ldouble.
73         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
74         to C syntax instead of availability and properties of types.
75         * bits/floatn.h [!__ASSEMBLER]: Likewise.
76         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
77         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
78         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
79         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
80         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
82 2017-11-17  Florian Weimer  <fweimer@redhat.com>
84         support_become_root: Enable file creation in namespaces.
85         * support/support_become_root.c (setup_mapping): New function.
86         (support_become_root): Call it.
88 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
90         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
91         macro.
93 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
95         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
96         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
98 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
100         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
102         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
103         version to 4.14.
105 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
107         * INSTALL: Fix botched up regeneration.
109         * NEWS: Update sourceare link to https.
110         * configure.ac: Likewise.
111         * crypt/md5test-giant.c: Likewise.
112         * dlfcn/bug-atexit1.c: Likewise.
113         * dlfcn/bug-atexit2.c: Likewise.
114         * localedata/README: Likewise.
115         * malloc/tst-mallocfork.c: Likewise.
116         * manual/install.texi: Likewise.
117         * nptl/tst-pthread-getattr.c: Likewise.
118         * stdio-common/tst-fgets.c: Likewise.
119         * stdio-common/tst-fwrite.c: Likewise.
120         * sunrpc/Makefile: Likewise.
121         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
122         * wcsmbs/tst-mbrtowc2.c: Likewise.
123         * configure: Regenerate.
124         * INSTALL: Regenerate.
126 2017-11-15  Martin Sebor  <msebor@redhat.com>
128         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
129         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
130         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
132 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
134         [BZ #22145]
135         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
136         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
138         [BZ #22145]
139         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
140         Defer is_pty check until end of the function.
141         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
143         [BZ #22145]
144         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
145         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
146         (ttyname): Likewise.
147         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
148         (__ttyname_r): Likewise.
150         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
151         int to bool.
153         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
155         * manual/terminal.texi (Is It a Terminal):
156         Mention ENODEV for ttyname and ttyname_r.
158 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
160         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
161         constant and macro.
163         * sysdeps/unix/sysv/linux/bits/mman-linux.h
164         [__USE_MISC] (MADV_WIPEONFORK): New macro.
165         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
166         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
167         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
168         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
170 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
172         * signal/sigrelse.c (sigrelse): Optimize implementation.
174         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
175         (__sigpause): Rely on __sigsuspend to implement single thread
176         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
178 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
180         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
181         kernel version to 4.14.
183 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
185         [BZ #22442]
186         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
187         Check if ifname is too long.
189 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
191         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
193 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
195         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
196         was accidentally lost.
198 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
200         * localedata/locales/az_IR: Add standard copyright header.
202 2017-11-15  Florian Weimer  <fweimer@redhat.com>
204         [BZ #22439]
205         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
206         not just the top one.  Output a new "subheaps" statistic.
208 2017-11-15  Florian Weimer  <fweimer@redhat.com>
210         [BZ #22408]
211         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
212         under the per-arena lock.
213         * malloc/Makefile (tests): Add tst-malloc_info.
214         (tst-malloc_info): Link with libpthread.
215         * malloc/tst-malloc_info.c: New file.
217 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
219         [BZ #21660]
220         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
221         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
222         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
223         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
224         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
225         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
226         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
227         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
228         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
229         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
230         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
231         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
232         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
233         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
234         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
235         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
236         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
237         (__floating_type): Likewise.
238         (__real_integer_type): Likewise.
239         (__complex_integer_type): Likewise.
240         (__expr_is_real): Likewise.
241         (__tgmath_real_type_sub): Likewise.
242         (__tgmath_real_type): Likewise.
243         (__tgmath_complex_type_sub): Likewise.
244         (__tgmath_complex_type): Likewise.
245         (__TGMATH_F128): Likewise.
246         (__TGMATH_CF128): Likewise.
247         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
248         new macros.
249         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
250         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
251         Likewise.
252         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
253         Likewise.
254         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
255         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
256         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
257         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
258         Likewise.
259         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
260         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
261         Likewise.
262         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
263         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
264         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
265         Likewise.
266         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
267         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
268         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
269         (cimag): Likewise.
270         (creal): Likewise.
272 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
274         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
275         for stpncpy calls for GCC 8.
276         (test_strncat): Disable -Wstringop-truncation warning for strncat
277         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
278         strncat call for GCC 7.
279         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
280         calls for GCC 8.
281         (test_memcmp): Use memcpy instead of strncpy for calls not copying
282         trailing NUL.
284         * string/bug-strncat1.c: Include <libc-diag.h>.
285         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
287 2017-11-13  Claude Paroz <claude@2xlibre.net>
289         [BZ #22387]
290         * localedata/locales/aa_DJ: Improved readibility by replacing
291         <Uxxxx> sequences in the ASCII printable range by their ASCII
292         character equivalents.
293         * localedata/locales/aa_ER: Likewise.
294         * localedata/locales/aa_ER@saaho: Likewise.
295         * localedata/locales/aa_ET: Likewise.
296         * localedata/locales/af_ZA: Likewise.
297         * localedata/locales/agr_PE: Likewise.
298         * localedata/locales/ak_GH: Likewise.
299         * localedata/locales/am_ET: Likewise.
300         * localedata/locales/anp_IN: Likewise.
301         * localedata/locales/ar_AE: Likewise.
302         * localedata/locales/ar_BH: Likewise.
303         * localedata/locales/ar_DZ: Likewise.
304         * localedata/locales/ar_EG: Likewise.
305         * localedata/locales/ar_IN: Likewise.
306         * localedata/locales/ar_IQ: Likewise.
307         * localedata/locales/ar_JO: Likewise.
308         * localedata/locales/ar_KW: Likewise.
309         * localedata/locales/ar_LB: Likewise.
310         * localedata/locales/ar_LY: Likewise.
311         * localedata/locales/ar_MA: Likewise.
312         * localedata/locales/ar_OM: Likewise.
313         * localedata/locales/ar_QA: Likewise.
314         * localedata/locales/ar_SA: Likewise.
315         * localedata/locales/ar_SD: Likewise.
316         * localedata/locales/ar_SS: Likewise.
317         * localedata/locales/ar_SY: Likewise.
318         * localedata/locales/ar_TN: Likewise.
319         * localedata/locales/ar_YE: Likewise.
320         * localedata/locales/as_IN: Likewise.
321         * localedata/locales/ast_ES: Likewise.
322         * localedata/locales/ayc_PE: Likewise.
323         * localedata/locales/az_AZ: Likewise.
324         * localedata/locales/az_IR: Likewise.
325         * localedata/locales/be_BY: Likewise.
326         * localedata/locales/be_BY@latin: Likewise.
327         * localedata/locales/bem_ZM: Likewise.
328         * localedata/locales/ber_DZ: Likewise.
329         * localedata/locales/ber_MA: Likewise.
330         * localedata/locales/bg_BG: Likewise.
331         * localedata/locales/bhb_IN: Likewise.
332         * localedata/locales/bho_IN: Likewise.
333         * localedata/locales/bi_VU: Likewise.
334         * localedata/locales/bn_BD: Likewise.
335         * localedata/locales/bn_IN: Likewise.
336         * localedata/locales/bo_CN: Likewise.
337         * localedata/locales/bo_IN: Likewise.
338         * localedata/locales/br_FR: Likewise.
339         * localedata/locales/brx_IN: Likewise.
340         * localedata/locales/bs_BA: Likewise.
341         * localedata/locales/byn_ER: Likewise.
342         * localedata/locales/ca_AD: Likewise.
343         * localedata/locales/ca_ES: Likewise.
344         * localedata/locales/ca_FR: Likewise.
345         * localedata/locales/ca_IT: Likewise.
346         * localedata/locales/ce_RU: Likewise.
347         * localedata/locales/chr_US: Likewise.
348         * localedata/locales/cmn_TW: Likewise.
349         * localedata/locales/crh_UA: Likewise.
350         * localedata/locales/cs_CZ: Likewise.
351         * localedata/locales/csb_PL: Likewise.
352         * localedata/locales/cv_RU: Likewise.
353         * localedata/locales/cy_GB: Likewise.
354         * localedata/locales/da_DK: Likewise.
355         * localedata/locales/de_AT: Likewise.
356         * localedata/locales/de_BE: Likewise.
357         * localedata/locales/de_CH: Likewise.
358         * localedata/locales/de_DE: Likewise.
359         * localedata/locales/de_IT: Likewise.
360         * localedata/locales/de_LI: Likewise.
361         * localedata/locales/de_LU: Likewise.
362         * localedata/locales/doi_IN: Likewise.
363         * localedata/locales/dv_MV: Likewise.
364         * localedata/locales/dz_BT: Likewise.
365         * localedata/locales/el_CY: Likewise.
366         * localedata/locales/el_GR: Likewise.
367         * localedata/locales/en_AG: Likewise.
368         * localedata/locales/en_AU: Likewise.
369         * localedata/locales/en_BW: Likewise.
370         * localedata/locales/en_CA: Likewise.
371         * localedata/locales/en_DK: Likewise.
372         * localedata/locales/en_GB: Likewise.
373         * localedata/locales/en_HK: Likewise.
374         * localedata/locales/en_IE: Likewise.
375         * localedata/locales/en_IL: Likewise.
376         * localedata/locales/en_IN: Likewise.
377         * localedata/locales/en_NG: Likewise.
378         * localedata/locales/en_NZ: Likewise.
379         * localedata/locales/en_PH: Likewise.
380         * localedata/locales/en_SG: Likewise.
381         * localedata/locales/en_US: Likewise.
382         * localedata/locales/en_ZA: Likewise.
383         * localedata/locales/en_ZM: Likewise.
384         * localedata/locales/en_ZW: Likewise.
385         * localedata/locales/eo: Likewise.
386         * localedata/locales/es_AR: Likewise.
387         * localedata/locales/es_BO: Likewise.
388         * localedata/locales/es_CL: Likewise.
389         * localedata/locales/es_CO: Likewise.
390         * localedata/locales/es_CR: Likewise.
391         * localedata/locales/es_CU: Likewise.
392         * localedata/locales/es_DO: Likewise.
393         * localedata/locales/es_EC: Likewise.
394         * localedata/locales/es_ES: Likewise.
395         * localedata/locales/es_GT: Likewise.
396         * localedata/locales/es_HN: Likewise.
397         * localedata/locales/es_MX: Likewise.
398         * localedata/locales/es_NI: Likewise.
399         * localedata/locales/es_PA: Likewise.
400         * localedata/locales/es_PE: Likewise.
401         * localedata/locales/es_PR: Likewise.
402         * localedata/locales/es_PY: Likewise.
403         * localedata/locales/es_SV: Likewise.
404         * localedata/locales/es_US: Likewise.
405         * localedata/locales/es_UY: Likewise.
406         * localedata/locales/es_VE: Likewise.
407         * localedata/locales/et_EE: Likewise.
408         * localedata/locales/eu_ES: Likewise.
409         * localedata/locales/eu_ES@euro: Likewise.
410         * localedata/locales/fa_IR: Likewise.
411         * localedata/locales/ff_SN: Likewise.
412         * localedata/locales/fi_FI: Likewise.
413         * localedata/locales/fil_PH: Likewise.
414         * localedata/locales/fo_FO: Likewise.
415         * localedata/locales/fr_BE: Likewise.
416         * localedata/locales/fr_CA: Likewise.
417         * localedata/locales/fr_CH: Likewise.
418         * localedata/locales/fr_FR: Likewise.
419         * localedata/locales/fr_LU: Likewise.
420         * localedata/locales/fur_IT: Likewise.
421         * localedata/locales/fy_DE: Likewise.
422         * localedata/locales/fy_NL: Likewise.
423         * localedata/locales/ga_IE: Likewise.
424         * localedata/locales/gd_GB: Likewise.
425         * localedata/locales/gez_ER: Likewise.
426         * localedata/locales/gez_ET: Likewise.
427         * localedata/locales/gl_ES: Likewise.
428         * localedata/locales/gu_IN: Likewise.
429         * localedata/locales/gv_GB: Likewise.
430         * localedata/locales/ha_NG: Likewise.
431         * localedata/locales/hak_TW: Likewise.
432         * localedata/locales/he_IL: Likewise.
433         * localedata/locales/hi_IN: Likewise.
434         * localedata/locales/hif_FJ: Likewise.
435         * localedata/locales/hne_IN: Likewise.
436         * localedata/locales/hr_HR: Likewise.
437         * localedata/locales/hsb_DE: Likewise.
438         * localedata/locales/ht_HT: Likewise.
439         * localedata/locales/hu_HU: Likewise.
440         * localedata/locales/hy_AM: Likewise.
441         * localedata/locales/i18n: Likewise.
442         * localedata/locales/ia_FR: Likewise.
443         * localedata/locales/id_ID: Likewise.
444         * localedata/locales/ig_NG: Likewise.
445         * localedata/locales/ik_CA: Likewise.
446         * localedata/locales/is_IS: Likewise.
447         * localedata/locales/it_CH: Likewise.
448         * localedata/locales/it_IT: Likewise.
449         * localedata/locales/iu_CA: Likewise.
450         * localedata/locales/ja_JP: Likewise.
451         * localedata/locales/ka_GE: Likewise.
452         * localedata/locales/kk_KZ: Likewise.
453         * localedata/locales/kl_GL: Likewise.
454         * localedata/locales/kn_IN: Likewise.
455         * localedata/locales/ko_KR: Likewise.
456         * localedata/locales/kok_IN: Likewise.
457         * localedata/locales/ks_IN: Likewise.
458         * localedata/locales/ks_IN@devanagari: Likewise.
459         * localedata/locales/ku_TR: Likewise.
460         * localedata/locales/kw_GB: Likewise.
461         * localedata/locales/ky_KG: Likewise.
462         * localedata/locales/lb_LU: Likewise.
463         * localedata/locales/lg_UG: Likewise.
464         * localedata/locales/li_BE: Likewise.
465         * localedata/locales/li_NL: Likewise.
466         * localedata/locales/lij_IT: Likewise.
467         * localedata/locales/ln_CD: Likewise.
468         * localedata/locales/lo_LA: Likewise.
469         * localedata/locales/lt_LT: Likewise.
470         * localedata/locales/lv_LV: Likewise.
471         * localedata/locales/lzh_TW: Likewise.
472         * localedata/locales/mag_IN: Likewise.
473         * localedata/locales/mai_IN: Likewise.
474         * localedata/locales/mg_MG: Likewise.
475         * localedata/locales/mhr_RU: Likewise.
476         * localedata/locales/mi_NZ: Likewise.
477         * localedata/locales/mk_MK: Likewise.
478         * localedata/locales/ml_IN: Likewise.
479         * localedata/locales/mn_MN: Likewise.
480         * localedata/locales/mni_IN: Likewise.
481         * localedata/locales/mr_IN: Likewise.
482         * localedata/locales/ms_MY: Likewise.
483         * localedata/locales/mt_MT: Likewise.
484         * localedata/locales/my_MM: Likewise.
485         * localedata/locales/nan_TW: Likewise.
486         * localedata/locales/nan_TW@latin: Likewise.
487         * localedata/locales/nb_NO: Likewise.
488         * localedata/locales/nds_DE: Likewise.
489         * localedata/locales/nds_NL: Likewise.
490         * localedata/locales/ne_NP: Likewise.
491         * localedata/locales/nhn_MX: Likewise.
492         * localedata/locales/niu_NU: Likewise.
493         * localedata/locales/niu_NZ: Likewise.
494         * localedata/locales/nl_AW: Likewise.
495         * localedata/locales/nl_BE: Likewise.
496         * localedata/locales/nl_NL: Likewise.
497         * localedata/locales/nn_NO: Likewise.
498         * localedata/locales/nr_ZA: Likewise.
499         * localedata/locales/nso_ZA: Likewise.
500         * localedata/locales/oc_FR: Likewise.
501         * localedata/locales/om_ET: Likewise.
502         * localedata/locales/om_KE: Likewise.
503         * localedata/locales/or_IN: Likewise.
504         * localedata/locales/os_RU: Likewise.
505         * localedata/locales/pa_IN: Likewise.
506         * localedata/locales/pa_PK: Likewise.
507         * localedata/locales/pap_AW: Likewise.
508         * localedata/locales/pap_CW: Likewise.
509         * localedata/locales/pl_PL: Likewise.
510         * localedata/locales/ps_AF: Likewise.
511         * localedata/locales/pt_BR: Likewise.
512         * localedata/locales/pt_PT: Likewise.
513         * localedata/locales/quz_PE: Likewise.
514         * localedata/locales/raj_IN: Likewise.
515         * localedata/locales/ro_RO: Likewise.
516         * localedata/locales/ru_RU: Likewise.
517         * localedata/locales/ru_UA: Likewise.
518         * localedata/locales/rw_RW: Likewise.
519         * localedata/locales/sa_IN: Likewise.
520         * localedata/locales/sat_IN: Likewise.
521         * localedata/locales/sc_IT: Likewise.
522         * localedata/locales/sd_IN: Likewise.
523         * localedata/locales/sd_IN@devanagari: Likewise.
524         * localedata/locales/se_NO: Likewise.
525         * localedata/locales/sgs_LT: Likewise.
526         * localedata/locales/shs_CA: Likewise.
527         * localedata/locales/si_LK: Likewise.
528         * localedata/locales/sid_ET: Likewise.
529         * localedata/locales/sk_SK: Likewise.
530         * localedata/locales/sl_SI: Likewise.
531         * localedata/locales/sm_WS: Likewise.
532         * localedata/locales/so_DJ: Likewise.
533         * localedata/locales/so_ET: Likewise.
534         * localedata/locales/so_KE: Likewise.
535         * localedata/locales/so_SO: Likewise.
536         * localedata/locales/sq_AL: Likewise.
537         * localedata/locales/sq_MK: Likewise.
538         * localedata/locales/sr_ME: Likewise.
539         * localedata/locales/sr_RS: Likewise.
540         * localedata/locales/sr_RS@latin: Likewise.
541         * localedata/locales/ss_ZA: Likewise.
542         * localedata/locales/st_ZA: Likewise.
543         * localedata/locales/sv_FI: Likewise.
544         * localedata/locales/sv_SE: Likewise.
545         * localedata/locales/sw_KE: Likewise.
546         * localedata/locales/sw_TZ: Likewise.
547         * localedata/locales/szl_PL: Likewise.
548         * localedata/locales/ta_IN: Likewise.
549         * localedata/locales/ta_LK: Likewise.
550         * localedata/locales/tcy_IN: Likewise.
551         * localedata/locales/te_IN: Likewise.
552         * localedata/locales/tg_TJ: Likewise.
553         * localedata/locales/th_TH: Likewise.
554         * localedata/locales/the_NP: Likewise.
555         * localedata/locales/ti_ER: Likewise.
556         * localedata/locales/ti_ET: Likewise.
557         * localedata/locales/tig_ER: Likewise.
558         * localedata/locales/tk_TM: Likewise.
559         * localedata/locales/tl_PH: Likewise.
560         * localedata/locales/tn_ZA: Likewise.
561         * localedata/locales/to_TO: Likewise.
562         * localedata/locales/tpi_PG: Likewise.
563         * localedata/locales/tr_CY: Likewise.
564         * localedata/locales/tr_TR: Likewise.
565         * localedata/locales/ts_ZA: Likewise.
566         * localedata/locales/tt_RU: Likewise.
567         * localedata/locales/tt_RU@iqtelif: Likewise.
568         * localedata/locales/ug_CN: Likewise.
569         * localedata/locales/uk_UA: Likewise.
570         * localedata/locales/unm_US: Likewise.
571         * localedata/locales/ur_IN: Likewise.
572         * localedata/locales/ur_PK: Likewise.
573         * localedata/locales/uz_UZ: Likewise.
574         * localedata/locales/uz_UZ@cyrillic: Likewise.
575         * localedata/locales/ve_ZA: Likewise.
576         * localedata/locales/vi_VN: Likewise.
577         * localedata/locales/wa_BE: Likewise.
578         * localedata/locales/wae_CH: Likewise.
579         * localedata/locales/wal_ET: Likewise.
580         * localedata/locales/wo_SN: Likewise.
581         * localedata/locales/xh_ZA: Likewise.
582         * localedata/locales/yi_US: Likewise.
583         * localedata/locales/yo_NG: Likewise.
584         * localedata/locales/yue_HK: Likewise.
585         * localedata/locales/yuw_PG: Likewise.
586         * localedata/locales/zh_CN: Likewise.
587         * localedata/locales/zh_HK: Likewise.
588         * localedata/locales/zh_SG: Likewise.
589         * localedata/locales/zh_TW: Likewise.
590         * localedata/locales/zu_ZA: Likewise.
592 2017-11-13  Florian Weimer  <fweimer@redhat.com>
594         * support/next_to_fault.h, support/next_to_fault.c: New files.
595         * support/Makefile (libsupport-routines): Add next_to_fault.
596         * resolv/tst-inet_pton.c (struct next_to_fault)
597         (next_to_fault_allocate, next_to_fault_free): Remove.
598         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
600 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
602         * elf/dl-support.c: Include <dl-procruntime.c>.
603         * include/link.h: Include <link_map.h>.
604         * sysdeps/generic/dl-procruntime.c: New file.
605         * sysdeps/generic/link_map.h: Likewise.
606         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
607         the writable ld.so namespace.
609 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
611         timezone: pacify GCC -Wstringop-truncation
612         Problem reported by Martin Sebor in:
613         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
614         * timezone/zic.c (writezone): Use memcpy, not strncpy.
616 2017-11-12  Florian Weimer  <fweimer@redhat.com>
618         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
619         tst-xreadlink.
620         (tests): Add tst-xreadlink.
621         * support/support.h (xstrndup): Declare.
622         * support/xunistd.h (xunlink, xreadlink): Declare.
623         * support/temp_file.h (support_create_temp_directory): Declare.
624         * support/temp_file.c (support_create_temp_directory): New function.
625         * support/support_chroot.c (support_chroot_create): Use it.
626         * support/xreadlink.c: New file.
627         * support/xstrndup.c: Likewise.
628         * support/xunlink.c: Likewise.
629         * support/tst-xreadlink.c: Likewise.
631 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
633         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
635 2017-11-11  Florian Weimer  <fweimer@redhat.com>
637         [BZ #22409]
638         [BZ #22412]
639         * resolv/res_comp.c (printable_string, binary_hnok)
640         (binary_leading_dash): New functions.
641         (res_hnok): Reimplement using these functions and ns_name_pton.
642         (res_ownok): Likewise.
643         (res_mailok): Reimplement using printable_string, ns_name_pton and
644         binary_hnok.
645         (res_dnok): Reimplement using printable_string and ns_name_pton.
646         * resolv/tst-res_hnok.c (tests): Add additional tests.
647         (LETTERDIGITS, PRINTABLE): Define.
648         (do_test): Adjust one_char results.
650 2017-11-11  Florian Weimer  <fweimer@redhat.com>
652         [BZ #22413]
653         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
654         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
656 2017-11-11  Florian Weimer  <fweimer@redhat.com>
658         * resolv/tst-ns_name_pton.c: New file.
659         * resolv/Makefile (tests): Add tst-ns_name_pton.
660         (tst-ns_name_pton): Link against libresolv.
662 2017-11-11  Florian Weimer  <fweimer@redhat.com>
664         * resolv/tst-res_hnok.c: New file.
665         * resolv/Makefile (tests): Add tst-res_hnok.
666         (tst-res_hnok): Link against libresolv.
668 2017-11-11  Florian Weimer  <fweimer@redhat.com>
670         * resolv/tst-resolv-network.c: Use test framework instead explicit
671         main function.
673 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
675         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
676         <jmp_buf-macros.h>.
677         [!_ISOMAC] (STR_HELPER): New.
678         [!_ISOMAC] (STR): Likewise.
679         [!_ISOMAC] (TEST_SIZE): Likewise.
680         [!_ISOMAC] (TEST_ALIGN): Likewise.
681         [!_ISOMAC] (TEST_OFFSET): Likewise.
682         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
683         field offsets of jmp_buf as well as sigjmp_buf.
684         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
685         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
686         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
687         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
688         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
689         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
690         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
691         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
692         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
693         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
694         Likewise.
695         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
696         Likewise.
697         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
699         Likewise.
700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
701         Likewise.
702         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
703         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
704         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
705         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
706         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
707         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
708         Likewise.
709         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
710         Likewise.
711         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
712         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
713         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
715 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
717         * include/float.h
718         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
719         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
720         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
721         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
722         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
723         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
724         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
725         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
726         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
727         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
728         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
729         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
730         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
731         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
732         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
733         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
734         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
735         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
736         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
737         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
738         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
739         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
740         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
741         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
742         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
743         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
744         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
745         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
746         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
747         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
748         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
749         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
750         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
751         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
752         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
753         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
754         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
755         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
756         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
757         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
758         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
759         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
760         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
761         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
762         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
763         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
764         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
765         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
766         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
767         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
768         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
769         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
770         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
771         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
772         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
773         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
774         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
775         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
776         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
777         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
778         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
779         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
780         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
781         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
782         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
783         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
784         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
785         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
786         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
787         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
788         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
789         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
790         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
791         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
792         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
793         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
794         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
795         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
796         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
797         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
798         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
799         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
800         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
801         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
802         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
803         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
804         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
805         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
807         * stdlib/tst-strtod.h (F16): New macro.
808         (F32): Likewise.
809         (F64): Likewise.
810         (F32X): Likewise.
811         (F64X): Likewise.
812         (F128X): Likewise.
813         (IF_FLOAT16): Likewise.
814         (IF_FLOAT32): Likewise.
815         (IF_FLOAT64): Likewise.
816         (IF_FLOAT32X): Likewise.
817         (IF_FLOAT64X): Likewise.
818         (IF_FLOAT128X): Likewise.
819         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
820         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
821         (STRTOD_TEST_FOREACH): Likewise.
822         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
823         (CHOOSE_f64): Likewise.
824         (CHOOSE_f32x): Likewise.
825         (CHOOSE_f64x): Likewise.
827 2017-11-07  Andreas Schwab  <schwab@suse.de>
829         * nptl/Makefile (tests-internal): Remove tst-typesizes.
831 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
833         [BZ #22403]
834         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
835         to be escaped.
836         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
837         to be escaped.
839 2017-11-07  Claude Paroz <claude@2xlibre.net>
841         [BZ #22403]
842         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
843         to be escaped.
844         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
845         to be escaped.
846         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
847         to be escaped.
849 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
851         [BZ #22298]
852         * nptl/allocatestack.c (allocate_stack): Check if
853         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
854         __PTHREAD_MUTEX_HAVE_PREV is defined.
855         * nptl/descr.h (pthread): Likewise.
856         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
857         Likewise.
858         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
859         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
860         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
861         * sysdeps/nptl/bits/thread-shared-types.h
862         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
863         defines.
864         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
865         of __WORDSIZE for internal layout.
866         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
867         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
868         instead of __WORDSIZE whether to use an union for __spins and __list
869         fields.
870         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
871         case.
872         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
873         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
874         defines.
875         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
876         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
877         Likewise.
878         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
879         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
880         Likewise.
881         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
882         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
883         Likewise.
884         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
885         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
886         Likewise.
887         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
888         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
889         Likewise.
890         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
891         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
892         Likewise.
893         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
894         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
895         Likewise.
896         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
897         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
898         Likewise.
899         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
900         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
901         Likewise.
902         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
903         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
904         Likewise.
905         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
906         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
907         Likewise.
908         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
909         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
910         Likewise.
911         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
912         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
913         Likewise.
914         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
915         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
916         Likewise.
918         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
919         New macros.
920         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
921         checks for expected input type size.
922         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
923         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
924         Likewise.
925         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
926         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
927         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
928         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
929         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
930         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
931         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
932         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
933         superflous runtime assert check.
934         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
935         Likewise.
936         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
937         Likewise.
938         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
939         Likewise.
940         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
941         Likewise.
942         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
943         Likewise.
944         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
945         Likewise.
946         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
947         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
948         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
949         Likewise.
950         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
951         Likewise.
952         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
953         Likewise.
954         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
955         Likewise.
956         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
957         Likewise.
958         * nptl/pthread_attr_setinheritsched.c
959         (__pthread_attr_setinheritsched): Likewise.
960         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
961         Likewise.
962         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
963         Likewise.
964         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
965         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
966         __old_pthread_attr_setstack): Likewise.
967         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
968         Likewise.
969         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
970         Likewise.
971         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
972         Likewise.
973         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
974         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
975         Likewise.
976         * nptl/tst-typesizes.c: Remove file.
978         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
979         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
980         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
981         checks for internal pthread_mutex_t offsets.
982         * sysdeps/aarch64/nptl/pthread-offsets.h
983         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
984         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
985         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
986         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
987         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
988         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
989         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
990         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
991         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
992         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
993         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
994         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
995         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
996         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
997         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
998         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
999         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
1000         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
1002 2017-11-07  Florian Weimer  <fweimer@redhat.com>
1004         * bits/mman-linux.h: Move ...
1005         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
1006         comment.
1007         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
1008         outdated comment.
1010 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1012         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
1013         Redefine STRNLEN as __strnlen_power8.
1015 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1017         * signal/sighold.c (sighold): Optimize implementation.
1019         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
1020         __NR_rt_sigqueueinfo.
1022         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1023         __sigtimedwait.
1024         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
1025         assume __NR_rt_sigtimedwait.
1026         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
1027         and add LIBC_CANCEL_HANDLED for cancellation marking.
1028         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1030         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1031         (sysdeps_routines): Add memchr_noneon.
1032         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
1033         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
1034         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
1035         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
1036         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
1037         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
1038         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
1040         * sysdeps/arm/arm-ifunc.h: New file.
1041         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
1042         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
1043         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
1044         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
1045         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
1046         (__memcpy_neon): Avoid create hidden alias.
1047         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
1048         (__memcpy_vfp): Likewise.
1049         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
1050         (sysdep_routines): Add memcpy_arm.
1051         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
1053 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
1055         [BZ #22362]
1056         * Makerules (make-link-multidir): New.
1057         * config.make.in (multidir): New.
1058         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
1059         * configure: Regenerated.
1060         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
1061         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
1062         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
1063         New target.
1065 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
1067         [BZ #22402]
1068         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
1069         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
1071 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
1073         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
1074         to be escaped.
1076 2017-11-04  Florian Weimer  <fweimer@redhat.com>
1078         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
1080 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1082         * math/math.h [__HAVE_DISTINCT_FLOAT16
1083         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1084         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1085         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1086         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
1087         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
1088         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
1089         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1090         (__MATH_TG_F32): New macro.
1091         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1092         (__MATH_TG_F64X): Likewise.
1093         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1094         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
1096 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
1098         * po/de.po: Update translations.
1099         * po/ru.po: Likewise.
1101 2017-11-03  Florian Weimer  <fweimer@redhat.com>
1103         * manual/filesys.texi (Hard Links): Document linkat.
1105 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1107         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
1108         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1109         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1110         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1111         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1112         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1113         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
1114         the same as _Float128.
1115         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1116         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1117         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
1119         * stdlib/stdlib.h
1120         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
1121         Declare.
1122         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
1123         Likewise.
1124         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
1125         Likewise.
1126         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1127         (strtof32x): Likewise.
1128         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1129         (strtof64x): Likewise.
1130         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1131         (strtof128x): Likewise.
1132         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1133         (strfromf16): Likewise.
1134         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1135         (strfromf32): Likewise.
1136         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1137         (strfromf64): Likewise.
1138         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1139         (strfromf32x): Likewise.
1140         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1141         (strfromf64x): Likewise.
1142         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1143         (strfromf128x): Likewise.
1144         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1145         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1146         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1147         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1148         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1149         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1151 2017-11-03  Richard Henderson  <rth@twiddle.net>
1153         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1155 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1157         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1159 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1161         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1162         DT_TLSDESC_GOT initialization.
1163         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1164         (_dl_tlsdesc_resolve_hold): Likewise.
1165         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1166         (_dl_tlsdesc_resolve_hold): Likewise.
1167         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1168         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1170 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1172         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1174 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1176         [BZ #18572]
1177         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1178         non-lazily for R_ARM_TLS_DESC.
1180 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1182         [BZ #17078]
1183         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1184         R_ARM_TLS_DESC case.
1185         (elf_machine_lazy_rel): Remove the prelink check.
1187 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1189         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1190         DT_TLSDESC_GOT initialization.
1191         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1192         (_dl_tlsdesc_resolve_rela): Likewise.
1193         (_dl_tlsdesc_resolve_hold): Likewise.
1194         (_dl_tlsdesc_undefweak): Remove ldar.
1195         (_dl_tlsdesc_dynamic): Likewise.
1196         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1197         (_dl_tlsdesc_resolve_rela): Likewise.
1198         (_dl_tlsdesc_resolve_hold): Likewise.
1199         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1200         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1201         (_dl_tlsdesc_resolve_rela): Likewise.
1202         (_dl_tlsdesc_resolve_hold): Likewise.
1204 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1206         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1207         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1209 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1211         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1212         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1214 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1216         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1217         Declare.
1218         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1219         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1220         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1221         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1222         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1223         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1224         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1225         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1226         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1227         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1228         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1230 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1232         [BZ #22382]
1233         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1234         * localedata/locales/tpi_PG: Add standard header.
1236 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1238         test-errno-linux: quotactl can fail with EPERM in containers.
1239         * sysdeps/unix/sysv/linux/test-errno-linux.c
1240         (LIST, LIST_FORWARD): New macros.
1241         (check_error_in_list): New function.
1242         (test_wrp_rv): Accept list of permitted error codes.
1243         (test_wrp_rv2): Remove.
1244         (test_wrp): Call test_wrp_rv with list of error codes.
1245         (test_wrp2): Accept list of error codes.
1246         (do_test): Adjust.  Allow EPERM for quotactl.
1248 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1250         * stdio-common/bug16.c (do_test): Use array_length.
1251         * stdio-common/errlist.c (_sys_nerr): Likewise.
1252         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
1253         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
1254         * stdio-common/psiginfo.c (psiginfo): Use array_length.
1255         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
1256         (do_test): Use array_length.
1257         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
1258         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
1259         * stdio-common/tst-printf-round.c (do_test): Likewise.
1260         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
1261         (CHECK): Use array_length.
1262         * stdio-common/tstdiomisc.c (t3, F): Likewise.
1263         * stdio-common/tstscanf.c (main): Likewise.
1264         * stdio-common/vfprintf.c (process_string_arg): Likewise.
1266 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1268         Add array_length and array_end macros.
1269         * include/array_length.h: New file.
1271 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1273         [BZ #22332]
1274         * posix/tst-glob-tilde.c (do_noescape): New variable.
1275         (one_test): Process it.
1276         (do_test): Set do_noescape.  Add unescaping test case.
1278 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
1280         * math/complex.h
1281         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
1282         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
1283         with appropriate macros defined and undefined.
1284         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
1285         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1286         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
1287         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1288         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
1289         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1290         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
1291         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1292         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
1293         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1295         * math/complex.h
1296         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
1297         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
1298         that for long double.  Do not condition define and undefine of
1299         _Mdouble_complex_ on [__CFLOAT128].
1301 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1303         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1304         of <sysdeps/generic/sysdep.h>.
1305         (ALIGNARG): Removed.
1306         (ASM_SIZE_DIRECTIVE): Likewise.
1307         (ENTRY): Likewise.
1308         (END): Likewise.
1309         (ENTRY_CHK): Likewise.
1310         (END_CHK): Likewise.
1311         (syscall_error): Likewise.
1312         (mcount): Likewise.
1313         (PSEUDO_END): Likewise.
1314         (L): Likewise.
1315         (atom_text_section): Likewise.
1316         * sysdeps/x86/sysdep.h: New file.
1317         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1318         of <sysdeps/generic/sysdep.h>.
1319         (ALIGNARG): Removed.
1320         (ASM_SIZE_DIRECTIVE): Likewise.
1321         (ENTRY): Likewise.
1322         (END): Likewise.
1323         (ENTRY_CHK): Likewise.
1324         (END_CHK): Likewise.
1325         (syscall_error): Likewise.
1326         (mcount): Likewise.
1327         (PSEUDO_END): Likewise.
1328         (L): Likewise.
1329         (atom_text_section): Likewise.
1331 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
1333         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
1334         category of LC_CTYPE set to "i18n:2012".
1335         * localedata/locales/i18n_ctype: Regenerate.
1337 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
1339         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
1340         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1341         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1342         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1344         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
1345         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1346         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1347         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
1349 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
1351         * math/complex.h
1352         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
1353         New macro.
1354         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
1355         Likewise.
1356         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
1357         Likewise.
1358         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1359         (CMPLXF32X): Likewise.
1360         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1361         (CMPLXF64X): Likewise.
1362         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1363         (CMPLXF128X): Likewise.
1365         * math/math.h
1366         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
1367         (__MATH_EVAL_FMT2): Define to add 0.0f.
1369 2017-10-31  Alan Modra  <amodra@gmail.com>
1371         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
1372         include sysdep.h.
1373         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1374         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1375         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
1376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
1377         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
1378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
1379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
1380         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
1381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
1382         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
1384         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
1385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
1386         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1387         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
1388         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
1389         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
1390         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1391         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
1392         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
1393         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1394         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1395         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1396         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1397         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1398         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1399         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1400         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1401         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
1402         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
1403         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
1404         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
1405         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
1406         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
1407         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
1408         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
1409         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
1410         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
1411         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
1412         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
1413         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
1414         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
1415         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
1416         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
1417         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
1418         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
1419         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
1420         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
1421         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1422         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1423         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
1424         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
1425         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
1426         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
1427         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1428         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
1429         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
1430         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
1431         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1432         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1433         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1434         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
1435         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
1436         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
1437         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
1438         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
1439         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
1440         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
1441         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
1443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
1444         include sysdep.h and math_ldbl_opt.h.
1446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
1447         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
1448         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1449         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
1450         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
1451         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
1452         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
1453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
1454         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
1455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
1456         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
1457         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
1458         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
1459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
1460         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
1461         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
1462         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
1463         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
1464         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
1465         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
1466         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
1467         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
1468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
1469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
1471         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1473 2017-10-31  Alan Modra  <amodra@gmail.com>
1475         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
1476         string/strncase_l.c, not string/strncase.c.
1477         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
1478         (libc_hidden_def): Redefine.
1480 2017-10-31  Alan Modra  <amodra@gmail.com>
1482         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
1483         (__STRCMP, STRCMP, __strcasecmp_l): Define.
1484         (__strcasecmp): Don't define.
1486 2017-10-31  Alan Modra  <amodra@gmail.com>
1488         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
1489         IS_IN (libc).
1490         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1491         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1492         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1494 2017-10-31  Alan Modra  <amodra@gmail.com>
1496         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
1497         USE_AS_STPNCPY.
1499 2017-10-31  Alan Modra  <amodra@gmail.com>
1501         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
1502         Redefine only when SHARED.
1504 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1506         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1507         Include <bits/math-finite.h> with appropriate macros defined and
1508         undefined.
1509         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1510         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1511         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1512         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1513         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1515         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
1516         [!_Mlong_double_] (_Mlong_double_): Likewise.
1517         [!_Mfloat16_] (_Mfloat16_): Likewise.
1518         [!_Mfloat32_] (_Mfloat32_): Likewise.
1519         [!_Mfloat64_] (_Mfloat64_): Likewise.
1520         [!_Mfloat128_] (_Mfloat128_): Likewise.
1521         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
1522         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
1523         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
1524         (_Mdouble_): Define without indirection through those macros.
1525         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
1526         [!_Mfloat128_] (_Mfloat128_): Likewise.
1527         [_Mlong_double_] (_Mlong_double_): Likewise.
1528         (_Mdouble_): Define without indirection through those macros.
1529         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
1530         not add -D_Mlong_double_=double.
1531         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
1532         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
1534 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1536         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
1538 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1540         * sysdeps/x86/libc-start.c: Reformat.
1542 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1544         [BZ #22353]
1545         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
1546         (1): Renamed to ...
1547         (L(Src0)): This.
1548         (L(Src1)): New.
1549         (L(Src2)): Likewise.
1550         (L(1)): Renamed to ...
1551         (L(Src3)): This.
1553 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1555         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
1556         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
1557         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
1558         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
1559         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
1560         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
1561         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
1562         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
1563         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
1564         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
1565         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
1566         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
1567         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
1568         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
1569         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
1570         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
1571         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
1572         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
1573         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
1574         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
1575         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
1576         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
1577         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
1578         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
1579         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
1580         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
1581         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
1582         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
1583         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
1584         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
1585         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
1586         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
1587         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
1588         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
1589         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
1590         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
1591         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
1592         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
1593         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
1594         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
1595         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
1596         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
1597         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
1598         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
1599         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
1600         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
1601         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
1602         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
1603         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
1604         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
1605         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
1606         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
1607         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
1608         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
1609         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
1610         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
1611         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
1612         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
1613         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
1614         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
1615         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
1616         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
1617         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
1618         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
1619         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
1620         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
1622 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1624         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
1625         always defined.
1626         * io/tst-mkdirat.c (do_test): Likewise.
1627         * io/tst-mkfifoat.c (do_test): Likewise.
1628         * io/tst-mknodat.c (do_test): Likewise.
1629         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
1630         * locale/programs/locale.c (select_dirs): Likewise.
1631         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
1632         * posix/bug-glob2.c (my_readdir): Likewise.
1633         * posix/tst-dir.c (main): Likewise.
1634         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
1635         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
1637 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1639         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
1640         just __USE_GNU.
1642 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1644         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
1645         Convert to support/test-driver.c.
1646         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
1647         New macro parameters.
1648         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
1649         * posix/tst-gnuglob.c: New file.
1650         * posix/tst-gnuglob64.c: Likewise.
1651         * posix/Makefile (tests): Add tst-gnuglob64.
1653 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
1655         [BZ #19485]
1656         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
1657         and use a better translation for March in “mon”.
1658         * localedata/locales/csb_PL: Use more ASCII to improve the
1659         readability of the source.
1661 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
1663         [BZ #13953]
1664         * localedata/locales/km_KH: Use ASCII as much
1665         as possible for better readability of the source and
1666         remove useless comments.
1667         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
1668         was commented out and apparently wrong anyway because it was
1669         using Lao characters. If Buddhist era should be used
1670         for km_KH, a native speaker should write the correct formaat
1671         for Khmer.
1672         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
1673         (According to CLDR, the first weekday for Cambodia is Sunday).
1674         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
1675         (These were using Lao characters which must be wrong. If we get
1676         the correct data from a native speaker, we could add it back, until
1677         then it is better not to have name_mr and name_mrs at all than
1678         having it wrong).
1680 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
1682         * locale/loadlocale.c: Correct size of
1683         _nl_value_type_LC_<category> arrays.
1685 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
1687         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1688         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
1689         with appropriate macros defined and undefined.
1690         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1691         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1692         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1693         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1694         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1696 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1698         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
1699         "-O2 -march=i586".
1701 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1703         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
1704         with lowercase letters to make it agree with CLDR.
1706 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1708         [BZ #15260]
1709         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
1710         first letters of yesstr and nostr in yesexpr and noexpr,
1711         not for the full words.
1712         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1713         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
1714         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
1715         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
1716         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
1717         first letters of yesstr and nostr in yesexpr and noexpr,
1718         until now only English was matched in yesexpr and noexpr.
1719         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
1720         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
1721         fil but not for tl. As tl and fil are very similar, using fil
1722         is probably better than using English.
1724 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
1726         [BZ #21706]
1727         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
1728         in yesstr and nostr.
1730 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
1732         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1733         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
1734         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
1735         Likewise.
1736         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
1737         Likewise.
1738         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
1739         Likewise.
1740         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
1741         Likewise.
1742         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1743         (SNANF128X): Likewise.
1745         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1746         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
1747         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1748         (HUGE_VAL_F32): Likewise.
1749         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1750         (HUGE_VAL_F64): Likewise.
1751         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1752         (HUGE_VAL_F32X): Likewise.
1753         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1754         (HUGE_VAL_F64X): Likewise.
1755         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1756         (HUGE_VAL_F128X): Likewise.
1758 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1760         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
1761         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
1762         for the br_FR locale.
1764 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1766         [BZ #21706]
1767         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
1769 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
1771         * locale/programs/record-status.h: Define globals, and function
1772         prototypes. Move function bodies...
1773         * locale/programs/record-status.c: ... to here. New file.
1774         * iconv/Makefile (iconv_prog-modules): Add record-status.
1775         * locale/Makefile (lib-modules): Likewise.
1776         * iconv/iconv_prog.c: Remove verbose.
1777         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
1778         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
1779         record a warning about ASCII compatibility.
1780         * locale/programs/ld-monetary.c (monetary_finish): If
1781         warn_int_curr_symbol is true then record a warning about the symbol
1782         not being in our ISO 4217 list.
1783         * locale/programs/locale.c: Include record-status.h. Remove verbose.
1784         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
1785         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
1786         (OPT_NO_WARN): Define.
1787         (OPT_WARN): Define.
1788         (options): Add entry for --no-warnings, and --warnings.
1789         (set_warnings): New function to enable/disable warnings.
1790         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
1791         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
1792         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
1793         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
1794         Pass flags to generate_locale.
1795         (generate_locale): Accept new flag argument and pass it to localedef
1796         invocation.
1797         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
1798         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
1800         * localedata/Makefile (test-input-data): Use full file name.
1801         * localedata/da_DK.in: Rename to...
1802         * localedata/da_DK.ISO-8859-1.in: ...this.
1803         * localedata/de_DE.in: Rename to...
1804         * localedata/de_DE.ISO-8859-1.in: ...this.
1805         * localedata/en_US.in: Rename to...
1806         * localedata/en_US.ISO-8859-1.in: ...this.
1807         * localedata/fr_FR.in: Rename to...
1808         * localedata/fr_FR.UTF-8.in: ... this.
1809         * localedata/hr_HR.in: Rename to...
1810         * localedata/hr_HR.ISO-8859-2.in: ...this.
1811         * localedata/hu_HU.in: Rename to...
1812         * localedata/hu_HU.UTF-8.in: ...this.
1813         * localedata/si_LK.in: Rename to...
1814         * localedata/si_LK.UTF-8.in: ...this.
1815         * localedata/sv_SE.in: Rename to...
1816         * localedata/sv_SE.ISO-8859-1.in: ...this.
1817         * localedata/tr_TR.in: Rename to...
1818         * localedata/tr_TR.UTF-8.in: ...this.
1819         * localedata/uk_UA.in: Rename to...
1820         * localedata/uk_UA.UTF-8.in: ...this.
1821         * localedata/sort-test.sh: Test file is locale name with the
1822         suffix.
1824         * localedata/unicode-gen/Makefile (check_i18n): Rename to
1825         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
1826         file.
1827         * localedata/locales/i18n_ctype: Regenerate.
1828         * localedata/locales/tr_TR: Likewise.
1829         * localedata/locales/translit_circle: Likewise.
1830         * localedata/locales/translit_cjk_compat: Likewise.
1831         * localedata/locales/translit_combining: Likewise.
1832         * localedata/locales/translit_compat: Likewise.
1833         * localedata/locales/translit_font: Likewise.
1834         * localedata/locales/translit_fraction: Likewise.
1836 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1838         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
1839         lxvd2x/stxvd2x with lvx/stvx.
1840         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1842 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1844         * include/alloc_buffer.h: Replace "if if " with "if " in
1845         comments.
1846         * sysdeps/mips/memcpy.S: Likkewise.
1847         * sysdeps/mips/memset.S: Likewise.
1848         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
1849         Likewise.
1850         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
1851         Likewise.
1852         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
1853         Likewise.
1855 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1857         [BZ #15261]
1858         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
1859         yesexpr and noexpr.
1860         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1861         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1862         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1863         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1864         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1865         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1866         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1868 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1870         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
1871         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1872         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1873         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1874         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1875         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
1876         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1877         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1878         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1879         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1880         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1881         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1883 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1885         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
1886         as possible for better readability of the source.
1887         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
1888         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
1889         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
1890         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
1891         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
1892         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
1893         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
1894         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
1895         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1896         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
1897         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
1898         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
1899         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
1900         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
1901         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
1902         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
1903         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
1904         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
1905         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
1906         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
1907         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
1908         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
1909         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
1910         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
1911         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
1912         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
1913         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
1914         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
1915         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
1916         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
1917         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
1918         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1919         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
1920         * localedata/locales/en_US (LC_MESSAGES): Likewise.
1921         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
1922         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
1923         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
1924         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
1925         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
1926         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
1927         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
1928         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
1929         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
1930         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
1931         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
1932         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
1933         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
1934         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
1935         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
1936         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
1937         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
1938         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
1939         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
1940         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1941         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1942         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
1943         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
1944         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1945         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
1946         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
1947         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
1948         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
1949         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
1950         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
1951         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
1952         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
1953         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
1954         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
1955         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
1956         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
1957         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
1958         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
1959         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
1960         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
1961         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1962         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
1963         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
1964         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
1965         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
1966         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
1967         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
1968         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
1969         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
1970         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1971         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
1972         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
1973         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
1974         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1975         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
1976         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
1977         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
1978         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
1979         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1980         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
1981         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
1982         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1983         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
1984         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1985         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
1986         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
1987         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
1988         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
1989         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
1990         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
1991         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
1992         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
1993         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
1994         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
1995         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
1996         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
1997         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
1998         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
1999         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
2000         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
2001         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
2002         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
2003         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
2004         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
2005         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
2006         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
2007         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
2008         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
2009         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
2010         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
2011         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
2012         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
2013         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
2014         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
2015         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
2016         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
2017         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
2018         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
2019         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
2020         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
2021         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
2022         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
2023         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
2024         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
2025         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
2026         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
2027         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
2028         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
2029         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
2030         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
2031         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
2032         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
2033         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
2034         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
2035         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
2036         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
2037         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
2038         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
2039         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
2040         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
2041         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
2042         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
2043         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
2044         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
2045         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
2046         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
2047         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
2048         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
2049         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
2050         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
2051         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
2052         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2053         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
2054         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
2055         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
2056         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
2057         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
2058         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
2059         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2060         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
2062 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2064         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
2065         (Use first letters of yesstr and nostr correctly instead of using
2066         full words).
2068 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2070         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
2071         (Use first letters of yesstr and nostr correctly).
2073 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2075         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
2076         also check for the first characters of yesstr and nostr.
2077         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
2078         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
2080 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2082         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
2083         also check for Chinese characters.
2085 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2087         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
2088         match also for the contents of yesstr and nostr. As the first letter
2089         of yesstr and nostr is equal, checking only for the first letter
2090         is not enough.
2092 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2094         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
2095         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
2097 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2099         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
2100         of main contributor.
2102 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2104         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
2105         instead of using English.
2107 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2109         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
2110         by including the first letters of nostr and yesexpr in the regexp.
2111         Also make it more readable by using ASCII where possible.
2113 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2115         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
2116         the first letter of nostr in the regexp. It agrees with CLDR now.
2117         Also make it more readable by using ASCII where possible.
2119 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2121         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
2122         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
2123         these strings contain a U+17D6 (which somewhat looks like a colon)
2124         instead of a real colon to separate the full words for “yes”
2125         and “no” from the single letter responses.
2127 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2129         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
2130         it agree with CLDR (include the first letter of yesstr).
2131         Also make it more readable by using ASCII where possible.
2133 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2135         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2136         and improve yesexpr and noexpr. The yesstr and nostr apparently
2137         came from CLDR. And CLDR has a bug there: these strings contain
2138         a U+0903 (which looks like a colon) instead of a real colon
2139         to separate the full words for “yes” and “no” from the single
2140         letter responses.
2142 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2144         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2145         letters of the full yesstr and nostr in yesexpr and noexpr.
2147 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2149         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2150         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2151         * localedata/locales/an_ES: Make source more readable by using ASCII
2152         where possible.
2154 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2156         [BZ #20952]
2157         * localedata/locales/yuw_PG: New file.
2158         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2159         * locale/iso-639.def: Add Yau (Uruwa).
2161 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2163         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2165 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2167         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2168         (__libc_realloc): Likewise.
2169         (_mid_memalign): Likewise.
2170         (__libc_calloc): Likewise.
2172 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2174         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2175         by adding the generic +1 and -0 as in all other locales.
2176         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2177         day names and make it more readable by using ASCII where possible.
2179 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2181         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2182         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2184 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2186         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2187         WNOHANG in waitpid call.
2189 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2191         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2192         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2194         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2195         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2196         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2197         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2198         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2199         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2200         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2201         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2202         variables.
2204 2017-10-23  Michael Collison  <michael.collison@arm.com>
2206         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2207         with __builtin_sqrt.
2208         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2209         with __builtin_sqrtf.
2210         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2211         with __builtin_ceil.
2212         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2213         with __builtin_ceilf.
2214         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2215         with __builtin_floor.
2216         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2217         with __builtin_floorf.
2218         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2219         with __builtin_fma.
2220         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2221         with __builtin_fmaf.
2222         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2223         with __builtin_fmax.
2224         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2225         with __builtin_fmaxf.
2226         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2227         with __builtin_fmin.
2228         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2229         with __builtin_fminf.
2230         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2231         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2232         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2233         with builtin_rint and conversion to int.
2234         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2235         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2236         with builtin_llround.
2237         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2238         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2239         with builtin_rint and conversion to long int.
2240         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2241         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2242         with builtin_lround.
2243         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2244         with builtin_lroundf.
2245         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2246         statements with __builtin_nearbyint.
2247         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2248         statements with __builtin_nearbyintf.
2249         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2250         with __builtin_rint.
2251         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2252         with __builtin_rintf.
2253         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
2254         with __builtin_round.
2255         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
2256         with __builtin_roundf.
2257         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
2258         with __builtin_trunc.
2259         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
2260         with __builtin_truncf.
2261         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
2262         and s_l[l]round[f].c too.
2264 2017-10-23  Alan Modra  <amodra@gmail.com>
2266         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
2267         Adjust stack after restoring regs.  Add missing LR cfi_restore.
2269 2017-10-23  Alan Modra  <amodra@gmail.com>
2271         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
2272         Move LR save and frame setup/teardown and LR restore to
2273         immediately around memset call.  Provide cfi.
2275 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2277         * sysdeps/i386/fpu/e_powf.S: Removed.
2278         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
2279         * sysdeps/i386/fpu/w_powf.c: Likewise.
2280         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
2281         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2282         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2283         Add e_powf-sse2.
2284         (CFLAGS-e_powf-sse2.c): New.
2285         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
2286         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
2288 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2290         * sysdeps/i386/fpu/e_log2f.S: Removed.
2291         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
2292         * sysdeps/i386/fpu/w_log2f.c: Likewise.
2293         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
2294         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2295         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2296         Add e_log2f-sse2.
2297         (CFLAGS-e_log2f-sse2.c): New.
2298         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
2299         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
2301 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2303         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2304         Add e_powf-fma.
2305         (CFLAGS-e_powf-fma.c): New.
2306         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
2307         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
2309 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2311         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2312         Add e_log2f-fma.
2313         (CFLAGS-e_log2f-fma.c): New.
2314         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
2315         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
2317 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2319         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2320         Add e_logf-fma.
2321         (CFLAGS-e_logf-fma.c): New.
2322         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
2323         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
2325 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2327         * sysdeps/i386/fpu/e_logf.S: Removed.
2328         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
2329         * sysdeps/i386/fpu/w_logf.c: Likewise.
2330         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
2331         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
2332         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2333         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2334         Add e_logf-sse2.
2335         (CFLAGS-e_logf-sse2.c): New.
2336         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
2337         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
2339 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2341         * sysdeps/i386/fpu/e_exp2f.S: Removed.
2342         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
2343         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
2344         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2345         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2346         Add e_exp2f-sse2.
2347         (CFLAGS-e_exp2f-sse2.c): New.
2348         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
2349         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
2351 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2353         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2354         Add e_exp2f-fma.
2355         (CFLAGS-e_exp2f-fma.c): New.
2356         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
2357         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
2359 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2361         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
2362         * sysdeps/i386/fpu/e_expf.S: Likewise.
2363         * sysdeps/i386/fpu/math_errf.c: Likewise.
2364         * sysdeps/i386/fpu/w_expf.c: Likewise.
2365         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
2366         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2367         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
2368         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
2369         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2370         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2371         Remove e_expf-ia32.
2372         (CFLAGS-e_expf-sse2.c): New.
2373         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
2374         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
2376 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2378         * sysdeps/x86_64/fpu/e_expf.S: Removed.
2379         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
2380         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
2381         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
2382         e_expf.c.
2383         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
2384         New.
2385         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
2386         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
2387         Renamed to ...
2388         (__redirect_expf): This.
2389         (SYMBOL_NAME): Changed to expf.
2390         (__ieee754_expf): Renamed to ...
2391         (__expf): This.
2392         (__GI___expf): This.
2393         (__ieee754_expf): Add strong_alias.
2394         (__expf_finite): Likewise.
2395         (__expf): New.
2396         Include <sysdeps/ieee754/flt-32/e_expf.c>.
2398 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
2400         [BZ #22332]
2401         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
2402         unescaping.
2404 2017-10-21  Florian Weimer  <fweimer@redhat.com>
2406         * posix/Makefile (tests): Add tst-glob-tilde.
2407         (tests-special): Add tst-glob-tilde-mem.out
2408         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
2409         (tst-glob-tilde-mem.out): Add mtrace check.
2410         * posix/tst-glob-tilde.c: New file.
2412 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
2414         * bits/floatn-common.h: New file.
2415         * math/Makefile (headers): Add bits/floatn-common.h.
2416         * bits/floatn.h: Include <bits/floatn-common.h>.
2417         * sysdeps/ia64/bits/floatn.h: Likewise.
2418         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2419         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
2420         * sysdeps/powerpc/bits/floatn.h: Likewise.
2421         * sysdeps/x86/bits/floatn.h: Likewise.
2423 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2425         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
2426         indicates whether compiler emits an warning for alias for
2427         functions with incompatible types.
2429         [BZ #22273]
2430         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
2431         the auxiliary process is terminated by a signal before calling _exit
2432         or execve.
2434 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2436         [BZ #21265]
2437         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
2438         New.
2439         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
2440         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
2441         and bit_arch_XSAVEC_Usable if needed.
2442         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
2443         and bit_arch_Use_dl_runtime_resolve_opt.
2444         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
2445         Removed.
2446         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
2447         (bit_arch_Prefer_No_AVX512): Updated.
2448         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
2449         (bit_arch_XSAVEC_Usable): New.
2450         (STATE_SAVE_OFFSET): Likewise.
2451         (STATE_SAVE_MASK): Likewise.
2452         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
2453         (cpu_features): Add xsave_state_size and xsave_state_full_size.
2454         (index_arch_Use_dl_runtime_resolve_opt): Removed.
2455         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
2456         (index_arch_XSAVEC_Usable): New.
2457         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2458         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
2459         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
2460         is enabled.
2461         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
2462         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
2463         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
2464         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
2465         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
2466         _dl_runtime_resolve_xsavec.
2467         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
2468         Removed.
2469         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
2470         instead of VEC_SIZE.
2471         (REGISTER_SAVE_BND0): Removed.
2472         (REGISTER_SAVE_BND1): Likewise.
2473         (REGISTER_SAVE_BND3): Likewise.
2474         (REGISTER_SAVE_RAX): Always defined to 0.
2475         (VMOV): Removed.
2476         (_dl_runtime_resolve_avx): Likewise.
2477         (_dl_runtime_resolve_avx_slow): Likewise.
2478         (_dl_runtime_resolve_avx_opt): Likewise.
2479         (_dl_runtime_resolve_avx512): Likewise.
2480         (_dl_runtime_resolve_avx512_opt): Likewise.
2481         (_dl_runtime_resolve_sse): Likewise.
2482         (_dl_runtime_resolve_sse_vex): Likewise.
2483         (USE_FXSAVE): New.
2484         (_dl_runtime_resolve_fxsave): Likewise.
2485         (USE_XSAVE): Likewise.
2486         (_dl_runtime_resolve_xsave): Likewise.
2487         (USE_XSAVEC): Likewise.
2488         (_dl_runtime_resolve_xsavec): Likewise.
2489         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
2490         Removed.
2491         (_dl_runtime_resolve_avx512_opt): Likewise.
2492         (_dl_runtime_resolve_avx): Likewise.
2493         (_dl_runtime_resolve_avx_opt): Likewise.
2494         (_dl_runtime_resolve_sse): Likewise.
2495         (_dl_runtime_resolve_sse_vex): Likewise.
2496         (_dl_runtime_resolve_fxsave): New.
2497         (_dl_runtime_resolve_xsave): Likewise.
2498         (_dl_runtime_resolve_xsavec): Likewise.
2500 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
2502         [BZ #22320]
2503         CVE-2017-15670
2504         * posix/glob.c (__glob): Fix one-byte overflow.
2506 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2508         * malloc/malloc.c (sysdep-cancel.h): Add include.
2510 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2512         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
2514 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
2516         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
2517         (tests): Remove $(objpfx)ga_test depdendency.
2518         * resolv/ga_test.c: Remove file.
2520 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2522         [BZ #18812]
2523         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
2524         * localedata/locales/kab_DZ: New file.
2526 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2528         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
2529         _dl_relocate_static_pie instead of _dl_start to compute load
2530         address in static PIE.
2532 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2534         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
2536 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2538         [BZ #13605]
2539         * localedata/SUPPORTED: Add shn_MM/UTF-8.
2540         * localedata/locales/shn_MM: New file.
2542 2017-10-20  Florian Weimer  <fweimer@redhat.com>
2544         [BZ #22321]
2545         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
2546         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
2547         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
2548         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
2549         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
2550         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
2552 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2554         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2556 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
2558         * sysdeps/mips/ieee754/bits/floatn.h: New file.
2560         [BZ #22322]
2561         * sysdeps/mips/bits/long-double.h: Move to ....
2562         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
2564 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
2566         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
2568 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
2569             H.J. Lu  <hongjiu.lu@intel.com>
2571         [BZ #22299]
2572         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
2573         GLRO(dl_platform) to NULL.
2574         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
2575         (modules-names): Add tst-platformmod-1 and
2576         x86_64/tst-platformmod-2.
2577         (CFLAGS-tst-platform-1.c): New.
2578         (CFLAGS-tst-platformmod-1.c): Likewise.
2579         (CFLAGS-tst-platformmod-2.c): Likewise.
2580         (LDFLAGS-tst-platformmod-2.so): Likewise.
2581         ($(objpfx)tst-platform-1): Likewise.
2582         ($(objpfx)tst-platform-1.out): Likewise.
2583         (tst-platform-1-ENV): Likewise.
2584         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
2585         * sysdeps/x86_64/tst-platform-1.c: New file.
2586         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
2587         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
2589 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
2591         [BZ #13994]
2592         * locale/iso-639.def: Add Karbi.
2593         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
2594         * localedata/locales/mjw_IN: New file.
2596 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
2598         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
2599         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2600         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
2601         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
2602         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2603         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2604         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
2605         <bits/floatn.h>.
2606         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2607         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2608         * manual/math.texi (Mathematics): Document additional architecture
2609         support for _Float128.
2610         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2611         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2612         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2613         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2614         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2615         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2616         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2617         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2618         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2619         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2620         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2621         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2622         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2623         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2624         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2626 2017-10-18  Renlin Li  <renlin.li@arm.com>
2628         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
2629         _DYNAMIC symbol to calculate load address.
2631 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
2633         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
2634         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
2635         summary bits.
2636         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
2637         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
2639 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
2641         [BZ #16777]
2642         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
2643         and improve readability by using more ASCII.
2644         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
2645         and improve readability by using more ASCII.
2647 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
2649         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
2650         not all targets support atomics on bool.
2652 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
2654         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
2655         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
2656         __f128.
2657         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2658         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
2659         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2660         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
2661         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2662         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
2664 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2666         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
2667         defines.
2669 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2671         [BZ #22159]
2672         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
2673         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
2674         (do_check_remalloced_chunk): Fix build bug.
2675         (do_check_malloc_state): Add assert that checks arena->top.
2676         (malloc_consolidate): Remove initialization.
2677         (int_mallinfo): Remove call to malloc_consolidate.
2678          (__libc_mallopt): Clarify why malloc_consolidate is needed.
2680 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2682         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
2683         (have_fastchunks): Remove.
2684         (clear_fastchunks): Remove.
2685         (set_fastchunks): Remove.
2686         (malloc_state): Add have_fastchunks.
2687         (malloc_init_state): Use have_fastchunks.
2688         (do_check_malloc_state): Remove incorrect invariant checks.
2689         (_int_malloc): Use have_fastchunks.
2690         (_int_free): Likewise.
2691         (malloc_consolidate): Likewise.
2693 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2695         * malloc/malloc.c (tcache_put): Inline.
2696         (tcache_get): Inline.
2698 2017-10-17  Jordi Mallach  <jordi@gnu.org>
2700         Aurelien Jarno  <aurelien@aurel32.net>
2701         [BZ #2522]
2702         * localedata/locales/ca_ES@valencia: New file.
2703         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
2705 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
2707         [BZ #22296]
2708         * math/math.h: Let signbit use the builtin in C++ mode with gcc
2709         < 6.x
2711 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2713         * scripts/build-many-glibcs.py (Context.add_all_configs):
2714         Add arm-linux-gnueabihf multiarch extra_glibcs.
2716         * sysdeps/generic/ifunc-init.h: New file.
2717         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
2719 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
2721         [BZ #22019]
2722         * localedata/locales/el_GR: Set n_cs_precedes to 0.
2723         * localedata/locales/el_CY: copy "el_GR" because it is identical.
2724         * stdlib/tst-strfmon_l.c: adapt test case.
2726 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2728         * sysdeps/generic/float128-abi.h: New file.
2729         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
2730         non-__prefixed symbols to ....
2731         * math/Versions: ... here.  Include <float128-abi.h>.
2732         * stdlib/Versions ... and here.  Include <float128-abi.h>
2734 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2736         * version.h (VERSION): Switch to ".9000" as the development
2737         version suffix.
2739 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2741         [BZ #22050]
2742         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
2743         compat_symbol_reference to access non-default version.
2745 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2747         * malloc/Makefile (others-extras): Set to mcheck-init.o.
2749 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
2751         * include/shlib-compat.h (compat_symbol_reference): Update
2752         comment.
2754 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2756         * math/Makefile (test-types): Add
2757         $(type-float128-$(float128-alias-fcts)).
2758         * math/test-float128.h (TYPE_STR): Define conditional on
2759         [FLT128_MANT_DIG == LDBL_MANT_DIG].
2760         (ULP_IDX): Likewise.
2761         (ULP_I_IDX): Likewise.
2763         * stdlib/strtold.c: Include <bits/floatn.h>
2764         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
2765         and later undefine as macro.  Define as weak alias if
2766         [!USE_WIDE_CHAR].
2767         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
2768         and later undefine as macro.  Define as weak alias if
2769         [USE_WIDE_CHAR].
2770         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
2771         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
2772         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2773         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2774         Define and later undefine as macro.  Define as weak alias if
2775         [USE_WIDE_CHAR].
2776         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
2777         <bits/floatn.h>.
2778         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
2779         Define and later undefine as macro.  Define as weak alias if
2780         [!USE_WIDE_CHAR].
2781         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2782         Define and later undefine as macro.  Define as weak alias if
2783         [USE_WIDE_CHAR].
2785 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
2787         * localedata/collate-test.c (allocate_arrays): Don't use \n in
2788         record_verbose messages.
2790 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2792         [BZ #22052]
2793         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
2794         to silence -O3 -Wall warning with GCC 7.
2796 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
2798         * Makeconfig (+link-static-before-libc): Use the first of
2799         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
2800         * gmon/Makefile (tests): Add tst-gmon-static.
2801         (tests-static): Likewise.
2802         (CFLAGS-tst-gmon-static.c): New.
2803         (CRT-tst-gmon-static): Likewise.
2804         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
2805         (tst-gmon-static-ENV): Likewise.
2806         (tests-special): Likewise.
2807         ($(objpfx)tst-gmon-static.out): Likewise.
2808         (clean-tst-gmon-static-data): Likewise.
2809         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
2810         * gmon/tst-gmon-static-gprof.sh: New file.
2811         * gmon/tst-gmon-static.c: Likewise.
2813 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
2815         [BZ #22295]
2816         * locale/programs/linereader.c (get_string): Don't warn on
2817         non-symbolic character.
2819         [BZ #22294]
2820         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
2821         int_curr_symbol.
2823         [BZ #22292]
2824         * locale/programs/record-status.h: New file
2825         * locale/programs/locale.c: Add comment.
2826         * locale/programs/charmap-dir.c: Don't include error.h.
2827         (charmap_opendir): Use record_error.
2828         * locale/programs/charmap.c: Don't include error.h.
2829         (charmap_read): Use record_error, and record_warning.
2830         (parse_charmap): Likewise.
2831         * locale/programs/ld-address.c: Don't include error.h.
2832         (address_finish): Use record_error, and record_warning.
2833         * locale/programs/ld-collate.c: Don't include error.h.
2834         (collate_finish): Use record_error, and record_error_at_line.
2835         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
2836         (ctype_class_new): Likewise.
2837         (ctype_map_new): Likewise.
2838         (set_one_default): Likewise.
2839         (set_class_defaults): Likewise.
2840         (translit_flatten): Likewise.
2841         (allocate_arrays): Use record_error, and record_verbose.
2842         * locale/programs/ld-identification.c: Don't include error.h.
2843         (indentation_finish): Use record_error and record_warning.
2844         * locale/programs/ld-measurement.c: Don't include error.h.
2845         (measurement_finish): Use record_error.
2846         * locale/programs/ld-messages.c
2847         (message_finish): Likewise.
2848         * locale/programs/ld-monetary.c
2849         (monetary_finish): Likewise.
2850         * locale/programs/ld-name.c (name_finish): Use record_error
2851         and record_warning.
2852         * locale/programs/ld-numeric.c
2853         (numeric_finish): Use record_error.
2854         * locale/programs/ld-paper.c: Don't include error.h.
2855         (paper_finish): Use record_error.
2856         * locale/programs/ld-telephone.c: Don't include error.h.
2857         (telephone_finish): Use record_error.
2858         * locale/programs/ld-time.c (time_finish): Likewise.
2859         * locale/programs/linereader.h (lr_error): Make inline func.
2860         * locale/programs/localedef.c: Define recorded_warning_count,
2861         and recorded_error_count.
2862         (main): Use record_error. Use recorded_error_count and
2863         recorded_warning_count to issue correct error returns.
2864         (add_to_readlist): Use record_error.
2865         (find_locale): Likewise.
2866         (load_locale): Likewise.
2867         * locale/programs/localedef.h: Remove be_quiet
2868         and WITH_CUR_LOCALE.
2869         * locale/programs/locarchive.c (compare_from_file): Use
2870         record_error.
2871         * locale/programs/locfile.c (write_locale_data): Use
2872         record_error.
2873         * locale/programs/repertoire.c: Dont include error.h.
2874         (repertoire_complain): Use record_error.
2875         * localedata/tst-fmon.sh: Expect failures from localedef.
2876         * localedata/tst-locale.sh: Likewise.
2877         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
2879         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
2880         (REPORTS): Likewise.
2881         (check): Likewise.
2882         (i18n): Rename to...
2883         (i18n_ctype): ...this.
2884         (i18n-report): Rename to...
2885         (i18n_ctype-report): ...this.
2886         * localedata/locales/i18n_ctype: Regenerate.
2887         * localedata/locales/i18n: copy i18n_ctype.
2889 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2891         * stdlib/strfroml.c: Include <bits/floatn.h>.
2892         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
2893         Define before include of <stdlib.h> and undefine afterwards, then
2894         define as weak alias.
2896         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
2897         Undefine and restore default definition.  Use
2898         libm_alias_ldouble_other.
2900 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
2902         [BZ #22153]
2903         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
2904         in coredumps.
2906 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
2908         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
2909         Assign sym_map to be map for local symbols, as TLS relocations
2910         use sym_map to determine whether the symbol is defined and to
2911         extract the TLS information.
2912         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2913         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2915 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2917         [BZ #22189]
2918         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
2919         (math_force_eval): Add powerpc version.
2921         [BZ #22142]
2922         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
2923         -DBL_MAX.
2924         (do_test): Likewise.
2925         * stdio-common/tst-printf.sh: Likewise.
2926         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
2927         ifdef clause in order to set the carry bit right.  Replace r0 by
2928         0 without changing the behavior.
2930 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2932         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
2933         <libm-alias-ldouble.h>.
2934         (fabsl): Define using libm_alias_ldouble.
2935         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
2936         <libm-alias-ldouble.h>.
2937         (fabsl): Define using libm_alias_ldouble.
2939         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
2940         Remove conditional code.
2942         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
2943         Rename to __clog10_internal_l.
2944         (__clog10_internal_l): Define aliases using
2945         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
2946         with __clog10.
2948 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2950         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
2951         * benchtests/sincosf-inputs: New file.
2952         * benchtests/cosf-inputs: New file.
2953         * benchtests/sinf-inputs: New file.
2955 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2957         * posix/tst-spawn.c (do_test): Wait for both children.
2959 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2961         [BZ #22284]
2962         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
2963         tests-pie): Add tst-gmon-pie.
2964         (CFLAGS-tst-gmon-pie.c): New.
2965         (CRT-tst-gmon-pie): Likewise.
2966         (tst-gmon-pie-ENV): Likewise.
2967         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
2968         ($(objpfx)tst-gmon-pie.out): Likewise.
2969         (clean-tst-gmon-pie-data): Likewise.
2970         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
2971         * gmon/gmon.c [PIC]: Include <link.h>.
2972         [PIC] (callback): New function.
2973         (write_hist): Add an argument for load address.  Subtract load
2974         address from PCs.
2975         (write_call_graph): Likewise.
2976         (write_gmon): Call __dl_iterate_phdr to get load address, pass
2977         it to write_hist and write_call_graph.
2978         * gmon/tst-gmon-pie.c: New file.
2980 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2982         * math/Makefile (test-types-basic): New variable.
2983         (test-types): Likewise.
2984         (libm-test-support): Use $(test-types) instead of $(types).
2985         (libm-tests-base-normal): Likewise.
2986         (libm-tests-base-finite): Likewise.
2987         (libm-tests-base-inline): Likewise.
2988         (generated): Likewise.
2989         ($(objpfx)libm-test-support-$(t).c): Likewise.
2990         (libm-tests-for-type iterator): Likewise.
2991         (libm-test-support iterator): Likewise.
2992         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
2993         (ulp_idx): Use ULP_IDX.
2994         * math/test-ldouble.h: Include <float.h>.
2995         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
2996         (ULP_IDX): New macro.
2997         (ULP_I_IDX): Likewise.
2998         * math/test-double.h (ULP_IDX): Likewise.
2999         (ULP_I_IDX): Likewise.
3000         * math/test-float.h (ULP_IDX): Likewise.
3001         (ULP_I_IDX): Likewise.
3002         * math/test-float128.h (ULP_IDX): Likewise.
3003         (ULP_I_IDX): Likewise.
3005 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3007         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
3008         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
3009         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
3010         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
3011         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
3012         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
3013         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
3014         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
3015         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
3016         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
3017         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
3018         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
3019         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
3020         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3021         (SINGLE_THREAD_BY_GLOBAL): Define.
3022         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3023         Likewise.
3024         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3025         Likewise.
3026         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3027         Likewise.
3028         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3029         Likewise.
3030         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
3031         (SINGLE_THREAD_BY_GLOBAL): Likewise.
3032         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
3033         Likewise.
3035 2017-10-11  Andreas Schwab  <schwab@suse.de>
3037         * nis/Makefile (aux): Remove.
3038         * nscd/Makefile (aux): Add nscd_hash.
3039         (nscd-modules): Likewise.
3040         ($(objpfx)nscd): Don't depend on libnsl.
3041         * nscd/nscd_hash.c: New file.
3042         * nscd/nscd_hash.h: Likewise.
3043         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
3044         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
3045         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
3046         instead of <nis/rpcsvc/nis.h>.
3047         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
3049 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3051         [BZ #22078]
3052         Avoid large NSS buffers with many addresses, aliases.
3053         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
3054         using dynarrays and struct alloc_buffer.
3055         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
3056         (tst-nss-files-hosts-multi): Link with -ldl.
3057         * nss/tst-nss-files-hosts-multi.c: New file.
3059 2017-10-11  Florian Weimer  <fweimer@redhat.com>
3061         [BZ #18023]
3062         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
3063         scratch_buffer.  Eliminate gotos.
3065 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
3067         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
3068         libm_alias_ldouble_other.
3069         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
3070         undefine and redefine.
3071         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3072         (exp10l): Do not define here.
3073         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
3074         (weak_alias): Undefine and redefine.
3075         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
3076         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3077         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
3078         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
3080         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
3081         [!__fma] (fma): Define using libm_alias_double.
3082         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
3083         [!__fmaf] (fmaf): Define using libm_alias_float.
3084         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
3085         (fmal): Define using libm_alias_ldouble.
3087 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
3089         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
3090         New macro.
3091         (libm_alias_double_other): Likewise.
3092         (libm_alias_double_r): Use libm_alias_double_other_r.
3093         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
3094         New macro.
3095         (libm_alias_float_other): Likewise.
3096         (libm_alias_float_r): Use libm_alias_float_other_r.
3097         * sysdeps/generic/libm-alias-float128.h
3098         (libm_alias_float128_other_r): New macro.
3099         (libm_alias_float128_other): Likewise.
3100         (libm_alias_float128_r): Use libm_alias_float128_other_r.
3101         * sysdeps/generic/libm-alias-ldouble.h
3102         (libm_alias_ldouble_other_r): New macro.
3103         (libm_alias_ldouble_other): Likewise.
3104         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3105         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3106         (libm_alias_double_other_r): New macro.
3107         (libm_alias_double_other): Likewise.
3108         (libm_alias_double_r): Use libm_alias_double_other_r.
3109         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3110         (libm_alias_ldouble_other_r): New macro.
3111         (libm_alias_ldouble_other): Likewise.
3112         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3113         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
3114         [!USE_AS_COMPAT]: Use libm_alias_double_other.
3115         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
3116         [!USE_AS_COMPAT]: Use libm_alias_float_other.
3117         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
3118         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
3119         * math/w_exp2f.c: Use libm_alias_float_other.
3120         * math/w_expf.c: Likewise.
3121         * math/w_log2f.c: Likewise.
3122         * math/w_logf.c: Likewise.
3123         * math/w_powf.c: Likewise.
3124         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
3125         [!__exp2f]: Use libm_alias_float_other.
3126         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
3127         [!__expf]: Use libm_alias_float_other.
3128         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
3129         [!__log2f]: Use libm_alias_float_other.
3130         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
3131         [!__logf]: Use libm_alias_float_other.
3132         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
3133         [!__powf]: Use libm_alias_float_other.
3135 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3137         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3138         function.
3139         (_nss_files_gethostbyname3_r): Call it.
3141 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3143         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3144         error.  Remove default definition of declare_mgen_alias.
3145         [!declare_mgen_alias_r]: Likewise.
3146         * sysdeps/generic/math-type-macros-double.h
3147         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3148         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3149         (declare_mgen_alias_r): Likewise.
3150         * sysdeps/generic/math-type-macros-float128.h
3151         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3152         * sysdeps/generic/math-type-macros-ldouble.h
3153         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3154         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3155         macro.
3156         (declare_mgen_alias_r_s): Likewise.
3157         (declare_mgen_alias_r): Likewise.
3158         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3159         (lgamma_r): Define using libm_alias_double_r.
3160         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3161         (lgammaf_r): Define using libm_alias_float_r.
3162         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3163         (lgammal_r): Define using libm_alias_ldouble_r.
3164         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3165         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3167 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3169         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3170         extern declaration.
3172 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3174         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3176 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3178         [BZ #21326]
3179         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3180         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3181         * math/Makefile (test-math-cxx11): New test.
3182         * math/test-math-cxx11.cc: New file.
3184 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3186         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3188         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3189         call to allocate the slave pty file descriptor.
3191 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3193         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3194         [!__fma] (fma): Define using libm_alias_double.
3195         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3196         [!__fma] (fma): Define using libm_alias_double.
3198         * sysdeps/ieee754/float128/float128_private.h: Include
3199         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3200         (libm_alias_ldouble_r): Undefine and redefine.
3201         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3202         <libm-alias-ldouble.h>.
3203         (asinhl): Define using libm_alias_ldouble.
3204         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3205         <libm-alias-ldouble.h>.
3206         (atanl): Define using libm_alias_ldouble.
3207         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3208         <libm-alias-ldouble.h>.
3209         (cbrtl): Define using libm_alias_ldouble.
3210         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3211         <libm-alias-ldouble.h>.
3212         (ceill): Define using libm_alias_ldouble.
3213         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3214         <libm-alias-ldouble.h>.
3215         (copysignl): Define using libm_alias_ldouble.
3216         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3217         <libm-alias-ldouble.h>.
3218         (cosl): Define using libm_alias_ldouble.
3219         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3220         <libm-alias-ldouble.h>.
3221         (erfl): Define using libm_alias_ldouble.
3222         (erfcl): Likewise.
3223         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3224         <libm-alias-ldouble.h>.
3225         (expm1l): Define using libm_alias_ldouble.
3226         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3227         <libm-alias-ldouble.h>.
3228         (fabsl): Define using libm_alias_ldouble.
3229         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3230         <libm-alias-ldouble.h>.
3231         (floorl): Define using libm_alias_ldouble.
3232         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3233         <libm-alias-ldouble.h>.
3234         (fmal): Define using libm_alias_ldouble.
3235         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3236         <libm-alias-ldouble.h>.
3237         (frexpl): Define using libm_alias_ldouble.
3238         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3239         libm_alias_ldouble.
3240         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3241         <libm-alias-ldouble.h>.
3242         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3243         libm_alias_ldouble.
3244         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3245         <libm-alias-ldouble.h>.
3246         (getpayloadl): Define using libm_alias_ldouble.
3247         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3248         <libm-alias-ldouble.h>.
3249         (llrintl): Define using libm_alias_ldouble.
3250         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3251         <libm-alias-ldouble.h>.
3252         (llroundl): Define using libm_alias_ldouble.
3253         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
3254         <libm-alias-ldouble.h>.
3255         (logbl): Define using libm_alias_ldouble.
3256         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
3257         <libm-alias-ldouble.h>.
3258         (lrintl): Define using libm_alias_ldouble.
3259         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
3260         <libm-alias-ldouble.h>.
3261         (lroundl): Define using libm_alias_ldouble.
3262         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
3263         <libm-alias-ldouble.h>.
3264         (modfl): Define using libm_alias_ldouble.
3265         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
3266         <libm-alias-ldouble.h>.
3267         (nearbyintl): Define using libm_alias_ldouble.
3268         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
3269         <libm-alias-ldouble.h>.
3270         (nextafterl): Define using libm_alias_ldouble.
3271         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
3272         <libm-alias-ldouble.h>.
3273         (nextupl): Define using libm_alias_ldouble.
3274         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
3275         <libm-alias-ldouble.h>.
3276         (remquol): Define using libm_alias_ldouble.
3277         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
3278         <libm-alias-ldouble.h>.
3279         (rintl): Define using libm_alias_ldouble.
3280         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
3281         <libm-alias-ldouble.h>.
3282         (roundevenl): Define using libm_alias_ldouble.
3283         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
3284         <libm-alias-ldouble.h>.
3285         (roundl): Define using libm_alias_ldouble.
3286         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
3287         using libm_alias_ldouble.
3288         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
3289         <libm-alias-ldouble.h>.
3290         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
3291         Define using libm_alias_ldouble.
3292         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
3293         <libm-alias-ldouble.h>.
3294         (sincosl): Define using libm_alias_ldouble.
3295         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
3296         <libm-alias-ldouble.h>.
3297         (sinl): Define using libm_alias_ldouble.
3298         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
3299         <libm-alias-ldouble.h>.
3300         (tanhl): Define using libm_alias_ldouble.
3301         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
3302         <libm-alias-ldouble.h>.
3303         (tanl): Define using libm_alias_ldouble.
3304         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
3305         <libm-alias-ldouble.h>.
3306         (totalorderl): Define using libm_alias_ldouble.
3307         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
3308         <libm-alias-ldouble.h>.
3309         (totalordermagl): Define using libm_alias_ldouble.
3310         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
3311         <libm-alias-ldouble.h>.
3312         (truncl): Define using libm_alias_ldouble.
3313         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
3314         libm_alias_ldouble.
3315         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
3316         libm_alias_ldouble.
3317         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
3318         <libm-alias-ldouble.h>.
3319         (weak_alias): Do not undefine and redefine.
3320         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3321         (copysignl): Define with long_double_symbol only if [IS_IN
3322         (libc)].
3323         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
3324         <libm-alias-ldouble.h>.
3325         (weak_alias): Do not undefine and redefine.
3326         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3327         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
3328         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
3329         <libm-alias-ldouble.h>.
3330         (weak_alias): Do not undefine and redefine.
3331         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3332         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
3333         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
3334         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
3335         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
3336         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
3337         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
3338         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
3339         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
3340         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
3341         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
3342         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
3343         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
3344         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
3345         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
3346         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
3347         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
3348         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
3349         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
3350         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
3351         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
3352         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
3353         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
3354         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
3355         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
3356         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
3358 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
3360         [BZ #22111]
3361         * malloc/malloc.c (tcache_shutting_down): Use bool type.
3362         (tcache_thread_freeres): Set tcache_shutting_down before
3363         freeing the tcache.
3364         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
3365         * malloc/tst-malloc-tcache-leak.c: New file.
3367 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3369         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
3370         back to powerpc32 file.
3371         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3372         (memrchr): Add __memrchr_power8 to ifunc list.
3373         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
3374         extra bytes for unaligned inputs.
3376 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3378         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
3379         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
3380         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
3381         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
3382         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
3384 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3386         * sysdeps/arm/libm-test-ulps: Update.
3388         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
3389         <libm-alias-ldouble.h>.
3390         (asinhl): Define using libm_alias_ldouble.
3391         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
3392         <libm-alias-ldouble.h>.
3393         (cbrtl): Define using libm_alias_ldouble.
3394         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
3395         <libm-alias-ldouble.h>.
3396         (copysignl): Define using libm_alias_ldouble.
3397         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
3398         <libm-alias-ldouble.h>.
3399         (cosl): Define using libm_alias_ldouble.
3400         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
3401         <libm-alias-ldouble.h>.
3402         (erfl): Define using libm_alias_ldouble.
3403         (erfcl): Likewise.
3404         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
3405         <libm-alias-ldouble.h>.
3406         (fmal): Define using libm_alias_ldouble.
3407         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
3408         <libm-alias-ldouble.h>.
3409         (frexpl): Define using libm_alias_ldouble.
3410         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
3411         libm_alias_ldouble.
3412         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
3413         <libm-alias-ldouble.h>.
3414         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
3415         libm_alias_ldouble.
3416         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
3417         <libm-alias-ldouble.h>.
3418         (getpayloadl): Define using libm_alias_ldouble.
3419         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
3420         <libm-alias-ldouble.h>.
3421         (llrintl): Define using libm_alias_ldouble.
3422         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
3423         <libm-alias-ldouble.h>.
3424         (llroundl): Define using libm_alias_ldouble.
3425         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
3426         <libm-alias-ldouble.h>.
3427         (lrintl): Define using libm_alias_ldouble.
3428         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
3429         <libm-alias-ldouble.h>.
3430         (lroundl): Define using libm_alias_ldouble.
3431         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
3432         <libm-alias-ldouble.h>.
3433         (modfl): Define using libm_alias_ldouble.
3434         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
3435         <libm-alias-ldouble.h>.
3436         (nextupl): Define using libm_alias_ldouble.
3437         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
3438         <libm-alias-ldouble.h>.
3439         (remquol): Define using libm_alias_ldouble.
3440         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
3441         <libm-alias-ldouble.h>.
3442         (roundevenl): Define using libm_alias_ldouble.
3443         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
3444         <libm-alias-ldouble.h>.
3445         (roundl): Define using libm_alias_ldouble.
3446         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
3447         using libm_alias_ldouble.
3448         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
3449         <libm-alias-ldouble.h>.
3450         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
3451         <libm-alias-ldouble.h>.
3452         (setpayloadsigl): Define using libm_alias_ldouble.
3453         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
3454         <libm-alias-ldouble.h>.
3455         (sincosl): Define using libm_alias_ldouble.
3456         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
3457         <libm-alias-ldouble.h>.
3458         (sinl): Define using libm_alias_ldouble.
3459         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
3460         <libm-alias-ldouble.h>.
3461         (tanhl): Define using libm_alias_ldouble.
3462         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
3463         <libm-alias-ldouble.h>.
3464         (tanl): Define using libm_alias_ldouble.
3465         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
3466         <libm-alias-ldouble.h>.
3467         (totalorderl): Define using libm_alias_ldouble.
3468         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
3469         <libm-alias-ldouble.h>.
3470         (totalordermagl): Define using libm_alias_ldouble.
3471         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
3472         libm_alias_ldouble.
3473         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
3474         libm_alias_ldouble.
3476 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3478         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3479         memmove_falkor.
3480         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3481         (__libc_ifunc_impl_list): Likewise.
3482         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
3483         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
3485         * benchtests/bench-memmove-walk.c: New file.
3486         * benchtests/Makefile (string-benchset): Add it.
3488         * benchtests/bench-memset-walk.c: New file.
3489         * benchtests/Makefile (string-benchset): Add it.
3491         * benchtests/bench-memcpy-walk.c: New file.
3492         * benchtests/Makefile (string-benchset): Add it.
3494 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3496         nscd: Eliminate compilation time dependency in the build output.
3497         * nscd/nscd_stat.c (STATDATA_VERSION)
3498         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
3499         (STATDATA_VERSION_FULL): New macro definitions.
3500         (compilation): Remove.
3501         (struct statdata): Adjust version member.
3502         (send_stats): Set version from STATDATA_VERSION_FULL.
3503         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
3505 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3507         * configure.ac (--enable-add-ons): Remove option.
3508         (machine): Do not mention add-ons in comment.
3509         (LIBC_PRECONFIGURE): Likewise.
3510         (add_ons): Remove variable and sanity checks and logic to locate
3511         add-ons.
3512         (add_ons_automatic): Remove variable.
3513         (configured_add_ons): Likewise.
3514         (add_ons_sfx): Likewise.
3515         (add_ons_pfx): Likewise.
3516         (add_on_subdirs): Likewise.
3517         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
3518         consideration of add-ons in Implies handling.
3519         (sysdeps_add_ons): Likewise.
3520         * configure: Regenerated.
3521         * libidn/configure.ac: Remove.
3522         * libidn/configure: Likewise.
3523         * sysdeps/unix/inet/configure.ac: New file.
3524         * sysdeps/unix/inet/configure: New generated file.
3525         * sysdeps/unix/inet/Subdirs: Add libidn.
3526         * Makeconfig (sysdeps-srcdirs): Remove variable.
3527         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
3528         ($(common-objpfx)config.status): Do not depend on add-on files.
3529         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
3530         comment.
3531         (all-subdirs): Do not include $(add-on-subdirs).
3532         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
3533         * config.make.in (add-ons): Remove variable.
3534         (add-on-subdirs): Likewise.
3535         (sysdeps-add-ons): Likewise.
3536         * manual/Makefile (add-chapters): Remove.
3537         ($(objpfx)texis): Do not depend on $(add-chapters).
3538         (nonexamples): Do not handle $(add-chapters).
3539         (examples): Do not handle $(add-ons).
3540         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
3541         libc-texinfo.sh.
3542         * manual/install.texi (Installation): Do not mention add-ons.
3543         (--enable-add-ons): Do not document configure option.
3544         * INSTALL: Regenerated.
3545         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
3546         * manual/maint.texi (Hierarchy Conventions): Do not mention
3547         add-ons.
3548         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
3549         --enable-add-ons.
3550         * scripts/gen-sorted.awk: Do not handle Subdirs files from
3551         add-ons.
3552         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
3553         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
3555 2017-10-05  Andreas Schwab  <schwab@suse.de>
3557         [BZ #15142]
3558         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
3559         (_IO_flush_all_lockp): Always lock list_all_lock.
3560         (_IO_flush_all_linebuffered): Likewise.
3561         (_IO_unbuffer_all): Likewise.
3563 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3565         [BZ #15436]
3566         Do not flush stdio streams on abort.
3567         * stdlib/abort.c (fflush): Remove macro definition.
3568         (abort): Remove stages related to stdio flushing.
3570 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3572         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
3574 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
3576         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3578 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3580         * support/support_format_hostent.c (support_format_hostent): Add
3581         more error information for NETDB_INTERNAL.
3583 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3585         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
3586         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
3587         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
3588         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
3589         AC_DEFINE if multi-arch is enabled.
3590         * sysdeps/i386/configure: Regenerated.
3592 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3594         * Makeconfig (+link-static-before-libc): Use
3595         $(DEFAULT-LDFLAGS-$(@F)).
3596         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
3597         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
3598         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
3600 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3602         * elf/Makefile (tests): Add tst-main1.
3603         (modules-names): Add tst-main1mod.
3604         ($(objpfx)tst-main1): New.
3605         (CRT-tst-main1): Likewise.
3606         (LDFLAGS-tst-main1): Likewise.
3607         (LDLIBS-tst-main1): Likewise.
3608         (tst-main1mod.so-no-z-defs): Likewise.
3609         * elf/tst-main1.c: New file.
3610         * elf/tst-main1mod.c: Likewise.
3612 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3614         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
3616 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3618         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
3619         (fma): Define using libm_alias_double.
3620         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
3621         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
3622         <math_ldbl_opt.h>.
3623         (fmal): Do not define as compat symbol here.
3624         * sysdeps/alpha/fpu/s_fma.c: New file.
3626 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3628         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
3630 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3632         [BZ #22229]
3633         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3634         <math_ldbl_opt.h>
3635         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3636         and libc.
3637         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
3638         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3639         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
3640         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
3641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3642         Include <math_ldbl_opt.h>
3643         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3644         and libc.
3645         (compat_symbol): Undefine and redefine.
3646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3647         <math_ldbl_opt.h>
3648         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3649         (compat_symbol): Undefine and redefine.
3650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
3651         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
3652         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
3653         GLIBC_2_1 for libm.
3654         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
3655         GLIBC_2.0 copysignl symbol.
3656         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3657         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
3659         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
3661 2017-10-04  Florian Weimer  <fweimer@redhat.com>
3663         * scripts/check-local-headers.sh: Ignore nspr4 header file
3664         directory in addition to nspr.
3666 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
3668         [BZ #17956]
3669         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
3670         * configure: Regenerate.
3671         * crypt/Makefile (nss-cpp-flags): New variable.
3672         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
3673         (CPPFLAGS-md5-crypt.c): Use it.
3674         * scripts/check-local-headers.sh: Ignore nspr header file
3675         directory.
3677 2017-10-04  Andreas Schwab  <schwab@suse.de>
3679         * nis/Makefile (services): Remove compat.
3680         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
3681         ($(objpfx)libnss_compat.so): Remove rule.
3682         * nis/Versions (libnss_compat): Remove.
3683         * nss/Makefile (services): Add compat.
3684         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
3685         * nss/Versions (libnss_compat): Define.
3686         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
3687         Don't include <rpc/types.h>.  Replace bool_t by bool.
3688         * nss/nss_compat/compat-initgroups.c: Likewise.
3689         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
3690         instead of <rpcsrv/ypclnt.h>.
3691         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
3692         yp_get_default_domain.
3693         * nss/nss_compat/compat-pwd.c: Likewise.
3694         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
3695         yp_get_default_domain.
3696         * nss/nss_compat/nisdomain.c: New file.
3697         * nss/nss_compat/nisdomain.h: Likewise.
3699 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3701         [BZ #22244]
3702         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
3703         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3705 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3707         [BZ #22243]
3708         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
3709         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
3711 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3713         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
3714         "movl main@GOTOFF(%ebx), %eax".
3716 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3718         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
3719         allow undefined _DYNAMIC in PIE libc.a.
3720         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3721         Likewse.
3723 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3725         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
3726         check _DYNAMIC.
3728 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3730         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
3731         check _DYNAMIC.
3733 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3735         * math/test-math-iscanonical.cc (error): Replace bool with int.
3737 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3739         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
3740         (modf): Define using libm_alias_double, only if [!__modf].
3741         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
3742         <libm-alias-double.h>.
3743         (modf): Define using libm_alias_double, only if [!__modf].
3744         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
3745         compat symbol here.
3746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
3747         (weak_alias): Do not undefine and redefine.
3748         (strong_alias): Likewise.
3749         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
3750         (weak_alias): Likewise.
3751         (strong_alias): Likewise.
3753         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
3754         (logb): Define using libm_alias_double, only if [!__logb].
3755         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
3756         <libm-alias-double.h>.
3757         (logb): Define using libm_alias_double, only if [!__logb].
3758         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
3759         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
3760         (weak_alias): Do not undefine and redefine.
3761         (strong_alias): Likewise.
3762         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
3763         (weak_alias): Likewise.
3764         (strong_alias): Likewise.
3766 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3768         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
3769         Check SHARED instead PIC.
3771 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3773         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
3774         [!__fmaf] (fmaf): Define using libm_alias_float.
3776         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
3777         (frexp): Define using libm_alias_double.
3778         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
3779         <libm-alias-double.h>.
3780         (frexp): Define using libm_alias_double.
3781         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
3782         compat symbol here.
3784 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3786         [BZ #22235]
3787         * math/math.h: Trivial fix for unbalanced parentheses in comment.
3788         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
3789         (CFLAGS-test-math-iscanonical.cc): New variable.
3790         * math/test-math-iscanonical.cc: New file.
3791         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
3792         Provide a C++ implementation based on function overloading,
3793         rather than using __MATH_TG, which uses C-only builtins.
3794         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
3795         Likewise.
3796         * sysdeps/powerpc/powerpc64le/Makefile
3797         (CFLAGS-test-math-iscanonical.cc): New variable.
3799 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3801         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
3802         (ceil): Define using libm_alias_double.
3803         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
3804         (floor): Define using libm_alias_double.
3805         * sysdeps/ieee754/dbl-64/s_llround.c: Include
3806         <libm-alias-double.h>.
3807         (llround): Define using libm_alias_double.
3808         * sysdeps/ieee754/dbl-64/s_lround.c: Include
3809         <libm-alias-double.h>.
3810         (lround): Define using libm_alias_double.
3811         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
3812         <libm-alias-double.h>.
3813         (nearbyint): Define using libm_alias_double.
3814         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
3815         <libm-alias-double.h>.
3816         (remquo): Define using libm_alias_double.
3817         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
3818         (rint): Define using libm_alias_double.
3819         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
3820         (round): Define using libm_alias_double.
3821         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
3822         (trunc): Define using libm_alias_double.
3823         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
3824         <libm-alias-double.h>.
3825         (ceil): Define using libm_alias_double.
3826         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
3827         <libm-alias-double.h>.
3828         (floor): Define using libm_alias_double.
3829         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
3830         <libm-alias-double.h>.
3831         (llround): Define using libm_alias_double.
3832         [_LP64] (lround): Likewise.
3833         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
3834         <libm-alias-double.h>.
3835         [!_LP64] (lround): Define using libm_alias_double.
3836         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
3837         <libm-alias-double.h>.
3838         (nearbyint): Define using libm_alias_double.
3839         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
3840         <libm-alias-double.h>.
3841         (remquo): Define using libm_alias_double.
3842         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
3843         <libm-alias-double.h>.
3844         (rint): Define using libm_alias_double.
3845         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
3846         <libm-alias-double.h>.
3847         (round): Define using libm_alias_double.
3848         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
3849         <libm-alias-double.h>.
3850         (trunc): Define using libm_alias_double.
3851         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
3852         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
3853         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
3854         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
3855         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
3856         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
3857         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
3858         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
3859         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
3861 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3863         * math/w_remainder.c: New file.
3864         * math/w_remainderf.c: New file.
3865         * math/w_remainderl.c: New file.
3867 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3869         * elf/rtld.c (BOOTSTRAP_MAP): New.
3870         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
3871         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3872         Likewise.
3873         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3874         Likewise.
3875         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3876         Likewise.
3878 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3880         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
3881         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
3882         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
3883         rtld_hidden_data_ver): Define to empty.
3884         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
3885         __assert_perror_fail): Likewise.
3886         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3887         (__rewinddir): Likewise.
3888         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3889         (__profile_frequency): Likewise.
3890         * include/setjmp.h (__sigsetjmp): Likewise.
3891         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
3892         __libc_sigaction): Likewise.
3893         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
3894         not set hidden attribute.
3895         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
3896         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
3897         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
3898         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
3899         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
3900         __fxstatat64): Likewise.
3901         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3902         (__uname): Likewise.
3903         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3904         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
3905         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
3906         (NO_RTLD_HIDDEN): Set.
3907         * sysdeps/mach/hurd/configure: Refresh.
3908         * config.h.in: Refresh.
3910 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
3912         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
3913         (atan): Define using libm_alias_double.
3914         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
3915         (tan): Define using libm_alias_double.
3916         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
3917         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
3919         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
3920         define as weak alias of __atan.  Do not define any aliases if
3921         [__atan].
3922         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
3923         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
3924         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
3925         as weak alias of __tan.  Do not define any aliases if [__tan].
3926         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
3927         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
3928         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
3929         __atan.
3930         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
3931         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
3932         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
3933         and define as weak alias of __atan.
3934         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
3935         __atan.
3936         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
3937         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
3938         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
3939         define as weak alias of __tan.
3941 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3943         * math/w_lgamma.c: New file.
3944         * math/w_lgammaf.c: New file.
3945         * math/w_lgammal.c: New file.
3947 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3949         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
3950         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
3951         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
3952         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
3953         * sysdeps/ieee754/flt-32/w_logf.c: New file.
3954         * sysdeps/ieee754/flt-32/w_powf.c: New file.
3955         * sysdeps/i386/fpu/w_log2f.c: New file.
3956         * sysdeps/i386/fpu/w_logf.c: New file.
3957         * sysdeps/i386/fpu/w_powf.c: New file.
3958         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
3959         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
3960         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
3962 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3963             H.J. Lu  <hongjiu.lu@intel.com>
3965         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
3966         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
3967         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
3968         * sysdeps/ieee754/flt-32/w_expf.c: New file.
3969         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
3970         the new expf code.
3971         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
3972         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
3973         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
3974         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
3975         * sysdeps/i386/fpu/w_exp2f.c: New file.
3976         * sysdeps/i386/fpu/w_expf.c: New file.
3977         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
3978         * sysdeps/x86_64/fpu/w_expf.c: New file.
3980 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3982         * math/Versions (logf): New libm symbol at GLIBC_2.27.
3983         (log2f): Likewise.
3984         (powf): Likewise.
3985         * math/w_log2f.c: New file.
3986         * math/w_logf.c: New file.
3987         * math/w_powf.c: New file.
3988         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
3989         * math/w_logf_compat.c (__logf_compat): Likewise.
3990         * math/w_powf_compat.c (__powf_compat): Likewise.
3991         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
3992         * sysdeps/ia64/fpu/e_logf.S: Likewise.
3993         * sysdeps/ia64/fpu/e_powf.S: Likewise.
3994         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3995         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3996         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3997         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3998         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3999         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4000         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4001         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4002         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4003         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4004         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4005         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4007         Likewise.
4008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4009         Likewise.
4010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4011         Likewise.
4012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4013         Likewise.
4014         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4015         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4016         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4017         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4018         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4019         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4020         Likewise.
4021         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4022         Likewise.
4023         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4024         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4025         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4027 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4029         * sysdeps/powerpc/powerpc64/multiarch/Makefile
4030         (sysdep_routines): Add memrchr_power8.
4031         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4032         (memrchr): Add __memrchr_power8 to list of memrchr functions.
4033         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
4034         New file.
4035         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
4036         (memrchr): Add __memrchr_power8 to ifunc list.
4037         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
4039 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4041         [BZ #18822]
4042         * sysdeps/unix/sysv/linux/posix_fadvise64.c
4043         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
4044         libc_hidden_def.
4045         * sysdeps/unix/sysv/linux/posix_fallocate64.c
4046         (__posix_fallocate64_l64): Likewise.
4048 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4050         [BZ #18822]
4051         * sysdeps/unix/sysv/linux/sched_setaffinity.c
4052         (__sched_setaffinity_new): Add libc_hidden_proto and
4053         libc_hidden_def.
4055 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4057         [BZ #18822]
4058         * include/glob.h (__glob64): Add libc_hidden_proto.
4059         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
4060         libc_hidden_def.
4062 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4064         [BZ #18822]
4065         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
4066         attribute_hidden.
4068 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4070         [BZ #18822]
4071         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
4073 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4075         [BZ #18822]
4076         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
4077         libc_hidden_def.
4079 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4081         [BZ #18822]
4082         * csu/version.c (__libc_print_version): Add attribute_hidden.
4084 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4086         [BZ #18822]
4087         * include/libc-internal.h (__init_misc): Add attribute_hidden.
4089 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4091         [BZ #18822]
4092         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
4094 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4096         [BZ #18822]
4097         * nscd/nscd_helper.c (__nis_hash): New prototype.
4099 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4101         [BZ #18822]
4102         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
4103         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
4104         libc_hidden_def.
4105         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
4106         * termios/tcgetattr.c (__tcgetattr): Likewise.
4108 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4110         [BZ #18822]
4111         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
4112         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
4113         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
4114         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
4115         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
4117 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4119         [BZ #18822]
4120         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
4122 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4124         [BZ #18822]
4125         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
4126         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
4128 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4130         [BZ #18822]
4131         * intl/hash-string.h (__hash_string): Add attribute_hidden.
4133 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4135         [BZ #18822]
4136         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4137         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4139 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4141         [BZ #18822]
4142         * include/ifreq.h: New file.
4143         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4144         (__ifreq): Likewise.
4145         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4146         (__ifreq): Likewise.
4148 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4150         [BZ #18822]
4151         * include/idna.h: New file.
4152         * inet/getnameinfo.c: Include <idna.h> instead of
4153         <libidn/idna.h>.
4154         (__idna_to_unicode_lzlz): Removed.
4155         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4156         <libidn/idna.h>.
4157         (__idna_to_ascii_lz): Removed.
4158         (__idna_to_unicode_lzlz): Likewise.
4160 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4162         [BZ #18822]
4163         * include/plural-exp.h: New file.
4164         * intl/plural-exp.c: Include <plural-exp.h> instead of
4165         "plural-exp.h".
4167 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4169         [BZ #18822]
4170         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4171         "getsourcefilter.h".
4172         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4173         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4174         "getsourcefilter.h".
4175         (__get_sol): Removed.
4177 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4179         [BZ #18822]
4180         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4181         to ...
4182         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4184 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4186         [BZ #18822]
4187         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4188         attribute_hidden.
4190 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4192         [BZ #18822]
4193         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4195 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4197         [BZ #18822]
4198         * include/search.h (__tdestroy): Add libc_hidden_proto.
4199         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4201 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4203         [BZ #18822]
4204         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4206 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4208         [BZ #18822]
4209         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4210         attribute_hidden.
4212 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4214         [BZ #18822]
4215         * include/signal.h (__kill): Add libc_hidden_proto.
4216         (__sigblock): Likewise.
4217         (__sigprocmask): Likewise.
4218         (__sigaltstack): Likewise.
4219         * signal/kill.c (__kill): Add libc_hidden_def.
4220         * signal/sigblock.c (__sigblock): Likewise.
4221         * signal/sigprocmask.c (__sigprocmask): Likewise.
4222         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4223         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4224         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4225         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4226         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4227         Likewise.
4228         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4229         Likewise.
4230         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4231         (__sigprocmask): Likewise.
4232         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4233         Likewise.
4234         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4235         (__sigprocmask): Likewise.
4236         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4237         Likewise.
4239 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4241         [BZ #18822]
4242         * include/string.h (__strsep): Add libc_hidden_proto.
4243         * string/strsep.c (__strsep): Add libc_hidden_def.
4245 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4247         [BZ #18822]
4248         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4249         attribute_hidden.
4250         (__spawni): Likewise.
4252 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4254         [BZ #18822]
4255         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
4256         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
4257         libc_hidden_def.
4259 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4261         [BZ #18822]
4262         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
4264 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4266         [BZ #18822]
4267         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
4268         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
4269         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4270         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
4271         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
4272         Likewise.
4273         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
4274         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
4276 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4278         [BZ #18822]
4279         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
4280         (__dcigettext): Likewise.
4282 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4284         [BZ #18822]
4285         * include/sys/sysinfo.h (__get_nprocs_conf): Add
4286         libc_hidden_proto.
4287         (__get_nprocs): Likewise.
4288         (__get_phys_pages): Likewise.
4289         (__get_avphys_pages): Likewise.
4290         (__get_child_max): Add attribute_hidden.
4291         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
4292         (__get_nprocs): Likewise.
4293         (__get_phys_pages): Likewise.
4294         (__get_avphys_pages): Likewise.
4295         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
4296         libc_hidden_def.
4297         (__get_nprocs): Likewise.
4298         (__get_phys_pages): Likewise.
4299         (__get_avphys_pages): Likewise.
4300         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
4301         libc_hidden_def.
4302         (__get_nprocs_conf): Likewise.
4303         (__get_phys_pages): Likewise.
4304         (__get_avphys_pages): Likewise.
4306 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4308         [BZ #18822]
4309         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
4310         attribute_hidden.
4311         (__netlink_close): Likewise.
4312         (__netlink_free_handle): Likewise.
4313         (__netlink_request): Likewise.
4315 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4317         [BZ #18822]
4318         * include/rpc/rpc.h (__rpc_thread_variables): Add
4319         attribute_hidden.
4320         (__rpc_thread_svc_cleanup): Likewise.
4321         (__rpc_thread_clnt_cleanup): Likewise.
4322         (__rpc_thread_key_cleanup): Likewise.
4324 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4326         [BZ #18822]
4327         * include/sys/uio.h (__readv): Add libc_hidden_proto.
4328         (__writev): Likewise.
4329         * misc/readv.c (__readv): Add libc_hidden_def.
4330         * misc/writev.c (__writev): Likewise.
4331         * sysdeps/posix/readv.c (__readv): Likewise.
4332         * sysdeps/posix/writev.c (__writev): Likewise.
4333         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
4334         (__readv): Likewise.
4335         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
4336         (__writev): Likewise.
4338 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4340         [BZ #18822]
4341         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
4342         (__regcomp): Add libc_hidden_proto.
4343         (__regexec): Likewise.
4344         (__regfree): Likewise.
4345         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
4346         (__regfree): Likewise.
4347         * posix/regexec.c (__regexec): Likewise.
4349 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4351         [BZ #18822]
4352         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
4353         (__getutent): Likewise.
4354         (__getutid): Likewise.
4355         (__getutline): Likewise.
4356         (__pututline): Likewise.
4357         (__getutent_r): Likewise.
4358         (__getutid_r): Likewise.
4359         (__getutline_r): Likewise.
4360         (__utmpname): Add attribute_hidden.
4361         (__setutent): Likewise.
4362         (__endutent): Likewise.
4363         * login/getutent.c (__getutent): Add libc_hidden_def.
4364         * login/getutent_r.c (__getutent_r): Likewise.
4365         (__pututline): Likewise.
4366         * login/getutid.c (__getutid): Likewise.
4367         * login/getutid_r.c (__getutid_r): Likewise.
4368         * login/getutline.c (__getutline): Likewise.
4369         * login/getutline_r.c (__getutline_r): Likewise.
4370         * login/updwtmp.c (__updwtmp): Likewise.
4372 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4374         [BZ #18822]
4375         * include/dirent.h (__opendir): Always add attribute_hidden.
4376         (__fdopendir): Likewise.
4377         (__closedir): Likewise.
4378         (__readdir): Likewise.
4379         (__readdir64): Add libc_hidden_proto.
4380         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
4381         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
4382         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
4383         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
4384         New alias.
4386 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4388         [BZ #18822]
4389         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
4390         * include/netdb.h (__gethostbyaddr_r): Likewise.
4391         (__gethostbyname_r): Likewise.
4392         (__gethostbyname2_r): Likewise.
4393         (__getnetbyaddr_r): Likewise.
4394         (__getnetbyname_r): Likewise.
4395         (__getservbyname_r): Likewise.
4396         (__getservbyport_r): Likewise.
4397         (__getprotobyname_r): Likewise.
4398         (__getprotobynumber_r): Likewise.
4399         (__getnetgrent_r): Likewise.
4400         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
4401         (__getrpcbynumber_r): Likewise.
4402         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
4404 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4406         [BZ #18822]
4407         * include/stdio.h (__fcloseall): Add attribute_hidden.
4408         (__getline): Likewise.
4409         (__path_search): Likewise.
4410         (__gen_tempname): Likewise.
4411         (__libc_message): Likewise.
4412         (__flockfile): Likewise.
4413         (__funlockfile): Likewise.
4414         (__fxprintf): Likewise.
4415         (__fxprintf_nocancel): Likewise.
4417 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4419         [BZ #18822]
4420         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
4421         (__sgetsgent_r): Likewise.
4423 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4425         [BZ #18822]
4426         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
4427         (__statfs64): Likewise.
4428         (__fstatfs64): Likewise.
4429         * include/sys/statvfs.h (__statvfs64): Likewise.
4430         (__fstatvfs64): Likewise.
4431         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
4432         (__statfs_filesize_max): Likewise.
4433         (__statfs_symlinks): Likewise.
4434         (__statfs_chown_restricted): Likewise.
4436 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4438         [BZ #18822]
4439         * include/time.h (__tzstring): Add attribute_hidden.
4440         (__tzfile_read): Likewise.
4441         (__tzfile_compute): Likewise.
4442         (__tzfile_default): Likewise.
4443         (__tzset_parse_tz): Likewise.
4444         (__offtime): Likewise.
4445         (__asctime_r): Likewise.
4446         (__tzset): Likewise.
4447         (__tz_convert): Likewise.
4448         (__getdate_r): Likewise.
4449         (__getclktck): Likewise.
4451 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4453         [BZ #18822]
4454         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
4455         (__nscd_unmap): Likewise.
4456         (__nscd_cache_search): Likewise.
4457         (__nscd_get_nl_timestamp): Likewise.
4458         (__nscd_getpwnam_r): Likewise.
4459         (__nscd_getpwuid_r): Likewise.
4460         (__nscd_getgrnam_r): Likewise.
4461         (__nscd_getgrgid_r): Likewise.
4462         (__nscd_gethostbyname_r): Likewise.
4463         (__nscd_gethostbyname2_r): Likewise.
4464         (__nscd_gethostbyaddr_r): Likewise.
4465         (__nscd_getai): Likewise.
4466         (__nscd_getgrouplist): Likewise.
4467         (__nscd_getservbyname_r): Likewise.
4468         (__nscd_getservbyport_r): Likewise.
4469         (__nscd_innetgr): Likewise.
4470         (__nscd_setnetgrent): Likewise.
4472 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4474         [BZ #18822]
4475         * include/gmp.h: Declare internal functions only if _ISOMAC is
4476         undefined.
4477         (__mpn_extract_double): Add attribute_hidden.
4478         (__mpn_extract_long_double): Likewise.
4479         (__mpn_extract_float128): Likewise.
4480         (__mpn_construct_float): Likewise.
4481         (__mpn_construct_double): Likewise.
4482         (__mpn_construct_long_double): Likewise.
4483         (__mpn_construct_float128): Likewise.
4484         (mpn_add_1): Likewise.
4485         (mpn_addmul_1): Likewise.
4486         (mpn_add_n): Likewise.
4487         (mpn_cmp): Likewise.
4488         (mpn_divrem): Likewise.
4489         (mpn_lshift): Likewise.
4490         (mpn_mul): Likewise.
4491         (mpn_mul_1): Likewise.
4492         (mpn_rshift): Likewise.
4493         (mpn_sub_1): Likewise.
4494         (mpn_submul_1): Likewise.
4495         (mpn_sub_n): Likewise.
4497 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4499         [BZ #18822]
4500         * include/wchar.h (__wcsnlen): Add attribute_hidden.
4501         (__wcscat): Likewise.
4502         (__btowc): Likewise.
4503         (__wcrtomb): Likewise.
4504         (__mbsrtowcs): Likewise.
4505         (__wcsrtombs): Likewise.
4506         (__mbsnrtowcs): Likewise.
4507         (__wcsnrtombs): Likewise.
4508         (__wcsncpy): Likewise.
4509         (__wcpncpy): Likewise.
4510         (__wmemcpy): Likewise.
4511         (__wmempcpy): Likewise.
4512         (__wmemmove): Likewise.
4513         (__wcschrnul): Likewise.
4514         (__vfwscanf): Likewise.
4515         (__vswprintf): Likewise.
4516         (__fwprintf): Likewise.
4517         (__vfwprintf): Likewise.
4519 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4521         [BZ #18822]
4522         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
4523         (__getgrgid_r): Likewise.
4524         (__getgrnam_r): Likewise.
4525         * include/pwd.h (__getpwuid_r): Likewise.
4526         (__getpwnam_r): Likewise.
4527         (__fgetpwent_r): Likewise.
4528         * include/shadow.h (__getspnam_r): Likewise.
4529         (__sgetspent_r): Likewise.
4530         (__fgetspent_r): Likewise.
4532 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4534         [BZ #18822]
4535         * include/unistd.h (__access): Add attribute_hidden.
4536         (__lseek64): Likewise.
4537         (__libc_pread64): Likewise.
4538         (__pipe2): Likewise.
4539         (__sleep): Likewise.
4540         (__chdir): Likewise.
4541         (__fchdir): Likewise.
4542         (__getcwd): Likewise.
4543         (__rmdir): Likewise.
4544         (__execvpe): Likewise.
4545         (__execve): Likewise.
4546         (__setsid): Likewise.
4547         (__getuid): Likewise.
4548         (__geteuid): Likewise.
4549         (__getgid): Likewise.
4550         (__getegid): Likewise.
4551         (__getgroups): Likewise.
4552         (__group_member): Likewise.
4553         (__ttyname_r): Likewise.
4554         (__isatty): Likewise.
4555         (__readlink): Likewise.
4556         (__unlink): Likewise.
4557         (__gethostname): Likewise.
4558         (__profil): Likewise.
4559         (__getdtablesize): Likewise.
4560         (__brk): Likewise.
4561         (__ftruncate): Likewise.
4562         (__ftruncate64): Likewise.
4564 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4566         [BZ #18822]
4567         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
4568         * argp/argp-fs-xinl.c: Likewise.
4569         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
4570         * argp/argp-parse.c: Include <argp.h>.
4571         * argp/argp-xinl.c: Likewise.
4572         * include/argp-fmtstream.h: New file.
4573         * include/argp.h (__argp_error): Add attribute_hidden.
4574         (__argp_failure): Likewise.
4575         (__argp_input): Likewise.
4576         (__argp_state_help): Likewise.
4578 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4580         [BZ #18822]
4581         * include/wchar.h (____wcstof_l_internal): New prototype.
4582         (____wcstod_l_internal): Likewise.
4583         (____wcstold_l_internal): Likewise.
4584         (____wcstol_l_internal): Likewise.
4585         (____wcstoul_l_internal): Likewise.
4586         (____wcstoll_l_internal): Likewise.
4587         (____wcstoull_l_internal): Likewise.
4588         (____wcstof128_l_internal): Likewise.
4589         * sysdeps/ieee754/float128/wcstof128.c
4590         (____wcstof128_l_internal): Removed.
4591         * sysdeps/ieee754/float128/wcstof128_l.c
4592         (____wcstof128_l_internal): Likewise.
4593         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
4594         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
4595         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
4596         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
4597         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
4598         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
4599         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
4600         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
4601         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
4602         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
4604 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4606         [BZ #18822]
4607         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
4608         instead of <sys/statvfs.h>.
4609         (__internal_statvfs): Removed.
4610         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
4611         instead of <sys/statvfs.h>.
4612         (__internal_statvfs64): Removed.
4613         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
4614         "internal_statvfs.h" instead of <sys/statvfs.h>.
4615         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
4616         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
4617         instead of <sys/statvfs.h>.
4618         (__internal_statvfs): Removed.
4619         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
4620         instead of <sys/statvfs.h>.
4621         (__internal_statvfs64): Removed.
4623 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4625         [BZ #18822]
4626         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
4627         (__gconv_close): Likewise.
4628         (__gconv): Likewise.
4629         (__gconv_find_transform): Likewise.
4630         (__gconv_lookup_cache): Likewise.
4631         (__gconv_compare_alias_cache): Likewise.
4632         (__gconv_load_cache): Likewise.
4633         (__gconv_get_path): Likewise.
4634         (__gconv_close_transform): Likewise.
4635         (__gconv_release_cache): Likewise.
4636         (__gconv_find_shlib): Likewise.
4637         (__gconv_release_shlib): Likewise.
4638         (__gconv_get_builtin_trans): Likewise.
4639         (__gconv_compare_alias): Likewise.
4640         * include/dlfcn.h (_dlerror_run): Likewise.
4641         * include/stdio.h (__fortify_fail_abort): Likewise.
4642         * include/time.h (__tz_compute): Likewise.
4643         (__strptime_internal): Likewise.
4644         * intl/gettextP.h (_nl_find_domain): Likewise.
4645         (_nl_load_domain): Likewise.
4646         (_nl_find_msg): Likewise.
4647         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
4648         (EXTRACT_PLURAL_EXPRESSION): Likewise.
4649         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
4650         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
4651         (__gai_find_request): Likewise.
4652         (__gai_remove_request): Likewise.
4653         (__gai_notify): Likewise.
4654         (__gai_notify_only): Likewise.
4655         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4656         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4657         (_dl_non_dynamic_init): Likewise.
4658         (_dl_aux_init): Likewise.
4659         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
4660         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4661         Likewise.
4662         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
4663         (__wcsmbs_clone_conv): Likewise.
4664         (__wcsmbs_named_conv): Likewise.
4666 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4668         [BZ #18822]
4669         * include/stdlib.h (__random): Add attribute_hidden.
4670         (__random_r): Likewise.
4671         (__srandom_r): Likewise.
4672         (__initstate_r): Likewise.
4673         (__setstate_r): Likewise.
4674         (__erand48_r): Likewise.
4675         (__nrand48_r): Likewise.
4676         (__jrand48_r): Likewise.
4677         (__srand48_r): Likewise.
4678         (__seed48_r): Likewise.
4679         (__lcong48_r): Likewise.
4680         (__drand48_iterate): Likewise.
4681         (__setenv): Likewise.
4682         (__unsetenv): Likewise.
4683         (__clearenv): Likewise.
4684         (__ptsname_r): Likewise.
4685         (__posix_openpt): Likewise.
4686         (__add_to_environ): Likewise.
4687         (__realpath): Add libc_hidden_proto.
4688         (__ecvt_r): Likewise.
4689         (__fcvt_r): Likewise.
4690         (__qecvt_r): Likewise.
4691         (__qfcvt_r): Likewise.
4692         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
4693         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
4695 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4697         [BZ #18822]
4698         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
4699         * include/time.h (__mktime_internal): Likewise.
4700         * libio/iolibio.h (__fopen_internal): Likewise.
4702 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
4704         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
4705         pointer in frame.
4706         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
4707         Correct offset used to restore PIC register.
4709 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
4711         [BZ libc/22165]
4712         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
4713         code to load address of __getcontext_ret when generating PIC code.
4715 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
4717         * elf/Makefile (tests-static-internal): Add
4718         tst-tls1-static-non-pie.
4719         (LDFLAGS-tst-tls1-static-non-pie): New.
4720         * elf/tst-tls1-static-non-pie.c: New file.
4722 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4724         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
4725         (asinh): Define using libm_alias_double.
4726         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
4727         (cbrt): Define using libm_alias_double.
4728         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
4729         <libm-alias-double.h>.
4730         (copysign): Define using libm_alias_double.
4731         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
4732         (erf): Define using libm_alias_double.
4733         (erfc): Likewise.
4734         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
4735         (expm1): Define using libm_alias_double.
4736         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
4737         (fabs): Define using libm_alias_double.
4738         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
4739         libm_alias_double.
4740         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
4741         <libm-alias-double.h>.
4742         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
4743         libm_alias_double.
4744         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
4745         <libm-alias-double.h>.
4746         (getpayload): Define using libm_alias_double.
4747         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
4748         <libm-alias-double.h>.
4749         (llrint): Define using libm_alias_double.
4750         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
4751         (lrint): Define using libm_alias_double.
4752         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
4753         <libm-alias-double.h>.
4754         (nextup): Define using libm_alias_double.
4755         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
4756         <libm-alias-double.h>.
4757         (roundeven): Define using libm_alias_double.
4758         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
4759         libm_alias_double.
4760         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
4761         <libm-alias-double.h>.
4762         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
4763         using libm_alias_double.
4764         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
4765         (cos): Define using libm_alias_double.
4766         (sin): Likewise.
4767         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
4768         <libm-alias-double.h>.
4769         (sincos): Define using libm_alias_double.
4770         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
4771         (tanh): Define using libm_alias_double.
4772         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
4773         <libm-alias-double.h>.
4774         (totalorder): Define using libm_alias_double.
4775         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
4776         <libm-alias-double.h>.
4777         (totalordermag): Define using libm_alias_double.
4778         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
4779         libm_alias_double.
4780         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
4781         libm_alias_double.
4782         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
4783         <libm-alias-double.h>.
4784         (getpayload): Define using libm_alias_double.
4785         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
4786         <libm-alias-double.h>.
4787         (roundeven): Define using libm_alias_double.
4788         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
4789         <libm-alias-double.h>.
4790         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
4791         <libm-alias-double.h>.
4792         (totalorder): Define using libm_alias_double.
4793         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
4794         <libm-alias-double.h>.
4795         (totalordermag): Define using libm_alias_double.
4796         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
4797         libc compat symbol here.
4798         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
4799         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
4800         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
4801         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
4802         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
4803         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
4804         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
4805         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
4806         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
4807         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
4809 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4811         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
4812         _dl_relocate_static_pie instead of _dl_start to compute load
4813         address in static PIE.  Return 0 if _DYNAMIC is undefined for
4814         static executable.
4816 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4818         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
4819         _DYNAMIC is undefined for static executable.
4821 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4823         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
4825 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4827         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4829 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4831         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
4832         (__ieee754_lgamma_r): Use fabs rather than __fabs.
4833         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4834         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4835         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
4836         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
4837         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4838         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
4839         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
4840         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4841         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4842         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
4843         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4844         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4845         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4846         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4847         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
4849 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4851         * math/bits/cmathcalls.h (cimag): Remove inline.
4852         (creal): Remove inline.
4853         (conj): Remove inline.
4855 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4857         * math/Makefile (type-float-routines): Add e_powf_log2_data.
4858         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
4859         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
4860         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
4861         (issignalingf_inline): Likewise.
4862         (POWF_LOG2_TABLE_BITS): Likewise.
4863         (POWF_LOG2_POLY_ORDER): Likewise.
4864         (POWF_SCALE_BITS): Likewise.
4865         (POWF_SCALE): Likewise.
4866         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
4867         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
4868         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
4870 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4872         * math/Makefile (type-float-routines): Add e_log2f_data.
4873         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
4874         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
4875         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
4876         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
4877         * sysdeps/i386/fpu/e_log2f_data.c: New file.
4878         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
4879         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
4881 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4883         * math/Makefile (type-float-routines): Add e_logf_data.
4884         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
4885         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
4886         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
4887         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
4888         * sysdeps/i386/fpu/e_logf_data.c: New file.
4889         * sysdeps/ia64/fpu/e_logf_data.c: New file.
4890         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
4892 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
4894         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
4895         undefined _DYNAMIC in PIE libc.a.
4896         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4897         Likewse.
4899 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4901         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
4902         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
4903         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
4904         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
4905         (__signbit): Remove.
4906         (__signbitl): Remove.
4907         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
4908         (__signbit): Remove.
4909         (__signbitl): Remove.
4910         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
4911         (__signbit): Remove.
4912         (__signbitl): Remove.
4913         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
4914         (__signbit): Remove.
4915         (__signbitl): Remove.
4916         * sysdeps/tile/bits/mathinline.h: Delete file.
4917         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
4918         (__signbit): Remove.
4919         (__signbitl): Remove.
4921 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4923         * math/math.h: Improve handling of C99 isgreater macros.
4924         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
4925         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
4926         * sysdeps/powerpc/bits/mathinline.h: Likewise.
4927         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4928         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
4930 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4932         * sysdeps/aarch64/libm-test-ulps: Update.
4934 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
4936         [BZ #22225]
4937         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4938         math_opt_barrier on argument when doing arithmetic on it.
4939         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4940         Likewise.  Use math_force_eval not math_opt_barrier after
4941         arithmetic.
4942         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
4943         math_opt_barrier on argument when doing arithmetic on it.
4944         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4945         Likewise.
4947 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
4949         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
4950         libc_hidden_def.
4951         (__freeifaddrs): Likewise.
4953 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4955         * include/dirent.h (__dirfd): New declaration.
4956         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
4957         alias.
4958         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
4959         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
4960         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
4961         * include/unistd.h (__revoke): New declaration.
4962         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
4963         alias.
4964         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
4965         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
4966         revoke.
4967         * include/dirent.h (__seekdir): New declaration.
4968         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
4969         redefine as weak alias.
4970         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
4971         of seekdir.
4972         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
4973         and use libc_hidden_def on them.
4974         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
4975         them.
4976         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
4977         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
4978         instead of getifaddrs and freeifaddrs.
4980 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4982         [BZ #18822]
4983         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
4984         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
4985         (__dso_handle): Remove declaration.
4986         * dlfcn/tstatexit.c (__dso_handle): Removed.
4987         (main): Don't check __dso_handle.
4988         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
4989         (main): Don't check __dso_handle.
4990         * include/dso_handle.h: New file.
4991         * malloc/mtrace.c: Include <dso_handle.h>.
4992         (mtrace): Pass __dso_handle directly.
4993         * nptl/pthread_atfork.c: Include <dso_handle.h>.
4994         (__dso_handle): Remove declaration.
4995         (__pthread_atfork): Pass __dso_handle directly.
4996         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
4997         (__dso_handle): Removed.
4998         * posix/wordexp-test.c: Include <dso_handle.h>.
4999         (__dso_handle): Remove declaration.
5000         (__app_register_atfork): Pass __dso_handle directly.
5001         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
5002         (__dso_handle): Remove declaration.
5003         (at_quick_exit): Pass __dso_handle directly.
5004         * stdlib/atexit.c: Include <dso_handle.h>.
5005         (__dso_handle): Remove declaration.
5006         (atexit): Pass __dso_handle directly.
5007         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
5008         (__dso_handle): Removed.
5010 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5012         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
5013         using VDSO.
5015 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
5017         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
5018         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
5019         values to correct default value for given type.
5021 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
5023         [BZ #22101]
5024         * elf/Makefile (tests): Add tst-debug1.
5025         ($(objpfx)tst-debug1): New.
5026         ($(objpfx)tst-debug1.out): Likewise.
5027         ($(objpfx)tst-debug1mod1.so): Likewise.
5028         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
5029         with p_filesz == 0.
5030         * elf/tst-debug1.c: New file.
5032 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5034         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
5035         Define using __ifunc.
5037 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5039         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
5040         exp2f() values.
5042 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
5044         [BZ #22156]
5045         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
5047 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5049         * resolv/Makefile (tests-internal): Fix typo in comment.
5051 2017-09-26  Florian Weimer  <fweimer@redhat.com>
5053         * resolv/nss_dns/dns-host.c: Fix typo in comment.
5055 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5057         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
5058         Use an union instead of a max_align_t array for __space,
5059         so that __space is the same size on all platforms.
5060         * malloc/scratch_buffer_grow_preserve.c
5061         (__libc_scratch_buffer_grow_preserve): Likewise.
5063         [BZ #22183]
5064         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
5065         version to 2.
5066         * posix/Makefile (routines): Add glob-lstat-compat and
5067         glob64-lstat-compat.
5068         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
5069         * posix/glob-lstat-compat.c: New file.
5070         * posix/glob64-lstat-compat.c: Likewise.
5071         * posix/tst-glob_lstat_compat.c: Likewise.
5072         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
5073         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
5074         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
5075         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
5076         Likewise.
5077         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
5078         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5079         * posix/glob.c (glob_lstat): New function.
5080         (glob): Rename to __glob and add versioned symbol to 2.27.
5081         (glob_in_dir): Use glob_lstat.
5082         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
5083         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5084         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
5085         2.27.
5086         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
5087         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
5088         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
5089         gl_lstat on glob call.
5090         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
5091         and glob64 symbols.
5092         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5093         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5094         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5095         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5096         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5097         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5098         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5099         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5100         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5101         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5102         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5103         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5105         Likewise.
5106         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5108         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5109         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5110         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5111         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5112         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5113         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5114         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5115         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5116         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5117         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5119 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
5121         * configure.ac (AS): Require binutils 2.25 or later.
5122         * configure: Regenerated.
5124 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5126         [BZ #22207]
5127         * stdlib/test-atexit-race-common.c (do_test): Minimize required
5128         VM size.
5130 2017-09-25  DJ Delorie  <dj@redhat.com>
5132         [BZ #22161]
5133         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
5134         resetting timeout.
5136 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5138         * sysdeps/ieee754/dbl-64/sincos32.h
5139         [SINCCOS32_H]: Remove define.
5140         [SINCOS32_H]: Define.
5142 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5144         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5145         (exp2f): Likewise.
5146         * math/w_exp2f.c: New file.
5147         * math/w_expf.c: New file.
5148         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5149         * math/w_expf_compat.c (__expf_compat): Likewise.
5150         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5151         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5152         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5153         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5154         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5155         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5156         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5157         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5158         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5159         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5160         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5161         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5162         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5163         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5165         Likewise.
5166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5167         Likewise.
5168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5169         Likewise.
5170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5171         Likewise.
5172         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5173         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5174         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5175         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5176         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5177         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5178         Likewise.
5179         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5180         Likewise.
5181         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5182         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5183         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5185 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5187         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5188         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5189         (roundtoint, converttoint): Likewise.
5190         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5191         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5192         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5193         * sysdeps/ieee754/flt-32/math_config.h: New file.
5194         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5195         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5196         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5197         * sysdeps/i386/fpu/math_errf.c: New file.
5198         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5199         * sysdeps/ia64/fpu/math_errf.c: New file.
5200         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5201         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5203 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5205         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5206         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5207         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5208         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5209         to make sure that these symbols are defined.
5210         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5211         of <limits.h>
5212         (__need_NULL): Do not define.
5213         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5214         alignment.
5215         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5216         CMGROUP_MAX, cmsgcred): Do not define.
5217         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5218         NULL.
5219         * bits/socket.h: Likewise.
5220         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5221         __gettimeofday instead of gettimeofday.
5222         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5223         instead of settimeofday.
5225 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5227         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5228         (asinhf): Define using libm_alias_float.
5229         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5230         (atanf): Define using libm_alias_float.
5231         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5232         (cbrtf): Define using libm_alias_float.
5233         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5234         (ceilf): Define using libm_alias_float.
5235         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5236         <libm-alias-float.h>.
5237         (copysignf): Define using libm_alias_float.
5238         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5239         (cosf): Define using libm_alias_float.
5240         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5241         (erff): Define using libm_alias_float.
5242         (erfcf): Likewise.
5243         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5244         (expm1f): Define using libm_alias_float.
5245         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5246         (fabsf): Define using libm_alias_float.
5247         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5248         (floorf): Define using libm_alias_float.
5249         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5250         (frexpf): Define using libm_alias_float.
5251         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5252         libm_alias_float.
5253         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
5254         <libm-alias-float.h>.
5255         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
5256         libm_alias_float.
5257         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
5258         <libm-alias-float.h>.
5259         (getpayloadf): Define using libm_alias_float.
5260         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
5261         <libm-alias-float.h>.
5262         (llrintf): Define using libm_alias_float.
5263         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
5264         <libm-alias-float.h>.
5265         (llroundf): Define using libm_alias_float.
5266         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
5267         (logbf): Define using libm_alias_float.
5268         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
5269         (lrintf): Define using libm_alias_float.
5270         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
5271         (lroundf): Define using libm_alias_float.
5272         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
5273         (modff): Define using libm_alias_float.
5274         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
5275         <libm-alias-float.h>.
5276         (nearbyintf): Define using libm_alias_float.
5277         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
5278         <libm-alias-float.h>.
5279         (nextafterf): Define using libm_alias_float.
5280         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
5281         <libm-alias-float.h>.
5282         (nextupf): Define using libm_alias_float.
5283         * sysdeps/ieee754/flt-32/s_remquof.c: Include
5284         <libm-alias-float.h>.
5285         (remquof): Define using libm_alias_float.
5286         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
5287         (rintf): Define using libm_alias_float.
5288         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
5289         <libm-alias-float.h>.
5290         (roundevenf): Define using libm_alias_float.
5291         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
5292         (roundf): Define using libm_alias_float.
5293         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
5294         using libm_alias_float.
5295         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
5296         <libm-alias-float.h>.
5297         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
5298         Define using libm_alias_float.
5299         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
5300         <libm-alias-float.h>.
5301         (sincosf): Define using libm_alias_float.
5302         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
5303         (sinf): Define using libm_alias_float.
5304         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
5305         (tanf): Define using libm_alias_float.
5306         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
5307         (tanhf): Define using libm_alias_float.
5308         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
5309         <libm-alias-float.h>.
5310         (totalorderf): Define using libm_alias_float.
5311         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
5312         <libm-alias-float.h>.
5313         (totalordermagf): Define using libm_alias_float.
5314         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
5315         (truncf): Define using libm_alias_float.
5316         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
5317         libm_alias_float.
5318         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
5319         libm_alias_float.
5321 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5323         [BZ #22146]
5324         math/math.h: Let fpclassify use the builtin in C++ mode, even
5325         when optimazing for size.
5327 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5329         * csu/Makefile (generated): Do not add version-info.h.
5330         (before-compile): Likewise.
5331         (all-Banner-files): Remove variable.
5332         ($(objpfx)version-info.h): Remove rule.
5333         * csu/version.c (banner): Do not include "version-info.h".
5334         * libidn/Banner: Remove.
5335         * manual/contrib.texi (Simon Josefsson): New entry.
5337 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5339         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5340         Remove conditionals on LDBL_MANT_DIG.
5341         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5342         (__ieee754_lgammal_r): Likewise.
5344 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5346         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
5347         _Float128 and L().
5348         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
5349         _Float128 and L(). Replace _Float128 with long double and L(x)
5350         with xL, throughout the file.
5351         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5352         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5353         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5354         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5356 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5358         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
5359         sysdeps/ieee754/ldbl-128ibm.
5360         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
5361         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
5362         of including it.  Keep _Float128 and L() intact.  These will be
5363         reviewed by a separate patch.
5364         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5365         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5366         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5367         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5369 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
5372         (__finitef128): Define to __redirect___finitef128.
5373         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
5374         (__isinff128): Define to __redirect___isinff128.
5375         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
5376         (__isnanf128): Define to __redirect___isnanf128.
5378 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5380         * sysdeps/powerpc/powerpc64le/Makefile
5381         (CFLAGS-tst-strtod-nan-locale.c): New variable.
5382         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
5384 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5385             Carlos O'Donell  <carlos@redhat.com>
5387         [BZ #22180]
5388         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
5389         * stdlib/test-dlclose-exit-race.c: New file.
5390         * stdlib/test-dlclose-exit-race-helper.c: New file.
5391         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
5393 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
5395         * crypt/Banner: Remove file.
5396         * nptl/Banner: Likewise.
5397         * resolv/Banner: Likewise.
5398         * soft-fp/Banner: Likewise.
5399         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
5400         ($(objpfx)version.d): Remove dependency on banner.h.
5401         ($(objpfx)version.os): Likewise.
5402         * nptl/version.c (banner): Do not include banner.h.
5403         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
5404         Jelinek and BIND code.
5406 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5407             Carlos O'Donell  <carlos@redhat.com>
5409         * support/xdlfcn.h: New file.
5410         * support/xdlfcn.c: New file.
5411         * support/Makefile (libsupport-routines): Add xdlfcn.
5412         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
5414 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
5416         [BZ #20142]
5417         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5418         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
5419         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
5420         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
5421         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
5422         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
5423         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
5424         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
5426 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5427             Ricky Zhou  <rickyz@google.com>
5428             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
5430         [BZ #14333]
5431         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
5432         Remove atomics.
5433         (__new_exitfn): Fail registration when we finished at_exit processing.
5434         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
5435         * stdlib/on_exit.c (__on_exit): Likewise.
5436         * stdlib/exit.c (__exit_funcs_done): New variable.
5437         (__run_exit_handlers): Use __exit_funcs_lock.
5438         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
5439         declarations.
5440         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
5441         (test-cxa_atexit-race, test-on_exit-race): New tests.
5442         * stdlib/test-atexit-race-common.c: New file.
5443         * stdlib/test-atexit-race.c: New file.
5444         * stdlib/test-at_quick_exit-race.c: New file.
5445         * stdlib/test-cxa_atexit-race.c: New file.
5446         * stdlib/test-on_exit-race.c: New file.
5448 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5450         * benchtests/Makefile: Add exp2f and log2f benchmarks.
5451         * benchtests/exp2f-inputs: Copy of expf-inputs.
5452         * benchtests/log2f-inputs: Copy of logf-inputs.
5454 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5456         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
5457         Explicitly take address of first element of array arguments in
5458         call to INLINE_SYSCALL.
5460 2017-09-19  Andreas Schwab  <schwab@suse.de>
5462         [BZ #22134]
5463         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
5464         execveat first.
5465         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
5466         unimplemented.
5467         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
5468         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
5469         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5470         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
5471         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5472         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5473         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5474         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5475         * posix/Makefile (tests): Add tst-fexecve.
5476         * posix/tst-fexecve.c: New file.
5478 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5480         * benchtests/Makefile: Add logf benchmark.
5481         * benchtests/logf-inputs: Add reduced trace from wrf_r.
5483 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5485         * benchtests/Makefile: Add expf benchmark.
5486         * benchtests/expf-inputs: Add reduced trace from wrf_r.
5488 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5490         * csu/Makefile: Add -funwind-tables to libc-start.c.
5491         * debug/Makefile: Add -funwind-tables to backtrace.c.
5492         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
5493         * sysdeps/arm/Makefile: Likewise.
5494         * sysdeps/i386/Makefile: Likewise.
5495         * sysdeps/m68k/Makefile: Likewise.
5496         * sysdeps/mips/Makefile: Likewise.
5497         * sysdeps/nios2/Makefile: Likewise.
5498         * sysdeps/sh/Makefile: Likewise.
5499         * sysdeps/sparc/Makefile: Likewise.
5501 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5503         * benchtests/Makefile (bench-math): Add trunc and truncf.
5504         (CFLAGS-bench-trunc.c): New variable.
5505         (CFLAGS-bench-truncf.c): Likewise.
5506         * benchtests/trunc-inputs: New file.
5507         * benchtests/truncf-inputs: Likewise.
5509 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5511         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
5513 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
5515         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
5516         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
5517         redefine.
5518         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
5519         (exp10l): Define as weak alias.
5520         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
5521         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
5522         and redefine.
5523         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
5524         (remainderl): Define as weak alias.
5526         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
5527         (fmal): Define using libm_alias_ldouble.
5528         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
5529         (acoshl): Define using libm_alias_ldouble.
5530         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
5531         (acosl): Define using libm_alias_ldouble.
5532         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
5533         (asinl): Define using libm_alias_ldouble.
5534         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
5535         (atan2l): Define using libm_alias_ldouble.
5536         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
5537         (atanhl): Define using libm_alias_ldouble.
5538         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
5539         (coshl): Define using libm_alias_ldouble.
5540         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
5541         (exp10l): Define using libm_alias_ldouble.
5542         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
5543         (exp2l): Define using libm_alias_ldouble.
5544         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
5545         (expl): Define using libm_alias_ldouble.
5546         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
5547         (fmodl): Define using libm_alias_ldouble.
5548         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
5549         (hypotl): Define using libm_alias_ldouble.
5550         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
5551         (j0l): Define using libm_alias_ldouble.
5552         (y0l): Likewise.
5553         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
5554         (j1l): Define using libm_alias_ldouble.
5555         (y1l): Likewise.
5556         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
5557         (jnl): Define using libm_alias_ldouble.
5558         (ynl): Likewise.
5559         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
5560         (log10l): Define using libm_alias_ldouble.
5561         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
5562         (log2l): Define using libm_alias_ldouble.
5563         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
5564         (logl): Define using libm_alias_ldouble.
5565         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
5566         (powl): Define using libm_alias_ldouble.
5567         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
5568         (remainderl): Define using libm_alias_ldouble.
5569         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
5570         (sinhl): Define using libm_alias_ldouble.
5571         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
5572         (sqrtl): Define using libm_alias_ldouble.
5573         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
5574         (tgammal): Define using libm_alias_ldouble.
5575         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
5576         (exp10l): Do not use long_double_symbol here.
5577         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
5578         [LIBM_SVID_COMPAT] (remainderl): Likewise.
5579         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
5580         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5581         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5582         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5583         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5584         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5585         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5586         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5587         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5588         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5589         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5590         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5591         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5592         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5593         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5594         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5595         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5596         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5597         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5598         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5600 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
5602         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
5603         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
5605 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5607         * io/read.c (read): Add libc_hidden_weak.
5608         * sysdeps/mach/hurd/read.c (read): Likewise.
5609         * io/write.c (write): Likewise.
5610         * sysdeps/mach/hurd/write.c (write): Likewise.
5611         * io/pread64.c (__pread64): Likewise.
5612         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
5613         * posix/pread64.c (__pread64): Add libc_hidden_def.
5615 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5617         * benchtests/scripts/compare_strings.py: New option -g.
5618         (draw_graph): Print a message that a graph is being generated.
5619         (process_results): Generate graph only if -g is passed.
5620         (main): Process option -g.
5622         * benchtests/scripts/compare_strings.py (process_results):
5623         Better spacing for output.
5625         * benchtests/scripts/compare_strings.py: Use argparse.
5626         * benchtests/README: Document existence of compare_strings.py.
5628 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5630         * math/s_fma.c: Include <libm-alias-double.h>.
5631         (fma): Define using libm_alias_double.
5632         * math/s_nextafter.c: Include <libm-alias-double.h>.
5633         (nextafter): Define using libm_alias_double.
5634         * math/w_acos_compat.c: Include <libm-alias-double.h>.
5635         (acos): Define using libm_alias_double.
5636         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
5637         (aocsh): Define using libm_alias_double.
5638         * math/w_asin_compat.c: Include <libm-alias-double.h>.
5639         (asin): Define using libm_alias_double.
5640         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
5641         (atan2): Define using libm_alias_double.
5642         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
5643         (atanh): Define using libm_alias_double.
5644         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
5645         (cosh): Define using libm_alias_double.
5646         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
5647         (exp10): Define using libm_alias_double.
5648         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
5649         (exp2): Define using libm_alias_double.
5650         * math/w_exp_compat.c: Include <libm-alias-double.h>.
5651         (exp): Define using libm_alias_double.
5652         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
5653         (fmod): Define using libm_alias_double.
5654         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
5655         (hypot): Define using libm_alias_double.
5656         * math/w_j0_compat.c: Include <libm-alias-double.h>.
5657         (j0): Define using libm_alias_double.
5658         (y0): Likewise.
5659         * math/w_j1_compat.c: Include <libm-alias-double.h>.
5660         (j1): Define using libm_alias_double.
5661         (y1): Likewise.
5662         * math/w_jn_compat.c: Include <libm-alias-double.h>.
5663         (jn): Define using libm_alias_double.
5664         (yn): Likewise.
5665         * math/w_log10_compat.c: Include <libm-alias-double.h>.
5666         (log10): Define using libm_alias_double.
5667         * math/w_log2_compat.c: Include <libm-alias-double.h>.
5668         (log2): Define using libm_alias_double.
5669         * math/w_log_compat.c: Include <libm-alias-double.h>.
5670         (log): Define using libm_alias_double.
5671         * math/w_pow_compat.c: Include <libm-alias-double.h>.
5672         (pow): Define using libm_alias_double.
5673         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
5674         (remainder): Define using libm_alias_double.
5675         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
5676         (sinh): Define using libm_alias_double.
5677         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
5678         (sqrt): Define using libm_alias_double.
5679         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
5680         (tgamma): Define using libm_alias_double.
5681         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
5682         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
5683         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
5684         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
5685         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
5686         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
5687         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
5688         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5689         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5690         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5691         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5692         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5693         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
5694         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5695         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5696         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5697         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5698         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5699         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5700         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5701         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5702         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5703         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5704         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5705         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5707         * math/e_acoshl.c: Remove.
5708         * math/e_acosl.c: Likewise.
5709         * math/e_asinl.c: Likewise.
5710         * math/e_atan2l.c: Likewise.
5711         * math/e_atanhl.c: Likewise.
5712         * math/e_coshl.c: Likewise.
5713         * math/e_expl.c: Likewise.
5714         * math/e_fmodl.c: Likewise.
5715         * math/e_gammal_r.c: Likewise.
5716         * math/e_hypotl.c: Likewise.
5717         * math/e_j0l.c: Likewise.
5718         * math/e_j1l.c: Likewise.
5719         * math/e_jnl.c: Likewise.
5720         * math/e_lgammal_r.c: Likewise.
5721         * math/e_log10l.c: Likewise.
5722         * math/e_log2l.c: Likewise.
5723         * math/e_logl.c: Likewise.
5724         * math/e_powl.c: Likewise.
5725         * math/e_rem_pio2l.c: Likewise.
5726         * math/e_sinhl.c: Likewise.
5727         * math/e_sqrtf128.c: Likewise.
5728         * math/e_sqrtl.c: Likewise.
5729         * math/k_cosl.c: Likewise.
5730         * math/k_sinl.c: Likewise.
5731         * math/k_tanl.c: Likewise.
5732         * math/s_asinhl.c: Likewise.
5733         * math/s_atanl.c: Likewise.
5734         * math/s_cbrtl.c: Likewise.
5735         * math/s_erfl.c: Likewise.
5736         * math/s_expm1l.c: Likewise.
5737         * math/s_log1pl.c: Likewise.
5738         * math/s_tanhl.c: Likewise.
5740 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5742         [BZ #21745]
5743         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
5744         [$(subdir) = math] (sysdep_calls): New variable.  Has the
5745         previous contents of sysdep_routines, but re-sorted..
5746         [$(subdir) = math] (sysdep_routines): Re-use the contents from
5747         sysdep_calls.
5748         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
5749         defined in sysdep_calls and replace by the respective m_* names.
5750         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
5751         (compat_symbol): Undefine to avoid duplicated compat symbols in
5752         libc.
5754 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5756         * math/s_fmaf.c: Include <libm-alias-float.h>.
5757         (fmaf): Define using libm_alias_float.
5758         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
5759         (acosf): Define using libm_alias_float.
5760         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
5761         (acoshf): Define using libm_alias_float.
5762         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
5763         (asinf): Define using libm_alias_float.
5764         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
5765         (atan2f): Define using libm_alias_float.
5766         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
5767         (atanhf): Define using libm_alias_float.
5768         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
5769         (coshf): Define using libm_alias_float.
5770         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
5771         (exp10f): Define using libm_alias_float.
5772         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
5773         (fmodf): Define using libm_alias_float.
5774         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
5775         (hypotf): Define using libm_alias_float.
5776         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
5777         (j0f): Define using libm_alias_float.
5778         (y0f): Likewise.
5779         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
5780         (j1f): Define using libm_alias_float.
5781         (y1f): Likewise.
5782         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
5783         (jnf): Define using libm_alias_float.
5784         (ynf): Likewise.
5785         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
5786         (log10f): Define using libm_alias_float.
5787         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
5788         (log2f): Define using libm_alias_float.
5789         * math/w_logf_compat.c: Include <libm-alias-float.h>.
5790         (logf): Define using libm_alias_float.
5791         * math/w_powf_compat.c: Include <libm-alias-float.h>.
5792         (powf): Define using libm_alias_float.
5793         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
5794         (remainderf): Define using libm_alias_float.
5795         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
5796         (sinhf): Define using libm_alias_float.
5797         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
5798         (sqrtf): Define using libm_alias_float.
5799         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
5800         (tgammaf): Define using libm_alias_float.
5802 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5804         * include/math.h (roundeven): Change hidden_proto call to
5805         __roundeven.
5806         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
5807         alias.
5808         [NO_LONG_DOUBLE] (__j0l): New strong alias.
5809         (y0): Rename to __y0 and define as weak alias.
5810         [NO_LONG_DOUBLE] (__y0l): New strong alias.
5811         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
5812         alias.
5813         (y0f): Rename to __y0f and define as weak alias.
5814         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
5815         alias.
5816         [NO_LONG_DOUBLE] (__j1l): New strong alias.
5817         (y1): Rename to __y1 and define as weak alias.
5818         [NO_LONG_DOUBLE] (__y1l): New strong alias.
5819         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
5820         alias.
5821         (y1f): Rename to __y1f and define as weak alias.
5822         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
5823         alias.
5824         [NO_LONG_DOUBLE] (__jnl): New strong alias.
5825         (yn): Rename to __yn and define as weak alias.
5826         [NO_LONG_DOUBLE] (__ynl): New strong alias.
5827         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
5828         alias.
5829         (ynf): Rename to __ynf and define as weak alias.
5830         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
5831         (fromfp): Define as weak alias.
5832         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
5833         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
5834         (fromfpx): Define as weak alias.
5835         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
5836         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
5837         __getpayload and define as weak alias.
5838         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5839         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
5840         __roundeven and define as weak alias.
5841         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5842         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
5843         __setpayload.
5844         (setpayload): Define as weak alias.
5845         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
5846         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
5847         __setpayloadsig.
5848         (setpayloadsig): Define as weak alias.
5849         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
5850         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
5851         __totalorder and define as weak alias.
5852         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5853         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
5854         to __totalordermag and define as weak alias.
5855         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5856         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
5857         (ufromfp): Define as weak alias.
5858         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
5859         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
5860         __ufromfpx.
5861         (ufromfpx): Define as weak alias.
5862         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
5863         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
5864         Rename to __getpayload and define as weak alias.
5865         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5866         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
5867         Rename to __roundeven and define as weak alias.
5868         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5869         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
5870         Rename to __totalorder and define as weak alias.
5871         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5872         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
5873         (totalordermag): Rename to __totalordermag and define as weak
5874         alias.
5875         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5876         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
5877         macro.
5878         (__roundevenl): Likewise.
5879         (__totalorderl): Likewise.
5880         (__totalordermagl): Likewise
5881         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
5882         __fromfpf128.
5883         (fromfpf128): Define as weak alias.
5884         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
5885         __fromfpxf128.
5886         (fromfpxf128): Define as weak alias.
5887         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
5888         __setpayloadf128.
5889         (setpayloadf128): Define as weak alias.
5890         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
5891         __setpayloadsigf128.
5892         (setpayloadsigf128): Define as weak alias.
5893         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
5894         __ufromfpf128.
5895         (ufromfpf128): Define as weak alias.
5896         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
5897         __ufromfpxf128.
5898         (ufromfpxf128): Define as weak alias.
5899         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
5900         (fromfpf): Define as weak alias.
5901         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
5902         __fromfpxf.
5903         (fromfpxf): Define as weak alias.
5904         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
5905         __getpayloadf and define as weak alias.
5906         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
5907         __roundevenf and define as weak alias.
5908         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
5909         __setpayloadf.
5910         (setpayloadf): Define as weak alias.
5911         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
5912         __setpayloadsigf.
5913         (setpayloadsigf): Define as weak alias.
5914         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
5915         __totalorderf and define as weak alias.
5916         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
5917         Rename to __totalordermagf and define as weak alias.
5918         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
5919         __ufromfpf.
5920         (ufromfpf): Define as weak alias.
5921         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
5922         __ufromfpxf.
5923         (ufromfpxf): Define as weak alias.
5924         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
5925         __fromfpl.
5926         (fromfpl): Define as weak alias.
5927         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
5928         __fromfpxl.
5929         (fromfpxl): Define as weak alias.
5930         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
5931         to __getpayloadl and define as weak alias.
5932         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
5933         __roundevenl and define as weak alias.
5934         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
5935         __setpayloadl.
5936         (setpayloadl): Define as weak alias.
5937         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
5938         __setpayloadsigl.
5939         (setpayloadsigl): Define as weak alias.
5940         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
5941         to __totalorderl and define as weak alias.
5942         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
5943         Rename to __totalordermagl and define as weak alias.
5944         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
5945         __ufromfpl.
5946         (ufromfpl): Define as weak alias.
5947         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
5948         __ufromfpxl.
5949         (ufromfpxl): Define as weak alias.
5950         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
5951         __fromfpl.
5952         (fromfpl): Define as weak alias.
5953         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
5954         __fromfpxl.
5955         (fromfpxl): Define as weak alias.
5956         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
5957         Rename to __getpayloadl and define as weak alias.
5958         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
5959         to __roundevenl and define as weak alias.  Call __roundeven
5960         instead of roundeven.
5961         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
5962         __setpayloadl.
5963         (setpayloadl): Define as weak alias.
5964         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
5965         __setpayloadsigl.
5966         (setpayloadsigl): Define as weak alias.
5967         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
5968         Rename to __totalorderl and define as weak alias.
5969         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
5970         Rename to __totalordermagl and define as weak alias.
5971         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
5972         __ufromfpl.
5973         (ufromfpl): Define as weak alias.
5974         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
5975         __ufromfpxl.
5976         (ufromfpxl): Define as weak alias.
5977         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
5978         __fromfpl.
5979         (fromfpl): Define as weak alias.
5980         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
5981         __fromfpxl.
5982         (fromfpxl): Define as weak alias.
5983         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
5984         __getpayloadl and define as weak alias.
5985         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
5986         __roundevenl and define as weak alias.
5987         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
5988         __setpayloadl.
5989         (setpayloadl): Define as weak alias.
5990         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
5991         __setpayloadsigl.
5992         (setpayloadsigl): Define as weak alias.
5993         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
5994         __totalorderl and define as weak alias.
5995         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
5996         Rename to __totalordermagl and define as weak alias.
5997         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
5998         __ufromfpl.
5999         (ufromfpl): Define as weak alias.
6000         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
6001         __ufromfpxl.
6002         (ufromfpxl): Define as weak alias.
6004 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6006         * benchtests/bench-string.h (realloc_bufs): New function.
6007         (test_init): Call it.
6008         * benchtests/bench-memset-large.c (do_test): Likewise.
6009         * benchtests/bench-memset.c (do_test): Likewise.
6011         * benchtests/bench-memset-large.c: Print output in JSON
6012         format.
6013         * benchtests/bench-memset.c: Likewise.
6015 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6017         [BZ #21084]
6018         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
6019         * iconvdata/Makefile: Add IBM858.
6020         * iconvdata/gconv-modules: Likewise.
6021         * iconvdata/tst-tables.sh: Likewise.
6022         * iconvdata/ibm858.c: New file.
6023         * localedata/charmaps/IBM858: Likewise.
6025 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
6027         [BZ #22023]
6028         * locales/niu_NZ (LC_TIME): copy "niu_NU".
6029         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
6031 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
6033         [BZ #22112]
6034         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
6035         and add tel_int_fmt.
6037 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
6039         * sysdeps/generic/libm-alias-float128.h: New file.
6040         * sysdeps/generic/math-type-macros-float128.h: Include
6041         <libm-alias-float128.h>.
6042         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6044 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6046         * sysdeps/generic/libm-alias-ldouble.h: New file.
6047         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
6048         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
6049         * sysdeps/generic/math-type-macros-ldouble.h: Include
6050         <libm-alias-ldouble.h>.
6051         [!declare_mgen_alias] (declare_mgen_alias): Define to use
6052         libm_alias_ldouble.
6054 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6056         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
6057         * math/w_exp_compat.c: ... here.
6058         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
6059         * math/w_expf_compat.c: ... here.
6060         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
6061         * math/w_expl_compat.c: ... here.
6062         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
6063         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
6064         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
6065         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
6067 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6069         * math/w_scalbln_template.c (strong_alias): Do not undefine and
6070         redefine.
6071         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
6072         macro.
6073         (ldexpl): Only define as compat symbol for libc, not libm.
6074         (scalbnl): Define as compat symbol for libc here.
6075         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
6076         define for [IS_IN (libc)].
6077         (__ldexpl_2): Remove alias.
6078         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
6079         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
6080         name in long_double_symbol call.
6081         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
6082         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
6083         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
6084         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
6085         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
6086         Remove macro.
6087         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
6088         Define as compat symbol.
6090 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6092         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
6093         * sysdeps/unix/sysv/linux/alpha/Makefile
6094         [$(subdir) = csu] (sysdep_routines): Remove rule.
6096 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6098         * sysdeps/generic/libm-alias-double.h: New file.
6099         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
6100         * sysdeps/generic/math-type-macros-double.h: Include
6101         <libm-alias-double.h>.
6102         [declare_mgen_alias] (declare_mgen_alias): Define to use
6103         libm_alias_double.
6104         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
6105         (M_LIBM_NEED_COMPAT): Remove macro.
6106         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
6107         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
6108         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
6109         code.
6110         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6111         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6112         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6113         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6114         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6115         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6116         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6117         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6118         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6119         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6120         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6121         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6122         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6123         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6124         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6125         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6126         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6127         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6128         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6129         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6130         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6131         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6132         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6133         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6134         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6135         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6136         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6137         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6138         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6139         macro.
6140         (declare_mgen_alias): New macro.
6141         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6142         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6144         (M_LIBM_NEED_COMPAT): Remove macro.
6145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6146         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6147         <first-versions.h>.
6148         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6149         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6151 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6153         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6154         (declare_mgen_alias_2): Remove.
6155         * sysdeps/generic/math-type-macros-double.h
6156         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6157         Likewise.
6158         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6159         alias.
6160         (ldexp): Define with declare_mgen_alias.
6161         (scalbn): Likewise.
6163 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6165         * grp/initgroups.c: Include config.h.
6166         (DEFAULT_CONFIG): New macro.
6167         (internal_getgrouplist): Use DEFAULT_CONFIG.
6168         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6169         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6170         (DEFAULT_DEFCONFIG): New macro.
6171         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6172         * nss/grp-lookup.c: Include config.h
6173         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6174         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6175         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6176         * manual/nss.texi: Update default values section.
6178 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6180         [BZ #21967]
6181         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6182         New.
6183         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6184         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6185         Handle MathVec_Prefer_No_AVX512.
6186         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6187         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6188         is set.
6190 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6192         * posix/sched_primax.c (__sched_get_priority_max): Add
6193         libc_hidden_def.
6194         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6195         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6196         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6197         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6198         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6199         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6200         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6201         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6202         Add aliases.
6204 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6206         * sysdeps/generic/libm-alias-float.h: New file.
6207         * sysdeps/generic/math-type-macros-float.h: Include
6208         <libm-alias-float.h>.
6209         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6211 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6213         [BZ #22093]
6214         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6215         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6216         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6217         (HWCAP_IMPORTANT): Likewise.
6218         (HWCAP_X86_64): New enum.
6219         (HWCAP_X86_AVX512_1): Updated.
6220         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6221         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6222         (modules-names): Add x86_64/tst-x86_64mod-1.
6223         (LDFLAGS-tst-x86_64mod-1.so): New.
6224         ($(objpfx)tst-x86_64-1): Likewise.
6225         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6226         (tst-x86_64-1-clean): Likewise.
6227         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6228         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6230 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6232         * po/sv.po: Update translations.
6233         * po/fr.po: Likewise.
6235 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6237         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6238         seconds.
6239         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6240         seconds.
6241         * elf/rtld-Rules: Fix $(error) use.
6243 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6245         [BZ #14925]
6246         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6247         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6248         * localedata/locales/bn_BD: “Bengali” was still used in some
6249         comments. Change it to “Bangla”.
6251 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
6253         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
6255 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6257         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
6258         thunderx2t99p1 to list of cpu names.
6259         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6260         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
6262 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6264         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
6265         Use strcmp instead of tunable_is_name.
6267 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
6269         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6270         (F_GET_RW_HINT): New macro.
6271         [__USE_GNU] (F_SET_RW_HINT): Likewise.
6272         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
6273         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
6274         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
6275         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
6276         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
6277         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
6278         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
6279         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
6281         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6282         (F_ADD_SEALS): New macro.
6283         [__USE_GNU] (F_GET_SEALS): Likewise.
6284         [__USE_GNU] (F_SEAL_SEAL): Likewise.
6285         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
6286         [__USE_GNU] (F_SEAL_GROW): Likewise.
6287         [__USE_GNU] (F_SEAL_WRITE): Likewise.
6289 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6291         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
6292         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
6293         * posix/glob_internal.h (__glob_pattern_type):
6294         * posix/glob.c (glob):
6295         * posix/glob_pattern_p.c (__glob_pattern_p):
6296         Use them.
6298         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
6299         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6300         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
6301         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
6302         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
6304         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
6305         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
6306         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6307         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6308         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6309         * sysdeps/wordsize-64/glob.c: Likewise.
6310         * sysdeps/wordsize-64/glob64.c: Likewise.
6311         * sysdeps/wordsize-64/globfree.c: Likewise.
6312         * sysdeps/wordsize-64/globfree64.c: Likewise.
6313         * sysdeps/unix/sysv/linux/glob.c: New file.
6314         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
6315         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
6316         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
6317         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
6318         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
6319         adds !GLOB_NO_OLD_VERSION as an extra condition.
6320         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
6321         using relative path instead of absolute one.
6322         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
6323         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6324         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6325         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
6326         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
6327         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
6329         [BZ #1062]
6330         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
6331         (glob): Use the same scratch buffer for both getlogin_r and
6332         getpwnam_r.  Don’t require preallocation of the login name.  This
6333         simplifies storage allocation, and corrects the handling of
6334         long login names.
6336         [BZ #1062]
6337         * posix/glob.c (glob): Port recent patches to platforms
6338         lacking getpwnam_r.
6339         (glob): Fix longstanding misuse of errno after getpwnam_r, which
6340         returns an error number rather than setting errno.
6342         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
6343         instead of GCC extension.
6344         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
6345         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
6346         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
6348         [BZ #866]
6349         [BZ #1062]
6350         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
6351         * posix/bug-glob1.c: Remove file.
6352         * posix/tst-glob_symlinks.c: New file.
6353         * posix/glob.c (__lstat64): New macro.
6354         (is_dir): New function.
6355         (glob, glob_in_dir): Match symlinks even if they are dangling.
6356         (link_stat, link_exists_p): Remove.  All uses removed.
6358         [BZ #1062]
6359         [BZ #19971]
6360         * posix/glob.c (struct readdir_result): Remove skip_entry member.
6361         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6362         All uses removed.
6364         [BZ #1062]
6365         CVE-2017-15671
6366         * posix/Makefile (routines): Add globfree, globfree64, and
6367         glob_pattern_p.
6368         * posix/flexmember.h: New file.
6369         * posix/glob_internal.h: Likewise.
6370         * posix/glob_pattern_p.c: Likewise.
6371         * posix/globfree.c: Likewise.
6372         * posix/globfree64.c: Likewise.
6373         * sysdeps/gnu/globfree64.c: Likewise.
6374         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
6375         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6376         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
6377         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6378         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6379         * sysdeps/wordsize-64/globfree.c: Likewise.
6380         * sysdeps/wordsize-64/globfree64.c: Likewise.
6381         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
6382         [NDEBUG): Remove comments.
6383         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
6384         (dirent_type): New type.  Use uint_fast8_t not
6385         uint8_t, as C99 does not require uint8_t.
6386         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
6387         (struct readdir_result): Use dirent_type.  Do not define skip_entry
6388         unless it is needed; this saves a byte on platforms lacking d_ino.
6389         (readdir_result_type, readdir_result_skip_entry):
6390         New functions, replacing ...
6391         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6392          these functions, which were removed.  This makes the callers
6393         easier to read.  All callers changed.
6394         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6395         (size_add_wrapv, glob_use_alloca): New static functions.
6396         (glob, glob_in_dir): Check for size_t overflow in several places,
6397         and fix some size_t checks that were not quite right.
6398         Remove old code using SHELL since Bash no longer
6399         uses this.
6400         (glob, prefix_array): Separate MS code better.
6401         (glob_in_dir): Remove old Amiga and VMS code.
6402         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6403         separate files.
6404         (glob_in_dir): Do not rely on undefined behavior in accessing
6405         struct members beyond their bounds.  Use a flexible array member
6406         instead
6407         (link_stat): Rename from link_exists2_p and return -1/0 instead of
6408         0/1.  Caller changed.
6409         (glob): Fix memory leaks.
6410         * posix/glob64 (globfree64): Move to separate file.
6411         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
6412         (globfree64): Remove hidden alias.
6413         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
6414         oldglob.
6415         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
6416         separate file.
6417         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
6418         define.
6419         Move compat code to separate file.
6420         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
6421         separate file.
6423 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6425         * resolv/tst-resolv-qtypes.c (domain): Changed to
6426         "const char domain[] =".
6428 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
6430         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6431         version to 3.1.6.
6433         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
6434         (TCP_MD5SIG_EXT): Likewise.
6435         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
6436         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
6437         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
6439         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
6441 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
6443         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
6445 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
6447         [BZ #22100]
6448         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
6450 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6452         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
6453         before assuming that the file is empty.  Avoid testing buffer content
6454         when nread == 0.
6456 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6458         [BZ #18858]
6459         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6460         Remove define.
6461         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
6462         Likewise.
6463         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
6464         Likewise.
6465         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
6466         Likewise.
6467         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6468         Likewise.
6469         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
6470         Likewise.
6471         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
6472         Likewise.
6474 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6476         * malloc/dynarray_emplace_enlarge.c
6477         (__libc_dynarray_emplace_enlarge): Add missing else.
6479 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6481         [BZ #22096]
6482         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
6483         case of failure to obtain the global conf object.
6485 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6487         [BZ #22095]
6488         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
6489         dynarray allocation failure.
6491 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6493         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
6494         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
6495         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
6496         New functions.
6497         (response): Call them.  Add 'p', '6' flag processing.
6498         (test_reverse): New function.
6499         (test_get2_any): Call it.
6500         (test_no_inet6): Add 'p' test.
6501         (test_inet6): Likewise.
6503 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6505         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
6506         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
6507         the QNAME.
6508         (test_gai): Adjust query names.  Add additional tests.
6509         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
6510         test_get2.  Adjust query names.  Add additional tests.
6511         (test_no_inet6): New function, extracted from threadfunc.
6512         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
6513         Add additional tests.
6515 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6517         [BZ #22070]
6518         * localedata/unicode-gen/utf8_gen.py: Set the width for
6519         characters with Prepended_Concatenation_Mark property to 1
6520         * localedata/charmaps/UTF-8: Updated using the improved script.
6522 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6524         [BZ #21750]
6525         * localedata/unicode-gen/utf8_gen.py: Improve the script to
6526         use the range notation for all ranges of neighbouring characters
6527         with the same width.
6529 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6531         * sysdeps/generic/math-type-macros-double.h: Include
6532         <math-svid-compat.h>.
6533         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6534         * sysdeps/generic/math-type-macros-float.h: Include
6535         <math-svid-compat.h>.
6536         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6537         * sysdeps/generic/math-type-macros-ldouble.h: Include
6538         <math-svid-compat.h>.
6539         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6540         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
6541         condition.
6542         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
6543         * math/w_acosf_compat.c: Likewise.
6544         * math/w_acosh_compat.c: Likewise.
6545         * math/w_acoshf_compat.c: Likewise.
6546         * math/w_acoshl_compat.c: Likewise.
6547         * math/w_acosl_compat.c: Likewise.
6548         * math/w_asin_compat.c: Likewise.
6549         * math/w_asinf_compat.c: Likewise.
6550         * math/w_asinl_compat.c: Likewise.
6551         * math/w_atan2_compat.c: Likewise.
6552         * math/w_atan2f_compat.c: Likewise.
6553         * math/w_atan2l_compat.c: Likewise.
6554         * math/w_atanh_compat.c: Likewise.
6555         * math/w_atanhf_compat.c: Likewise.
6556         * math/w_atanhl_compat.c: Likewise.
6557         * math/w_cosh_compat.c: Likewise.
6558         * math/w_coshf_compat.c: Likewise.
6559         * math/w_coshl_compat.c: Likewise.
6560         * math/w_exp10_compat.c: Likewise.
6561         * math/w_exp10f_compat.c: Likewise.
6562         * math/w_exp10l_compat.c: Likewise.
6563         * math/w_exp2_compat.c: Likewise.
6564         * math/w_exp2f_compat.c: Likewise.
6565         * math/w_exp2l_compat.c: Likewise.
6566         * math/w_fmod_compat.c: Likewise.
6567         * math/w_fmodf_compat.c: Likewise.
6568         * math/w_fmodl_compat.c: Likewise.
6569         * math/w_hypot_compat.c: Likewise.
6570         * math/w_hypotf_compat.c: Likewise.
6571         * math/w_hypotl_compat.c: Likewise.
6572         * math/w_j0_compat.c: Likewise.
6573         * math/w_j0f_compat.c: Likewise.
6574         * math/w_j0l_compat.c: Likewise.
6575         * math/w_j1_compat.c: Likewise.
6576         * math/w_j1f_compat.c: Likewise.
6577         * math/w_j1l_compat.c: Likewise.
6578         * math/w_jn_compat.c: Likewise.
6579         * math/w_jnf_compat.c: Likewise.
6580         * math/w_jnl_compat.c: Likewise.
6581         * math/w_lgamma_r_compat.c: Likewise.
6582         * math/w_lgammaf_r_compat.c: Likewise.
6583         * math/w_lgammal_r_compat.c: Likewise.
6584         * math/w_log10_compat.c: Likewise.
6585         * math/w_log10f_compat.c: Likewise.
6586         * math/w_log10l_compat.c: Likewise.
6587         * math/w_log2_compat.c: Likewise.
6588         * math/w_log2f_compat.c: Likewise.
6589         * math/w_log2l_compat.c: Likewise.
6590         * math/w_log_compat.c: Likewise.
6591         * math/w_logf_compat.c: Likewise.
6592         * math/w_logl_compat.c: Likewise.
6593         * math/w_pow_compat.c: Likewise.
6594         * math/w_powf_compat.c: Likewise.
6595         * math/w_powl_compat.c: Likewise.
6596         * math/w_remainder_compat.c: Likewise.
6597         * math/w_remainderf_compat.c: Likewise.
6598         * math/w_remainderl_compat.c: Likewise.
6599         * math/w_sinh_compat.c: Likewise.
6600         * math/w_sinhf_compat.c: Likewise.
6601         * math/w_sinhl_compat.c: Likewise.
6602         * math/w_sqrt_compat.c: Likewise.
6603         * math/w_sqrtf_compat.c: Likewise.
6604         * math/w_sqrtl_compat.c: Likewise.
6605         * math/w_tgamma_compat.c: Likewise.
6606         * math/w_tgammaf_compat.c: Likewise.
6607         * math/w_tgammal_compat.c: Likewise.
6608         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
6609         [LIBM_SVID_COMPAT].
6610         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
6611         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
6612         [LIBM_SVID_COMPAT].
6613         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
6614         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
6615         [LIBM_SVID_COMPAT].
6616         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
6617         * sysdeps/i386/fpu/w_sqrt.c: New file.
6618         * sysdeps/ia64/fpu/w_acos.c: Likewise.
6619         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
6620         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
6621         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
6622         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
6623         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
6624         * sysdeps/ia64/fpu/w_asin.c: Likewise.
6625         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
6626         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
6627         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
6628         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
6629         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
6630         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
6631         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
6632         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
6633         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
6634         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
6635         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
6636         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6637         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
6638         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
6639         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
6640         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
6641         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
6642         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
6643         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6644         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6645         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
6646         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
6647         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
6648         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
6649         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
6650         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
6651         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
6652         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
6653         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
6654         * sysdeps/ia64/fpu/w_log.c: Likewise.
6655         * sysdeps/ia64/fpu/w_log10.c: Likewise.
6656         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
6657         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
6658         * sysdeps/ia64/fpu/w_log2.c: Likewise.
6659         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
6660         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
6661         * sysdeps/ia64/fpu/w_logf.c: Likewise.
6662         * sysdeps/ia64/fpu/w_logl.c: Likewise.
6663         * sysdeps/ia64/fpu/w_pow.c: Likewise.
6664         * sysdeps/ia64/fpu/w_powf.c: Likewise.
6665         * sysdeps/ia64/fpu/w_powl.c: Likewise.
6666         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
6667         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
6668         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
6669         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
6670         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
6671         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
6672         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
6673         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
6674         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
6675         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
6676         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
6677         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
6678         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
6679         [LIBM_SVID_COMPAT].
6680         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6681         * sysdeps/ieee754/k_standard.c: Likewise.
6682         * sysdeps/ieee754/k_standardf.c: Likewise.
6683         * sysdeps/ieee754/k_standardl.c: Likewise.
6684         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6685         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6686         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6687         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
6688         long_double_symbol call on [LIBM_SVID_COMPAT].
6689         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6690         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6691         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6692         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6693         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6694         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6695         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6696         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6697         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6698         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6699         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6700         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
6701         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6702         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6703         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6704         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6705         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
6706         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6707         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6708         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6709         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
6710         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
6712 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
6714         * include/shlib-compat.h (TEST_COMPAT): New Macro.
6715         * malloc/tst-mallocstate.c: Convert from test-skeleton
6716         to test-driver.  Ifdef code using TEST_COMPAT macro.
6717         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
6718         * math/test-matherr.c: Likewise.
6720 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6722         [BZ #22086]
6723         * debug/pcprofiledump.c (main): Use byte-swapped mask when
6724         comparing word with byte-swapped constant.
6726 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
6728         [BZ #20498]
6729         * locale/iso-639.def: add Miskito.
6730         * localedata/SUPPORTED: Add miq_NI/UTF-8.
6731         * localedata/locales/miq_NI: New file.
6733 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6735         [BZ #18822]
6736         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
6737         (__mkdir): Likewise.
6738         * io/chmod.c (__chmod): Add libc_hidden_def.
6739         * io/mkdir.c (__mkdir): Likewise.
6740         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
6741         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
6742         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
6743         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
6745 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6747         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6748         version to 4.13.
6750         [BZ #22082]
6751         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
6752         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
6754 2017-09-04  Florian Weimer  <fweimer@redhat.com>
6756         * math/math.h: Issue warning if log is defined.
6758 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6760         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6761         kernel version to 4.13.
6763 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6765         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
6766         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
6767         parameter.
6768         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
6769         just <bits/types.h>.
6770         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
6771         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
6772         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
6773         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
6774         * misc/preadv2.c: Include <errno.h>.
6775         * misc/preadv64v2.c: Include <errno.h>.
6776         * misc/pwritev2.c: Include <errno.h>.
6777         * misc/pwritev64v2.c: Include <errno.h>.
6778         * sysdeps/posix/preadv2.c: Include <errno.h>.
6779         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
6780         Fix <unistd.h> inclusion.
6781         * sysdeps/posix/pwritev2.c: Include <errno.h>.
6782         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
6783         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
6784         __strtoul_internal): New functions.
6785         * sysdeps/posix/pause.c: Include <sigsetops.h>.
6786         * sysdeps/posix/system.c: Include <sigsetops.h>.
6787         * sysdeps/mach/hurd/i386/Makefile
6788         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
6789         [$(subdir) = csu] (sysdep-only-routines): Likewise.
6790         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
6791         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
6792         __feraiseexcept_renamed to feraiseexcept instead of
6793         __GI_feraiseexcept.
6794         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
6795         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
6796         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
6797         RWF_NOWAIT): Define to 0 if undefined already.
6798         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
6799         boils down to 0.
6800         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
6801         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
6803 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6805         * manual/math.texi (pow10): Do not document.
6806         (pow10f): Likewise.
6807         (pow10l): Likewise.
6808         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
6809         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
6810         * math/libm-test-exp10.inc (pow10_test): Remove.
6811         (do_test): Do not call pow10.
6812         * math/w_exp10_compat.c (pow10): Make into compat symbol.
6813         [NO_LONG_DOUBLE] (pow10l): Likewise.
6814         * math/w_exp10f_compat.c (pow10f): Likewise.
6815         * math/w_exp10l_compat.c (pow10l): Likewise.
6816         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
6817         (pow10): Make into compat symbol.
6818         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
6819         (pow10f): Make into compat symbol.
6820         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
6821         (pow10l): Make into compat symbol.
6822         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
6823         pow10.
6824         (CFLAGS-nldbl-pow10.c): Remove variable..
6825         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
6826         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
6827         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
6828         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
6829         Undefine and redefine.
6830         (pow10l): Make into compat symbol.
6831         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
6832         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6833         * sysdeps/arm/libm-test-ulps: Likewise.
6834         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
6835         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6836         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6837         * sysdeps/microblaze/libm-test-ulps: Likewise.
6838         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6839         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6840         * sysdeps/nios2/libm-test-ulps: Likewise.
6841         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6842         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6843         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6844         * sysdeps/sh/libm-test-ulps: Likewise.
6845         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6846         * sysdeps/tile/libm-test-ulps: Likewise.
6847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6849 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6851         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
6853 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6855         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
6856         "../ChangeLog.old/ChangeLog.8".
6857         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
6858         "../ChangeLog.old/ChangeLog.14".
6860 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6862         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
6863         Threads Library.
6865 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6867         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
6869 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6871         * csu/version.c (banner): Remove "by Roland McGrath et al.".
6872         * nptl/Banner: Remove "by Ulrich Drepper et al.".
6874 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6876         * stdlib/tst-atexit-common.c (do_test): Test support for at least
6877         32 atexit handlers.
6879 2017-09-01  Zack Weinberg  <zackw@panix.com>
6881         * math/math.h (HUGE_VAL): Improve commentary.
6883 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6884             Andreas Schwab  <schwab@suse.de>
6886         [BZ #21530]
6887         * include/stdio.h (__gen_tempfd): New function.
6888         * stdio-common/Makefile (routines): Add gentempfd.
6889         * stdio-common/gentempfd.c: New file.
6890         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
6891         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
6892         unnamed file first.
6894 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6896         [BZ #21915]
6897         [BZ #21922]
6898         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
6899         result to determine success or failure, not the errno value.
6900         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
6901         (tst-nss-files-hosts-erange): Link with -ldl.
6902         * nss/tst-nss-files-hosts-erange.c: New file.
6903         * nss/tst-resolv-basic.c (response): Handle nodata.example.
6904         (do_test): Add NO_DATA tests.
6905         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
6906         (do_test): Call it.
6908 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6910         [BZ #21922]
6911         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
6912         coming from gethostbyname2_r.
6914 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6916         * support/namespace.h (struct support_chroot_configuration): Add
6917         hosts, host_conf.
6918         (struct support_chroot): Add path_hosts, path_host_conf.
6919         * support/support_chroot.c (write_file): New function.
6920         (support_chroot_create): Call it to process /etc/resolv.conf,
6921         /etc/hosts, /etc/host.conf.
6922         (support_chroot_free): Update.
6924 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6926         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
6927         status indicates it is set.
6929 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6931         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
6932         function lookup failures more reliable.
6934 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6936         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
6937         (getcanonname): Likewise.
6938         (gaih_inet): Likewise.
6940 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6942         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
6943         (getcanonname): Likewise.
6944         (gaih_inet): Likewise.
6946 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6947             Richard Henderson <rth@twiddle.net>
6949         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
6950         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
6951         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
6952         (IREG_SIZE, OREG_SIZE): New macros.
6953         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
6954         (IREG_SIZE, OREG_SIZE): New macros.
6955         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
6956         (IREG_SIZE): New macro.
6957         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
6958         (IREG_SIZE): New macro.
6959         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
6960         New includes.
6961         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
6962         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6963         (__CONCATX): Handle exceptions correctly on large values that may
6964         set FE_INVALID.
6965         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
6966         Initialize if not already set.
6967         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6969 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6971         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
6972         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
6973         Likewise.
6974         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
6975         Likewise.
6976         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
6977         Likewise.
6978         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
6979         Likewise.
6980         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
6981         Likewise.
6982         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
6983         Likewise.
6984         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
6985         Likewise.
6986         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
6987         (NO_CANCELLATION): Likewise.
6988         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
6989         Likewise.
6990         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
6991         Likewise.
6992         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
6993         Likewise.
6994         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
6995         (NO_CANCELLATION): Likewise.
6996         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
6997         (NO_CANCELLATION): Likewise.
6998         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
6999         Likewise
7000         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
7001         Likewise.
7002         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
7003         Likewise.
7004         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
7005         Likewise.
7006         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
7007         hidden prototype.
7008         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
7009         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
7011 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
7013         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
7014         in resolver call.
7016 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7018         * include/libc-symbols.h (internal_function): Remove.
7020 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7022         * stdlib/fmtmsg.c (internal_addseverity): Remove
7023         internal_function.
7025 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7027         * stdio-common/printf_fp.c (group_number): Remove
7028         internal_function.
7029         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
7031 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7033         * posix/fnmatch.c (internal_function): Remove definition.
7034         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
7035         * posix/regcomp.c (peek_token, init_word_char)
7036         (duplicate_node_closure, fetch_token, peek_token)
7037         (peek_token_bracket, build_range_exp, build_collating_symbol):
7038         Likewise.
7039         * posix/regex_internal.c (re_string_construct_common)
7040         (create_ci_newstate, create_cd_newstate, re_string_allocate)
7041         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
7042         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
7043         (re_string_translate_buffer, re_string_reconstruct)
7044         (re_string_peek_byte_case, re_string_fetch_byte_case)
7045         (re_string_destruct, re_string_context_at, re_node_set_alloc)
7046         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
7047         (re_node_set_add_intersect, re_node_set_init_union)
7048         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
7049         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
7050         (re_dfa_add_node, calc_state_hash, re_acquire_state)
7051         (re_acquire_state_context): Likewise.
7052         * posix/regex_internal.h (internal_function): Remove definition.
7053         (re_string_realloc_buffers, build_wcs_buffer)
7054         (build_wcs_upper_buffer, build_upper_buffer)
7055         (re_string_translate_buffer, re_string_context_at)
7056         (re_string_char_size_at, re_string_wchar_at)
7057         (re_string_elem_size_at): Likewise.
7058         * posix/regexec.c (match_ctx_init, match_ctx_clean)
7059         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
7060         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
7061         (re_search_internal, re_search_2_stub, re_search_stub)
7062         (re_copy_regs, prune_impossible_nodes, check_matching)
7063         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
7064         (free_fail_stack_return, sift_states_iter_mb)
7065         (sift_states_backward, build_sifted_states)
7066         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
7067         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
7068         (check_subexp_limits, sift_states_bkref, merge_state_array)
7069         (find_recover_state, transit_state, merge_state_with_log)
7070         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
7071         (transit_state_mb, transit_state_bkref, get_subexp)
7072         (get_subexp_sub, find_subexp_node, check_arrival)
7073         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7074         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
7075         (check_node_accept_bytes, find_collation_sequence_value)
7076         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
7077         (acquire_init_state_context, check_halt_node_context)
7078         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
7079         (sub_epsilon_src_nodes): Likewise.
7080         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
7081         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
7082         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
7083         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
7084         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
7085         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
7086         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
7087         * sysdeps/posix/ttyname.c (getttyname): Likewise.
7088         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
7089         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
7090         (PREADV): Likewise.
7091         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
7092         (PREADV): Likewise.
7093         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
7094         (PWRITEV): Likewise.
7095         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
7096         (PWRITEV): Likewise.
7097         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
7098         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
7100 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7102         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
7103         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
7104         Remove internal_function.
7105         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
7106         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
7107         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
7108         (__deallocate_stack, __libc_pthread_init)
7109         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
7110         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
7111         (__libc_disable_asynccancel, __librt_disable_asynccancel):
7112         Likewise.
7113         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
7114         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
7115         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
7116         Likewise.
7117         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
7118         (__pthread_mutex_unlock_usercnt): Likewise.
7120 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7122         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
7123         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
7124         (fts_safe_changedir): Remove internal_function.
7125         * io/ftw.c (internal_function): Remove definition.
7126         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
7128 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7130         * inet/deadline.c (__deadline_current_time)
7131         (__deadline_from_timeval, __deadline_to_ms): Remove
7132         internal_function.
7133         * inet/getnameinfo.c (nrl_domainname): Likewise.
7134         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7135         * inet/inet6_option.c (add_pad): Likewise.
7136         * inet/net-internal.h (__deadline_current_time)
7137         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7138         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7139         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7140         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7142 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7144         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7145         include <bits/nan.h>.
7146         * math/Makefile (headers): Remove bits/nan.h.
7147         * bits/nan.h: Remove.
7148         * sysdeps/ieee754/bits/nan.h: Likewise.
7149         * sysdeps/mips/bits/nan.h: Likewise.
7151         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7152         not include <bits/inf.h>.
7153         * math/Makefile (headers): Remove bits/inf.h.
7154         * bits/inf.h: Remove.
7155         * sysdeps/ieee754/bits/inf.h: Likewise.
7157         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7158         bits/huge_vall.h or bits/huge_val_flt128.h.
7159         (HUGE_VAL): Define directly here.
7160         [__USE_ISOC99] (HUGE_VALF): Likewise.
7161         [__USE_ISOC99] (HUGE_VALL): Likewise.
7162         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7163         (HUGE_VAL_F128): Likewise.
7164         * math/Makefile (headers): Remove bits/huge_val.h,
7165         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7166         * bits/huge_val.h: Remove.
7167         * bits/huge_val_flt128.h: Likewise.
7168         * bits/huge_valf.h: Likewise.
7169         * bits/huge_vall.h: Likewise.
7170         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7171         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7172         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7173         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7174         * sysdeps/sh/bits/huge_val.h: Likewise.
7175         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7176         * sysdeps/x86/bits/huge_vall.h: Likewise.
7178 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7180         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7181         internal_function.
7182         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7183         Likewise.
7184         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7185         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7186         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7187         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7188         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7189         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7190         * elf/dl-libc.c (dlerror_run): Likewise.
7191         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7192         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7193         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7194         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7195         Likewise.
7196         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7197         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7198         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7199         * elf/dl-profile.c (_dl_start_profile): Likewise.
7200         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7201         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7202         Likewise.
7203         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7204         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7205         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7206         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7207         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7208         (_dl_allocate_tls_storage): Likewise.
7209         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7210         (_dl_check_all_versions): Likewise.
7211         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7212         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7213         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7214         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7215         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7216         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7217         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7218         internal_function from __dl_start.
7219         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7220         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7221         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7222         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7223         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7224         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7225         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7226         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7227         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7228         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7229         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7230         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7231         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7232         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7233         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7234         Likewise.
7235         (struct rtld_global_ro): Remove internal_function from the
7236         _dl_lookup_symbol_x member.
7237         (_dl_symbol_value): Remove.  No longer defined anywhere.
7238         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7239         internal_function.
7240         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7241         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7242         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7243         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7244         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7245         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7246         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7247         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7248         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7249         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7250         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7251         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
7253 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7255         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
7256         Remove internal_function.
7257         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7258         Likewise.
7259         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7260         Likewise.
7262 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7264         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
7265         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
7266         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
7268 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7270         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
7271         (__gai_enqueue_request): Remove internal_function.
7272         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
7273         (__gai_remove_request, __gai_notify, __gai_notify_only)
7274         (__gai_sigqueue): Likewise.
7275         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
7276         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
7277         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
7278         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7279         Likewise.
7281 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7283         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
7284         * include/dirent.h (__opendirat, __getdents, __getdents64)
7285         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
7286         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
7287         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7288         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7289         Likewise.
7290         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
7292 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7294         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
7295         internal_function.
7296         (GETCWD_RETURN_TYPE): Likewise.
7298 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7300         * include/time.h (__tz_compute, __strptime_internal): Remove
7301         internal_function.
7302         * time/strptime_l.c (__strptime_internal): Likewise.
7303         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
7305 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7307         * iconv/gconv.c (__gconv): Remove internal_function.
7308         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
7309         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
7310         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
7311         (__gconv_release_cache): Likewise.
7312         * iconv/gconv_close.c (__gconv_close): Likewise.
7313         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
7314         (read_conf_file, __gconv_get_path): Likewise.
7315         * iconv/gconv_db.c (derivation_lookup, add_derivation)
7316         (__gconv_release_step, gen_steps, increment_counter)
7317         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
7318         (__gconv_close_transform, free_modules_db): Likewise.
7319         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
7320         Likewise.
7321         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
7322         (__gconv_find_transform, __gconv_lookup_cache)
7323         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
7324         (__gconv_close_transform, __gconv_release_cache)
7325         (__gconv_loaded_object, __gconv_release_shlib)
7326         (__gconv_compare_alias): Likewise.
7327         * iconv/gconv_open.c (__gconv_open): Likewise.
7328         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
7329         * iconv/iconvconfig.c (add_module): Likewise.
7330         * intl/dcigettext.c (plural_lookup, guess_category_value)
7331         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
7332         * intl/eval-plural.h (plural_eval): Likewise.
7333         * intl/finddomain.c (_nl_find_domain): Likewise.
7334         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
7335         (_nl_load_domain, _nl_find_msg): Likewise.
7336         (internal_function): Remove definition.
7337         * intl/loadinfo.h (internal_function): Likewise.
7338         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
7339         internal_function.
7340         * intl/localealias.c (internal_function): Remove definition.
7341         (read_alias_file): Remove internal_function.
7342         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
7343         * intl/plural-exp.h (internal_function): Remove definition.
7344         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
7345         internal_function.
7346         * intl/plural.c: Regenerate.
7347         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
7348         * locale/coll-lookup.c (__collidx_table_lookup)
7349         (__collseq_table_lookup): Likewise.
7350         * locale/coll-lookup.h (__collidx_table_lookup)
7351         (__collseq_table_lookup): Likewise.
7352         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
7353         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7354         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
7355         (_nl_unload_locale): Likewise.
7356         * locale/localeinfo.h (struct __locale_data): Remove
7357         internal_function from cleanup member.
7358         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
7359         (_nl_remove_locale, _nl_load_locale_from_archive)
7360         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
7361         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
7362         (_nl_cleanup_time): Remove internal_function.
7363         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
7364         (_nl_parse_alt_digit): Likewise.
7365         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
7366         (_nl_select_era_entry): Likewise.
7367         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7368         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7369         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7370         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7371         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7373 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7375         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
7376         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7377         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
7378         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
7379         Likewise.
7380         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
7381         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
7382         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
7383         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7384         Likewise.
7385         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
7387 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7389         * misc/getttyent.c (skip, value): Remove internal_function.
7390         * misc/syslog.c (openlog_internal): Likewise.
7391         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
7393 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7395         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
7396         (__nss_rewrite_field): Remove internal_function.
7397         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7398         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7399         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7400         * nss/nsswitch.c (nss_parse_file, nss_getline)
7401         (nss_parse_service_list, nss_new_service): Likewise.
7402         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
7403         * nss/valid_field.c (__nss_valid_field): Likewise.
7404         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
7406 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7408         * malloc/arena.c (__malloc_fork_lock_parent)
7409         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
7410         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
7411         internal_function from defintions.
7412         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
7413         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
7414         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
7415         internal_function from declarations.
7416         * malloc/malloc.c (internal_function): Do not define.
7417         (mem2mem_check): Remove internal_function from declaration.
7418         (munmap_chunk, mremap_chunk): Remove internal_function.
7419         * malloc/mtrace.c (tr_where): Likewise.
7421 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7423         * include/rpc/pmap_clnt.h (__get_socket): Remove
7424         internal_function.
7425         * sunrpc/auth_des.c (synchronize): Likewise.
7426         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
7427         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
7428         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
7429         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
7430         (key_call): Likewise.
7431         * sunrpc/pm_getport.c (__get_socket): Likewise.
7432         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
7433         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
7434         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
7435         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
7436         (invalidate): Likewise.
7437         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
7438         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
7439         (set_input_fragment, get_input_bytes): Likewise.
7441 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7443         * malloc/malloc.c (_int_free): Remove locked variable and related
7444         asserts.
7446 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
7448         [BZ #22051]
7449         * Makerules (build-module-helper-objlist): Filter out
7450         $(elf-objpfx)sofini.os.
7451         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
7452         needed.
7454 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7456         * libio/fcloseall.c: Assume weak_alias is defined.
7457         * libio/feof.c: Likewise.
7458         * libio/fileno.c: Likewise.
7459         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
7460         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7461         definitions.
7462         (_IO_file_open): Call __open directly.
7463         (_IO_new_file_sync): Assume ESPIPE is defined.
7464         (_IO_file_seekoff_maybe_mmap): Call __read directly.
7465         (_IO_new_file_write): Call __write directly.
7466         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
7467         * libio/ftello64.c (__ftello64): Assume EIO is defined.
7468         * libio/genops.c: Assume _LIBC is defined.
7469         (save_for_backup): Remove internal_function.
7470         * libio/getc.c: Assume weak_alias is defined.
7471         * libio/getwc.c: Likewise.
7472         * libio/iofclose.c: Assume _LIBC is defined.
7473         * libio/iofdopen.c: Likewise.
7474         (_IO_fcntl): Remove macro definition.
7475         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
7476         Call __fcntl directly.
7477         * libio/iofflush.c: Assume weak_alias is defined.
7478         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
7479         defined.
7480         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
7481         * libio/iofgets.c: Likewise.
7482         * libio/iofopen.c: Assume _LIBC is defined.
7483         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
7484         * libio/iofputs.c: Assume weak_alias is defined.
7485         * libio/iofread.c: Likewise.
7486         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
7487         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
7488         * libio/ioftell.c: Assume weak_alias is defined.
7489         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
7490         * libio/iofwide.c: Assume _LIBC is defined.
7491         (_IO_fwide): Drop SHARED conditional because it is implied by
7492         SHLIB_COMPAT.
7493         * libio/iofwrite.c: Assume weak_alias is defined.
7494         * libio/iogetdelim.c: Likewise.
7495         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
7496         * libio/iogetwline.c (wmemcpy): Remove macro definition.
7497         (_IO_getwline): Call __wmemcpy directly.
7498         * libio/iopopen.c: Assume _LIBC is defined.
7499         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7500         (_IO_close): Remove macro definitions.
7501         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
7502         _exit directly.
7503         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
7504         directly.
7505         * libio/ioputs.c: Assume weak_alias is defined.
7506         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
7507         * libio/iosetbuffer.c: Assume weak_alias is defined.
7508         * libio/iosetvbuf.c: Likewise.
7509         * libio/ioungetc.c: Likewise.
7510         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
7511         libc_hidden_def, libc_hidden_weak, NULL are defined.
7512         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
7513         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
7514         defined.
7515         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7516         definitions.
7517         (_IO_old_file_init_internal): Drop SHARED conditional because it
7518         is implied by SHLIB_COMPAT.
7519         (_IO_old_file_fopen): Call __open directly.
7520         (_IO_old_file_sync): Assume ESPIPE is defined.
7521         (_IO_old_file_write): Call __write directly.
7522         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
7523         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
7524         Call __fcntl directly.
7525         * libio/oldiofgetpos.c: Assume weak_alias is defined.
7526         (_IO_old_fgetpos): Assume EIO is defined.
7527         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
7528         (_IO_old_fgetpos64): Assume EIO is defined.
7529         * libio/oldiofsetpos.c: Assume weak_alias is defined.
7530         (_IO_old_fsetpos): Assume EIO is defined.
7531         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
7532         (_IO_old_fsetpos64): Assume EIO is defined.
7533         * libio/oldiopopen.c:  Assume _LIBC is defined.
7534         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7535         (_IO_close): Remove macro definitions.
7536         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
7537         directly.
7538         (_IO_old_proc_close): Call __close, __waitpid directly.
7539         * libio/put.c: Assume weak_alias is defined.
7540         * libio/stdfiles.c: Assume _LIBC is defined.
7541         * libio/stdio.c: Likewise.
7542         * libio/wfileops.c: Likewise.
7543         (_IO_wfile_sync): Assume ESPIPE is defined.
7544         * libio/wgenops.c: Assume _LIBC is defined.
7545         (save_for_wbackup): Remove internal_function.
7547 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7549         * malloc/malloc.c (top_check): Change return type to void.  Remove
7550         internal_function.
7551         * malloc/hooks.c (top_check): Likewise.
7552         (malloc_check, realloc_check, memalign_check): Adjust.
7554 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
7556         [BZ #21457]
7557         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7558         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
7559         sigcontext and namespace requirements.
7560         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7561         * sysdeps/m68k/sys/ucontext.h: Likewise.
7562         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
7563         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
7564         <bits/sigcontext.h>.
7565         (__ctx): Define earlier.
7566         (mcontext_t): Define structure contents rather than using struct
7567         sigcontext.
7568         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
7569         __glibc_reserved1 instead of __reserved.
7570         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
7571         <bits/sigcontext.h>.
7572         (__ctx): Define earlier.
7573         (mcontext_t): Define structure contents rather than using struct
7574         sigcontext.
7575         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
7576         mcontext_t instead of struct sigcontext.
7577         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
7578         <bits/sigcontext.h>.
7579         (__ctx): Define earlier.
7580         (mcontext_t): Define structure contents rather than using struct
7581         sigcontext.
7582         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
7583         <bits/sigcontext.h>.
7584         (__ctx): Define earlier.
7585         (mcontext_t): Define structure contents rather than using struct
7586         sigcontext.
7587         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
7588         mcontext_t instead of struct sigcontext.
7589         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
7590         mcontext_t instead of struct sigcontext.
7591         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
7592         <bits/sigcontext.h>.
7593         (__ctx): New macro.
7594         (struct __ia64_fpreg_mcontext): New type.
7595         (mcontext_t): Define structure contents rather than using struct
7596         sigcontext.
7597         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
7598         (uc_sigmask): Define using __ctx.
7599         (uc_stack): Likewise.
7600         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
7601         <bits/sigcontext.h>.
7602         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7603         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
7604         <bits/sigcontext.h>.
7605         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
7606         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
7607         <bits/sigcontext.h>.
7608         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
7609         <bits/sigcontext.h>.
7610         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
7611         <bits/sigcontext.h>.
7612         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
7613         <bits/sigcontext.h>.
7614         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
7615         <bits/sigcontext.h>.
7616         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
7617         <bits/sigcontext.h>.
7618         * sysdeps/unix/sysv/linux/tile/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/x86/sys/ucontext.h: Do not include
7624         <bits/sigcontext.h>.  Include <bits/types.h>.
7625         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
7626         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
7627         (test-xfail-XPG42/ucontext.h/conform): Likewise.
7628         (test-xfail-UNIX98/signal.h/conform): Likewise.
7629         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
7630         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
7631         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
7632         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
7633         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7634         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7635         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7636         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7637         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7639 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7641         * malloc/dynarray_emplace_enlarge.c
7642         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
7643         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7644         * malloc/tst-dynarray.c (test_long_overflow): New function.
7645         (do_test): Call it.
7647 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7649         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
7650         (set_arena_corrupt): Remove definitions.
7651         (mtrim): Do not check for corrupt arena.
7652         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
7653         Likewise.
7655 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7657         [BZ #21754]
7658         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
7659         check_action.
7660         (ptmalloc_init): Do not set or use check_action.
7661         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
7662         call to malloc_printerr.  Remove return statement.
7663         (free_check): Likewise.  Remove arena unlock.
7664         (top_check): Update comment.  Adjust call to malloc_printerr.
7665         Remove heap repair code.
7666         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
7667         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
7668         (sysmalloc): Adjust call to malloc_printerr.
7669         (munmap_chunk, __libc_realloc): Likewise.  Remove return
7670         statement.
7671         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
7672         Remove errout label and corresponding gotos.
7673         (_int_free): Likewise.  Remove arena unlock.
7674         (do_set_mallopt_check): Do not set check_action.
7675         (malloc_printerr): Adjust parameter list.  Do not mark arena as
7676         corrupt.
7677         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
7678         comment.
7679         * manual/probes.texi (Memory Allocation Probes): Remove
7680         memory_mallopt_check_action.
7682 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
7684         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
7685         Use pointer to uint64_t instead of long int for sp.
7687 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7689         [BZ #21754]
7690         * malloc/malloc.c (malloc_printerr): Always terminate the process,
7691         without printing a backtrace.  Do not leak any information in the
7692         error message.
7693         * manual/memory.texi (Heap Consistency Checking): Update.
7694         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
7696 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7698         Do not scale NPTL tests with available number of CPUs.
7699         * nptl/tst-cond16.c (count): Set to constant value of 8.
7700         * nptl/tst-cond18.c (count): Likewise.
7702 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7704         [BZ #22035]
7705         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
7706         Define to take a second argument that is a macro that
7707         concatentates a suffix, not the suffix itself.
7708         (__CONCAT_d): New macro.
7709         (__CONCAT_f): Likewise.
7710         (__CONCAT_l): Likewise.
7712 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
7714         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
7715         by child.
7717 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7718             Aurelien Jarno  <aurelien@aurel32.net>
7719             Maciej W. Rozycki  <macro@imgtec.com>
7721         [BZ #21956]
7722         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
7723         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
7724         `mips16-syscall6' and `mips16-syscall7'.
7725         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
7726         (CFLAGS-mips16-syscall7.c): Remove.
7727         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
7728         Remove `__mips16_syscall5', `__mips16_syscall6' and
7729         `__mips16_syscall7'.
7730         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
7731         (__mips16_syscall0): Rename `__mips16_syscall_return' to
7732         `__mips_syscall_return'.
7733         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
7734         (__mips16_syscall1): Likewise.
7735         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
7736         (__mips16_syscall2): Likewise.
7737         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
7738         (__mips16_syscall3): Likewise.
7739         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
7740         (__mips16_syscall4): Likewise.
7741         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
7742         Remove.
7743         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
7744         Remove.
7745         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
7746         Remove.
7747         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
7748         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
7749         `__mips16_syscall5'.  Remove prototype.
7750         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
7751         `__mips16_syscall6'.  Remove prototype.
7752         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
7753         `__mips16_syscall7'.  Remove prototype.
7754         (__nomips16, __mips16_syscall_return): Move to...
7755         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
7756         (__nomips16, __mips_syscall_return): ... here.
7757         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
7758         `__mips16_syscall_return' to `__mips_syscall_return'.
7759         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
7760         `internal_syscall##nr'.
7761         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
7762         `internal_syscall##nr'.
7763         (FORCE_FRAME_POINTER): Remove.
7764         (__mips_syscall5): New prototype.
7765         (internal_syscall5): Rewrite to call `__mips_syscall5'.
7766         (__mips_syscall6): New prototype.
7767         (internal_syscall6): Rewrite to call `__mips_syscall6'.
7768         (__mips_syscall7): New prototype.
7769         (internal_syscall7): Rewrite to call `__mips_syscall7'.
7770         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
7771         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
7772         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
7773         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
7774         (sysdep_routines): Add libc-do-syscall.
7775         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
7776         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
7778 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7780         [BZ #21672]
7781         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
7782         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
7783         (advise_stack_range): New function.
7784         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
7785         stack non required to advise_stack_range at allocatestack.c
7787 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7789         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
7791 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7793         [BZ #22026]
7794         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
7795         __end_fct.  Mangle __end_fct after setting it to NULL.
7796         * iconv/Makefile (tests): Add tst-gconv-init-failure.
7797         (modules-names, modules-names-tests): Add
7798         tst-gconv-init-failure-mod.
7799         (gconv-modules): New target.
7800         (tst-gconv-init-failure-mod.so): Link against libsupport.
7801         (tst-gconv-init-failure): Depend on gconv-modules,
7802         tst-gconv-init-failure-mod.so.
7803         * iconv/tst-gconv-init-failure-mod.c: New file.
7804         * iconv/tst-gconv-init-failure.c: Likewise.
7805         * iconv/test-gconv-modules: Likewise.
7807 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7809         [BZ #22025]
7810         * iconv/gconv_db.c (free_derivation): Remove redundant
7811         parentheses.
7812         (gen_steps): Unconditionally mangle __btowc_fct after
7813         initialization.
7814         (increment_counter): Likewise.  Do not call init_fct for internal
7815         modules.
7817 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7819         [BZ #22028]
7820         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7821         (_MSUF_): Remove macro.
7822         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
7823         Likewise.
7824         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7825         (__REDIRFROM_X): New macro.
7826         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
7827         Likewise.
7828         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
7829         (__REDIRTO_X): Likewise.
7830         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
7831         arguments.
7832         (__MATH_REDIRCALL_2): Likewise.
7833         (__MATH_REDIRCALL_INTERNAL): Likewise.
7834         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7835         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
7836         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
7837         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7838         * math/test-finite-macros.c: New file.
7839         * math/Makefile (tests): Add test-finite-macros.
7840         (CFLAGS-test-finite-macros.c): New variable.
7842 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
7843             Jeff Law  <law@redhat.com>
7845         [BZ #22025]
7846         Mangle NULL pointers in iconv/gconv.
7847         * iconv/gconv_cache.c (find_module): Demangle init_fct before
7848         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
7849         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
7850         is non-NULL before demangling the end_fct.  Check for NULL
7851         end_fct after demangling.
7852         (__gconv_release_step): Demangle the end_fct before checking
7853         it for NULL.   Remove assert on __shlibc_handle != NULL.
7854         (gen_steps): Don't check btowc_fct for NULL before mangling.
7855         Demangle init_fct before checking for NULL.
7856         (increment_counter): Likewise.
7857         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
7858         end_fct for NULL before mangling.
7859         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
7860         for NULL.
7862 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
7864         [BZ #21971]
7865         * locale/iso-639.def: add Morisyen.
7867 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7869         [BZ #21930]
7870         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
7871         (iszero): New C++ implementation that does not use
7872         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
7873         signaling nans are enabled, since __builtin_types_compatible_p
7874         is a C-only feature.
7875         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
7876         defined, include ieee754_float128.h for access to the union and
7877         member ieee854_float128.ieee.
7878         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
7879         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
7880         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7881         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
7882         options of test-math-zero on powerpc64le.
7884 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
7886         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
7887         Change double to float.
7889 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
7891         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
7892         unconditional.
7893         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
7894         conditional code; define contents only for [LIBM_SVID_COMPAT].
7896 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7898         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
7899         (abi-lp64_be-options): Remove.
7900         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
7901         (abi-hard-options): Likewise.
7902         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
7903         (abi-o32_hard-options, abi-o32_soft_2008-options)
7904         (abi-o32_hard_2008-options, abi-n32_soft-options)
7905         (abi-n32_hard-options, abi-n32_soft_2008-options)
7906         (abi-n32_hard_2008-options, abi-n64_soft-options)
7907         (abi-n64_hard-options, abi-n64_soft_2008-options)
7908         (abi-n64_hard_2008-options): Likewise.
7909         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
7910         (abi-64-v1-options, abi-64-v2-options): Likewise.
7911         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
7912         (abi-64-options): Likewise.
7913         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
7914         (abi-64-options): Likewise.
7915         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
7916         (abi-64-options): Likewise.
7917         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
7918         (abi-64-options, abi-x32-options): Likewise.
7920 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7922         Store supported list of SYS_* system calls in the source tree.
7923         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7924         (bits/syscall.h): Generate from list file.
7925         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
7926         [$(subdir) = misc] (tests): Add tst-syscall-list.
7927         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
7928         [$(subdir) = misc] (tst-syscall-list-macros.list)
7929         [$(subdir) = misc] (tst-syscall-list-nr.list)
7930         (tst-syscall-list-sys.list): Helper targets for new
7931         tst-syscall-list test.
7932         [$(subdir) = misc] (tst-syscall-list.out): Run test script
7933         tst-syscall-list.sh.
7934         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
7935         target. Do not include bits/syscall.d.
7936         [$(subdir) = misc] (generated): Do not update.
7937         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
7938         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
7939         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
7940         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
7942 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
7944         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
7945         (tst-cxa_atexit, tst-on_exit): Likewise.
7946         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
7947         tst-cxa_atexit, and tst-on_exit.
7948         * stdlib/tst-atexit-common.c: New file.
7949         * stdlib/tst-atexit.c: New file.
7950         * stdlib/tst-at_quick_exit.c: New file.
7951         * stdlib/tst-cxa_atexit.c: New file.
7952         * stdlib/tst-on_exit.c: New file.
7954 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7956         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
7957         * mach/stack_chk_fail_local.c: New file.
7958         * hurd/stack_chk_fail_local.c: New file.
7959         * mach/Machrules ($(interface-library)-routines): Add
7960         stack_chk_fail_local.
7961         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
7962         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
7963         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
7964         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
7965         * hurd/Makefile (CFLAGS-hurdstartup.o,
7966         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
7968 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
7970         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
7971         (index_cpu_*, index_arch_*): Removed.
7973 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7975         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
7976         Use uint64_t instead of unsigned long.
7978 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
7980         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
7981         [__HAVE_DISTINCT_FLOAT128].
7983         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
7984         of <bits/math-finite.h>.
7985         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
7986         inclusion of <bits/math-finite.h>.
7987         * math/bits/math-finite.h (__REDIRTO_X): Do not define
7988         conditionally on [__MATH_DECLARING_LDOUBLE && defined
7989         __NO_LONG_DOUBLE_MATH].
7990         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
7991         (__MATH_REDIRCALL_2): Likewise.
7992         (__MATH_REDIRCALL_INTERNAL): Likewise.
7993         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7994         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
7995         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
7998         Remove file.
7999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
8000         Likewise.
8001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
8002         Likewise.
8003         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
8004         Likewise.
8005         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
8006         Likewise.
8007         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
8008         Likewise.
8009         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8010         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8011         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8012         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8013         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
8014         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
8015         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
8016         w_sqrtf_compat-ppc32.
8018 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8020         * math/math.h [defined __cplusplus] (issignaling): In the long
8021         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
8022         is not defined.  Call __issignaling, otherwise.
8024 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8026         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
8027         syscall definitions and replace __builtin_expect with __glibc_likely.
8028         * sysdeps/unix/syscall-template.S: Update comment about cancellable
8029         syscall.
8030          (SYSCALL_CANCELLABLE): Removedefinition
8031         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
8032         definition.
8033         (PSEUDO_END): Likewise.
8034         [IS_IN (libpthread)] (CENABLE): Likewise.
8035         [IS_IN (libpthread)] (CDISABLE): Likewise.
8036         [IS_IN (libc)] (CENABLE): Likewise.
8037         [IS_IN (libc)] (CENABLE): Likewise.
8038         [IS_IN (librt)] (CDISABLE): Likewise.
8039         [IS_IN (librt)] (CDISABLE): Likewise.
8040         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8041         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
8042         definition.
8043         (PSEUDO_END): Likewise.
8044         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
8045         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
8046         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8047         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
8048         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8049         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
8050         (CENABLE): Likewise.
8051         (CDISABLE): Likewise.
8052         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8053         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
8054         defintion.
8055         (PSEUDO_END): Likewise.
8056         [IS_IN (libpthread)] (CENABLE): Likewise.
8057         [IS_IN (libpthread)] (CDISABLE): Likewise.
8058         [IS_IN (libc)] (CENABLE): Likewise.
8059         [IS_IN (libc)] (CENABLE): Likewise.
8060         [IS_IN (librt)] (CDISABLE): Likewise.
8061         [IS_IN (librt)] (CDISABLE): Likewise.
8062         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8063         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
8064         definition.
8065         (PSEUDO_END): Likewise.
8066         [IS_IN (libpthread)] (CENABLE): Likewise.
8067         [IS_IN (libpthread)] (CDISABLE): Likewise.
8068         [IS_IN (libc)] (CENABLE): Likewise.
8069         [IS_IN (libc)] (CENABLE): Likewise.
8070         [IS_IN (librt)] (CDISABLE): Likewise.
8071         [IS_IN (librt)] (CDISABLE): Likewise.
8072         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8073         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
8074         definition.
8075         (PSEUDO_END): Likewise.
8076         [IS_IN (libpthread)] (CENABLE): Likewise.
8077         [IS_IN (libpthread)] (CDISABLE): Likewise.
8078         [IS_IN (libc)] (CENABLE): Likewise.
8079         [IS_IN (libc)] (CENABLE): Likewise.
8080         [IS_IN (librt)] (CDISABLE): Likewise.
8081         [IS_IN (librt)] (CDISABLE): Likewise.
8082         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8083         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
8084         definition.
8085         (PSEUDO_END): Likewise.
8086         [IS_IN (libpthread)] (CENABLE): Likewise.
8087         [IS_IN (libpthread)] (CDISABLE): Likewise.
8088         [IS_IN (libc)] (CENABLE): Likewise.
8089         [IS_IN (libc)] (CENABLE): Likewise.
8090         [IS_IN (librt)] (CDISABLE): Likewise.
8091         [IS_IN (librt)] (CDISABLE): Likewise.
8092         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8093         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
8094         definition.
8095         (PSEUDO_END): Likewise.
8096         [IS_IN (libpthread)] (CENABLE): Likewise.
8097         [IS_IN (libpthread)] (CDISABLE): Likewise.
8098         [IS_IN (libc)] (CENABLE): Likewise.
8099         [IS_IN (libc)] (CENABLE): Likewise.
8100         [IS_IN (librt)] (CDISABLE): Likewise.
8101         [IS_IN (librt)] (CDISABLE): Likewise.
8102         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8103         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
8104         definition.
8105         (PSEUDO_END): Likewise.
8106         [IS_IN (libpthread)] (CENABLE): Likewise.
8107         [IS_IN (libpthread)] (CDISABLE): Likewise.
8108         [IS_IN (libc)] (CENABLE): Likewise.
8109         [IS_IN (libc)] (CENABLE): Likewise.
8110         [IS_IN (librt)] (CDISABLE): Likewise.
8111         [IS_IN (librt)] (CDISABLE): Likewise.
8112         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8113         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
8114         Remove definition.
8115         (PSEUDO_END): Likewise.
8116         [IS_IN (libpthread)] (CENABLE): Likewise.
8117         [IS_IN (libpthread)] (CDISABLE): Likewise.
8118         [IS_IN (libc)] (CENABLE): Likewise.
8119         [IS_IN (libc)] (CENABLE): Likewise.
8120         [IS_IN (librt)] (CDISABLE): Likewise.
8121         [IS_IN (librt)] (CDISABLE): Likewise.
8122         (SINGLE_THREAD_P): Likewise.
8123         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
8124         definition.
8125         (PSEUDO_END): Likewise.
8126         [IS_IN (libpthread)] (CENABLE): Likewise.
8127         [IS_IN (libpthread)] (CDISABLE): Likewise.
8128         [IS_IN (libc)] (CENABLE): Likewise.
8129         [IS_IN (libc)] (CENABLE): Likewise.
8130         [IS_IN (librt)] (CDISABLE): Likewise.
8131         [IS_IN (librt)] (CDISABLE): Likewise.
8132         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8133         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
8134         definition.
8135         (PSEUDO_END): Likewise.
8136         [IS_IN (libpthread)] (CENABLE): Likewise.
8137         [IS_IN (libpthread)] (CDISABLE): Likewise.
8138         [IS_IN (libc)] (CENABLE): Likewise.
8139         [IS_IN (libc)] (CENABLE): Likewise.
8140         [IS_IN (librt)] (CDISABLE): Likewise.
8141         [IS_IN (librt)] (CDISABLE): Likewise.
8142         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8143         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8144         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8145         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8146         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8147         definition.
8148         (PSEUDO_END): Likewise.
8149         [IS_IN (libpthread)] (CENABLE): Likewise.
8150         [IS_IN (libpthread)] (CDISABLE): Likewise.
8151         [IS_IN (libc)] (CENABLE): Likewise.
8152         [IS_IN (libc)] (CENABLE): Likewise.
8153         [IS_IN (librt)] (CDISABLE): Likewise.
8154         [IS_IN (librt)] (CDISABLE): Likewise.
8155         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8156         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
8157         definition.
8158         (PSEUDO_END): Likewise.
8159         [IS_IN (libpthread)] (CENABLE): Likewise.
8160         [IS_IN (libpthread)] (CDISABLE): Likewise.
8161         [IS_IN (libc)] (CENABLE): Likewise.
8162         [IS_IN (libc)] (CENABLE): Likewise.
8163         [IS_IN (librt)] (CDISABLE): Likewise.
8164         [IS_IN (librt)] (CDISABLE): Likewise.
8165         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8166         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
8167         definition.
8168         (PSEUDO_END): Likewise.
8169         [IS_IN (libpthread)] (CENABLE): Likewise.
8170         [IS_IN (libpthread)] (CDISABLE): Likewise.
8171         [IS_IN (libc)] (CENABLE): Likewise.
8172         [IS_IN (libc)] (CENABLE): Likewise.
8173         [IS_IN (librt)] (CDISABLE): Likewise.
8174         [IS_IN (librt)] (CDISABLE): Likewise.
8175         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8176         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8177         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8178         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8179         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8180         definition.
8181         (PSEUDO_END): Likewise.
8182         [IS_IN (libpthread)] (CENABLE): Likewise.
8183         [IS_IN (libpthread)] (CDISABLE): Likewise.
8184         [IS_IN (libc)] (CENABLE): Likewise.
8185         [IS_IN (libc)] (CENABLE): Likewise.
8186         [IS_IN (librt)] (CDISABLE): Likewise.
8187         [IS_IN (librt)] (CDISABLE): Likewise.
8188         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8189         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8190         definition.
8191         (PSEUDO_END): Likewise.
8192         [IS_IN (libpthread)] (CENABLE): Likewise.
8193         [IS_IN (libpthread)] (CDISABLE): Likewise.
8194         [IS_IN (libc)] (CENABLE): Likewise.
8195         [IS_IN (libc)] (CENABLE): Likewise.
8196         [IS_IN (librt)] (CDISABLE): Likewise.
8197         [IS_IN (librt)] (CDISABLE): Likewise.
8198         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8200 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8202         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8204 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8206         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8208 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8210         [BZ #21982]
8211         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8212         middle and outer with size_t instead of int.  Repleace %d and
8213         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8214         "MAX (outer, nchars - 64)" to support unsigned outer and
8215         nchars.  Also exit loop when outer == 0.
8217 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8219         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8220         * include/signal.h (__sigsuspend_nocancel): Likewise.
8221         * include/time.h (__nanosleep_nocancel): Likewise.
8222         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8223         * login/utmp_file.c: Include non cancellable syscall header.
8224         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8225         prototype.
8227 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8229         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8230         .byte sequences with AVX512F instructions.
8231         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8232         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8233         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8234         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8235         Likewise.
8236         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8237         Likewise.
8239 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8240             Steve Ellcey  <sellcey@cavium.com>
8242         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8243         Use PTR_REG macro in cmp instruction.
8245 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8247         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8248         Change the return type of the ifunc resolver to match the return
8249         type of the target function.
8251 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8253         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
8254         (preadv64): Likewise.
8255         (pwrite64(: Likewise.
8256         (pwritev64): Likewise.
8258         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8259         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
8260         (LOAD_ARGS_0): Likewise.
8261         (LOAD_ARGS_1): Likewise.
8262         (LOAD_ARGS_2): Likewise.
8263         (LOAD_ARGS_3): Likewise.
8264         (LOAD_ARGS_4): Likewise.
8265         (LOAD_ARGS_5): Likewise.
8266         (LOAD_ARGS_6): Likewise.
8267         (LOAD_REGS_0): Likewise.
8268         (LOAD_REGS_1): Likewise.
8269         (LOAD_REGS_2): Likewise.
8270         (LOAD_REGS_3): Likewise.
8271         (LOAD_REGS_4): Likewise.
8272         (LOAD_REGS_5): Likewise.
8273         (LOAD_REGS_6): Likewise.
8274         (ASM_ARGS_0): Likewise.
8275         (ASM_ARGS_1): Likewise.
8276         (ASM_ARGS_2): Likewise.
8277         (ASM_ARGS_3): Likewise.
8278         (ASM_ARGS_4): Likewise.
8279         (ASM_ARGS_5): Likewise.
8280         (ASM_ARGS_6): Likewise.
8281         (LOAD_ARGS_TYPES_1): Likewise.
8282         (LOAD_ARGS_TYPES_2): Likewise.
8283         (LOAD_ARGS_TYPES_3): Likewise.
8284         (LOAD_ARGS_TYPES_4): Likewise.
8285         (LOAD_ARGS_TYPES_5): Likewise.
8286         (LOAD_ARGS_TYPES_6): Likewise.
8287         (LOAD_REGS_TYPES_1): Likewise.
8288         (LOAD_REGS_TYPES_2): Likewise.
8289         (LOAD_REGS_TYPES_3): Likewise.
8290         (LOAD_REGS_TYPES_4): Likewise.
8291         (LOAD_REGS_TYPES_5): Likewise.
8292         (LOAD_REGS_TYPES_6): Likewise.
8293         (TYPEFY): New define.
8294         (ARGIFY): Likewise.
8295         (internal_syscall0): Likewise.
8296         (internal_syscall1): Likewise.
8297         (internal_syscall2): Likewise.
8298         (internal_syscall3): Likewise.
8299         (internal_syscall4): Likewise.
8300         (internal_syscall5): Likewise.
8301         (internal_syscall6): Likewise.
8302         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
8303         (INTERNAL_SYSCALL_NCS): Remove define.
8304         (internal_syscall1): Add define.
8306 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8308         * math/w_remainder_compat.c: Remove duplicate inclusion of
8309         math-svid-compat.h.
8310         * math/w_remainderf_compat.c: Likewise.
8311         * math/w_remainderl_compat.c: Likewise.
8313 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8315         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8317 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8319         [BZ #21684]
8320         * math/tgmath.h (__floating_type): Simplify definitions.
8321         (__real_integer_type): New macro.
8322         (__complex_integer_type): Likewise.
8323         (__expr_is_real): Likewise.
8324         (__tgmath_real_type_sub): Update comment to describe handling of
8325         complex types.
8326         (__tgmath_complex_type_sub): New macro.
8327         (__tgmath_complex_type): Likewise.
8328         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8329         (__TGMATH_CF128): Use __expr_is_real.
8330         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
8331         __expr_is_real.
8332         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8333         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
8334         * math/gen-tgmath-tests.py (Type.create_type): Create complex
8335         integer types.
8337 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8339         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
8340         macro.
8341         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
8342         alias.
8343         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
8344         Likewise.
8346         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
8347         nanosleep_not_cancel with __nanosleep_nocancel.
8348         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
8349         (__nanosleep_nocancel): New macro.
8350         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
8351         function.
8352         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
8353         macro.
8354         (__nanosleep_nocancel): New prototype.
8356         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
8357         pause_not_cancel with __pause_nocancel.
8358         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
8359         (__pause_nocancel): New macro.
8360         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
8361         macro.
8362         (__pause_nocancel): New prototype.
8363         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
8365 2017-08-22  Martin Sebor  <msebor@redhat.com>
8367         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
8368         to return a pointer to the same type as the target function.
8370 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8372         [BZ #18822]
8373         [BZ #21986]
8374         * include/printf.h (__printf_fphex): Add attribute_hidden.
8375         (__guess_grouping): New prototype.
8376         * stdio-common/printf_fp.c (__guess_grouping): Removed.
8377         * stdio-common/reg-printf.c (__register_printf_specifier): Add
8378         libc_hidden_proto and libc_hidden_def.
8379         * stdlib/strfmon_l.c (__guess_grouping): Removed.
8380         (__vstrfmon_l): Remove the third argument passed to
8381         __guess_grouping.
8383 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8385         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
8386         definition for issignaling that does not rely on __MATH_TG,
8387         since __MATH_TG uses __builtin_types_compatible_p, which is only
8388         available in C mode.
8389         (CFLAGS-test-math-issignaling.cc): New variable.
8390         * math/Makefile [CXX] (tests): Add test-math-issignaling.
8391         * math/test-math-issignaling.cc: New test for C++ implementation
8392         of type-generic issignaling.
8393         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8394         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
8395         options of test-math-issignaling on powerpc64le.
8397 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8399         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8400         building libc.a.
8401         (hidden_proto): Likewise.
8402         (hidden_tls_proto): Likewise.
8403         (__hidden_proto): Likewise.
8405 2017-08-22  Florian Weimer  <fweimer@redhat.com>
8407         math: Statically link tests of internal functionality.
8408         * math/Makefile (tests): Remove atest-exp, atest-sincos,
8409         atest-exp2.
8410         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
8411         (gmp-objs): Remove assignment.
8412         (atest-exp, atest-sincos, atest-exp2): Remove targets.
8414 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8416         [BZ #21987]
8417         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
8418         and copy to ...
8419         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
8420         ... here.
8421         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
8422         ... and here.
8424         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
8425         variable definitions above inclusion of ../Rules.
8427 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8429         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
8430         case calling __builtin_unreachable.
8432 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8434         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
8435         __waitpid_nocancel.
8436         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
8437         (__waitpid_nocancel): New macro.
8438         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
8439         macro.
8440         (__waitpid_nocancel): Replace macro with a function.
8441         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
8442         function.
8444         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
8445         __fcntl_nocancel.
8446         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
8447         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
8449         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
8450         __writev_nocancel_nostatus.
8451         (write_call_graph): Likewise.
8452         (write_bb_counts): Likewise.
8453         * resolv/herror.c (herror): Likewise.
8454         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
8455         macro.
8456         (__writev_nocancel_nostatus): New macro.
8457         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
8458         Remove macro.
8459         (__writev_nocancel_nostatus): New function.
8461 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8463         Revert:
8464         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8466         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8467         building libc.a.
8468         (hidden_proto): Likewise.
8469         (hidden_tls_proto): Likewise.
8470         (__hidden_proto): Likewise.
8472         [BZ #21973]
8473         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
8474         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8476         Likewise.
8477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
8478         Likewise.
8479         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8480         Likewise.
8481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
8482         Likewise.
8483         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
8484         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8485         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8486         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8487         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8488         GLIBC_2.0 sqrtl symbol.
8490         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
8491         [__USE_MISC] (_LIB_VERSION): Likewise.
8492         [__USE_MISC] (struct exception): Likewise.
8493         [__USE_MISC] (matherr): Likewise.
8494         [__USE_MISC] (DOMAIN): Likewise.
8495         [__USE_MISC] (SING): Likewise.
8496         [__USE_MISC] (OVERFLOW): Likewise.
8497         [__USE_MISC] (UNDERFLOW): Likewise.
8498         [__USE_MISC] (TLOSS): Likewise.
8499         [__USE_MISC] (PLOSS): Likewise.
8500         [__USE_MISC] (HUGE): Likewise.
8501         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
8502         * math/math-svid-compat.h: New file.
8503         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
8504         and matherrl.
8505         * include/math.h [!_ISOMAC] (__matherr): Remove.
8506         * manual/arith.texi (FP Exceptions): Do not document matherr.
8507         * math/Makefile (tests): Change test-matherr to test-matherr-3.
8508         (tests-internal): New variable.
8509         (install-lib): Do not add libieee.a.
8510         (non-lib.a): Likewise.
8511         (extra-objs): Do not add libieee.a and ieee-math.o.
8512         (CPPFLAGS-s_lib_version.c): Remove variable.
8513         ($(objpfx)libieee.a): Remove rule.
8514         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
8515         * math/ieee-math.c: Remove.
8516         * math/libm-test-support.c (matherr): Remove.
8517         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
8518         and license notices.  Include <math-svid-compat.h> and
8519         <shlib-compat.h>.
8520         (matherr): Undefine as macro.  Use compat_symbol_reference.
8521         (_LIB_VERSION): Likewise.
8522         * math/test-matherr-2.c: New file.
8523         * math/test-matherr-3.c: Likewise.
8524         * sysdeps/generic/math_private.h (__kernel_standard): Remove
8525         declaration.
8526         (__kernel_standard_f): Likewise.
8527         (__kernel_standard_l): Likewise.
8528         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
8529         <math_private.h>.  Include <math-svid-compat.h>.
8530         (_LIB_VERSION): Undefine as macro.
8531         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
8532         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
8533         [LIBM_SVID_COMPAT], use compat_symbol.
8534         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
8535         <math_private.h>.  Include <math-svid-compat.h>.
8536         (matherr): Undefine as macro.
8537         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
8538         compat_symbol.
8539         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
8540         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
8541         compat_symbol_reference.
8542         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
8543         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
8544         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
8545         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
8546         (MATHERR_D): Remove declaration.
8547         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
8548         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
8549         [LIBM_BUILD] (pmatherrf): Likewise.
8550         [LIBM_BUILD] (pmatherr): Likewise.
8551         [LIBM_BUILD] (pmatherrl): Likewise.
8552         (DOMAIN): Likewise.
8553         (SING): Likewise.
8554         (OVERFLOW): Likewise.
8555         (UNDERFLOW): Likewise.
8556         (TLOSS): Likewise.
8557         (PLOSS): Likewise.
8558         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
8559         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
8560         compat_symbol.
8561         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
8562         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
8563         compat_symbol.
8564         * math/lgamma-compat.h: Include <math-svid-compat.h>.
8565         * math/w_acos_compat.c: Likewise.
8566         * math/w_acosf_compat.c: Likewise.
8567         * math/w_acosh_compat.c: Likewise.
8568         * math/w_acoshf_compat.c: Likewise.
8569         * math/w_acoshl_compat.c: Likewise.
8570         * math/w_acosl_compat.c: Likewise.
8571         * math/w_asin_compat.c: Likewise.
8572         * math/w_asinf_compat.c: Likewise.
8573         * math/w_asinl_compat.c: Likewise.
8574         * math/w_atan2_compat.c: Likewise.
8575         * math/w_atan2f_compat.c: Likewise.
8576         * math/w_atan2l_compat.c: Likewise.
8577         * math/w_atanh_compat.c: Likewise.
8578         * math/w_atanhf_compat.c: Likewise.
8579         * math/w_atanhl_compat.c: Likewise.
8580         * math/w_cosh_compat.c: Likewise.
8581         * math/w_coshf_compat.c: Likewise.
8582         * math/w_coshl_compat.c: Likewise.
8583         * math/w_exp10_compat.c: Likewise.
8584         * math/w_exp10f_compat.c: Likewise.
8585         * math/w_exp10l_compat.c: Likewise.
8586         * math/w_exp2_compat.c: Likewise.
8587         * math/w_exp2f_compat.c: Likewise.
8588         * math/w_exp2l_compat.c: Likewise.
8589         * math/w_fmod_compat.c: Likewise.
8590         * math/w_fmodf_compat.c: Likewise.
8591         * math/w_fmodl_compat.c: Likewise.
8592         * math/w_hypot_compat.c: Likewise.
8593         * math/w_hypotf_compat.c: Likewise.
8594         * math/w_hypotl_compat.c: Likewise.
8595         * math/w_j0_compat.c: Likewise.
8596         * math/w_j0f_compat.c: Likewise.
8597         * math/w_j0l_compat.c: Likewise.
8598         * math/w_j1_compat.c: Likewise.
8599         * math/w_j1f_compat.c: Likewise.
8600         * math/w_j1l_compat.c: Likewise.
8601         * math/w_jn_compat.c: Likewise.
8602         * math/w_jnf_compat.c: Likewise.
8603         * math/w_jnl_compat.c: Likewise.
8604         * math/w_lgamma_main.c: Likewise.
8605         * math/w_lgamma_r_compat.c: Likewise.
8606         * math/w_lgammaf_main.c: Likewise.
8607         * math/w_lgammaf_r_compat.c: Likewise.
8608         * math/w_lgammal_main.c: Likewise.
8609         * math/w_lgammal_r_compat.c: Likewise.
8610         * math/w_log10_compat.c: Likewise.
8611         * math/w_log10f_compat.c: Likewise.
8612         * math/w_log10l_compat.c: Likewise.
8613         * math/w_log2_compat.c: Likewise.
8614         * math/w_log2f_compat.c: Likewise.
8615         * math/w_log2l_compat.c: Likewise.
8616         * math/w_log_compat.c: Likewise.
8617         * math/w_logf_compat.c: Likewise.
8618         * math/w_logl_compat.c: Likewise.
8619         * math/w_pow_compat.c: Likewise.
8620         * math/w_powf_compat.c: Likewise.
8621         * math/w_powl_compat.c: Likewise.
8622         * math/w_remainder_compat.c: Likewise.
8623         * math/w_remainderf_compat.c: Likewise.
8624         * math/w_remainderl_compat.c: Likewise.
8625         * math/w_scalb_compat.c: Likewise.
8626         * math/w_scalbf_compat.c: Likewise.
8627         * math/w_scalbl_compat.c: Likewise.
8628         * math/w_sinh_compat.c: Likewise.
8629         * math/w_sinhf_compat.c: Likewise.
8630         * math/w_sinhl_compat.c: Likewise.
8631         * math/w_sqrt_compat.c: Likewise.
8632         * math/w_sqrtf_compat.c: Likewise.
8633         * math/w_sqrtl_compat.c: Likewise.
8634         * math/w_tgamma_compat.c: Likewise.
8635         * math/w_tgammaf_compat.c: Likewise.
8636         * math/w_tgammal_compat.c: Likewise.
8637         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
8638         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
8639         * sysdeps/ieee754/k_standard.c: Likewise.
8640         * sysdeps/ieee754/k_standardf.c: Likewise.
8641         * sysdeps/ieee754/k_standardl.c: Likewise.
8642         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
8643         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
8644         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
8645         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8646         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8647         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8648         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8649         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8650         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8652         Likewise.
8653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8654         Likewise.
8655         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
8656         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8657         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8658         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8660 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8662         [BZ #21864]
8663         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
8664         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
8665         Move before inclusion of ../Rules.
8667 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8669         [BZ #21972]
8670         * assert/assert.h (assert): Use static_cast (bool) for C++.
8671         Use the ternary operator in the warning branch for GNU C.
8672         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
8673         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
8674         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
8675         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
8676         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
8678 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8680         [BZ #18822]
8681         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8682         (__syscall_clock_gettime): Add attribute_hidden.
8683         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
8684         (__start_context): Likewise.
8686 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8688         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8689         building libc.a.
8690         (hidden_proto): Likewise.
8691         (hidden_tls_proto): Likewise.
8692         (__hidden_proto): Likewise.
8694 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8696         * include/libc-symbols.h (attribute_hidden): Enable hidden
8697         visibility in libc.a compiled with PIE.
8699 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8701         [BZ #18822]
8702         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
8703         Add attribute_hidden.
8705 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8707         [BZ #21864]
8708         * Makerules (all-nonlib): Add $(others-extras).
8709         * catgets/Makefile (others-extras): New.
8710         * elf/Makefile (others-extras): Likewise.
8711         * nss/Makefile (others-extras): Likewise.
8713 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8715         [BZ #18822]
8716         * csu/libc-start.c (__libc_multiple_libcs): Removed.
8717         * elf/dl-open.c: Include <libc-internal.h>.
8718         (__libc_multiple_libcs): Removed.
8719         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
8720         <hp-timing.h>.
8721         * include/libc-internal.h (__libc_multiple_libcs): New.
8722         * misc/sbrk.c: Include <libc-internal.h>.
8723         (__libc_multiple_libcs): Removed.
8725 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8727         [BZ #18822]
8728         * grp/initgroups.c (__nss_group_database): Removed.
8729         (__nss_initgroups_database): Likewise.
8730         * nscd/gai.c (__nss_hosts_database): Likewise.
8731         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
8732         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
8733         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
8734         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
8735         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
8736         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
8737         attribute_hidden.
8738         * nss/nsswitch.c (__nss_database_custom): Define only if
8739         USE_NSCD is defined.
8740         (__nss_configure_lookup): Use __nss_database_custom only if
8741         USE_NSCD is defined.
8742         * nss/nsswitch.h (__nss_database_custom): Declare only if
8743         USE_NSCD is defined.  Add attribute_hidden.
8744         (__nss_setent): Add attribute_hidden.
8745         (__nss_endent): Likewise.
8746         (__nss_getent_r): Likewise.
8747         (__nss_getent): Likewise.
8748         (DEFINE_DATABASE): Declare __nss_##arg##_database.
8750 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8752         [BZ #18822]
8753         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
8754         libc_hidden_proto and libc_hidden_def.
8756 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8758         [BZ #18822]
8759         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
8760         Add libc_hidden_proto.
8761         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
8762         Add libc_hidden_def.
8764 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8766         [BZ #21974]
8767         * gmon/Makefile (routines): Remove bb_init_func and
8768         bb_exit_func.
8769         (elide-routines.os): Removed.
8770         * gmon/bb_exit_func.c: Likewise.
8771         * gmon/bb_init_func.c: Likewise.
8772         * include/sys/gmon.h (__bb): Likewise.
8773         (__bb_init_func): Likewise.
8774         (__bb_exit_func): Likewise.
8775         * sysdeps/alpha/bb_init_func.S: Likewise.
8777 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8779         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
8780         * include/setjmp.h (____longjmp_chk): Here.  Add
8781         attribute_hidden.
8783 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8785         [BZ #18822]
8786         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
8787         attribute_hidden.
8788         (__strspn_sse2): Likewise.
8790 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8792         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
8793         (close_not_cancel_no_status): Likewise.
8794         (__close_nocancel): New macro.
8795         (__close_nocancel_nostatus): Likewise.
8796         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
8797         macro.
8798         (close_not_cancel): Likewise.
8799         (close_not_cancel_no_status): Likewise.
8800         (__close_nocancel): New prototype.
8801         (__close_nocancel_nostatus): New function.
8802         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
8803         * catgets/open_catalog.c (__open_catalog): Replace
8804         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
8805         * gmon/gmon.c (write_gmon): Likewise.
8806         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8807         * intl/loadmsgcat.c (close): Likewise.
8808         * io/ftw.c (open_dir_stream): Likewise.
8809         (ftw_startup): Likewise.
8810         * libio/fileops.c (_IO_file_open): Likewise.
8811         (_IO_file_close_mmap): Likewise.
8812         (_IO_file_close): Likewise.
8813         * libio/iopopen.c (_IO_dup2): Likewise.
8814         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8815         * locale/loadlocale.c (_nl_load_locale): Likewise.
8816         * login/utmp_file.c (pututline_file): Likewise.
8817         (endutent_file): Likewise.
8818         * misc/daemon.c (daemon): Likewise.
8819         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8820         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8821         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8822         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8823         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8824         * nscd/nscd_helper.c (open_socket): Likewise.
8825         (__nscd_open_socket): Likewise.
8826         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8827         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
8828         (__nscd_innetgr): Likewise.
8829         * nss/nss_db/db-open.c (internal_setent): Likewise.
8830         * resolv/res-close.c (__res_iclose): Likewise.
8831         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
8832         * sysdeps/posix/closedir.c (__closedir): Likewise.
8833         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
8834         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8835         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8836         (opendir_tail): Likewise.
8837         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8838         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
8839         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8840         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8841         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8842         (gethostid): Likewise.
8843         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8844         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8845         Likewise.
8846         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8847         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
8848         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8849         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8850         Likewise.
8851         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
8852         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
8853         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8854         Likewise.
8855         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
8856         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8857         Likewise.
8858         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8859         Likewise.
8860         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8861         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8862         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8863         __close_nocancel.
8865         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
8866         (openat_not_cancel_3): Likewise.
8867         (openat64_not_cancel_3): Likewise).
8868         (openat_not_cancel_3): Likewise).
8869         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
8870         macro.
8871         (openat_not_cancel_3): Likewise.
8872         (openat64_not_cancel): Likewise.
8873         (openat64_not_cancel_3): Likewise.
8874         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
8875         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
8876         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
8877         __open{64}_nocancel.
8878         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8879         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8880         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8882 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8884         [BZ #18822]
8885         * include/argz.h (__argz_create_sep): New function prototype.
8886         (__argz_append): Likewise.
8887         (__argz_add): Likewise.
8888         (__argz_add_sep): Likewise.
8889         (__argz_delete): Likewise.
8890         (__argz_insert): Likewise.
8891         (__argz_replace): Likewise.
8892         * string/argz.h (__argz_create_sep): Removed.
8893         (__argz_append): Likewise.
8894         (__argz_add): Likewise.
8895         (__argz_add_sep): Likewise.
8896         (__argz_delete): Likewise.
8897         (__argz_insert): Likewise.
8898         (__argz_replace): Likewise.
8900 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8902         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
8903         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
8904         (GNU_PROPERTY_STACK_SIZE): Likewie.
8905         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
8906         (GNU_PROPERTY_LOPROC): Likewise.
8907         (GNU_PROPERTY_HIPROC): Likewise.
8908         (GNU_PROPERTY_LOUSER): Likewise.
8909         (GNU_PROPERTY_HIUSER): Likewise.
8910         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
8911         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
8912         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
8913         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
8914         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
8915         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
8916         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
8917         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
8918         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
8919         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
8920         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
8921         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
8922         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
8923         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
8924         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
8925         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
8926         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
8927         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
8928         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
8929         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
8930         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
8931         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
8932         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
8934 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8936         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
8937         in C++ mode.
8939 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8941         [BZ #21930]
8942         * math/math.h (isinf): Check if in C or C++ mode before using
8943         __builtin_types_compatible_p, since this is a C mode feature.
8945 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8947         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
8948         (__write_nocancel): New macro.
8949         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
8950         Rewrite as a function prototype.
8951         (write_not_cancel): Remove macro.
8952         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
8953         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
8954         (write_gmon): Likewise.
8955         * libio/fileops.c (_IO_new_file_write): Likewise.
8956         * login/utmp_file.c (pututline_file): Likewise.
8957         (updwtmp_file): Likewise.
8958         * stdio-common/psiginfo.c (psiginfo): Likewise.
8959         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8960         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8961         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8962         Likewise.
8963         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8964         Likewise.
8966         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
8967         (__read_nocancel): New macro.
8968         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8969         __read_nocancel.
8970         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
8971         macro.
8972         (__read_nocancel): New prototype.
8973         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
8974         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
8975         with __read_nocancel.
8976         * intl/loadmsgcat.c (read): Likewise.
8977         * libio/fileops.c (_IO_file_read): Likewise.
8978         * locale/loadlocale.c (_nl_load_locale): Likewise.
8979         * login/utmp_file.c (getutent_r_file): Likewise.
8980         (internal_getut_r): Likewise.
8981         (getutline_r_file): Likewise.
8982         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8983         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
8984         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8985         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8986         Likewise.
8987         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
8988         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8989         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8990         Likewise.
8991         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8992         Likewise.
8993         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8994         Likewise.
8995         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8996         Likewise.
8997         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8999 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
9001         [BZ #21966]
9002         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
9003         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
9004         usable.
9006 2017-08-17  DJ Delorie  <dj@redhat.com>
9008         * bug17079.c: Update to new test harness.
9009         * test-digits-dots.c: Likewise.
9010         * test-netdb.c: Likewise.
9011         * tst-field.c: Likewise.
9012         * tst-nss-getpwent.c: Likewise.
9013         * tst-nss-static.c: Likewise.
9014         * tst-nss-test1.c: Likewise.
9015         * tst-nss-test2.c: Likewise.
9016         * tst-nss-test3.c: Likewise.
9017         * tst-nss-test4.c: Likewise.
9018         * tst-nss-test5.c: Likewise.
9020 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9022         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
9023         (open_not_cancel_2): Likewise.
9024         (open_nocancel): New macro.
9025         (open64_nocancel): Likewise.
9026         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
9027         (open_not_cancel_2): Likewise.
9028         (__open_nocancel): New prototype.
9029         (__open64_nocancel): Likewise.
9030         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9031         __open_nocancel.
9032         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
9033         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
9034         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
9035         with __open_nocancel.
9036         * csu/check_fds.c (check_one_fd): Likewise.
9037         * gmon/gmon.c (write_gmon): Likewise.
9038         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
9039         * intl/loadmsgcat.c (open): Likewise.
9040         * libio/fileops.c (_IO_file_open): Likewise.
9041         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9042         * locale/loadlocale.c (_nl_load_locale): Likewise.
9043         * login/utmp_file.c (setutent_file): Likewise.
9044         * misc/daemon.c (daemon): Likewise.
9045         * nss/nss_db/db-open.c (internal_setent): Likewise.
9046         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9047         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
9048         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
9049         (__opendir): Likewise.
9050         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
9051         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
9052         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
9053         (gethostid): Likewise.
9054         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
9055         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9056         Likewise.
9057         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
9058         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
9059         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
9060         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
9061         Likewise.
9062         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
9063         Likewise.
9064         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
9065         Likewise.
9066         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
9067         Likewise.
9068         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9069         Likewise.
9070         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9071         Likewise.
9072         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9073         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
9075 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
9077         * benchtests/bench-skeleton.c (main): Add support for
9078         latency benchmarking.
9079         * benchtests/scripts/bench.py: Add support for latency benchmarking.
9081 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
9083         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
9084         the startup object.
9086 2017-08-17  Florian Weimer  <fweimer@redhat.com>
9088         * include/sys/socket.h (__opensock): Remove internal_function.
9089         * socket/opensock.c (__opensock): Likewise.
9090         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
9092 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9094         [BZ #21944]
9095         * signal/bits/types/__sigval_t.h: New file.
9096         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
9097         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
9098         and define sigval_t using __sigval_t.
9099         * include/bits/types/__sigval_t.h: New file.
9100         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
9101         instead of <bits/types/__sigval_t.h>.
9102         (struct sigevent): Use __sigval_t instead of sigval_t.
9103         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
9104         instead of <bits/types/__sigval_t.h>.
9105         (siginfo_t): Use __sigval_t instead of sigval_t.
9106         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
9107         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9108         (struct sigevent): Use __sigval_t instead of sigval_t.
9109         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
9110         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9111         (siginfo_t): Use __sigval_t instead of sigval_t.
9112         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
9114 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9116         * NEWS: Remove "[Add new features here]" for 2.27.
9118 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9120         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
9121         libc.so.
9123 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9125         * NEWS: Mention x86-64 FMA optimization.
9127 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9129         [BZ #21912]
9130         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9131         Add e_expf-fma.
9132         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
9133         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
9134         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9136 2017-08-16  Andreas Schwab  <schwab@suse.de>
9138         [BZ #16750]
9139         CVE-2009-5064
9140         * elf/ldd.bash.in: Never run file directly.
9142 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9144         [BZ #21955]
9145         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9146         (L(SP_INF_0)): Likewise.
9148 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9150         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9151         run-built-tests.
9153 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9155         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9156         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9157         BROKEN_THREAD_SIGNALS code.
9158         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9159         request_list): Remove caller_pid member used for
9160         BROKEN_THREAD_SIGNALS.
9161         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9162         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9163         Remove BROKEN_THREAD_SIGNALS support.
9164         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9165         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9167 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9169         * gmon/Makefile (tests): Add tst-gmon.
9170         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9171         Set.
9172         (tests-special): Add tst-gmon-prof.out.
9173         (tst-gmon.out): Depend on clean-tst-gmon-data.
9174         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9175         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9176         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9177         startup object.
9178         * aclocal.m4 (GPROF): Set and substitute.
9179         * config.amke.in (GPROF): Set.
9180         * configure: Regenerate.
9182 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9184         * elf/elf.h A (NT_PPC_TAR): New macro.
9185         (NT_PPC_PPR): Likewise.
9186         (NT_PPC_DSCR): Likewise.
9187         (NT_PPC_EBB): Likewise.
9188         (NT_PPC_PMU): Likewise.
9189         (NT_PPC_TM_CGPR): Likewise.
9190         (NT_PPC_TM_CFPR): Likewise.
9191         (NT_PPC_TM_CVMX): Likewise.
9192         (NT_PPC_TM_CVSX): Likewise.
9193         (NT_PPC_TM_SPR): Likewise.
9194         (NT_PPC_TM_CTAR): Likewise.
9195         (NT_PPC_TM_CPPR): Likewise.
9196         (NT_PPC_TM_CDSCR): Likewise.
9198 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9200         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9201         regparm (2) instead of internal_function.
9202         (_MCOUNT_DECL): Adjust.
9204 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9206         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9207         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9209 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9211         * conform/data/sys/wait.h-data (si_value): Do not expect for
9212         XPG42.
9214 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9216         [BZ #21962]
9217         NSS: Create stubs for accidentally exported lookup functions.
9218         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9219         Remove declaration.
9220         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9221         (ether_hostton): Call __nss_ethers_lookup2 instead.
9222         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9223         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9224         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9225         (setup): Call __nss_netgroup_lookup2 instead.
9226         * nss/Makefile (routines): Add compat-lookup.
9227         * nss/Versions (GLIBC_2.27): Add symbol version.
9228         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9229         (DB_COMPAT_FCT): Remove.
9230         * nss/compat-lookup.c: New file.
9231         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9232         from databases.def.
9233         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9234         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9235         (netname2user): Call __nss_publickey_lookup2 instead.
9236         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9237         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9238         instead.
9240 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9241             Sergei Trofimovich  <slyfox@inbox.ru>
9243         [BZ #21908]
9244         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9245         Rename to MMAP2_PAGE_UNIT.
9246         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9247         __OFF_T_MATCHES_OFF64_T is not defined.
9248         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9249         uint64_t.
9250         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9251         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
9253 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9255         i386: Do not set internal_function.
9256         * config.h.in (USE_REGPARMS, internal_function): Remove.
9257         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
9258         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
9260 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9262         * elf/dl-init.c (_dl_init): Remove internal_function.
9263         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
9264         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
9266 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9268         * elf/rtld.c (_dl_start): Remove internal_function.
9269         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
9270         _dl_start.
9272 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9274         * elf/dl-fini.c (_dl_fini): Remove internal_function
9275         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
9277 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
9279         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
9280         (bit_cpu_SHSTK): Likewise.
9281         (index_cpu_IBT): Likewise.
9282         (index_cpu_SHSTK): Likewise.
9283         (reg_IBT): Likewise.
9284         (reg_SHSTK): Likewise.
9285         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
9286         Handle index_cpu_IBT and index_cpu_SHSTK.
9288 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
9290         [BZ #19982]
9291         * po/fr.po: Fix spelling mistake.
9293 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9295         * elf/dl-addr.c (_dl_addr): Remove internal_function.
9296         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
9297         (_dl_catch_error, _dl_receive_error): Likewise.
9298         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
9299         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
9300         (_dl_deallocate_tls): Likewise.
9301         * include/dlfcn.h (_dl_addr): Likewise.
9302         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
9303         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
9304         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
9305         Likewise.
9307 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9309         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
9310         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
9311         internal_function.
9312         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
9314 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9316         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
9317         internal_function.
9318         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
9319         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
9320         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
9321         internal_function from _dl_make_stack_executable_hook member.
9322         (_dl_make_stack_executable): Remove internal_function.
9323         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
9324         Likewise.
9325         * sysdeps/unix/sysv/linux/dl-execstack.c
9326         (_dl_make_stack_executable): Likewise.
9328 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9330         * sysdeps/unix/sysv/linux/netlinkaccess.h
9331         (__netlink_assert_response): Remove internal_function.
9332         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9333         (__netlink_assert_response): Likewise.
9335 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9337         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
9338         internal_function.
9339         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
9341 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9343         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
9344         internal_function.
9345         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
9346         * inet/netgroup.h (__internal_setnetgrent)
9347         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9348         * inet/getnetgrent_r.c (__internal_setnetgrent)
9349         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9350         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
9351         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
9352         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
9353         * nss/nsswitch.h (db_lookup_function): Likewise.
9355 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9357         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
9358         Remove internal_function.
9359         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
9360         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
9361         message argument on the stack.
9362         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
9363         Likeweise.
9365 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
9367         Adapt test case data to the changes in the thousands
9368         separators.
9370         [BZ #20756]
9371         * localedata/tst-langinfo.sh: Adapt test case data.
9372         * stdlib/tst-strfmon_l.c: Likewise.
9373         * stdlib/tst-strtod4.c: Likewise.
9374         * stdlib/tst-strtod5i.c: Likewise.
9376 2017-08-11  Florian Weimer  <fweimer@redhat.com>
9378         [BZ #21242]
9379         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
9380         Suppress pedantic warning resulting from statement expression.
9381         (__ASSERT_FUNCTION): Add missing __extension__.
9383 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9385         * benchtests/bench-memmove-large.c: Print output in JSON
9386         format.
9387         * benchtests/bench-memmove.c: Likewise.
9389         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
9390         * benchtests/bench-memchr.c (do_one_test): Likewise.
9391         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
9392         * benchtests/bench-memcpy.c (do_one_test): Likewise.
9393         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
9394         * benchtests/bench-memmove.c (do_one_test): Likewise.
9395         * benchtests/bench-memset-large.c (do_one_test): Likewise.
9396         * benchtests/bench-memset.c (do_one_test): Likewise.
9397         * benchtests/bench-string.h (test_init): Remove memsets.
9399 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9401         * manual/lang.texi
9402         (Computing the Width of an Integer Data Type): Rename section to
9403         "Width of an Integer Type".  Remove inaccurate statement regarding
9404         lack of C language facilities for determining width of integer
9405         types, and reorder content to improve flow and context of
9406         discussion.
9408 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9410         * lang.texi (va_copy): Change standard from ISO to C99.
9411         (__va_copy): Add standard and header annotation.
9412         Update description for clarity of origins and current use.
9414 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9416         [BZ #21941]
9417         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
9418         xssqrtqp requires operands to be in Vector Registers
9419         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
9420         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
9421         (__ieee754_sqrtf128): Likewise.
9423 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
9425         * sysdeps/aarch64/memcmp.S (memcmp):
9426         Rewrite of optimized memcmp.
9428 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9430         Introduce ld.so exceptions.
9431         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
9432         (_dl_exception_create, _dl_exception_create_format)
9433         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
9434         (_dl_catch_exception): Declare.
9435         (_dl_catch_error): Update comment.
9436         * elf/dl-error-skeleton.c (struct catch): Replace objname,
9437         errstring, malloced members with exception member.
9438         (_dl_out_of_memory): Remove.
9439         (fatal_error): New function, extracted from _dl_signal_error.
9440         (_dl_signal_exception, _dl_signal_cexception): New functions.
9441         (_dl_signal_error): Call _dl_exception_create to allocate an
9442         exception object.
9443         (_dl_catch_exception): New function, based on _dl_catch_error.
9444         (_dl_catch_error): Implement using _dl_catch_exception.
9445         * elf/dl-exception.c: New file.
9446         * elf/Makefile (dl-routines): Add dl-exception.
9447         (elide-routines.os): Likewise.
9448         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
9449         _dl_exception_create_format, _dl_exception_free.
9450         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
9451         _dl_signal_exception.
9452         * elf/dl-lookup.c (make_string): Remove.
9453         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
9454         _dl_signal_cexception, _dl_exception_free.
9455         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
9456         _dl_signal_exception.
9457         * elf/dl-sym.c (do_sym): Likewise.
9458         * elf/dl-version.c (make_string): Remove.
9459         (match_symbol): Use _dl_exception_create_format,
9460         _dl_signal_cexception, _dl_exception_free.
9461         (_dl_check_map_versions): Likewise.
9462         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
9463         _dl_catch_exception.
9464         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
9465         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
9466         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
9467         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
9468         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
9469         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
9470         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
9471         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
9472         Likewise.
9473         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
9474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
9475         (ld.so): Likewise.
9476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
9477         (ld.so): Likewise.
9478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
9479         Likewise.
9480         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
9481         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
9482         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
9483         Likewise.
9484         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
9485         Likewise.
9486         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
9488 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9490         * inet/net-internal.h (__inet6_scopeid_pton): Remove
9491         attribute_hidden, internal_function.
9492         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
9493         internal_function.
9495 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9497         * malloc/malloc.c (get_max_fast): Reimplement as an inline
9498         function which calls __builtin_unreachable.
9500 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
9502         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
9503         Indian monetary formatting
9504         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
9505         test cases.
9507 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
9509         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
9510         Fix typo in comment.
9512         [BZ #21928]
9513         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
9514         PTRACE_SEIZE_DEVEL): Remove.
9515         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
9516         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9517         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9518         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9519         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9521 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
9523         * posix/bits/types.h (__qaddr_t): Remove.
9525         [BZ #21457]
9526         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
9527         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9528         __glibc_reserved1.
9529         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
9530         (ucontext_t): Use __ctx with uc_flags.
9531         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
9532         (__ctxt): Likewise.
9533         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9534         __glibc_reserved1.
9535         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
9536         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9537         __glibc_reserved1.
9538         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
9539         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9540         __glibc_reserved1.
9541         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
9542         macro.
9543         (ucontext_t): Use __ctx with uc_flags.
9544         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
9545         (ucontext_t): Use __ctx with uc_flags.
9546         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
9547         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
9548         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
9549         (ucontext_t): Use __ctx with uc_flags.
9550         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
9551         undefine further down.
9552         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9553         __glibc_reserved1.
9554         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
9555         undefine further down.
9556         (ucontext_t): Use __ctx with uc_flags.
9557         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
9558         undefine further down.
9559         (ucontext_t): Use __ctx with uc_flags.
9560         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
9561         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
9562         Rename uc_pad to __glibc_reserved1.
9563         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
9564         undefine further down.
9565         (ucontext_t): Use __ctx with uc_flags.
9566         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
9567         further down.
9568         (ucontext_t): Use __ctx with uc_flags.
9569         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
9570         __ctx with uc_flags.
9571         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
9572         (ucontext_t): Use __ctx with uc_flags.
9573         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
9574         __ctx with uc_flags.
9576 2017-08-09  Florian Weimer  <fweimer@redhat.com>
9578         [BZ #21932]
9579         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
9580         before early return.
9582 2017-08-09  Andreas Schwab  <schwab@suse.de>
9584         [BZ #21041]
9585         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
9586         renamed alias.
9588         [BZ #21041]
9589         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
9590         tst-compat-forwarder.
9591         (modules-names): Add tst-compat-forwarder-mod.
9592         ($(objpfx)tst-compat-forwarder): Depend on
9593         $(objpfx)tst-compat-forwarder-mod.so.
9594         * nptl/tst-compat-forwarder.c: New file.
9595         * nptl/tst-compat-forwarder-mod.c: New file.
9597 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9599         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
9600         comments.
9602         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
9603         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9604         memcpy_falkor.
9605         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
9606         Bump.
9607         (__libc_ifunc_impl_list): Add __memcpy_falkor.
9608         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
9609         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
9610         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
9611         Add falkor.
9612         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
9613         New macro.
9615 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9617         [BZ #759]
9618         * manual/setjmp.texi (getcontex): Document uc_stack value
9619         compatibility differences.
9621 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
9623         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
9624         (old_malloc_hook): Likewise.
9625         (old_memalign_hook): Likewise.
9626         (old_realloc_hook): Likewise.
9627         (struct hdr): Likewise.
9628         (flood): Likewise.
9629         (freehook): Likewise.
9630         (mallochook): Likewise.
9631         (memalignhook): Likewise.
9632         (reallochook): Likewise.
9633         (mprobe): Likewise.
9634         * malloc/mtrace.c (mallwatch): Likewise.
9635         (tr_old_free_hook): Likewise.
9636         (tr_old_malloc_hook): Likewise.
9637         (tr_old_realloc_hook): Likewise.
9638         (tr_old_memalign_hook): Likewise.
9639         (tr_where): Likewise.
9640         (lock_and_info): Likewise.
9641         (tr_freehook): Likewise.
9642         (tr_mallochook): Likewise.
9643         (tr_reallochook): Likewise.
9644         (tr_memalignhook): Likewise.
9645         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
9646         * misc/mmap.c (__mmap): Likewise.
9647         * misc/mmap64.c (__mmap64): Likewise.
9648         * misc/mprotect.c (__mprotect): Likewise.
9649         * misc/msync.c (msync): Likewise.
9650         * misc/munmap.c (__munmap): Likewise.
9651         * posix/posix_madvise.c (posix_madvise): Likewise.
9652         * socket/send.c (__send): Likewise.
9653         * socket/sendto.c (__sendto): Likewise.
9654         * socket/setsockopt.c (__setsockopt): Likewise.
9655         * string/memcmp.c (__ptr_t): Remove macro.
9656         (MEMCMP): Use void * instead of ptr_t.
9657         * string/memrchr.c (__ptr_t): Remove macro.
9658         (__memrchr): Use void * instead of ptr_t.
9659         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
9660         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9661         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9662         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
9663         * sysdeps/mach/msync.c (msync): Likewise.
9664         * sysdeps/mach/munmap.c (__munmap): Likewise.
9665         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
9666         Likewise.
9667         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9668         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
9669         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
9670         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
9671         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
9672         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
9673         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
9674         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
9675         Likewise.
9676         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
9677         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
9678         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
9679         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
9680         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
9681         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
9682         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
9683         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
9684         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
9685         Likewise.
9686         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
9687         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
9688         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
9689         (MEMCMP): Use void * instead of ptr_t.
9690         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
9691         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
9693 2017-08-08  Florian Weimer  <fweimer@redhat.com>
9695         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
9696         return statement.
9698 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
9700         [BZ #21913]
9701         * csu/libc-tls.c: Include <startup.h> first.
9702         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
9703         * elf/dl-tunables.c: Include <startup.h> first.
9704         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
9705         * sysdeps/generic/startup.h: New file.
9706         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
9707         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
9708         (I386_USE_SYSENTER): New.  Defined to 0.
9710 2017-08-08  Andreas Schwab  <schwab@suse.de>
9712         [BZ #21041]
9713         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
9714         * nptl/pt-system.c (system): Likewise.
9716 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9718         [BZ #21780]
9719         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
9720         EOPNOTSUPP.
9721         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9722         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9723         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
9724         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9725         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9726         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9727         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9729 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
9731         [BZ #21899]
9732         * bits/sigaction.h (struct sigaction): Define sa_handler and
9733         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
9734         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9735         [__USE_XOPEN_EXTENDED].
9736         (SA_RESTART): Likewise.
9737         (SA_NODEFER): Likewise.
9738         (SA_RESETHAND): Likewise.
9739         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
9740         (struct sigaction): Define sa_handler and sa_sigaction using union
9741         also for [__USE_XOPEN_EXTENDED].
9742         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9743         [__USE_XOPEN_EXTENDED].
9744         (SA_RESTART): Likewise.
9745         (SA_NODEFER): Likewise.
9746         (SA_RESETHAND): Likewise.
9747         * sysdeps/unix/sysv/linux/bits/sigaction.h
9748         (struct sigaction): Define sa_handler and sa_sigaction using union
9749         also for [__USE_XOPEN_EXTENDED].
9750         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9751         [__USE_XOPEN_EXTENDED].
9752         (SA_RESTART): Likewise.
9753         (SA_NODEFER): Likewise.
9754         (SA_RESETHAND): Likewise.
9755         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
9756         (struct sigaction): Define sa_handler and sa_sigaction using union
9757         also for [__USE_XOPEN_EXTENDED].
9758         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9759         [__USE_XOPEN_EXTENDED].
9760         (SA_RESTART): Likewise.
9761         (SA_NODEFER): Likewise.
9762         (SA_RESETHAND): Likewise.
9763         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
9764         (struct sigaction): Define sa_handler and sa_sigaction using union
9765         also for [__USE_XOPEN_EXTENDED].
9766         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9767         [__USE_XOPEN_EXTENDED].
9768         (SA_RESTART): Likewise.
9769         (SA_NODEFER): Likewise.
9770         (SA_RESETHAND): Likewise.
9771         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
9772         (struct sigaction): Define sa_handler and sa_sigaction using union
9773         also for [__USE_XOPEN_EXTENDED].
9774         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9775         [__USE_XOPEN_EXTENDED].
9776         (SA_RESTART): Likewise.
9777         (SA_NODEFER): Likewise.
9778         (SA_RESETHAND): Likewise.
9779         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
9780         (struct sigaction): Define sa_handler and sa_sigaction using union
9781         also for [__USE_XOPEN_EXTENDED].
9782         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9783         [__USE_XOPEN_EXTENDED].
9784         (SA_RESTART): Likewise.
9785         (SA_NODEFER): Likewise.
9786         (SA_RESETHAND): Likewise.
9787         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
9788         (struct sigaction): Define sa_handler and sa_sigaction using union
9789         also for [__USE_XOPEN_EXTENDED].
9790         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9791         [__USE_XOPEN_EXTENDED].
9792         (SA_RESTART): Likewise.
9793         (SA_NODEFER): Likewise.  Define directly rather than as alias.
9794         (SA_RESETHAND): Likewise.
9795         (SA_INTERRUPT): Define only for [__USE_MISC].
9796         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
9797         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
9798         [__USE_MISC].
9799         (SA_STACK): Define only for [__USE_MISC].
9800         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
9801         (struct sigaction): Define sa_handler and sa_sigaction using union
9802         also for [__USE_XOPEN_EXTENDED].
9803         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9804         [__USE_XOPEN_EXTENDED].
9805         (SA_RESTART): Likewise.
9806         (SA_NODEFER): Likewise.
9807         (SA_RESETHAND): Likewise.
9808         (SA_NOPTRACE): Define only for [__USE_MISC].
9810         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
9811         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
9812         (struct catalog_info): Likewise.
9813         * inet/htontest.c (lo): Likewise.
9814         (foo): Likewise.
9815         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9816         * inet/inet_net.c (inet_network): Likewise.
9817         * inet/inet_netof.c (inet_netof): Likewise.
9818         * inet/rcmd.c (__ivaliduser): Likewise.
9819         (iruserok): Likewise.
9820         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
9821         * locale/programs/locale-spec.c (locale_special): Likewise.
9822         * nis/nis_findserv.c (struct findserv_req): Likewise.
9823         (__nis_findfastest_with_timeout): Likewise.
9824         * nss/test-netdb.c (test_network): Likewise.
9825         * resolv/inet_neta.c (inet_neta): Likewise.
9826         * resolv/ns_date.c (ns_datetosecs): Likewise.
9827         (SECS_PER_DAY): Likewise.
9828         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
9829         Likewise.
9830         * resolv/res_comp.c (__putlong): Likewise.
9831         (__putshort): Likewise.
9832         (_getlong): Likewise.
9833         (_getshort): Likewise.
9834         * resolv/res_debug.c (p_time): Likewise.
9835         (precsize_ntoa): Likewise.
9836         (precsize_aton): Likewise.
9837         (latlon2ul): Likewise.
9838         (loc_aton): Likewise.
9839         (loc_ntoa): Likewise.
9840         * resolv/res_hconf.c (struct netaddr): Likewise.
9841         (_res_hconf_reorder_addrs): Likewise.
9842         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
9843         (clnttcp_control): Likewise.
9844         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9845         (clntudp_control): Likewise.
9846         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
9847         (clntunix_control): Likewise.
9848         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
9849         * sunrpc/rpc/auth.h (union des_block): Likewise.
9850         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
9851         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
9852         (xdrrec_create): Likewise.
9853         (xdrrec_endofrecord): Likewise.
9854         (flush_out): Likewise.
9855         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
9856         (xdrstdio_putlong): Likewise.
9857         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
9858         Likewise.
9860         * misc/sys/cdefs.h (__long_double_t): Remove.
9861         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
9862         instead of __long_double_t,
9863         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
9865 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9867         * benchtests/scripts/compare_strings.py: Avoid display error when
9868         running on a text terminal.
9870         * benchtests/scripts/compare_strings.py (main): Add an
9871         optional -base option.
9872         (process_results): New argument base_func.
9874         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
9875         hardcoding memcpy.
9876         * benchtests/bench-memcpy-large.c (test_name): Likewise.
9877         * benchtests/bench-memcpy-random.c (test_name): Likewise.
9879 2017-08-07  Andreas Schwab  <schwab@suse.de>
9881         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
9882         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
9883         * intl/Makefile ($(objpfx)tst-gettext.out)
9884         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
9885         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
9886         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
9887         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
9888         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
9889         * posix/Makefile ($(objpfx)globtest.out)
9890         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
9891         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
9892         ($(objpfx)tst-printf.out): Likewise.
9893         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
9894         ($(objpfx)tst-setcontext3.out): Likewise.
9896 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
9898         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9899         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
9900         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
9901         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
9902         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
9903         and mptan-fma.
9904         (CFLAGS-doasin-fma.c): New.
9905         (CFLAGS-dosincos-fma.c): Likewise.
9906         (CFLAGS-e_asin-fma.c): Likewise.
9907         (CFLAGS-e_atan2-fma.c): Likewise.
9908         (CFLAGS-e_exp-fma.c): Likewise.
9909         (CFLAGS-e_log-fma.c): Likewise.
9910         (CFLAGS-e_pow-fma.c): Likewise.
9911         (CFLAGS-halfulp-fma.c): Likewise.
9912         (CFLAGS-mpa-fma.c): Likewise.
9913         (CFLAGS-mpatan-fma.c): Likewise.
9914         (CFLAGS-mpatan2-fma.c): Likewise.
9915         (CFLAGS-mpexp-fma.c): Likewise.
9916         (CFLAGS-mplog-fma.c): Likewise.
9917         (CFLAGS-mpsqrt-fma.c): Likewise.
9918         (CFLAGS-mptan-fma.c): Likewise.
9919         (CFLAGS-s_atan-fma.c): Likewise.
9920         (CFLAGS-sincos32-fma.c): Likewise.
9921         (CFLAGS-slowexp-fma.c): Likewise.
9922         (CFLAGS-slowpow-fma.c): Likewise.
9923         (CFLAGS-s_sin-fma.c): Likewise.
9924         (CFLAGS-s_tan-fma.c): Likewise.
9925         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
9926         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
9927         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
9928         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
9929         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
9930         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
9931         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
9932         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
9933         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
9934         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
9935         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
9936         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
9937         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
9938         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
9939         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
9940         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
9941         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
9942         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
9943         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
9944         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
9945         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
9946         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
9947         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
9948         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
9949         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9950         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9951         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9952         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
9953         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9954         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9955         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9957 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
9959         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
9960         (min_of_type_f): New macro.
9961         (min_of_type_): Likewise.
9962         (min_of_type_l): Likewise.
9963         (min_of_type_f128): Likewise.
9964         (min_of_type): Define using __MATH_TG and taking an expression
9965         argument.
9966         (math_check_force_underflow): Pass expression instead of type to
9967         min_of_type.
9968         (math_check_force_underflow_nonneg): Likewise.
9970 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9972         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
9973         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
9974         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
9976 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9978         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9979         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
9980         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
9981         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
9982         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
9983         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
9984         memcpy_chk-nonshared, mempcpy_chk-nonshared,
9985         memmove_chk-nonshared and memset_chk-nonshared
9986         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
9987         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
9988         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
9989         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
9990         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
9991         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
9992         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
9993         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
9994         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
9995         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
9996         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
9997         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
9998         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
9999         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
10000         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
10001         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
10002         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
10003         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
10004         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
10005         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
10006         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
10007         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
10008         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
10009         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
10010         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
10011         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
10012         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
10013         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
10014         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
10015         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
10016         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
10017         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
10018         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
10019         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10020         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
10021         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
10022         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
10023         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
10024         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
10025         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
10026         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
10027         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
10028         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
10029         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
10030         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
10031         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
10032         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
10033         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
10034         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
10035         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
10036         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
10037         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
10038         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
10039         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
10040         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
10041         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
10042         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
10043         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
10044         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
10045         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
10046         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
10047         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
10048         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
10049         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
10050         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
10051         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
10052         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
10053         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
10054         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
10055         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
10056         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
10057         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10058         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10059         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10060         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10061         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10062         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10063         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10064         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10065         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10066         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10067         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10068         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10069         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10070         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
10071         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
10072         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10073         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
10074         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10075         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10076         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10077         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10078         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10079         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10080         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
10081         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
10082         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
10083         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
10084         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10085         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
10086         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10087         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10088         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10089         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10090         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10091         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10092         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10093         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10095 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10097         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
10098         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
10099         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
10100         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
10101         svml_d_log2_core-sse2, svml_d_log4_core-sse,
10102         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
10103         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
10104         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
10105         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
10106         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
10107         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
10108         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
10109         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
10110         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
10111         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
10112         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
10113         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
10114         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
10115         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
10116         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
10117         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
10118         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
10119         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
10120         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
10121         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
10122         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
10123         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
10124         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
10125         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
10126         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
10127         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
10128         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
10129         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
10130         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
10131         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
10132         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
10133         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
10134         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10135         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10136         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10137         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10138         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10139         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10140         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10141         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10142         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10143         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10144         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10145         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10146         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10147         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10148         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10149         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10150         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10151         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10152         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10153         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10154         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10155         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10156         ...
10157         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10158         Don't include <sysdep.h> nor <init-arch.h>.
10159         (_ZGVbN2v_cos): Removed.
10160         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10161         ...
10162         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10163         Don't include <sysdep.h> nor <init-arch.h>.
10164         (_ZGVdN4v_cos): Removed.
10165         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10166         ...
10167         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10168         Don't include <sysdep.h> nor <init-arch.h>.
10169         (_ZGVeN8v_cos): Removed.
10170         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10171         ...
10172         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10173         Don't include <sysdep.h> nor <init-arch.h>.
10174         (_ZGVbN2v_exp): Removed.
10175         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10176         ...
10177         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10178         Don't include <sysdep.h> nor <init-arch.h>.
10179         (_ZGVdN4v_exp): Removed.
10180         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10181         ...
10182         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10183         Don't include <sysdep.h> nor <init-arch.h>.
10184         (_ZGVeN8v_exp): Removed.
10185         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10186         ...
10187         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10188         Don't include <sysdep.h> nor <init-arch.h>.
10189         (_ZGVbN2v_log): Removed.
10190         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10191         ...
10192         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10193         Don't include <sysdep.h> nor <init-arch.h>.
10194         (_ZGVdN4v_log): Removed.
10195         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10196         ...
10197         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10198         Don't include <sysdep.h> nor <init-arch.h>.
10199         (_ZGVeN8v_log): Removed.
10200         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10201         ...
10202         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10203         Don't include <sysdep.h> nor <init-arch.h>.
10204         (_ZGVbN2vv_pow): Removed.
10205         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10206         ...
10207         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10208         Don't include <sysdep.h> nor <init-arch.h>.
10209         (_ZGVdN4vv_pow): Removed.
10210         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10211         ...
10212         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10213         Don't include <sysdep.h> nor <init-arch.h>.
10214         (_ZGVeN8vv_pow): Removed.
10215         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10216         ...
10217         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10218         Don't include <sysdep.h> nor <init-arch.h>.
10219         (_ZGVbN2v_sin): Removed.
10220         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10221         ...
10222         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10223         Don't include <sysdep.h> nor <init-arch.h>.
10224         (_ZGVbN4v_sin): Removed.
10225         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10226         ...
10227         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10228         Don't include <sysdep.h> nor <init-arch.h>.
10229         (_ZGVbN8v_sin): Removed.
10230         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10231         ...
10232         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10233         Don't include <sysdep.h> nor <init-arch.h>.
10234         (_ZGVbN2vvv_sincos): Removed.
10235         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10236         ...
10237         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10238         Don't include <sysdep.h> nor <init-arch.h>.
10239         (_ZGVdN4vvv_sincos): Removed.
10240         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10241         ...
10242         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10243         Don't include <sysdep.h> nor <init-arch.h>.
10244         (_ZGVeN8vvv_sincos): Removed.
10245         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10246         ...
10247         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10248         Don't include <sysdep.h> nor <init-arch.h>.
10249         (_ZGVeN16v_cosf): Removed.
10250         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10251         ...
10252         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
10253         Don't include <sysdep.h> nor <init-arch.h>.
10254         (_ZGVbN4v_cosf): Removed.
10255         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
10256         ...
10257         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
10258         Don't include <sysdep.h> nor <init-arch.h>.
10259         (_ZGVdN8v_cosf): Removed.
10260         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
10261         ...
10262         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
10263         Don't include <sysdep.h> nor <init-arch.h>.
10264         (_ZGVeN16v_expf): Removed.
10265         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
10266         ...
10267         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
10268         Don't include <sysdep.h> nor <init-arch.h>.
10269         (_ZGVbN4v_expf): Removed.
10270         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
10271         ...
10272         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
10273         Don't include <sysdep.h> nor <init-arch.h>.
10274         (_ZGVdN8v_expf): Removed.
10275         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
10276         ...
10277         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
10278         Don't include <sysdep.h> nor <init-arch.h>.
10279         (_ZGVeN16v_logf): Removed.
10280         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
10281         ...
10282         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
10283         Don't include <sysdep.h> nor <init-arch.h>.
10284         (_ZGVbN4v_logf): Removed.
10285         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
10286         ...
10287         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
10288         Don't include <sysdep.h> nor <init-arch.h>.
10289         (_ZGVdN8v_logf): Removed.
10290         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
10291         ...
10292         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
10293         Don't include <sysdep.h> nor <init-arch.h>.
10294         (_ZGVeN16vv_powf): Removed.
10295         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
10296         ...
10297         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
10298         Don't include <sysdep.h> nor <init-arch.h>.
10299         (_ZGVbN4vv_powf): Removed.
10300         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
10301         ...
10302         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
10303         Don't include <sysdep.h> nor <init-arch.h>.
10304         (_ZGVdN8vv_powf): Removed.
10305         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
10306         ...
10307         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
10308         Don't include <sysdep.h> nor <init-arch.h>.
10309         (_ZGVeN16vvv_sincosf): Removed.
10310         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
10311         ...
10312         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
10313         Don't include <sysdep.h> nor <init-arch.h>.
10314         (_ZGVbN4vvv_sincosf): Removed.
10315         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
10316         ...
10317         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
10318         Don't include <sysdep.h> nor <init-arch.h>.
10319         (_ZGVdN8vvv_sincosf): Removed.
10320         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
10321         ...
10322         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
10323         Don't include <sysdep.h> nor <init-arch.h>.
10324         (_ZGVeN16v_sinf): Removed.
10325         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
10326         ...
10327         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
10328         Don't include <sysdep.h> nor <init-arch.h>.
10329         (_ZGVbN4v_sinf): Removed.
10330         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
10331         ...
10332         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
10333         Don't include <sysdep.h> nor <init-arch.h>.
10334         (_ZGVdN8v_sinf): Removed.
10336 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10338         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10339         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
10340         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
10341         s_rint-sse4_1 and s_rintf-sse4_1.
10342         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
10343         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10344         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10345         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10346         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10347         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
10348         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
10349         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10350         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10351         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
10352         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
10353         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10354         (__ceil): Removed.
10355         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
10356         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
10357         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10358         (__ceilf): Removed.
10359         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
10360         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
10361         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10362         (__floor): Removed.
10363         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
10364         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
10365         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10366         (__floorf): Removed.
10367         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
10368         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
10369         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10370         (__nearbyint): Removed.
10371         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
10372         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
10373         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10374         (__nearbyintf): Removed.
10375         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
10376         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
10377         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10378         (__rint): Removed.
10379         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
10380         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
10381         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10382         (__rintf): Removed.
10384 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10386         * sysdeps/i386/start.S (_start): Check Check PIC instead of
10387         SHARED.  Avoid dynamic relocation against main in static PIE.
10389 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10391         [BZ #21815]
10392         * elf/Makefile (CFLAGS-tst-prelink.c): New.
10393         (LDFLAGS-tst-prelink): Likewise.
10395 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10397         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10398         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
10399         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
10400         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10401         (INTERNAL_SYSCALL_NCS): Likewise.
10402         (LOADARGS_1): Likewise.
10403         (LOADARGS_5): Likewise.
10404         (RESTOREARGS_1): Likewise.
10405         (RESTOREARGS_5): Likewise.
10407 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10409         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
10410         (MEMPCPY_SYMBOL): Likewise.
10411         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10412         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
10413         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
10414         in libc.a.
10415         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10416         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
10417         Likewise.
10418         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
10419         (__hidden_ver1): Don't use in libc.a.
10420         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
10421         (__mempcpy): Don't create a weak alias in libc.a.
10422         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
10423         libc.a.
10424         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
10425         (__hidden_ver1): Don't use in libc.a.
10427 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10429         * config.make.in (have-insert): New.
10430         * configure.ac (libc_cv_insert): New.  Set to yes if linker
10431         supports INSERT in linker script.
10432         (AC_SUBST(libc_cv_insert): New.
10433         * configure: Regenerated.
10434         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
10435         if $(have-insert) == yes.
10437 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10439         * elf/Makefile (tests): Add vismain only if
10440         $(have-protected-data) == yes.
10441         (tests-pie): Likewise.
10443 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10445         [BZ #21871]
10446         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10447         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
10449 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10451         [BZ #21790]
10452         * sysdeps/i386/i586/memset.S
10453         (__memset_zero_constant_len_parameter): Removed.
10454         * sysdeps/i386/i686/memset.S
10455         (__memset_zero_constant_len_parameter): Likewise.
10456         * sysdeps/i386/i686/multiarch/memset_chk.S
10457         (__memset_zero_constant_len_parameter): Likewise.
10458         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
10459         Likewise.
10461 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10463         * stdlib/getentropy.c (getentropy): Change return type to int.
10465 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10467         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
10469 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
10471         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
10472         u_intN_t.
10473         * math/s_nexttowardf.c (__nexttowardf): Likewise.
10474         * sysdeps/generic/math_private.h (ieee_double_shape_type):
10475         Likewise.
10476         (ieee_float_shape_type): Likewise.
10477         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
10478         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
10479         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
10480         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10481         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10482         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
10483         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
10484         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
10485         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10486         Likewise.
10487         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10488         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10489         (__ieee754_yn): Likewise.
10490         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
10491         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
10492         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
10493         Likewise.
10494         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10495         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
10496         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
10497         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
10498         (__erfc): Likewise.
10499         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10500         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
10501         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
10502         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
10503         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
10504         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
10505         Likewise.
10506         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10507         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
10508         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10509         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
10510         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
10511         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
10512         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
10513         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
10514         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
10515         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10516         (__issignaling): Likewise.
10517         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
10518         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
10519         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10520         Likewise.
10521         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
10522         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
10523         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10524         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
10525         Likewise.
10526         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
10527         Likewise.
10528         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
10529         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
10530         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
10531         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10532         (__erfcf): Likewise.
10533         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10534         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
10535         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
10536         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
10537         Likewise.
10538         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
10539         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
10540         Likewise.
10541         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10542         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
10543         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10544         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
10545         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
10546         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
10547         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
10548         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
10549         Likewise.
10550         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
10551         Likewise.
10552         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10553         Likewise.
10554         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
10555         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10556         Likewise.
10557         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10558         Likewise.
10559         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10560         (__ieee754_ynl): Likewise.
10561         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10562         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
10563         Likewise.
10564         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
10565         Likewise.
10566         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10567         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
10568         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10569         Likewise.
10570         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10571         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
10572         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
10573         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
10574         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
10575         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
10576         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
10577         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
10578         Likewise.
10579         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
10580         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
10581         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
10582         Likewise.
10583         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10584         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
10585         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10586         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10587         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
10588         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
10589         Likewise.
10590         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
10591         Likewise.
10592         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10593         Likewise.
10594         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10595         Likewise.
10596         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
10597         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
10598         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10599         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
10600         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10601         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
10602         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
10603         Likewise.
10604         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10605         Likewise.
10606         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10607         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
10608         Likewise.
10609         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10610         (__ieee754_remainderl): Likewise.
10611         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10612         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10613         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
10614         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
10615         Likewise.
10616         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
10617         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10618         Likewise.
10619         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
10620         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
10621         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10622         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10623         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
10624         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10625         Likewise.
10626         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10627         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10628         (__ieee754_y0l): Likewise.
10629         (pzero): Likewise.
10630         (qzero): Likewise.
10631         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10632         (__ieee754_y1l): Likewise.
10633         (pone): Likewise.
10634         (qone): Likewise.
10635         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10636         (__ieee754_ynl): Likewise.
10637         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10638         (__ieee754_lgammal_r): Likewise.
10639         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
10640         Likewise.
10641         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10642         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
10643         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10644         (__erfcl): Likewise.
10645         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
10646         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
10647         Likewise.
10648         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10649         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
10650         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10651         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
10652         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
10653         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10654         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10655         Likewise.
10656         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
10657         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
10658         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
10659         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
10660         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10661         Likewise.
10662         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
10663         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
10664         Likewise.
10665         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
10666         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
10667         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
10668         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
10669         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10671 2017-08-03  Florian Weimer  <fweimer@redhat.com>
10673         [BZ #21885]
10674         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
10675         on memory allocation failure.
10677 2017-08-03  Alan Modra  <amodra@gmail.com>
10679         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
10680         tst-tlsopt-powerpc.c with function name change and no test harness.
10681         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
10682         Call tls_get_addr_opt_test.
10683         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
10684         (modules-names): Add mod-tlsopt-powerpc.
10685         (mod-tlsopt-powerpc.so-no-z-defs): Define.
10686         (tst-tlsopt-powerpc): Depend on .so.
10687         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
10688         define.  Expand use in TLS_GD and TLS_LD.
10690 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10692         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
10693         function.
10694         * sysdeps/posix/shm_open.c: Include <pthread.h>.
10696 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10698         [BZ #21686]
10699         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
10700         comparing size with that of double.
10701         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10702         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10703         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10704         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10705         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10706         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
10707         unsigned __int128 types.
10709 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
10711         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
10712         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
10713         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
10714         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
10715         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
10717 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10719         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
10721 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10723         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
10724         of SHARED.
10725         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
10726         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10727         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10728         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10729         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10730         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10731         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10733 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10735         [BZ #21685]
10736         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
10737         bit-field expressions passed to sizeof or typeof.
10738         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10739         (__TGMATH_F128): Likewise.
10740         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10741         (__TGMATH_CF128): Likewise.
10742         (__TGMATH_UNARY_REAL_ONLY): Likewise.
10743         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
10744         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
10745         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
10746         (__TGMATH_BINARY_REAL_ONLY): Likewise.
10747         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10748         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10749         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10750         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10751         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
10752         (__TGMATH_UNARY_REAL_IMAG): Likewise.
10753         (__TGMATH_UNARY_IMAG): Likewise.
10754         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10755         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10756         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
10757         type.
10758         (define_vars_for_type): Handle bit_field type specially.
10759         (Tests.__init__): Declare structure with bit-field element.
10761 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10763         [BZ #21791]
10764         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
10765         (MEMCPY_CHK): Define only if SHARED is defined.
10766         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
10767         Likewise.
10768         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
10769         Likewise.
10771 See ChangeLog.18 for earlier changes.