Use libm_alias_ldouble for SPARC fabsl.
[glibc.git] / ChangeLog
blob514873b6a8f8eadd85634956f28ba92f7beb4aa3
1 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
3         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
4         <libm-alias-ldouble.h>.
5         (fabsl): Define using libm_alias_ldouble.
6         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
7         <libm-alias-ldouble.h>.
8         (fabsl): Define using libm_alias_ldouble.
10         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
11         Remove conditional code.
13         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
14         Rename to __clog10_internal_l.
15         (__clog10_internal_l): Define aliases using
16         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
17         with __clog10.
19 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
22         * benchtests/sincosf-inputs: New file.
23         * benchtests/cosf-inputs: New file.
24         * benchtests/sinf-inputs: New file.
26 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28         * posix/tst-spawn.c (do_test): Wait for both children.
30 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
32         [BZ #22284]
33         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
34         tests-pie): Add tst-gmon-pie.
35         (CFLAGS-tst-gmon-pie.c): New.
36         (CRT-tst-gmon-pie): Likewise.
37         (tst-gmon-pie-ENV): Likewise.
38         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
39         ($(objpfx)tst-gmon-pie.out): Likewise.
40         (clean-tst-gmon-pie-data): Likewise.
41         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
42         * gmon/gmon.c [PIC]: Include <link.h>.
43         [PIC] (callback): New function.
44         (write_hist): Add an argument for load address.  Subtract load
45         address from PCs.
46         (write_call_graph): Likewise.
47         (write_gmon): Call __dl_iterate_phdr to get load address, pass
48         it to write_hist and write_call_graph.
49         * gmon/tst-gmon-pie.c: New file.
51 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
53         * math/Makefile (test-types-basic): New variable.
54         (test-types): Likewise.
55         (libm-test-support): Use $(test-types) instead of $(types).
56         (libm-tests-base-normal): Likewise.
57         (libm-tests-base-finite): Likewise.
58         (libm-tests-base-inline): Likewise.
59         (generated): Likewise.
60         ($(objpfx)libm-test-support-$(t).c): Likewise.
61         (libm-tests-for-type iterator): Likewise.
62         (libm-test-support iterator): Likewise.
63         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
64         (ulp_idx): Use ULP_IDX.
65         * math/test-ldouble.h: Include <float.h>.
66         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
67         (ULP_IDX): New macro.
68         (ULP_I_IDX): Likewise.
69         * math/test-double.h (ULP_IDX): Likewise.
70         (ULP_I_IDX): Likewise.
71         * math/test-float.h (ULP_IDX): Likewise.
72         (ULP_I_IDX): Likewise.
73         * math/test-float128.h (ULP_IDX): Likewise.
74         (ULP_I_IDX): Likewise.
76 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
78         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
79         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
80         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
81         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
82         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
83         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
84         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
85         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
86         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
87         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
88         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
89         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
90         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
91         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
92         (SINGLE_THREAD_BY_GLOBAL): Define.
93         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
94         Likewise.
95         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
96         Likewise.
97         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
98         Likewise.
99         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
100         Likewise.
101         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
102         (SINGLE_THREAD_BY_GLOBAL): Likewise.
103         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
104         Likewise.
106 2017-10-11  Andreas Schwab  <schwab@suse.de>
108         * nis/Makefile (aux): Remove.
109         * nscd/Makefile (aux): Add nscd_hash.
110         (nscd-modules): Likewise.
111         ($(objpfx)nscd): Don't depend on libnsl.
112         * nscd/nscd_hash.c: New file.
113         * nscd/nscd_hash.h: Likewise.
114         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
115         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
116         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
117         instead of <nis/rpcsvc/nis.h>.
118         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
120 2017-10-11  Florian Weimer  <fweimer@redhat.com>
122         [BZ #22078]
123         Avoid large NSS buffers with many addresses, aliases.
124         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
125         using dynarrays and struct alloc_buffer.
126         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
127         (tst-nss-files-hosts-multi): Link with -ldl.
128         * nss/tst-nss-files-hosts-multi.c: New file.
130 2017-10-11  Florian Weimer  <fweimer@redhat.com>
132         [BZ #18023]
133         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
134         scratch_buffer.  Eliminate gotos.
136 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
138         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
139         libm_alias_ldouble_other.
140         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
141         undefine and redefine.
142         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
143         (exp10l): Do not define here.
144         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
145         (weak_alias): Undefine and redefine.
146         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
147         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
148         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
149         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
151         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
152         [!__fma] (fma): Define using libm_alias_double.
153         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
154         [!__fmaf] (fmaf): Define using libm_alias_float.
155         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
156         (fmal): Define using libm_alias_ldouble.
158 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
160         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
161         New macro.
162         (libm_alias_double_other): Likewise.
163         (libm_alias_double_r): Use libm_alias_double_other_r.
164         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
165         New macro.
166         (libm_alias_float_other): Likewise.
167         (libm_alias_float_r): Use libm_alias_float_other_r.
168         * sysdeps/generic/libm-alias-float128.h
169         (libm_alias_float128_other_r): New macro.
170         (libm_alias_float128_other): Likewise.
171         (libm_alias_float128_r): Use libm_alias_float128_other_r.
172         * sysdeps/generic/libm-alias-ldouble.h
173         (libm_alias_ldouble_other_r): New macro.
174         (libm_alias_ldouble_other): Likewise.
175         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
176         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
177         (libm_alias_double_other_r): New macro.
178         (libm_alias_double_other): Likewise.
179         (libm_alias_double_r): Use libm_alias_double_other_r.
180         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
181         (libm_alias_ldouble_other_r): New macro.
182         (libm_alias_ldouble_other): Likewise.
183         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
184         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
185         [!USE_AS_COMPAT]: Use libm_alias_double_other.
186         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
187         [!USE_AS_COMPAT]: Use libm_alias_float_other.
188         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
189         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
190         * math/w_exp2f.c: Use libm_alias_float_other.
191         * math/w_expf.c: Likewise.
192         * math/w_log2f.c: Likewise.
193         * math/w_logf.c: Likewise.
194         * math/w_powf.c: Likewise.
195         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
196         [!__exp2f]: Use libm_alias_float_other.
197         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
198         [!__expf]: Use libm_alias_float_other.
199         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
200         [!__log2f]: Use libm_alias_float_other.
201         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
202         [!__logf]: Use libm_alias_float_other.
203         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
204         [!__powf]: Use libm_alias_float_other.
206 2017-10-10  Florian Weimer  <fweimer@redhat.com>
208         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
209         function.
210         (_nss_files_gethostbyname3_r): Call it.
212 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
214         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
215         error.  Remove default definition of declare_mgen_alias.
216         [!declare_mgen_alias_r]: Likewise.
217         * sysdeps/generic/math-type-macros-double.h
218         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
219         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
220         (declare_mgen_alias_r): Likewise.
221         * sysdeps/generic/math-type-macros-float128.h
222         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
223         * sysdeps/generic/math-type-macros-ldouble.h
224         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
225         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
226         macro.
227         (declare_mgen_alias_r_s): Likewise.
228         (declare_mgen_alias_r): Likewise.
229         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
230         (lgamma_r): Define using libm_alias_double_r.
231         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
232         (lgammaf_r): Define using libm_alias_float_r.
233         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
234         (lgammal_r): Define using libm_alias_ldouble_r.
235         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
236         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
238 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
240         * lib/glob.c (__glob_pattern_type): Remove now-spurious
241         extern declaration.
243 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
245         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
247 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
249         [BZ #21326]
250         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
251         [__cplusplus >= 201103] (__USE_ISOC99): Define.
252         * math/Makefile (test-math-cxx11): New test.
253         * math/test-math-cxx11.cc: New file.
255 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
257         * login/openpty.c (openpty): Close slave pty file descriptor on error.
259         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
260         call to allocate the slave pty file descriptor.
262 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
264         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
265         [!__fma] (fma): Define using libm_alias_double.
266         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
267         [!__fma] (fma): Define using libm_alias_double.
269         * sysdeps/ieee754/float128/float128_private.h: Include
270         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
271         (libm_alias_ldouble_r): Undefine and redefine.
272         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
273         <libm-alias-ldouble.h>.
274         (asinhl): Define using libm_alias_ldouble.
275         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
276         <libm-alias-ldouble.h>.
277         (atanl): Define using libm_alias_ldouble.
278         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
279         <libm-alias-ldouble.h>.
280         (cbrtl): Define using libm_alias_ldouble.
281         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
282         <libm-alias-ldouble.h>.
283         (ceill): Define using libm_alias_ldouble.
284         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
285         <libm-alias-ldouble.h>.
286         (copysignl): Define using libm_alias_ldouble.
287         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
288         <libm-alias-ldouble.h>.
289         (cosl): Define using libm_alias_ldouble.
290         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
291         <libm-alias-ldouble.h>.
292         (erfl): Define using libm_alias_ldouble.
293         (erfcl): Likewise.
294         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
295         <libm-alias-ldouble.h>.
296         (expm1l): Define using libm_alias_ldouble.
297         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
298         <libm-alias-ldouble.h>.
299         (fabsl): Define using libm_alias_ldouble.
300         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
301         <libm-alias-ldouble.h>.
302         (floorl): Define using libm_alias_ldouble.
303         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
304         <libm-alias-ldouble.h>.
305         (fmal): Define using libm_alias_ldouble.
306         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
307         <libm-alias-ldouble.h>.
308         (frexpl): Define using libm_alias_ldouble.
309         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
310         libm_alias_ldouble.
311         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
312         <libm-alias-ldouble.h>.
313         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
314         libm_alias_ldouble.
315         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
316         <libm-alias-ldouble.h>.
317         (getpayloadl): Define using libm_alias_ldouble.
318         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
319         <libm-alias-ldouble.h>.
320         (llrintl): Define using libm_alias_ldouble.
321         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
322         <libm-alias-ldouble.h>.
323         (llroundl): Define using libm_alias_ldouble.
324         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
325         <libm-alias-ldouble.h>.
326         (logbl): Define using libm_alias_ldouble.
327         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
328         <libm-alias-ldouble.h>.
329         (lrintl): Define using libm_alias_ldouble.
330         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
331         <libm-alias-ldouble.h>.
332         (lroundl): Define using libm_alias_ldouble.
333         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
334         <libm-alias-ldouble.h>.
335         (modfl): Define using libm_alias_ldouble.
336         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
337         <libm-alias-ldouble.h>.
338         (nearbyintl): Define using libm_alias_ldouble.
339         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
340         <libm-alias-ldouble.h>.
341         (nextafterl): Define using libm_alias_ldouble.
342         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
343         <libm-alias-ldouble.h>.
344         (nextupl): Define using libm_alias_ldouble.
345         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
346         <libm-alias-ldouble.h>.
347         (remquol): Define using libm_alias_ldouble.
348         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
349         <libm-alias-ldouble.h>.
350         (rintl): Define using libm_alias_ldouble.
351         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
352         <libm-alias-ldouble.h>.
353         (roundevenl): Define using libm_alias_ldouble.
354         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
355         <libm-alias-ldouble.h>.
356         (roundl): Define using libm_alias_ldouble.
357         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
358         using libm_alias_ldouble.
359         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
360         <libm-alias-ldouble.h>.
361         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
362         Define using libm_alias_ldouble.
363         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
364         <libm-alias-ldouble.h>.
365         (sincosl): Define using libm_alias_ldouble.
366         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
367         <libm-alias-ldouble.h>.
368         (sinl): Define using libm_alias_ldouble.
369         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
370         <libm-alias-ldouble.h>.
371         (tanhl): Define using libm_alias_ldouble.
372         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
373         <libm-alias-ldouble.h>.
374         (tanl): Define using libm_alias_ldouble.
375         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
376         <libm-alias-ldouble.h>.
377         (totalorderl): Define using libm_alias_ldouble.
378         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
379         <libm-alias-ldouble.h>.
380         (totalordermagl): Define using libm_alias_ldouble.
381         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
382         <libm-alias-ldouble.h>.
383         (truncl): Define using libm_alias_ldouble.
384         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
385         libm_alias_ldouble.
386         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
387         libm_alias_ldouble.
388         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
389         <libm-alias-ldouble.h>.
390         (weak_alias): Do not undefine and redefine.
391         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
392         (copysignl): Define with long_double_symbol only if [IS_IN
393         (libc)].
394         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
395         <libm-alias-ldouble.h>.
396         (weak_alias): Do not undefine and redefine.
397         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
398         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
399         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
400         <libm-alias-ldouble.h>.
401         (weak_alias): Do not undefine and redefine.
402         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
403         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
404         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
405         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
406         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
407         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
408         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
409         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
410         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
411         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
412         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
413         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
414         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
415         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
416         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
417         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
418         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
419         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
420         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
421         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
422         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
423         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
424         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
425         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
426         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
427         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
429 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
431         [BZ #22111]
432         * malloc/malloc.c (tcache_shutting_down): Use bool type.
433         (tcache_thread_freeres): Set tcache_shutting_down before
434         freeing the tcache.
435         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
436         * malloc/tst-malloc-tcache-leak.c: New file.
438 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
440         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
441         back to powerpc32 file.
442         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
443         (memrchr): Add __memrchr_power8 to ifunc list.
444         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
445         extra bytes for unaligned inputs.
447 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
449         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
450         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
451         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
452         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
453         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
455 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
457         * sysdeps/arm/libm-test-ulps: Update.
459         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
460         <libm-alias-ldouble.h>.
461         (asinhl): Define using libm_alias_ldouble.
462         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
463         <libm-alias-ldouble.h>.
464         (cbrtl): Define using libm_alias_ldouble.
465         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
466         <libm-alias-ldouble.h>.
467         (copysignl): Define using libm_alias_ldouble.
468         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
469         <libm-alias-ldouble.h>.
470         (cosl): Define using libm_alias_ldouble.
471         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
472         <libm-alias-ldouble.h>.
473         (erfl): Define using libm_alias_ldouble.
474         (erfcl): Likewise.
475         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
476         <libm-alias-ldouble.h>.
477         (fmal): Define using libm_alias_ldouble.
478         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
479         <libm-alias-ldouble.h>.
480         (frexpl): Define using libm_alias_ldouble.
481         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
482         libm_alias_ldouble.
483         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
484         <libm-alias-ldouble.h>.
485         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
486         libm_alias_ldouble.
487         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
488         <libm-alias-ldouble.h>.
489         (getpayloadl): Define using libm_alias_ldouble.
490         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
491         <libm-alias-ldouble.h>.
492         (llrintl): Define using libm_alias_ldouble.
493         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
494         <libm-alias-ldouble.h>.
495         (llroundl): Define using libm_alias_ldouble.
496         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
497         <libm-alias-ldouble.h>.
498         (lrintl): Define using libm_alias_ldouble.
499         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
500         <libm-alias-ldouble.h>.
501         (lroundl): Define using libm_alias_ldouble.
502         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
503         <libm-alias-ldouble.h>.
504         (modfl): Define using libm_alias_ldouble.
505         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
506         <libm-alias-ldouble.h>.
507         (nextupl): Define using libm_alias_ldouble.
508         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
509         <libm-alias-ldouble.h>.
510         (remquol): Define using libm_alias_ldouble.
511         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
512         <libm-alias-ldouble.h>.
513         (roundevenl): Define using libm_alias_ldouble.
514         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
515         <libm-alias-ldouble.h>.
516         (roundl): Define using libm_alias_ldouble.
517         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
518         using libm_alias_ldouble.
519         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
520         <libm-alias-ldouble.h>.
521         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
522         <libm-alias-ldouble.h>.
523         (setpayloadsigl): Define using libm_alias_ldouble.
524         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
525         <libm-alias-ldouble.h>.
526         (sincosl): Define using libm_alias_ldouble.
527         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
528         <libm-alias-ldouble.h>.
529         (sinl): Define using libm_alias_ldouble.
530         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
531         <libm-alias-ldouble.h>.
532         (tanhl): Define using libm_alias_ldouble.
533         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
534         <libm-alias-ldouble.h>.
535         (tanl): Define using libm_alias_ldouble.
536         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
537         <libm-alias-ldouble.h>.
538         (totalorderl): Define using libm_alias_ldouble.
539         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
540         <libm-alias-ldouble.h>.
541         (totalordermagl): Define using libm_alias_ldouble.
542         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
543         libm_alias_ldouble.
544         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
545         libm_alias_ldouble.
547 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
549         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
550         memmove_falkor.
551         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
552         (__libc_ifunc_impl_list): Likewise.
553         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
554         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
556         * benchtests/bench-memmove-walk.c: New file.
557         * benchtests/Makefile (string-benchset): Add it.
559         * benchtests/bench-memset-walk.c: New file.
560         * benchtests/Makefile (string-benchset): Add it.
562         * benchtests/bench-memcpy-walk.c: New file.
563         * benchtests/Makefile (string-benchset): Add it.
565 2017-10-05  Florian Weimer  <fweimer@redhat.com>
567         nscd: Eliminate compilation time dependency in the build output.
568         * nscd/nscd_stat.c (STATDATA_VERSION)
569         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
570         (STATDATA_VERSION_FULL): New macro definitions.
571         (compilation): Remove.
572         (struct statdata): Adjust version member.
573         (send_stats): Set version from STATDATA_VERSION_FULL.
574         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
576 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
578         * configure.ac (--enable-add-ons): Remove option.
579         (machine): Do not mention add-ons in comment.
580         (LIBC_PRECONFIGURE): Likewise.
581         (add_ons): Remove variable and sanity checks and logic to locate
582         add-ons.
583         (add_ons_automatic): Remove variable.
584         (configured_add_ons): Likewise.
585         (add_ons_sfx): Likewise.
586         (add_ons_pfx): Likewise.
587         (add_on_subdirs): Likewise.
588         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
589         consideration of add-ons in Implies handling.
590         (sysdeps_add_ons): Likewise.
591         * configure: Regenerated.
592         * libidn/configure.ac: Remove.
593         * libidn/configure: Likewise.
594         * sysdeps/unix/inet/configure.ac: New file.
595         * sysdeps/unix/inet/configure: New generated file.
596         * sysdeps/unix/inet/Subdirs: Add libidn.
597         * Makeconfig (sysdeps-srcdirs): Remove variable.
598         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
599         ($(common-objpfx)config.status): Do not depend on add-on files.
600         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
601         comment.
602         (all-subdirs): Do not include $(add-on-subdirs).
603         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
604         * config.make.in (add-ons): Remove variable.
605         (add-on-subdirs): Likewise.
606         (sysdeps-add-ons): Likewise.
607         * manual/Makefile (add-chapters): Remove.
608         ($(objpfx)texis): Do not depend on $(add-chapters).
609         (nonexamples): Do not handle $(add-chapters).
610         (examples): Do not handle $(add-ons).
611         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
612         libc-texinfo.sh.
613         * manual/install.texi (Installation): Do not mention add-ons.
614         (--enable-add-ons): Do not document configure option.
615         * INSTALL: Regenerated.
616         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
617         * manual/maint.texi (Hierarchy Conventions): Do not mention
618         add-ons.
619         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
620         --enable-add-ons.
621         * scripts/gen-sorted.awk: Do not handle Subdirs files from
622         add-ons.
623         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
624         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
626 2017-10-05  Andreas Schwab  <schwab@suse.de>
628         [BZ #15142]
629         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
630         (_IO_flush_all_lockp): Always lock list_all_lock.
631         (_IO_flush_all_linebuffered): Likewise.
632         (_IO_unbuffer_all): Likewise.
634 2017-10-05  Florian Weimer  <fweimer@redhat.com>
636         [BZ #15436]
637         Do not flush stdio streams on abort.
638         * stdlib/abort.c (fflush): Remove macro definition.
639         (abort): Remove stages related to stdio flushing.
641 2017-10-05  Florian Weimer  <fweimer@redhat.com>
643         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
645 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
647         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
649 2017-10-05  Florian Weimer  <fweimer@redhat.com>
651         * support/support_format_hostent.c (support_format_hostent): Add
652         more error information for NETDB_INTERNAL.
654 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
656         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
657         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
658         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
659         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
660         AC_DEFINE if multi-arch is enabled.
661         * sysdeps/i386/configure: Regenerated.
663 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
665         * Makeconfig (+link-static-before-libc): Use
666         $(DEFAULT-LDFLAGS-$(@F)).
667         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
668         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
669         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
671 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
673         * elf/Makefile (tests): Add tst-main1.
674         (modules-names): Add tst-main1mod.
675         ($(objpfx)tst-main1): New.
676         (CRT-tst-main1): Likewise.
677         (LDFLAGS-tst-main1): Likewise.
678         (LDLIBS-tst-main1): Likewise.
679         (tst-main1mod.so-no-z-defs): Likewise.
680         * elf/tst-main1.c: New file.
681         * elf/tst-main1mod.c: Likewise.
683 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
685         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
687 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
689         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
690         (fma): Define using libm_alias_double.
691         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
692         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
693         <math_ldbl_opt.h>.
694         (fmal): Do not define as compat symbol here.
695         * sysdeps/alpha/fpu/s_fma.c: New file.
697 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
699         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
701 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
703         [BZ #22229]
704         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
705         <math_ldbl_opt.h>
706         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
707         and libc.
708         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
709         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
710         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
711         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
713         Include <math_ldbl_opt.h>
714         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
715         and libc.
716         (compat_symbol): Undefine and redefine.
717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
718         <math_ldbl_opt.h>
719         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
720         (compat_symbol): Undefine and redefine.
721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
722         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
723         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
724         GLIBC_2_1 for libm.
725         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
726         GLIBC_2.0 copysignl symbol.
727         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
728         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
730         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
732 2017-10-04  Florian Weimer  <fweimer@redhat.com>
734         * scripts/check-local-headers.sh: Ignore nspr4 header file
735         directory in addition to nspr.
737 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
739         [BZ #17956]
740         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
741         * configure: Regenerate.
742         * crypt/Makefile (nss-cpp-flags): New variable.
743         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
744         (CPPFLAGS-md5-crypt.c): Use it.
745         * scripts/check-local-headers.sh: Ignore nspr header file
746         directory.
748 2017-10-04  Andreas Schwab  <schwab@suse.de>
750         * nis/Makefile (services): Remove compat.
751         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
752         ($(objpfx)libnss_compat.so): Remove rule.
753         * nis/Versions (libnss_compat): Remove.
754         * nss/Makefile (services): Add compat.
755         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
756         * nss/Versions (libnss_compat): Define.
757         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
758         Don't include <rpc/types.h>.  Replace bool_t by bool.
759         * nss/nss_compat/compat-initgroups.c: Likewise.
760         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
761         instead of <rpcsrv/ypclnt.h>.
762         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
763         yp_get_default_domain.
764         * nss/nss_compat/compat-pwd.c: Likewise.
765         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
766         yp_get_default_domain.
767         * nss/nss_compat/nisdomain.c: New file.
768         * nss/nss_compat/nisdomain.h: Likewise.
770 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
772         [BZ #22244]
773         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
774         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
776 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
778         [BZ #22243]
779         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
780         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
782 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
784         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
785         "movl main@GOTOFF(%ebx), %eax".
787 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
789         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
790         allow undefined _DYNAMIC in PIE libc.a.
791         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
792         Likewse.
794 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
796         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
797         check _DYNAMIC.
799 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
801         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
802         check _DYNAMIC.
804 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
806         * math/test-math-iscanonical.cc (error): Replace bool with int.
808 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
810         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
811         (modf): Define using libm_alias_double, only if [!__modf].
812         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
813         <libm-alias-double.h>.
814         (modf): Define using libm_alias_double, only if [!__modf].
815         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
816         compat symbol here.
817         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
818         (weak_alias): Do not undefine and redefine.
819         (strong_alias): Likewise.
820         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
821         (weak_alias): Likewise.
822         (strong_alias): Likewise.
824         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
825         (logb): Define using libm_alias_double, only if [!__logb].
826         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
827         <libm-alias-double.h>.
828         (logb): Define using libm_alias_double, only if [!__logb].
829         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
830         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
831         (weak_alias): Do not undefine and redefine.
832         (strong_alias): Likewise.
833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
834         (weak_alias): Likewise.
835         (strong_alias): Likewise.
837 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
839         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
840         Check SHARED instead PIC.
842 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
844         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
845         [!__fmaf] (fmaf): Define using libm_alias_float.
847         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
848         (frexp): Define using libm_alias_double.
849         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
850         <libm-alias-double.h>.
851         (frexp): Define using libm_alias_double.
852         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
853         compat symbol here.
855 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
857         [BZ #22235]
858         * math/math.h: Trivial fix for unbalanced parentheses in comment.
859         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
860         (CFLAGS-test-math-iscanonical.cc): New variable.
861         * math/test-math-iscanonical.cc: New file.
862         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
863         Provide a C++ implementation based on function overloading,
864         rather than using __MATH_TG, which uses C-only builtins.
865         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
866         Likewise.
867         * sysdeps/powerpc/powerpc64le/Makefile
868         (CFLAGS-test-math-iscanonical.cc): New variable.
870 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
872         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
873         (ceil): Define using libm_alias_double.
874         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
875         (floor): Define using libm_alias_double.
876         * sysdeps/ieee754/dbl-64/s_llround.c: Include
877         <libm-alias-double.h>.
878         (llround): Define using libm_alias_double.
879         * sysdeps/ieee754/dbl-64/s_lround.c: Include
880         <libm-alias-double.h>.
881         (lround): Define using libm_alias_double.
882         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
883         <libm-alias-double.h>.
884         (nearbyint): Define using libm_alias_double.
885         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
886         <libm-alias-double.h>.
887         (remquo): Define using libm_alias_double.
888         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
889         (rint): Define using libm_alias_double.
890         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
891         (round): Define using libm_alias_double.
892         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
893         (trunc): Define using libm_alias_double.
894         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
895         <libm-alias-double.h>.
896         (ceil): Define using libm_alias_double.
897         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
898         <libm-alias-double.h>.
899         (floor): Define using libm_alias_double.
900         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
901         <libm-alias-double.h>.
902         (llround): Define using libm_alias_double.
903         [_LP64] (lround): Likewise.
904         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
905         <libm-alias-double.h>.
906         [!_LP64] (lround): Define using libm_alias_double.
907         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
908         <libm-alias-double.h>.
909         (nearbyint): Define using libm_alias_double.
910         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
911         <libm-alias-double.h>.
912         (remquo): Define using libm_alias_double.
913         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
914         <libm-alias-double.h>.
915         (rint): Define using libm_alias_double.
916         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
917         <libm-alias-double.h>.
918         (round): Define using libm_alias_double.
919         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
920         <libm-alias-double.h>.
921         (trunc): Define using libm_alias_double.
922         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
923         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
924         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
925         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
926         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
927         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
928         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
929         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
930         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
932 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
934         * math/w_remainder.c: New file.
935         * math/w_remainderf.c: New file.
936         * math/w_remainderl.c: New file.
938 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
940         * elf/rtld.c (BOOTSTRAP_MAP): New.
941         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
942         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
943         Likewise.
944         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
945         Likewise.
946         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
947         Likewise.
949 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
951         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
952         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
953         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
954         rtld_hidden_data_ver): Define to empty.
955         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
956         __assert_perror_fail): Likewise.
957         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
958         (__rewinddir): Likewise.
959         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
960         (__profile_frequency): Likewise.
961         * include/setjmp.h (__sigsetjmp): Likewise.
962         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
963         __libc_sigaction): Likewise.
964         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
965         not set hidden attribute.
966         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
967         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
968         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
969         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
970         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
971         __fxstatat64): Likewise.
972         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
973         (__uname): Likewise.
974         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
975         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
976         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
977         (NO_RTLD_HIDDEN): Set.
978         * sysdeps/mach/hurd/configure: Refresh.
979         * config.h.in: Refresh.
981 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
983         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
984         (atan): Define using libm_alias_double.
985         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
986         (tan): Define using libm_alias_double.
987         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
988         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
990         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
991         define as weak alias of __atan.  Do not define any aliases if
992         [__atan].
993         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
994         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
995         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
996         as weak alias of __tan.  Do not define any aliases if [__tan].
997         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
998         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
999         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
1000         __atan.
1001         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
1002         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
1003         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
1004         and define as weak alias of __atan.
1005         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
1006         __atan.
1007         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
1008         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
1009         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
1010         define as weak alias of __tan.
1012 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1014         * math/w_lgamma.c: New file.
1015         * math/w_lgammaf.c: New file.
1016         * math/w_lgammal.c: New file.
1018 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1020         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
1021         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
1022         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
1023         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
1024         * sysdeps/ieee754/flt-32/w_logf.c: New file.
1025         * sysdeps/ieee754/flt-32/w_powf.c: New file.
1026         * sysdeps/i386/fpu/w_log2f.c: New file.
1027         * sysdeps/i386/fpu/w_logf.c: New file.
1028         * sysdeps/i386/fpu/w_powf.c: New file.
1029         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
1030         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
1031         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
1033 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1034             H.J. Lu  <hongjiu.lu@intel.com>
1036         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
1037         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
1038         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
1039         * sysdeps/ieee754/flt-32/w_expf.c: New file.
1040         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
1041         the new expf code.
1042         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
1043         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
1044         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
1045         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
1046         * sysdeps/i386/fpu/w_exp2f.c: New file.
1047         * sysdeps/i386/fpu/w_expf.c: New file.
1048         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
1049         * sysdeps/x86_64/fpu/w_expf.c: New file.
1051 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1053         * math/Versions (logf): New libm symbol at GLIBC_2.27.
1054         (log2f): Likewise.
1055         (powf): Likewise.
1056         * math/w_log2f.c: New file.
1057         * math/w_logf.c: New file.
1058         * math/w_powf.c: New file.
1059         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
1060         * math/w_logf_compat.c (__logf_compat): Likewise.
1061         * math/w_powf_compat.c (__powf_compat): Likewise.
1062         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
1063         * sysdeps/ia64/fpu/e_logf.S: Likewise.
1064         * sysdeps/ia64/fpu/e_powf.S: Likewise.
1065         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1066         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1067         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1068         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1069         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1070         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1071         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1072         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1073         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1074         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1075         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1076         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1078         Likewise.
1079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1080         Likewise.
1081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1082         Likewise.
1083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1084         Likewise.
1085         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1086         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1087         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1088         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1089         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1090         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1091         Likewise.
1092         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1093         Likewise.
1094         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1095         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1096         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1098 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1100         * sysdeps/powerpc/powerpc64/multiarch/Makefile
1101         (sysdep_routines): Add memrchr_power8.
1102         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1103         (memrchr): Add __memrchr_power8 to list of memrchr functions.
1104         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
1105         New file.
1106         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
1107         (memrchr): Add __memrchr_power8 to ifunc list.
1108         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
1110 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1112         [BZ #18822]
1113         * sysdeps/unix/sysv/linux/posix_fadvise64.c
1114         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
1115         libc_hidden_def.
1116         * sysdeps/unix/sysv/linux/posix_fallocate64.c
1117         (__posix_fallocate64_l64): Likewise.
1119 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1121         [BZ #18822]
1122         * sysdeps/unix/sysv/linux/sched_setaffinity.c
1123         (__sched_setaffinity_new): Add libc_hidden_proto and
1124         libc_hidden_def.
1126 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1128         [BZ #18822]
1129         * include/glob.h (__glob64): Add libc_hidden_proto.
1130         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
1131         libc_hidden_def.
1133 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1135         [BZ #18822]
1136         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
1137         attribute_hidden.
1139 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1141         [BZ #18822]
1142         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
1144 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1146         [BZ #18822]
1147         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
1148         libc_hidden_def.
1150 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1152         [BZ #18822]
1153         * csu/version.c (__libc_print_version): Add attribute_hidden.
1155 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1157         [BZ #18822]
1158         * include/libc-internal.h (__init_misc): Add attribute_hidden.
1160 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1162         [BZ #18822]
1163         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
1165 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1167         [BZ #18822]
1168         * nscd/nscd_helper.c (__nis_hash): New prototype.
1170 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1172         [BZ #18822]
1173         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
1174         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
1175         libc_hidden_def.
1176         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
1177         * termios/tcgetattr.c (__tcgetattr): Likewise.
1179 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1181         [BZ #18822]
1182         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
1183         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
1184         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
1185         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
1186         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
1188 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1190         [BZ #18822]
1191         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
1193 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1195         [BZ #18822]
1196         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
1197         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
1199 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1201         [BZ #18822]
1202         * intl/hash-string.h (__hash_string): Add attribute_hidden.
1204 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1206         [BZ #18822]
1207         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
1208         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
1210 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1212         [BZ #18822]
1213         * include/ifreq.h: New file.
1214         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
1215         (__ifreq): Likewise.
1216         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
1217         (__ifreq): Likewise.
1219 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1221         [BZ #18822]
1222         * include/idna.h: New file.
1223         * inet/getnameinfo.c: Include <idna.h> instead of
1224         <libidn/idna.h>.
1225         (__idna_to_unicode_lzlz): Removed.
1226         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
1227         <libidn/idna.h>.
1228         (__idna_to_ascii_lz): Removed.
1229         (__idna_to_unicode_lzlz): Likewise.
1231 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1233         [BZ #18822]
1234         * include/plural-exp.h: New file.
1235         * intl/plural-exp.c: Include <plural-exp.h> instead of
1236         "plural-exp.h".
1238 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1240         [BZ #18822]
1241         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
1242         "getsourcefilter.h".
1243         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
1244         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
1245         "getsourcefilter.h".
1246         (__get_sol): Removed.
1248 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1250         [BZ #18822]
1251         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
1252         to ...
1253         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
1255 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1257         [BZ #18822]
1258         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
1259         attribute_hidden.
1261 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1263         [BZ #18822]
1264         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
1266 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1268         [BZ #18822]
1269         * include/search.h (__tdestroy): Add libc_hidden_proto.
1270         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
1272 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1274         [BZ #18822]
1275         * include/assert.h (__assert_fail_base): Add attribute_hidden.
1277 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1279         [BZ #18822]
1280         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
1281         attribute_hidden.
1283 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1285         [BZ #18822]
1286         * include/signal.h (__kill): Add libc_hidden_proto.
1287         (__sigblock): Likewise.
1288         (__sigprocmask): Likewise.
1289         (__sigaltstack): Likewise.
1290         * signal/kill.c (__kill): Add libc_hidden_def.
1291         * signal/sigblock.c (__sigblock): Likewise.
1292         * signal/sigprocmask.c (__sigprocmask): Likewise.
1293         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
1294         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1295         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
1296         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
1297         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
1298         Likewise.
1299         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
1300         Likewise.
1301         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
1302         (__sigprocmask): Likewise.
1303         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
1304         Likewise.
1305         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
1306         (__sigprocmask): Likewise.
1307         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
1308         Likewise.
1310 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1312         [BZ #18822]
1313         * include/string.h (__strsep): Add libc_hidden_proto.
1314         * string/strsep.c (__strsep): Add libc_hidden_def.
1316 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1318         [BZ #18822]
1319         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
1320         attribute_hidden.
1321         (__spawni): Likewise.
1323 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1325         [BZ #18822]
1326         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
1327         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
1328         libc_hidden_def.
1330 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1332         [BZ #18822]
1333         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
1335 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1337         [BZ #18822]
1338         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
1339         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
1340         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1341         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
1342         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
1343         Likewise.
1344         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
1345         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
1347 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1349         [BZ #18822]
1350         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
1351         (__dcigettext): Likewise.
1353 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1355         [BZ #18822]
1356         * include/sys/sysinfo.h (__get_nprocs_conf): Add
1357         libc_hidden_proto.
1358         (__get_nprocs): Likewise.
1359         (__get_phys_pages): Likewise.
1360         (__get_avphys_pages): Likewise.
1361         (__get_child_max): Add attribute_hidden.
1362         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
1363         (__get_nprocs): Likewise.
1364         (__get_phys_pages): Likewise.
1365         (__get_avphys_pages): Likewise.
1366         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
1367         libc_hidden_def.
1368         (__get_nprocs): Likewise.
1369         (__get_phys_pages): Likewise.
1370         (__get_avphys_pages): Likewise.
1371         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
1372         libc_hidden_def.
1373         (__get_nprocs_conf): Likewise.
1374         (__get_phys_pages): Likewise.
1375         (__get_avphys_pages): Likewise.
1377 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1379         [BZ #18822]
1380         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
1381         attribute_hidden.
1382         (__netlink_close): Likewise.
1383         (__netlink_free_handle): Likewise.
1384         (__netlink_request): Likewise.
1386 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1388         [BZ #18822]
1389         * include/rpc/rpc.h (__rpc_thread_variables): Add
1390         attribute_hidden.
1391         (__rpc_thread_svc_cleanup): Likewise.
1392         (__rpc_thread_clnt_cleanup): Likewise.
1393         (__rpc_thread_key_cleanup): Likewise.
1395 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1397         [BZ #18822]
1398         * include/sys/uio.h (__readv): Add libc_hidden_proto.
1399         (__writev): Likewise.
1400         * misc/readv.c (__readv): Add libc_hidden_def.
1401         * misc/writev.c (__writev): Likewise.
1402         * sysdeps/posix/readv.c (__readv): Likewise.
1403         * sysdeps/posix/writev.c (__writev): Likewise.
1404         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
1405         (__readv): Likewise.
1406         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
1407         (__writev): Likewise.
1409 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1411         [BZ #18822]
1412         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
1413         (__regcomp): Add libc_hidden_proto.
1414         (__regexec): Likewise.
1415         (__regfree): Likewise.
1416         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
1417         (__regfree): Likewise.
1418         * posix/regexec.c (__regexec): Likewise.
1420 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1422         [BZ #18822]
1423         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
1424         (__getutent): Likewise.
1425         (__getutid): Likewise.
1426         (__getutline): Likewise.
1427         (__pututline): Likewise.
1428         (__getutent_r): Likewise.
1429         (__getutid_r): Likewise.
1430         (__getutline_r): Likewise.
1431         (__utmpname): Add attribute_hidden.
1432         (__setutent): Likewise.
1433         (__endutent): Likewise.
1434         * login/getutent.c (__getutent): Add libc_hidden_def.
1435         * login/getutent_r.c (__getutent_r): Likewise.
1436         (__pututline): Likewise.
1437         * login/getutid.c (__getutid): Likewise.
1438         * login/getutid_r.c (__getutid_r): Likewise.
1439         * login/getutline.c (__getutline): Likewise.
1440         * login/getutline_r.c (__getutline_r): Likewise.
1441         * login/updwtmp.c (__updwtmp): Likewise.
1443 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1445         [BZ #18822]
1446         * include/dirent.h (__opendir): Always add attribute_hidden.
1447         (__fdopendir): Likewise.
1448         (__closedir): Likewise.
1449         (__readdir): Likewise.
1450         (__readdir64): Add libc_hidden_proto.
1451         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
1452         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
1453         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
1454         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
1455         New alias.
1457 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1459         [BZ #18822]
1460         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
1461         * include/netdb.h (__gethostbyaddr_r): Likewise.
1462         (__gethostbyname_r): Likewise.
1463         (__gethostbyname2_r): Likewise.
1464         (__getnetbyaddr_r): Likewise.
1465         (__getnetbyname_r): Likewise.
1466         (__getservbyname_r): Likewise.
1467         (__getservbyport_r): Likewise.
1468         (__getprotobyname_r): Likewise.
1469         (__getprotobynumber_r): Likewise.
1470         (__getnetgrent_r): Likewise.
1471         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
1472         (__getrpcbynumber_r): Likewise.
1473         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
1475 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1477         [BZ #18822]
1478         * include/stdio.h (__fcloseall): Add attribute_hidden.
1479         (__getline): Likewise.
1480         (__path_search): Likewise.
1481         (__gen_tempname): Likewise.
1482         (__libc_message): Likewise.
1483         (__flockfile): Likewise.
1484         (__funlockfile): Likewise.
1485         (__fxprintf): Likewise.
1486         (__fxprintf_nocancel): Likewise.
1488 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1490         [BZ #18822]
1491         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
1492         (__sgetsgent_r): Likewise.
1494 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1496         [BZ #18822]
1497         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
1498         (__statfs64): Likewise.
1499         (__fstatfs64): Likewise.
1500         * include/sys/statvfs.h (__statvfs64): Likewise.
1501         (__fstatvfs64): Likewise.
1502         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
1503         (__statfs_filesize_max): Likewise.
1504         (__statfs_symlinks): Likewise.
1505         (__statfs_chown_restricted): Likewise.
1507 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1509         [BZ #18822]
1510         * include/time.h (__tzstring): Add attribute_hidden.
1511         (__tzfile_read): Likewise.
1512         (__tzfile_compute): Likewise.
1513         (__tzfile_default): Likewise.
1514         (__tzset_parse_tz): Likewise.
1515         (__offtime): Likewise.
1516         (__asctime_r): Likewise.
1517         (__tzset): Likewise.
1518         (__tz_convert): Likewise.
1519         (__getdate_r): Likewise.
1520         (__getclktck): Likewise.
1522 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1524         [BZ #18822]
1525         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
1526         (__nscd_unmap): Likewise.
1527         (__nscd_cache_search): Likewise.
1528         (__nscd_get_nl_timestamp): Likewise.
1529         (__nscd_getpwnam_r): Likewise.
1530         (__nscd_getpwuid_r): Likewise.
1531         (__nscd_getgrnam_r): Likewise.
1532         (__nscd_getgrgid_r): Likewise.
1533         (__nscd_gethostbyname_r): Likewise.
1534         (__nscd_gethostbyname2_r): Likewise.
1535         (__nscd_gethostbyaddr_r): Likewise.
1536         (__nscd_getai): Likewise.
1537         (__nscd_getgrouplist): Likewise.
1538         (__nscd_getservbyname_r): Likewise.
1539         (__nscd_getservbyport_r): Likewise.
1540         (__nscd_innetgr): Likewise.
1541         (__nscd_setnetgrent): Likewise.
1543 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1545         [BZ #18822]
1546         * include/gmp.h: Declare internal functions only if _ISOMAC is
1547         undefined.
1548         (__mpn_extract_double): Add attribute_hidden.
1549         (__mpn_extract_long_double): Likewise.
1550         (__mpn_extract_float128): Likewise.
1551         (__mpn_construct_float): Likewise.
1552         (__mpn_construct_double): Likewise.
1553         (__mpn_construct_long_double): Likewise.
1554         (__mpn_construct_float128): Likewise.
1555         (mpn_add_1): Likewise.
1556         (mpn_addmul_1): Likewise.
1557         (mpn_add_n): Likewise.
1558         (mpn_cmp): Likewise.
1559         (mpn_divrem): Likewise.
1560         (mpn_lshift): Likewise.
1561         (mpn_mul): Likewise.
1562         (mpn_mul_1): Likewise.
1563         (mpn_rshift): Likewise.
1564         (mpn_sub_1): Likewise.
1565         (mpn_submul_1): Likewise.
1566         (mpn_sub_n): Likewise.
1568 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1570         [BZ #18822]
1571         * include/wchar.h (__wcsnlen): Add attribute_hidden.
1572         (__wcscat): Likewise.
1573         (__btowc): Likewise.
1574         (__wcrtomb): Likewise.
1575         (__mbsrtowcs): Likewise.
1576         (__wcsrtombs): Likewise.
1577         (__mbsnrtowcs): Likewise.
1578         (__wcsnrtombs): Likewise.
1579         (__wcsncpy): Likewise.
1580         (__wcpncpy): Likewise.
1581         (__wmemcpy): Likewise.
1582         (__wmempcpy): Likewise.
1583         (__wmemmove): Likewise.
1584         (__wcschrnul): Likewise.
1585         (__vfwscanf): Likewise.
1586         (__vswprintf): Likewise.
1587         (__fwprintf): Likewise.
1588         (__vfwprintf): Likewise.
1590 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1592         [BZ #18822]
1593         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
1594         (__getgrgid_r): Likewise.
1595         (__getgrnam_r): Likewise.
1596         * include/pwd.h (__getpwuid_r): Likewise.
1597         (__getpwnam_r): Likewise.
1598         (__fgetpwent_r): Likewise.
1599         * include/shadow.h (__getspnam_r): Likewise.
1600         (__sgetspent_r): Likewise.
1601         (__fgetspent_r): Likewise.
1603 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1605         [BZ #18822]
1606         * include/unistd.h (__access): Add attribute_hidden.
1607         (__lseek64): Likewise.
1608         (__libc_pread64): Likewise.
1609         (__pipe2): Likewise.
1610         (__sleep): Likewise.
1611         (__chdir): Likewise.
1612         (__fchdir): Likewise.
1613         (__getcwd): Likewise.
1614         (__rmdir): Likewise.
1615         (__execvpe): Likewise.
1616         (__execve): Likewise.
1617         (__setsid): Likewise.
1618         (__getuid): Likewise.
1619         (__geteuid): Likewise.
1620         (__getgid): Likewise.
1621         (__getegid): Likewise.
1622         (__getgroups): Likewise.
1623         (__group_member): Likewise.
1624         (__ttyname_r): Likewise.
1625         (__isatty): Likewise.
1626         (__readlink): Likewise.
1627         (__unlink): Likewise.
1628         (__gethostname): Likewise.
1629         (__profil): Likewise.
1630         (__getdtablesize): Likewise.
1631         (__brk): Likewise.
1632         (__ftruncate): Likewise.
1633         (__ftruncate64): Likewise.
1635 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1637         [BZ #18822]
1638         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
1639         * argp/argp-fs-xinl.c: Likewise.
1640         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
1641         * argp/argp-parse.c: Include <argp.h>.
1642         * argp/argp-xinl.c: Likewise.
1643         * include/argp-fmtstream.h: New file.
1644         * include/argp.h (__argp_error): Add attribute_hidden.
1645         (__argp_failure): Likewise.
1646         (__argp_input): Likewise.
1647         (__argp_state_help): Likewise.
1649 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1651         [BZ #18822]
1652         * include/wchar.h (____wcstof_l_internal): New prototype.
1653         (____wcstod_l_internal): Likewise.
1654         (____wcstold_l_internal): Likewise.
1655         (____wcstol_l_internal): Likewise.
1656         (____wcstoul_l_internal): Likewise.
1657         (____wcstoll_l_internal): Likewise.
1658         (____wcstoull_l_internal): Likewise.
1659         (____wcstof128_l_internal): Likewise.
1660         * sysdeps/ieee754/float128/wcstof128.c
1661         (____wcstof128_l_internal): Removed.
1662         * sysdeps/ieee754/float128/wcstof128_l.c
1663         (____wcstof128_l_internal): Likewise.
1664         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
1665         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
1666         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
1667         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
1668         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
1669         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
1670         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
1671         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
1672         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
1673         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
1675 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1677         [BZ #18822]
1678         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
1679         instead of <sys/statvfs.h>.
1680         (__internal_statvfs): Removed.
1681         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
1682         instead of <sys/statvfs.h>.
1683         (__internal_statvfs64): Removed.
1684         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
1685         "internal_statvfs.h" instead of <sys/statvfs.h>.
1686         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
1687         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
1688         instead of <sys/statvfs.h>.
1689         (__internal_statvfs): Removed.
1690         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
1691         instead of <sys/statvfs.h>.
1692         (__internal_statvfs64): Removed.
1694 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1696         [BZ #18822]
1697         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
1698         (__gconv_close): Likewise.
1699         (__gconv): Likewise.
1700         (__gconv_find_transform): Likewise.
1701         (__gconv_lookup_cache): Likewise.
1702         (__gconv_compare_alias_cache): Likewise.
1703         (__gconv_load_cache): Likewise.
1704         (__gconv_get_path): Likewise.
1705         (__gconv_close_transform): Likewise.
1706         (__gconv_release_cache): Likewise.
1707         (__gconv_find_shlib): Likewise.
1708         (__gconv_release_shlib): Likewise.
1709         (__gconv_get_builtin_trans): Likewise.
1710         (__gconv_compare_alias): Likewise.
1711         * include/dlfcn.h (_dlerror_run): Likewise.
1712         * include/stdio.h (__fortify_fail_abort): Likewise.
1713         * include/time.h (__tz_compute): Likewise.
1714         (__strptime_internal): Likewise.
1715         * intl/gettextP.h (_nl_find_domain): Likewise.
1716         (_nl_load_domain): Likewise.
1717         (_nl_find_msg): Likewise.
1718         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
1719         (EXTRACT_PLURAL_EXPRESSION): Likewise.
1720         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
1721         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
1722         (__gai_find_request): Likewise.
1723         (__gai_remove_request): Likewise.
1724         (__gai_notify): Likewise.
1725         (__gai_notify_only): Likewise.
1726         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
1727         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
1728         (_dl_non_dynamic_init): Likewise.
1729         (_dl_aux_init): Likewise.
1730         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
1731         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
1732         Likewise.
1733         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
1734         (__wcsmbs_clone_conv): Likewise.
1735         (__wcsmbs_named_conv): Likewise.
1737 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1739         [BZ #18822]
1740         * include/stdlib.h (__random): Add attribute_hidden.
1741         (__random_r): Likewise.
1742         (__srandom_r): Likewise.
1743         (__initstate_r): Likewise.
1744         (__setstate_r): Likewise.
1745         (__erand48_r): Likewise.
1746         (__nrand48_r): Likewise.
1747         (__jrand48_r): Likewise.
1748         (__srand48_r): Likewise.
1749         (__seed48_r): Likewise.
1750         (__lcong48_r): Likewise.
1751         (__drand48_iterate): Likewise.
1752         (__setenv): Likewise.
1753         (__unsetenv): Likewise.
1754         (__clearenv): Likewise.
1755         (__ptsname_r): Likewise.
1756         (__posix_openpt): Likewise.
1757         (__add_to_environ): Likewise.
1758         (__realpath): Add libc_hidden_proto.
1759         (__ecvt_r): Likewise.
1760         (__fcvt_r): Likewise.
1761         (__qecvt_r): Likewise.
1762         (__qfcvt_r): Likewise.
1763         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
1764         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
1766 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1768         [BZ #18822]
1769         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
1770         * include/time.h (__mktime_internal): Likewise.
1771         * libio/iolibio.h (__fopen_internal): Likewise.
1773 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
1775         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
1776         pointer in frame.
1777         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
1778         Correct offset used to restore PIC register.
1780 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
1782         [BZ libc/22165]
1783         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
1784         code to load address of __getcontext_ret when generating PIC code.
1786 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
1788         * elf/Makefile (tests-static-internal): Add
1789         tst-tls1-static-non-pie.
1790         (LDFLAGS-tst-tls1-static-non-pie): New.
1791         * elf/tst-tls1-static-non-pie.c: New file.
1793 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
1795         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
1796         (asinh): Define using libm_alias_double.
1797         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
1798         (cbrt): Define using libm_alias_double.
1799         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
1800         <libm-alias-double.h>.
1801         (copysign): Define using libm_alias_double.
1802         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
1803         (erf): Define using libm_alias_double.
1804         (erfc): Likewise.
1805         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
1806         (expm1): Define using libm_alias_double.
1807         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
1808         (fabs): Define using libm_alias_double.
1809         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
1810         libm_alias_double.
1811         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
1812         <libm-alias-double.h>.
1813         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
1814         libm_alias_double.
1815         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
1816         <libm-alias-double.h>.
1817         (getpayload): Define using libm_alias_double.
1818         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
1819         <libm-alias-double.h>.
1820         (llrint): Define using libm_alias_double.
1821         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
1822         (lrint): Define using libm_alias_double.
1823         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
1824         <libm-alias-double.h>.
1825         (nextup): Define using libm_alias_double.
1826         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
1827         <libm-alias-double.h>.
1828         (roundeven): Define using libm_alias_double.
1829         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
1830         libm_alias_double.
1831         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
1832         <libm-alias-double.h>.
1833         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
1834         using libm_alias_double.
1835         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
1836         (cos): Define using libm_alias_double.
1837         (sin): Likewise.
1838         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
1839         <libm-alias-double.h>.
1840         (sincos): Define using libm_alias_double.
1841         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
1842         (tanh): Define using libm_alias_double.
1843         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
1844         <libm-alias-double.h>.
1845         (totalorder): Define using libm_alias_double.
1846         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1847         <libm-alias-double.h>.
1848         (totalordermag): Define using libm_alias_double.
1849         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
1850         libm_alias_double.
1851         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
1852         libm_alias_double.
1853         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
1854         <libm-alias-double.h>.
1855         (getpayload): Define using libm_alias_double.
1856         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
1857         <libm-alias-double.h>.
1858         (roundeven): Define using libm_alias_double.
1859         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
1860         <libm-alias-double.h>.
1861         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1862         <libm-alias-double.h>.
1863         (totalorder): Define using libm_alias_double.
1864         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1865         <libm-alias-double.h>.
1866         (totalordermag): Define using libm_alias_double.
1867         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
1868         libc compat symbol here.
1869         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
1870         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
1871         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
1872         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
1873         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
1874         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
1875         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
1876         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
1877         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
1878         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
1880 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
1882         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
1883         _dl_relocate_static_pie instead of _dl_start to compute load
1884         address in static PIE.  Return 0 if _DYNAMIC is undefined for
1885         static executable.
1887 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
1889         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
1890         _DYNAMIC is undefined for static executable.
1892 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
1894         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
1896 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
1898         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1900 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
1902         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
1903         (__ieee754_lgamma_r): Use fabs rather than __fabs.
1904         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
1905         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
1906         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
1907         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
1908         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
1909         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
1910         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
1911         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
1912         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
1913         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
1914         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
1915         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
1916         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
1917         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
1918         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
1920 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
1922         * math/bits/cmathcalls.h (cimag): Remove inline.
1923         (creal): Remove inline.
1924         (conj): Remove inline.
1926 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1928         * math/Makefile (type-float-routines): Add e_powf_log2_data.
1929         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
1930         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
1931         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
1932         (issignalingf_inline): Likewise.
1933         (POWF_LOG2_TABLE_BITS): Likewise.
1934         (POWF_LOG2_POLY_ORDER): Likewise.
1935         (POWF_SCALE_BITS): Likewise.
1936         (POWF_SCALE): Likewise.
1937         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
1938         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
1939         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
1941 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1943         * math/Makefile (type-float-routines): Add e_log2f_data.
1944         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
1945         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
1946         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
1947         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
1948         * sysdeps/i386/fpu/e_log2f_data.c: New file.
1949         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
1950         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
1952 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1954         * math/Makefile (type-float-routines): Add e_logf_data.
1955         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
1956         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
1957         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
1958         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
1959         * sysdeps/i386/fpu/e_logf_data.c: New file.
1960         * sysdeps/ia64/fpu/e_logf_data.c: New file.
1961         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
1963 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1965         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
1966         undefined _DYNAMIC in PIE libc.a.
1967         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
1968         Likewse.
1970 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
1972         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
1973         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
1974         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
1975         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
1976         (__signbit): Remove.
1977         (__signbitl): Remove.
1978         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
1979         (__signbit): Remove.
1980         (__signbitl): Remove.
1981         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
1982         (__signbit): Remove.
1983         (__signbitl): Remove.
1984         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
1985         (__signbit): Remove.
1986         (__signbitl): Remove.
1987         * sysdeps/tile/bits/mathinline.h: Delete file.
1988         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
1989         (__signbit): Remove.
1990         (__signbitl): Remove.
1992 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
1994         * math/math.h: Improve handling of C99 isgreater macros.
1995         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
1996         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
1997         * sysdeps/powerpc/bits/mathinline.h: Likewise.
1998         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
1999         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
2001 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2003         * sysdeps/aarch64/libm-test-ulps: Update.
2005 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
2007         [BZ #22225]
2008         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
2009         math_opt_barrier on argument when doing arithmetic on it.
2010         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2011         Likewise.  Use math_force_eval not math_opt_barrier after
2012         arithmetic.
2013         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
2014         math_opt_barrier on argument when doing arithmetic on it.
2015         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
2016         Likewise.
2018 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2020         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
2021         libc_hidden_def.
2022         (__freeifaddrs): Likewise.
2024 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2026         * include/dirent.h (__dirfd): New declaration.
2027         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
2028         alias.
2029         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
2030         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
2031         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
2032         * include/unistd.h (__revoke): New declaration.
2033         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
2034         alias.
2035         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
2036         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
2037         revoke.
2038         * include/dirent.h (__seekdir): New declaration.
2039         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
2040         redefine as weak alias.
2041         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
2042         of seekdir.
2043         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
2044         and use libc_hidden_def on them.
2045         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
2046         them.
2047         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
2048         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
2049         instead of getifaddrs and freeifaddrs.
2051 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
2053         [BZ #18822]
2054         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
2055         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
2056         (__dso_handle): Remove declaration.
2057         * dlfcn/tstatexit.c (__dso_handle): Removed.
2058         (main): Don't check __dso_handle.
2059         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
2060         (main): Don't check __dso_handle.
2061         * include/dso_handle.h: New file.
2062         * malloc/mtrace.c: Include <dso_handle.h>.
2063         (mtrace): Pass __dso_handle directly.
2064         * nptl/pthread_atfork.c: Include <dso_handle.h>.
2065         (__dso_handle): Remove declaration.
2066         (__pthread_atfork): Pass __dso_handle directly.
2067         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
2068         (__dso_handle): Removed.
2069         * posix/wordexp-test.c: Include <dso_handle.h>.
2070         (__dso_handle): Remove declaration.
2071         (__app_register_atfork): Pass __dso_handle directly.
2072         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
2073         (__dso_handle): Remove declaration.
2074         (at_quick_exit): Pass __dso_handle directly.
2075         * stdlib/atexit.c: Include <dso_handle.h>.
2076         (__dso_handle): Remove declaration.
2077         (atexit): Pass __dso_handle directly.
2078         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
2079         (__dso_handle): Removed.
2081 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
2083         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
2084         using VDSO.
2086 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
2088         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
2089         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
2090         values to correct default value for given type.
2092 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
2094         [BZ #22101]
2095         * elf/Makefile (tests): Add tst-debug1.
2096         ($(objpfx)tst-debug1): New.
2097         ($(objpfx)tst-debug1.out): Likewise.
2098         ($(objpfx)tst-debug1mod1.so): Likewise.
2099         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
2100         with p_filesz == 0.
2101         * elf/tst-debug1.c: New file.
2103 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
2105         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
2106         Define using __ifunc.
2108 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2110         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
2111         exp2f() values.
2113 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
2115         [BZ #22156]
2116         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
2118 2017-09-26  Florian Weimer  <fweimer@redhat.com>
2120         * resolv/Makefile (tests-internal): Fix typo in comment.
2122 2017-09-26  Florian Weimer  <fweimer@redhat.com>
2124         * resolv/nss_dns/dns-host.c: Fix typo in comment.
2126 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2128         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
2129         Use an union instead of a max_align_t array for __space,
2130         so that __space is the same size on all platforms.
2131         * malloc/scratch_buffer_grow_preserve.c
2132         (__libc_scratch_buffer_grow_preserve): Likewise.
2134         [BZ #22183]
2135         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
2136         version to 2.
2137         * posix/Makefile (routines): Add glob-lstat-compat and
2138         glob64-lstat-compat.
2139         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
2140         * posix/glob-lstat-compat.c: New file.
2141         * posix/glob64-lstat-compat.c: Likewise.
2142         * posix/tst-glob_lstat_compat.c: Likewise.
2143         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
2144         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
2145         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
2146         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
2147         Likewise.
2148         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
2149         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
2150         * posix/glob.c (glob_lstat): New function.
2151         (glob): Rename to __glob and add versioned symbol to 2.27.
2152         (glob_in_dir): Use glob_lstat.
2153         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
2154         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2155         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
2156         2.27.
2157         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
2158         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
2159         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
2160         gl_lstat on glob call.
2161         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
2162         and glob64 symbols.
2163         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2164         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2165         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2166         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2167         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2168         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2169         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2170         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2171         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2172         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2173         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2174         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2176         Likewise.
2177         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2179         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2180         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2181         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2182         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2183         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2184         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2185         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2186         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2187         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2188         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2190 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
2192         * configure.ac (AS): Require binutils 2.25 or later.
2193         * configure: Regenerated.
2195 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
2197         [BZ #22207]
2198         * stdlib/test-atexit-race-common.c (do_test): Minimize required
2199         VM size.
2201 2017-09-25  DJ Delorie  <dj@redhat.com>
2203         [BZ #22161]
2204         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
2205         resetting timeout.
2207 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2209         * sysdeps/ieee754/dbl-64/sincos32.h
2210         [SINCCOS32_H]: Remove define.
2211         [SINCOS32_H]: Define.
2213 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2215         * math/Versions (expf): New libm symbol at GLIBC_2.27.
2216         (exp2f): Likewise.
2217         * math/w_exp2f.c: New file.
2218         * math/w_expf.c: New file.
2219         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
2220         * math/w_expf_compat.c (__expf_compat): Likewise.
2221         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
2222         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2223         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
2224         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2225         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2226         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2227         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2228         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2229         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2230         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2231         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2232         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2233         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2234         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2236         Likewise.
2237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2238         Likewise.
2239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2240         Likewise.
2241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2242         Likewise.
2243         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2244         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2245         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2246         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2247         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2248         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2249         Likewise.
2250         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2251         Likewise.
2252         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2253         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2254         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2256 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2258         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
2259         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
2260         (roundtoint, converttoint): Likewise.
2261         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
2262         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
2263         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
2264         * sysdeps/ieee754/flt-32/math_config.h: New file.
2265         * sysdeps/ieee754/flt-32/math_errf.c: New file.
2266         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
2267         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
2268         * sysdeps/i386/fpu/math_errf.c: New file.
2269         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
2270         * sysdeps/ia64/fpu/math_errf.c: New file.
2271         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
2272         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
2274 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2276         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
2277         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
2278         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
2279         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
2280         to make sure that these symbols are defined.
2281         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
2282         of <limits.h>
2283         (__need_NULL): Do not define.
2284         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
2285         alignment.
2286         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
2287         CMGROUP_MAX, cmsgcred): Do not define.
2288         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
2289         NULL.
2290         * bits/socket.h: Likewise.
2291         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
2292         __gettimeofday instead of gettimeofday.
2293         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
2294         instead of settimeofday.
2296 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
2298         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
2299         (asinhf): Define using libm_alias_float.
2300         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
2301         (atanf): Define using libm_alias_float.
2302         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
2303         (cbrtf): Define using libm_alias_float.
2304         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
2305         (ceilf): Define using libm_alias_float.
2306         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
2307         <libm-alias-float.h>.
2308         (copysignf): Define using libm_alias_float.
2309         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
2310         (cosf): Define using libm_alias_float.
2311         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
2312         (erff): Define using libm_alias_float.
2313         (erfcf): Likewise.
2314         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
2315         (expm1f): Define using libm_alias_float.
2316         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
2317         (fabsf): Define using libm_alias_float.
2318         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
2319         (floorf): Define using libm_alias_float.
2320         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
2321         (frexpf): Define using libm_alias_float.
2322         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
2323         libm_alias_float.
2324         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
2325         <libm-alias-float.h>.
2326         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
2327         libm_alias_float.
2328         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
2329         <libm-alias-float.h>.
2330         (getpayloadf): Define using libm_alias_float.
2331         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
2332         <libm-alias-float.h>.
2333         (llrintf): Define using libm_alias_float.
2334         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
2335         <libm-alias-float.h>.
2336         (llroundf): Define using libm_alias_float.
2337         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
2338         (logbf): Define using libm_alias_float.
2339         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
2340         (lrintf): Define using libm_alias_float.
2341         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
2342         (lroundf): Define using libm_alias_float.
2343         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
2344         (modff): Define using libm_alias_float.
2345         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
2346         <libm-alias-float.h>.
2347         (nearbyintf): Define using libm_alias_float.
2348         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
2349         <libm-alias-float.h>.
2350         (nextafterf): Define using libm_alias_float.
2351         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
2352         <libm-alias-float.h>.
2353         (nextupf): Define using libm_alias_float.
2354         * sysdeps/ieee754/flt-32/s_remquof.c: Include
2355         <libm-alias-float.h>.
2356         (remquof): Define using libm_alias_float.
2357         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
2358         (rintf): Define using libm_alias_float.
2359         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
2360         <libm-alias-float.h>.
2361         (roundevenf): Define using libm_alias_float.
2362         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
2363         (roundf): Define using libm_alias_float.
2364         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
2365         using libm_alias_float.
2366         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
2367         <libm-alias-float.h>.
2368         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
2369         Define using libm_alias_float.
2370         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
2371         <libm-alias-float.h>.
2372         (sincosf): Define using libm_alias_float.
2373         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
2374         (sinf): Define using libm_alias_float.
2375         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
2376         (tanf): Define using libm_alias_float.
2377         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
2378         (tanhf): Define using libm_alias_float.
2379         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
2380         <libm-alias-float.h>.
2381         (totalorderf): Define using libm_alias_float.
2382         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
2383         <libm-alias-float.h>.
2384         (totalordermagf): Define using libm_alias_float.
2385         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
2386         (truncf): Define using libm_alias_float.
2387         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
2388         libm_alias_float.
2389         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
2390         libm_alias_float.
2392 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2394         [BZ #22146]
2395         math/math.h: Let fpclassify use the builtin in C++ mode, even
2396         when optimazing for size.
2398 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
2400         * csu/Makefile (generated): Do not add version-info.h.
2401         (before-compile): Likewise.
2402         (all-Banner-files): Remove variable.
2403         ($(objpfx)version-info.h): Remove rule.
2404         * csu/version.c (banner): Do not include "version-info.h".
2405         * libidn/Banner: Remove.
2406         * manual/contrib.texi (Simon Josefsson): New entry.
2408 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2410         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2411         Remove conditionals on LDBL_MANT_DIG.
2412         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
2413         (__ieee754_lgammal_r): Likewise.
2415 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2417         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
2418         _Float128 and L().
2419         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
2420         _Float128 and L(). Replace _Float128 with long double and L(x)
2421         with xL, throughout the file.
2422         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
2423         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
2424         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
2425         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
2427 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2429         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
2430         sysdeps/ieee754/ldbl-128ibm.
2431         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
2432         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
2433         of including it.  Keep _Float128 and L() intact.  These will be
2434         reviewed by a separate patch.
2435         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
2436         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
2437         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
2438         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
2440 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
2443         (__finitef128): Define to __redirect___finitef128.
2444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
2445         (__isinff128): Define to __redirect___isinff128.
2446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
2447         (__isnanf128): Define to __redirect___isnanf128.
2449 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2451         * sysdeps/powerpc/powerpc64le/Makefile
2452         (CFLAGS-tst-strtod-nan-locale.c): New variable.
2453         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
2455 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
2456             Carlos O'Donell  <carlos@redhat.com>
2458         [BZ #22180]
2459         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
2460         * stdlib/test-dlclose-exit-race.c: New file.
2461         * stdlib/test-dlclose-exit-race-helper.c: New file.
2462         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
2464 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
2466         * crypt/Banner: Remove file.
2467         * nptl/Banner: Likewise.
2468         * resolv/Banner: Likewise.
2469         * soft-fp/Banner: Likewise.
2470         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
2471         ($(objpfx)version.d): Remove dependency on banner.h.
2472         ($(objpfx)version.os): Likewise.
2473         * nptl/version.c (banner): Do not include banner.h.
2474         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
2475         Jelinek and BIND code.
2477 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
2478             Carlos O'Donell  <carlos@redhat.com>
2480         * support/xdlfcn.h: New file.
2481         * support/xdlfcn.c: New file.
2482         * support/Makefile (libsupport-routines): Add xdlfcn.
2483         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
2485 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
2487         [BZ #20142]
2488         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2489         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
2490         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
2491         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
2492         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
2493         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
2494         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
2495         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
2497 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
2498             Ricky Zhou  <rickyz@google.com>
2499             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
2501         [BZ #14333]
2502         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
2503         Remove atomics.
2504         (__new_exitfn): Fail registration when we finished at_exit processing.
2505         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
2506         * stdlib/on_exit.c (__on_exit): Likewise.
2507         * stdlib/exit.c (__exit_funcs_done): New variable.
2508         (__run_exit_handlers): Use __exit_funcs_lock.
2509         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
2510         declarations.
2511         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
2512         (test-cxa_atexit-race, test-on_exit-race): New tests.
2513         * stdlib/test-atexit-race-common.c: New file.
2514         * stdlib/test-atexit-race.c: New file.
2515         * stdlib/test-at_quick_exit-race.c: New file.
2516         * stdlib/test-cxa_atexit-race.c: New file.
2517         * stdlib/test-on_exit-race.c: New file.
2519 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2521         * benchtests/Makefile: Add exp2f and log2f benchmarks.
2522         * benchtests/exp2f-inputs: Copy of expf-inputs.
2523         * benchtests/log2f-inputs: Copy of logf-inputs.
2525 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
2527         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
2528         Explicitly take address of first element of array arguments in
2529         call to INLINE_SYSCALL.
2531 2017-09-19  Andreas Schwab  <schwab@suse.de>
2533         [BZ #22134]
2534         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
2535         execveat first.
2536         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
2537         unimplemented.
2538         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
2539         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
2540         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2541         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
2542         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2543         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
2544         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2545         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
2546         * posix/Makefile (tests): Add tst-fexecve.
2547         * posix/tst-fexecve.c: New file.
2549 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
2551         * benchtests/Makefile: Add logf benchmark.
2552         * benchtests/logf-inputs: Add reduced trace from wrf_r.
2554 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
2556         * benchtests/Makefile: Add expf benchmark.
2557         * benchtests/expf-inputs: Add reduced trace from wrf_r.
2559 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
2561         * csu/Makefile: Add -funwind-tables to libc-start.c.
2562         * debug/Makefile: Add -funwind-tables to backtrace.c.
2563         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
2564         * sysdeps/arm/Makefile: Likewise.
2565         * sysdeps/i386/Makefile: Likewise.
2566         * sysdeps/m68k/Makefile: Likewise.
2567         * sysdeps/mips/Makefile: Likewise.
2568         * sysdeps/nios2/Makefile: Likewise.
2569         * sysdeps/sh/Makefile: Likewise.
2570         * sysdeps/sparc/Makefile: Likewise.
2572 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
2574         * benchtests/Makefile (bench-math): Add trunc and truncf.
2575         (CFLAGS-bench-trunc.c): New variable.
2576         (CFLAGS-bench-truncf.c): Likewise.
2577         * benchtests/trunc-inputs: New file.
2578         * benchtests/truncf-inputs: Likewise.
2580 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2582         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
2584 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
2586         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
2587         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
2588         redefine.
2589         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
2590         (exp10l): Define as weak alias.
2591         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
2592         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
2593         and redefine.
2594         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
2595         (remainderl): Define as weak alias.
2597         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
2598         (fmal): Define using libm_alias_ldouble.
2599         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
2600         (acoshl): Define using libm_alias_ldouble.
2601         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
2602         (acosl): Define using libm_alias_ldouble.
2603         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
2604         (asinl): Define using libm_alias_ldouble.
2605         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
2606         (atan2l): Define using libm_alias_ldouble.
2607         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
2608         (atanhl): Define using libm_alias_ldouble.
2609         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
2610         (coshl): Define using libm_alias_ldouble.
2611         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
2612         (exp10l): Define using libm_alias_ldouble.
2613         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
2614         (exp2l): Define using libm_alias_ldouble.
2615         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
2616         (expl): Define using libm_alias_ldouble.
2617         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
2618         (fmodl): Define using libm_alias_ldouble.
2619         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
2620         (hypotl): Define using libm_alias_ldouble.
2621         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
2622         (j0l): Define using libm_alias_ldouble.
2623         (y0l): Likewise.
2624         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
2625         (j1l): Define using libm_alias_ldouble.
2626         (y1l): Likewise.
2627         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
2628         (jnl): Define using libm_alias_ldouble.
2629         (ynl): Likewise.
2630         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
2631         (log10l): Define using libm_alias_ldouble.
2632         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
2633         (log2l): Define using libm_alias_ldouble.
2634         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
2635         (logl): Define using libm_alias_ldouble.
2636         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
2637         (powl): Define using libm_alias_ldouble.
2638         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
2639         (remainderl): Define using libm_alias_ldouble.
2640         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
2641         (sinhl): Define using libm_alias_ldouble.
2642         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
2643         (sqrtl): Define using libm_alias_ldouble.
2644         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
2645         (tgammal): Define using libm_alias_ldouble.
2646         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
2647         (exp10l): Do not use long_double_symbol here.
2648         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
2649         [LIBM_SVID_COMPAT] (remainderl): Likewise.
2650         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
2651         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
2652         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
2653         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
2654         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
2655         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
2656         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
2657         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
2658         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
2659         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
2660         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
2661         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
2662         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
2663         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
2664         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
2665         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
2666         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
2667         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
2668         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
2669         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
2671 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
2673         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
2674         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
2676 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2678         * io/read.c (read): Add libc_hidden_weak.
2679         * sysdeps/mach/hurd/read.c (read): Likewise.
2680         * io/write.c (write): Likewise.
2681         * sysdeps/mach/hurd/write.c (write): Likewise.
2682         * io/pread64.c (__pread64): Likewise.
2683         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
2684         * posix/pread64.c (__pread64): Add libc_hidden_def.
2686 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2688         * benchtests/scripts/compare_strings.py: New option -g.
2689         (draw_graph): Print a message that a graph is being generated.
2690         (process_results): Generate graph only if -g is passed.
2691         (main): Process option -g.
2693         * benchtests/scripts/compare_strings.py (process_results):
2694         Better spacing for output.
2696         * benchtests/scripts/compare_strings.py: Use argparse.
2697         * benchtests/README: Document existence of compare_strings.py.
2699 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
2701         * math/s_fma.c: Include <libm-alias-double.h>.
2702         (fma): Define using libm_alias_double.
2703         * math/s_nextafter.c: Include <libm-alias-double.h>.
2704         (nextafter): Define using libm_alias_double.
2705         * math/w_acos_compat.c: Include <libm-alias-double.h>.
2706         (acos): Define using libm_alias_double.
2707         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
2708         (aocsh): Define using libm_alias_double.
2709         * math/w_asin_compat.c: Include <libm-alias-double.h>.
2710         (asin): Define using libm_alias_double.
2711         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
2712         (atan2): Define using libm_alias_double.
2713         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
2714         (atanh): Define using libm_alias_double.
2715         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
2716         (cosh): Define using libm_alias_double.
2717         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
2718         (exp10): Define using libm_alias_double.
2719         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
2720         (exp2): Define using libm_alias_double.
2721         * math/w_exp_compat.c: Include <libm-alias-double.h>.
2722         (exp): Define using libm_alias_double.
2723         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
2724         (fmod): Define using libm_alias_double.
2725         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
2726         (hypot): Define using libm_alias_double.
2727         * math/w_j0_compat.c: Include <libm-alias-double.h>.
2728         (j0): Define using libm_alias_double.
2729         (y0): Likewise.
2730         * math/w_j1_compat.c: Include <libm-alias-double.h>.
2731         (j1): Define using libm_alias_double.
2732         (y1): Likewise.
2733         * math/w_jn_compat.c: Include <libm-alias-double.h>.
2734         (jn): Define using libm_alias_double.
2735         (yn): Likewise.
2736         * math/w_log10_compat.c: Include <libm-alias-double.h>.
2737         (log10): Define using libm_alias_double.
2738         * math/w_log2_compat.c: Include <libm-alias-double.h>.
2739         (log2): Define using libm_alias_double.
2740         * math/w_log_compat.c: Include <libm-alias-double.h>.
2741         (log): Define using libm_alias_double.
2742         * math/w_pow_compat.c: Include <libm-alias-double.h>.
2743         (pow): Define using libm_alias_double.
2744         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
2745         (remainder): Define using libm_alias_double.
2746         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
2747         (sinh): Define using libm_alias_double.
2748         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
2749         (sqrt): Define using libm_alias_double.
2750         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
2751         (tgamma): Define using libm_alias_double.
2752         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
2753         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
2754         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
2755         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
2756         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
2757         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
2758         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
2759         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
2760         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
2761         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
2762         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
2763         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
2764         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
2765         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
2766         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
2767         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
2768         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
2769         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
2770         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
2771         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
2772         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
2773         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
2774         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
2775         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
2776         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
2778         * math/e_acoshl.c: Remove.
2779         * math/e_acosl.c: Likewise.
2780         * math/e_asinl.c: Likewise.
2781         * math/e_atan2l.c: Likewise.
2782         * math/e_atanhl.c: Likewise.
2783         * math/e_coshl.c: Likewise.
2784         * math/e_expl.c: Likewise.
2785         * math/e_fmodl.c: Likewise.
2786         * math/e_gammal_r.c: Likewise.
2787         * math/e_hypotl.c: Likewise.
2788         * math/e_j0l.c: Likewise.
2789         * math/e_j1l.c: Likewise.
2790         * math/e_jnl.c: Likewise.
2791         * math/e_lgammal_r.c: Likewise.
2792         * math/e_log10l.c: Likewise.
2793         * math/e_log2l.c: Likewise.
2794         * math/e_logl.c: Likewise.
2795         * math/e_powl.c: Likewise.
2796         * math/e_rem_pio2l.c: Likewise.
2797         * math/e_sinhl.c: Likewise.
2798         * math/e_sqrtf128.c: Likewise.
2799         * math/e_sqrtl.c: Likewise.
2800         * math/k_cosl.c: Likewise.
2801         * math/k_sinl.c: Likewise.
2802         * math/k_tanl.c: Likewise.
2803         * math/s_asinhl.c: Likewise.
2804         * math/s_atanl.c: Likewise.
2805         * math/s_cbrtl.c: Likewise.
2806         * math/s_erfl.c: Likewise.
2807         * math/s_expm1l.c: Likewise.
2808         * math/s_log1pl.c: Likewise.
2809         * math/s_tanhl.c: Likewise.
2811 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2813         [BZ #21745]
2814         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
2815         [$(subdir) = math] (sysdep_calls): New variable.  Has the
2816         previous contents of sysdep_routines, but re-sorted..
2817         [$(subdir) = math] (sysdep_routines): Re-use the contents from
2818         sysdep_calls.
2819         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
2820         defined in sysdep_calls and replace by the respective m_* names.
2821         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
2822         (compat_symbol): Undefine to avoid duplicated compat symbols in
2823         libc.
2825 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
2827         * math/s_fmaf.c: Include <libm-alias-float.h>.
2828         (fmaf): Define using libm_alias_float.
2829         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
2830         (acosf): Define using libm_alias_float.
2831         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
2832         (acoshf): Define using libm_alias_float.
2833         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
2834         (asinf): Define using libm_alias_float.
2835         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
2836         (atan2f): Define using libm_alias_float.
2837         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
2838         (atanhf): Define using libm_alias_float.
2839         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
2840         (coshf): Define using libm_alias_float.
2841         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
2842         (exp10f): Define using libm_alias_float.
2843         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
2844         (fmodf): Define using libm_alias_float.
2845         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
2846         (hypotf): Define using libm_alias_float.
2847         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
2848         (j0f): Define using libm_alias_float.
2849         (y0f): Likewise.
2850         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
2851         (j1f): Define using libm_alias_float.
2852         (y1f): Likewise.
2853         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
2854         (jnf): Define using libm_alias_float.
2855         (ynf): Likewise.
2856         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
2857         (log10f): Define using libm_alias_float.
2858         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
2859         (log2f): Define using libm_alias_float.
2860         * math/w_logf_compat.c: Include <libm-alias-float.h>.
2861         (logf): Define using libm_alias_float.
2862         * math/w_powf_compat.c: Include <libm-alias-float.h>.
2863         (powf): Define using libm_alias_float.
2864         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
2865         (remainderf): Define using libm_alias_float.
2866         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
2867         (sinhf): Define using libm_alias_float.
2868         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
2869         (sqrtf): Define using libm_alias_float.
2870         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
2871         (tgammaf): Define using libm_alias_float.
2873 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
2875         * include/math.h (roundeven): Change hidden_proto call to
2876         __roundeven.
2877         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
2878         alias.
2879         [NO_LONG_DOUBLE] (__j0l): New strong alias.
2880         (y0): Rename to __y0 and define as weak alias.
2881         [NO_LONG_DOUBLE] (__y0l): New strong alias.
2882         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
2883         alias.
2884         (y0f): Rename to __y0f and define as weak alias.
2885         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
2886         alias.
2887         [NO_LONG_DOUBLE] (__j1l): New strong alias.
2888         (y1): Rename to __y1 and define as weak alias.
2889         [NO_LONG_DOUBLE] (__y1l): New strong alias.
2890         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
2891         alias.
2892         (y1f): Rename to __y1f and define as weak alias.
2893         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
2894         alias.
2895         [NO_LONG_DOUBLE] (__jnl): New strong alias.
2896         (yn): Rename to __yn and define as weak alias.
2897         [NO_LONG_DOUBLE] (__ynl): New strong alias.
2898         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
2899         alias.
2900         (ynf): Rename to __ynf and define as weak alias.
2901         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
2902         (fromfp): Define as weak alias.
2903         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
2904         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
2905         (fromfpx): Define as weak alias.
2906         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
2907         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
2908         __getpayload and define as weak alias.
2909         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
2910         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
2911         __roundeven and define as weak alias.
2912         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
2913         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
2914         __setpayload.
2915         (setpayload): Define as weak alias.
2916         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
2917         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
2918         __setpayloadsig.
2919         (setpayloadsig): Define as weak alias.
2920         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
2921         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
2922         __totalorder and define as weak alias.
2923         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
2924         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
2925         to __totalordermag and define as weak alias.
2926         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
2927         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
2928         (ufromfp): Define as weak alias.
2929         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
2930         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
2931         __ufromfpx.
2932         (ufromfpx): Define as weak alias.
2933         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
2934         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
2935         Rename to __getpayload and define as weak alias.
2936         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
2937         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
2938         Rename to __roundeven and define as weak alias.
2939         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
2940         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
2941         Rename to __totalorder and define as weak alias.
2942         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
2943         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
2944         (totalordermag): Rename to __totalordermag and define as weak
2945         alias.
2946         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
2947         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
2948         macro.
2949         (__roundevenl): Likewise.
2950         (__totalorderl): Likewise.
2951         (__totalordermagl): Likewise
2952         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
2953         __fromfpf128.
2954         (fromfpf128): Define as weak alias.
2955         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
2956         __fromfpxf128.
2957         (fromfpxf128): Define as weak alias.
2958         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
2959         __setpayloadf128.
2960         (setpayloadf128): Define as weak alias.
2961         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
2962         __setpayloadsigf128.
2963         (setpayloadsigf128): Define as weak alias.
2964         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
2965         __ufromfpf128.
2966         (ufromfpf128): Define as weak alias.
2967         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
2968         __ufromfpxf128.
2969         (ufromfpxf128): Define as weak alias.
2970         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
2971         (fromfpf): Define as weak alias.
2972         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
2973         __fromfpxf.
2974         (fromfpxf): Define as weak alias.
2975         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
2976         __getpayloadf and define as weak alias.
2977         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
2978         __roundevenf and define as weak alias.
2979         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
2980         __setpayloadf.
2981         (setpayloadf): Define as weak alias.
2982         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
2983         __setpayloadsigf.
2984         (setpayloadsigf): Define as weak alias.
2985         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
2986         __totalorderf and define as weak alias.
2987         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
2988         Rename to __totalordermagf and define as weak alias.
2989         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
2990         __ufromfpf.
2991         (ufromfpf): Define as weak alias.
2992         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
2993         __ufromfpxf.
2994         (ufromfpxf): Define as weak alias.
2995         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
2996         __fromfpl.
2997         (fromfpl): Define as weak alias.
2998         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
2999         __fromfpxl.
3000         (fromfpxl): Define as weak alias.
3001         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
3002         to __getpayloadl and define as weak alias.
3003         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
3004         __roundevenl and define as weak alias.
3005         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
3006         __setpayloadl.
3007         (setpayloadl): Define as weak alias.
3008         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
3009         __setpayloadsigl.
3010         (setpayloadsigl): Define as weak alias.
3011         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
3012         to __totalorderl and define as weak alias.
3013         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
3014         Rename to __totalordermagl and define as weak alias.
3015         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
3016         __ufromfpl.
3017         (ufromfpl): Define as weak alias.
3018         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
3019         __ufromfpxl.
3020         (ufromfpxl): Define as weak alias.
3021         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
3022         __fromfpl.
3023         (fromfpl): Define as weak alias.
3024         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
3025         __fromfpxl.
3026         (fromfpxl): Define as weak alias.
3027         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
3028         Rename to __getpayloadl and define as weak alias.
3029         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
3030         to __roundevenl and define as weak alias.  Call __roundeven
3031         instead of roundeven.
3032         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
3033         __setpayloadl.
3034         (setpayloadl): Define as weak alias.
3035         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
3036         __setpayloadsigl.
3037         (setpayloadsigl): Define as weak alias.
3038         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
3039         Rename to __totalorderl and define as weak alias.
3040         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
3041         Rename to __totalordermagl and define as weak alias.
3042         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
3043         __ufromfpl.
3044         (ufromfpl): Define as weak alias.
3045         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
3046         __ufromfpxl.
3047         (ufromfpxl): Define as weak alias.
3048         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
3049         __fromfpl.
3050         (fromfpl): Define as weak alias.
3051         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
3052         __fromfpxl.
3053         (fromfpxl): Define as weak alias.
3054         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
3055         __getpayloadl and define as weak alias.
3056         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
3057         __roundevenl and define as weak alias.
3058         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
3059         __setpayloadl.
3060         (setpayloadl): Define as weak alias.
3061         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
3062         __setpayloadsigl.
3063         (setpayloadsigl): Define as weak alias.
3064         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
3065         __totalorderl and define as weak alias.
3066         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
3067         Rename to __totalordermagl and define as weak alias.
3068         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
3069         __ufromfpl.
3070         (ufromfpl): Define as weak alias.
3071         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
3072         __ufromfpxl.
3073         (ufromfpxl): Define as weak alias.
3075 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3077         * benchtests/bench-string.h (realloc_bufs): New function.
3078         (test_init): Call it.
3079         * benchtests/bench-memset-large.c (do_test): Likewise.
3080         * benchtests/bench-memset.c (do_test): Likewise.
3082         * benchtests/bench-memset-large.c: Print output in JSON
3083         format.
3084         * benchtests/bench-memset.c: Likewise.
3086 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
3088         [BZ #21084]
3089         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
3090         * iconvdata/Makefile: Add IBM858.
3091         * iconvdata/gconv-modules: Likewise.
3092         * iconvdata/tst-tables.sh: Likewise.
3093         * iconvdata/ibm858.c: New file.
3094         * localedata/charmaps/IBM858: Likewise.
3096 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
3098         [BZ #22023]
3099         * locales/niu_NZ (LC_TIME): copy "niu_NU".
3100         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
3102 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
3104         [BZ #22112]
3105         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
3106         and add tel_int_fmt.
3108 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
3110         * sysdeps/generic/libm-alias-float128.h: New file.
3111         * sysdeps/generic/math-type-macros-float128.h: Include
3112         <libm-alias-float128.h>.
3113         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
3115 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
3117         * sysdeps/generic/libm-alias-ldouble.h: New file.
3118         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
3119         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
3120         * sysdeps/generic/math-type-macros-ldouble.h: Include
3121         <libm-alias-ldouble.h>.
3122         [!declare_mgen_alias] (declare_mgen_alias): Define to use
3123         libm_alias_ldouble.
3125 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3127         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
3128         * math/w_exp_compat.c: ... here.
3129         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
3130         * math/w_expf_compat.c: ... here.
3131         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
3132         * math/w_expl_compat.c: ... here.
3133         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
3134         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
3135         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
3136         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
3138 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
3140         * math/w_scalbln_template.c (strong_alias): Do not undefine and
3141         redefine.
3142         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
3143         macro.
3144         (ldexpl): Only define as compat symbol for libc, not libm.
3145         (scalbnl): Define as compat symbol for libc here.
3146         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
3147         define for [IS_IN (libc)].
3148         (__ldexpl_2): Remove alias.
3149         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
3150         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
3151         name in long_double_symbol call.
3152         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
3153         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
3154         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
3155         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
3156         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
3157         Remove macro.
3158         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
3159         Define as compat symbol.
3161 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3163         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
3164         * sysdeps/unix/sysv/linux/alpha/Makefile
3165         [$(subdir) = csu] (sysdep_routines): Remove rule.
3167 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
3169         * sysdeps/generic/libm-alias-double.h: New file.
3170         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
3171         * sysdeps/generic/math-type-macros-double.h: Include
3172         <libm-alias-double.h>.
3173         [declare_mgen_alias] (declare_mgen_alias): Define to use
3174         libm_alias_double.
3175         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
3176         (M_LIBM_NEED_COMPAT): Remove macro.
3177         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
3178         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
3179         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
3180         code.
3181         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3182         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3183         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3184         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3185         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3186         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3187         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3188         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3189         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3190         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3191         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3192         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3193         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3194         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3195         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3196         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3197         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3198         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3199         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3200         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3201         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3202         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3203         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3204         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3205         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3206         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3207         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3208         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
3209         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
3210         macro.
3211         (declare_mgen_alias): New macro.
3212         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
3213         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
3214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
3215         (M_LIBM_NEED_COMPAT): Remove macro.
3216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
3217         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
3218         <first-versions.h>.
3219         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
3220         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
3222 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
3224         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
3225         (declare_mgen_alias_2): Remove.
3226         * sysdeps/generic/math-type-macros-double.h
3227         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
3228         Likewise.
3229         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
3230         alias.
3231         (ldexp): Define with declare_mgen_alias.
3232         (scalbn): Likewise.
3234 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
3236         * grp/initgroups.c: Include config.h.
3237         (DEFAULT_CONFIG): New macro.
3238         (internal_getgrouplist): Use DEFAULT_CONFIG.
3239         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3240         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
3241         (DEFAULT_DEFCONFIG): New macro.
3242         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
3243         * nss/grp-lookup.c: Include config.h
3244         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
3245         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
3246         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
3247         * manual/nss.texi: Update default values section.
3249 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
3251         [BZ #21967]
3252         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
3253         New.
3254         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
3255         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
3256         Handle MathVec_Prefer_No_AVX512.
3257         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
3258         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
3259         is set.
3261 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3263         * posix/sched_primax.c (__sched_get_priority_max): Add
3264         libc_hidden_def.
3265         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
3266         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
3267         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
3268         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
3269         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
3270         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
3271         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
3272         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
3273         Add aliases.
3275 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
3277         * sysdeps/generic/libm-alias-float.h: New file.
3278         * sysdeps/generic/math-type-macros-float.h: Include
3279         <libm-alias-float.h>.
3280         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
3282 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3284         [BZ #22093]
3285         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
3286         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
3287         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
3288         (HWCAP_IMPORTANT): Likewise.
3289         (HWCAP_X86_64): New enum.
3290         (HWCAP_X86_AVX512_1): Updated.
3291         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
3292         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
3293         (modules-names): Add x86_64/tst-x86_64mod-1.
3294         (LDFLAGS-tst-x86_64mod-1.so): New.
3295         ($(objpfx)tst-x86_64-1): Likewise.
3296         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
3297         (tst-x86_64-1-clean): Likewise.
3298         * sysdeps/x86_64/tst-x86_64-1.c: New file.
3299         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
3301 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3303         * po/sv.po: Update translations.
3304         * po/fr.po: Likewise.
3306 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3308         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
3309         seconds.
3310         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
3311         seconds.
3312         * elf/rtld-Rules: Fix $(error) use.
3314 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
3316         [BZ #14925]
3317         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
3318         * locale/iso-639.def: Change “Bengali” to “Bangla”.
3319         * localedata/locales/bn_BD: “Bengali” was still used in some
3320         comments. Change it to “Bangla”.
3322 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
3324         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
3326 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
3328         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
3329         thunderx2t99p1 to list of cpu names.
3330         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3331         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
3333 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
3335         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
3336         Use strcmp instead of tunable_is_name.
3338 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
3340         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3341         (F_GET_RW_HINT): New macro.
3342         [__USE_GNU] (F_SET_RW_HINT): Likewise.
3343         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
3344         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
3345         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
3346         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
3347         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
3348         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
3349         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
3350         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
3352         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3353         (F_ADD_SEALS): New macro.
3354         [__USE_GNU] (F_GET_SEALS): Likewise.
3355         [__USE_GNU] (F_SEAL_SEAL): Likewise.
3356         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
3357         [__USE_GNU] (F_SEAL_GROW): Likewise.
3358         [__USE_GNU] (F_SEAL_WRITE): Likewise.
3360 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3362         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
3363         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
3364         * posix/glob_internal.h (__glob_pattern_type):
3365         * posix/glob.c (glob):
3366         * posix/glob_pattern_p.c (__glob_pattern_p):
3367         Use them.
3369         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
3370         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
3371         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
3372         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
3373         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
3374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
3375         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
3376         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
3377         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
3378         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
3379         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
3380         * sysdeps/wordsize-64/glob.c: Likewise.
3381         * sysdeps/wordsize-64/glob64.c: Likewise.
3382         * sysdeps/wordsize-64/globfree.c: Likewise.
3383         * sysdeps/wordsize-64/globfree64.c: Likewise.
3384         * sysdeps/unix/sysv/linux/glob.c: New file.
3385         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
3386         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
3387         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
3388         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
3389         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
3390         adds !GLOB_NO_OLD_VERSION as an extra condition.
3391         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
3392         using relative path instead of absolute one.
3393         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
3394         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3395         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3396         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3397         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
3398         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
3400         [BZ #1062]
3401         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
3402         (glob): Use the same scratch buffer for both getlogin_r and
3403         getpwnam_r.  Don’t require preallocation of the login name.  This
3404         simplifies storage allocation, and corrects the handling of
3405         long login names.
3407         [BZ #1062]
3408         * posix/glob.c (glob): Port recent patches to platforms
3409         lacking getpwnam_r.
3410         (glob): Fix longstanding misuse of errno after getpwnam_r, which
3411         returns an error number rather than setting errno.
3413         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
3414         instead of GCC extension.
3415         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
3416         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
3417         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
3419         [BZ #866]
3420         [BZ #1062]
3421         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
3422         * posix/bug-glob1.c: Remove file.
3423         * posix/tst-glob_symlinks.c: New file.
3424         * posix/glob.c (__lstat64): New macro.
3425         (is_dir): New function.
3426         (glob, glob_in_dir): Match symlinks even if they are dangling.
3427         (link_stat, link_exists_p): Remove.  All uses removed.
3429         [BZ #1062]
3430         [BZ #19971]
3431         * posix/glob.c (struct readdir_result): Remove skip_entry member.
3432         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
3433         All uses removed.
3435         [BZ #1062]
3436         * posix/Makefile (routines): Add globfree, globfree64, and
3437         glob_pattern_p.
3438         * posix/flexmember.h: New file.
3439         * posix/glob_internal.h: Likewise.
3440         * posix/glob_pattern_p.c: Likewise.
3441         * posix/globfree.c: Likewise.
3442         * posix/globfree64.c: Likewise.
3443         * sysdeps/gnu/globfree64.c: Likewise.
3444         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
3445         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
3446         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
3447         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
3448         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
3449         * sysdeps/wordsize-64/globfree.c: Likewise.
3450         * sysdeps/wordsize-64/globfree64.c: Likewise.
3451         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
3452         [NDEBUG): Remove comments.
3453         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
3454         (dirent_type): New type.  Use uint_fast8_t not
3455         uint8_t, as C99 does not require uint8_t.
3456         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
3457         (struct readdir_result): Use dirent_type.  Do not define skip_entry
3458         unless it is needed; this saves a byte on platforms lacking d_ino.
3459         (readdir_result_type, readdir_result_skip_entry):
3460         New functions, replacing ...
3461         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
3462          these functions, which were removed.  This makes the callers
3463         easier to read.  All callers changed.
3464         (D_INO_TO_RESULT): Now empty if there is no d_ino.
3465         (size_add_wrapv, glob_use_alloca): New static functions.
3466         (glob, glob_in_dir): Check for size_t overflow in several places,
3467         and fix some size_t checks that were not quite right.
3468         Remove old code using SHELL since Bash no longer
3469         uses this.
3470         (glob, prefix_array): Separate MS code better.
3471         (glob_in_dir): Remove old Amiga and VMS code.
3472         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
3473         separate files.
3474         (glob_in_dir): Do not rely on undefined behavior in accessing
3475         struct members beyond their bounds.  Use a flexible array member
3476         instead
3477         (link_stat): Rename from link_exists2_p and return -1/0 instead of
3478         0/1.  Caller changed.
3479         (glob): Fix memory leaks.
3480         * posix/glob64 (globfree64): Move to separate file.
3481         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
3482         (globfree64): Remove hidden alias.
3483         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
3484         oldglob.
3485         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
3486         separate file.
3487         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
3488         define.
3489         Move compat code to separate file.
3490         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
3491         separate file.
3493 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3495         * resolv/tst-resolv-qtypes.c (domain): Changed to
3496         "const char domain[] =".
3498 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
3500         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3501         version to 3.1.6.
3503         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
3504         (TCP_MD5SIG_EXT): Likewise.
3505         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
3506         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
3507         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
3509         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
3511 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
3513         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
3515 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
3517         [BZ #22100]
3518         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
3520 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3522         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
3523         before assuming that the file is empty.  Avoid testing buffer content
3524         when nread == 0.
3526 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3528         [BZ #18858]
3529         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
3530         Remove define.
3531         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
3532         Likewise.
3533         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
3534         Likewise.
3535         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
3536         Likewise.
3537         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
3538         Likewise.
3539         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
3540         Likewise.
3541         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
3542         Likewise.
3544 2017-09-06  Florian Weimer  <fweimer@redhat.com>
3546         * malloc/dynarray_emplace_enlarge.c
3547         (__libc_dynarray_emplace_enlarge): Add missing else.
3549 2017-09-06  Florian Weimer  <fweimer@redhat.com>
3551         [BZ #22096]
3552         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
3553         case of failure to obtain the global conf object.
3555 2017-09-06  Florian Weimer  <fweimer@redhat.com>
3557         [BZ #22095]
3558         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
3559         dynarray allocation failure.
3561 2017-09-06  Florian Weimer  <fweimer@redhat.com>
3563         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
3564         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
3565         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
3566         New functions.
3567         (response): Call them.  Add 'p', '6' flag processing.
3568         (test_reverse): New function.
3569         (test_get2_any): Call it.
3570         (test_no_inet6): Add 'p' test.
3571         (test_inet6): Likewise.
3573 2017-09-06  Florian Weimer  <fweimer@redhat.com>
3575         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
3576         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
3577         the QNAME.
3578         (test_gai): Adjust query names.  Add additional tests.
3579         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
3580         test_get2.  Adjust query names.  Add additional tests.
3581         (test_no_inet6): New function, extracted from threadfunc.
3582         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
3583         Add additional tests.
3585 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
3587         [BZ #22070]
3588         * localedata/unicode-gen/utf8_gen.py: Set the width for
3589         characters with Prepended_Concatenation_Mark property to 1
3590         * localedata/charmaps/UTF-8: Updated using the improved script.
3592 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
3594         [BZ #21750]
3595         * localedata/unicode-gen/utf8_gen.py: Improve the script to
3596         use the range notation for all ranges of neighbouring characters
3597         with the same width.
3599 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
3601         * sysdeps/generic/math-type-macros-double.h: Include
3602         <math-svid-compat.h>.
3603         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
3604         * sysdeps/generic/math-type-macros-float.h: Include
3605         <math-svid-compat.h>.
3606         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
3607         * sysdeps/generic/math-type-macros-ldouble.h: Include
3608         <math-svid-compat.h>.
3609         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
3610         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
3611         condition.
3612         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
3613         * math/w_acosf_compat.c: Likewise.
3614         * math/w_acosh_compat.c: Likewise.
3615         * math/w_acoshf_compat.c: Likewise.
3616         * math/w_acoshl_compat.c: Likewise.
3617         * math/w_acosl_compat.c: Likewise.
3618         * math/w_asin_compat.c: Likewise.
3619         * math/w_asinf_compat.c: Likewise.
3620         * math/w_asinl_compat.c: Likewise.
3621         * math/w_atan2_compat.c: Likewise.
3622         * math/w_atan2f_compat.c: Likewise.
3623         * math/w_atan2l_compat.c: Likewise.
3624         * math/w_atanh_compat.c: Likewise.
3625         * math/w_atanhf_compat.c: Likewise.
3626         * math/w_atanhl_compat.c: Likewise.
3627         * math/w_cosh_compat.c: Likewise.
3628         * math/w_coshf_compat.c: Likewise.
3629         * math/w_coshl_compat.c: Likewise.
3630         * math/w_exp10_compat.c: Likewise.
3631         * math/w_exp10f_compat.c: Likewise.
3632         * math/w_exp10l_compat.c: Likewise.
3633         * math/w_exp2_compat.c: Likewise.
3634         * math/w_exp2f_compat.c: Likewise.
3635         * math/w_exp2l_compat.c: Likewise.
3636         * math/w_fmod_compat.c: Likewise.
3637         * math/w_fmodf_compat.c: Likewise.
3638         * math/w_fmodl_compat.c: Likewise.
3639         * math/w_hypot_compat.c: Likewise.
3640         * math/w_hypotf_compat.c: Likewise.
3641         * math/w_hypotl_compat.c: Likewise.
3642         * math/w_j0_compat.c: Likewise.
3643         * math/w_j0f_compat.c: Likewise.
3644         * math/w_j0l_compat.c: Likewise.
3645         * math/w_j1_compat.c: Likewise.
3646         * math/w_j1f_compat.c: Likewise.
3647         * math/w_j1l_compat.c: Likewise.
3648         * math/w_jn_compat.c: Likewise.
3649         * math/w_jnf_compat.c: Likewise.
3650         * math/w_jnl_compat.c: Likewise.
3651         * math/w_lgamma_r_compat.c: Likewise.
3652         * math/w_lgammaf_r_compat.c: Likewise.
3653         * math/w_lgammal_r_compat.c: Likewise.
3654         * math/w_log10_compat.c: Likewise.
3655         * math/w_log10f_compat.c: Likewise.
3656         * math/w_log10l_compat.c: Likewise.
3657         * math/w_log2_compat.c: Likewise.
3658         * math/w_log2f_compat.c: Likewise.
3659         * math/w_log2l_compat.c: Likewise.
3660         * math/w_log_compat.c: Likewise.
3661         * math/w_logf_compat.c: Likewise.
3662         * math/w_logl_compat.c: Likewise.
3663         * math/w_pow_compat.c: Likewise.
3664         * math/w_powf_compat.c: Likewise.
3665         * math/w_powl_compat.c: Likewise.
3666         * math/w_remainder_compat.c: Likewise.
3667         * math/w_remainderf_compat.c: Likewise.
3668         * math/w_remainderl_compat.c: Likewise.
3669         * math/w_sinh_compat.c: Likewise.
3670         * math/w_sinhf_compat.c: Likewise.
3671         * math/w_sinhl_compat.c: Likewise.
3672         * math/w_sqrt_compat.c: Likewise.
3673         * math/w_sqrtf_compat.c: Likewise.
3674         * math/w_sqrtl_compat.c: Likewise.
3675         * math/w_tgamma_compat.c: Likewise.
3676         * math/w_tgammaf_compat.c: Likewise.
3677         * math/w_tgammal_compat.c: Likewise.
3678         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
3679         [LIBM_SVID_COMPAT].
3680         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
3681         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
3682         [LIBM_SVID_COMPAT].
3683         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
3684         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
3685         [LIBM_SVID_COMPAT].
3686         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
3687         * sysdeps/i386/fpu/w_sqrt.c: New file.
3688         * sysdeps/ia64/fpu/w_acos.c: Likewise.
3689         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
3690         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
3691         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
3692         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
3693         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
3694         * sysdeps/ia64/fpu/w_asin.c: Likewise.
3695         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
3696         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
3697         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
3698         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
3699         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
3700         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
3701         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
3702         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
3703         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
3704         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
3705         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
3706         * sysdeps/ia64/fpu/w_exp.c: Likewise.
3707         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
3708         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
3709         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
3710         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
3711         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
3712         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
3713         * sysdeps/ia64/fpu/w_expf.c: Likewise.
3714         * sysdeps/ia64/fpu/w_expl.c: Likewise.
3715         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
3716         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
3717         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
3718         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
3719         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
3720         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
3721         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
3722         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
3723         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
3724         * sysdeps/ia64/fpu/w_log.c: Likewise.
3725         * sysdeps/ia64/fpu/w_log10.c: Likewise.
3726         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
3727         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
3728         * sysdeps/ia64/fpu/w_log2.c: Likewise.
3729         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
3730         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
3731         * sysdeps/ia64/fpu/w_logf.c: Likewise.
3732         * sysdeps/ia64/fpu/w_logl.c: Likewise.
3733         * sysdeps/ia64/fpu/w_pow.c: Likewise.
3734         * sysdeps/ia64/fpu/w_powf.c: Likewise.
3735         * sysdeps/ia64/fpu/w_powl.c: Likewise.
3736         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
3737         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
3738         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
3739         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
3740         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
3741         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
3742         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
3743         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
3744         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
3745         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
3746         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
3747         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
3748         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
3749         [LIBM_SVID_COMPAT].
3750         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
3751         * sysdeps/ieee754/k_standard.c: Likewise.
3752         * sysdeps/ieee754/k_standardf.c: Likewise.
3753         * sysdeps/ieee754/k_standardl.c: Likewise.
3754         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
3755         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
3756         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
3757         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
3758         long_double_symbol call on [LIBM_SVID_COMPAT].
3759         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
3760         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
3761         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
3762         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
3763         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
3764         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
3765         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
3766         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
3767         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
3768         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
3769         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
3770         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3771         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
3772         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
3773         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
3774         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
3775         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
3776         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
3777         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
3778         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
3779         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
3780         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
3782 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
3784         * include/shlib-compat.h (TEST_COMPAT): New Macro.
3785         * malloc/tst-mallocstate.c: Convert from test-skeleton
3786         to test-driver.  Ifdef code using TEST_COMPAT macro.
3787         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
3788         * math/test-matherr.c: Likewise.
3790 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
3792         [BZ #22086]
3793         * debug/pcprofiledump.c (main): Use byte-swapped mask when
3794         comparing word with byte-swapped constant.
3796 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
3798         [BZ #20498]
3799         * locale/iso-639.def: add Miskito.
3800         * localedata/SUPPORTED: Add miq_NI/UTF-8.
3801         * localedata/locales/miq_NI: New file.
3803 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
3805         [BZ #18822]
3806         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
3807         (__mkdir): Likewise.
3808         * io/chmod.c (__chmod): Add libc_hidden_def.
3809         * io/mkdir.c (__mkdir): Likewise.
3810         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
3811         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
3812         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
3813         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
3815 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
3817         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3818         version to 4.13.
3820         [BZ #22082]
3821         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
3822         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
3824 2017-09-04  Florian Weimer  <fweimer@redhat.com>
3826         * math/math.h: Issue warning if log is defined.
3828 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
3830         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3831         kernel version to 4.13.
3833 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3835         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
3836         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
3837         parameter.
3838         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
3839         just <bits/types.h>.
3840         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
3841         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
3842         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
3843         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
3844         * misc/preadv2.c: Include <errno.h>.
3845         * misc/preadv64v2.c: Include <errno.h>.
3846         * misc/pwritev2.c: Include <errno.h>.
3847         * misc/pwritev64v2.c: Include <errno.h>.
3848         * sysdeps/posix/preadv2.c: Include <errno.h>.
3849         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
3850         Fix <unistd.h> inclusion.
3851         * sysdeps/posix/pwritev2.c: Include <errno.h>.
3852         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
3853         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
3854         __strtoul_internal): New functions.
3855         * sysdeps/posix/pause.c: Include <sigsetops.h>.
3856         * sysdeps/posix/system.c: Include <sigsetops.h>.
3857         * sysdeps/mach/hurd/i386/Makefile
3858         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
3859         [$(subdir) = csu] (sysdep-only-routines): Likewise.
3860         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
3861         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
3862         __feraiseexcept_renamed to feraiseexcept instead of
3863         __GI_feraiseexcept.
3864         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
3865         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
3866         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
3867         RWF_NOWAIT): Define to 0 if undefined already.
3868         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
3869         boils down to 0.
3870         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
3871         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
3873 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
3875         * manual/math.texi (pow10): Do not document.
3876         (pow10f): Likewise.
3877         (pow10l): Likewise.
3878         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
3879         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
3880         * math/libm-test-exp10.inc (pow10_test): Remove.
3881         (do_test): Do not call pow10.
3882         * math/w_exp10_compat.c (pow10): Make into compat symbol.
3883         [NO_LONG_DOUBLE] (pow10l): Likewise.
3884         * math/w_exp10f_compat.c (pow10f): Likewise.
3885         * math/w_exp10l_compat.c (pow10l): Likewise.
3886         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
3887         (pow10): Make into compat symbol.
3888         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
3889         (pow10f): Make into compat symbol.
3890         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
3891         (pow10l): Make into compat symbol.
3892         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
3893         pow10.
3894         (CFLAGS-nldbl-pow10.c): Remove variable..
3895         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
3896         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
3897         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
3898         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
3899         Undefine and redefine.
3900         (pow10l): Make into compat symbol.
3901         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
3902         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
3903         * sysdeps/arm/libm-test-ulps: Likewise.
3904         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
3905         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
3906         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3907         * sysdeps/microblaze/libm-test-ulps: Likewise.
3908         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
3909         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3910         * sysdeps/nios2/libm-test-ulps: Likewise.
3911         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3912         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
3913         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3914         * sysdeps/sh/libm-test-ulps: Likewise.
3915         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3916         * sysdeps/tile/libm-test-ulps: Likewise.
3917         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3919 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
3921         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
3923 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
3925         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
3926         "../ChangeLog.old/ChangeLog.8".
3927         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
3928         "../ChangeLog.old/ChangeLog.14".
3930 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
3932         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
3933         Threads Library.
3935 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
3937         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
3939 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
3941         * csu/version.c (banner): Remove "by Roland McGrath et al.".
3942         * nptl/Banner: Remove "by Ulrich Drepper et al.".
3944 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
3946         * stdlib/tst-atexit-common.c (do_test): Test support for at least
3947         32 atexit handlers.
3949 2017-09-01  Zack Weinberg  <zackw@panix.com>
3951         * math/math.h (HUGE_VAL): Improve commentary.
3953 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3954             Andreas Schwab  <schwab@suse.de>
3956         [BZ #21530]
3957         * include/stdio.h (__gen_tempfd): New function.
3958         * stdio-common/Makefile (routines): Add gentempfd.
3959         * stdio-common/gentempfd.c: New file.
3960         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
3961         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
3962         unnamed file first.
3964 2017-09-01  Florian Weimer  <fweimer@redhat.com>
3966         [BZ #21915]
3967         [BZ #21922]
3968         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
3969         result to determine success or failure, not the errno value.
3970         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
3971         (tst-nss-files-hosts-erange): Link with -ldl.
3972         * nss/tst-nss-files-hosts-erange.c: New file.
3973         * nss/tst-resolv-basic.c (response): Handle nodata.example.
3974         (do_test): Add NO_DATA tests.
3975         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
3976         (do_test): Call it.
3978 2017-09-01  Florian Weimer  <fweimer@redhat.com>
3980         [BZ #21922]
3981         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
3982         coming from gethostbyname2_r.
3984 2017-09-01  Florian Weimer  <fweimer@redhat.com>
3986         * support/namespace.h (struct support_chroot_configuration): Add
3987         hosts, host_conf.
3988         (struct support_chroot): Add path_hosts, path_host_conf.
3989         * support/support_chroot.c (write_file): New function.
3990         (support_chroot_create): Call it to process /etc/resolv.conf,
3991         /etc/hosts, /etc/host.conf.
3992         (support_chroot_free): Update.
3994 2017-09-01  Florian Weimer  <fweimer@redhat.com>
3996         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
3997         status indicates it is set.
3999 2017-09-01  Florian Weimer  <fweimer@redhat.com>
4001         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
4002         function lookup failures more reliable.
4004 2017-09-01  Florian Weimer  <fweimer@redhat.com>
4006         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
4007         (getcanonname): Likewise.
4008         (gaih_inet): Likewise.
4010 2017-09-01  Florian Weimer  <fweimer@redhat.com>
4012         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
4013         (getcanonname): Likewise.
4014         (gaih_inet): Likewise.
4016 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
4017             Richard Henderson <rth@twiddle.net>
4019         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
4020         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
4021         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
4022         (IREG_SIZE, OREG_SIZE): New macros.
4023         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
4024         (IREG_SIZE, OREG_SIZE): New macros.
4025         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
4026         (IREG_SIZE): New macro.
4027         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
4028         (IREG_SIZE): New macro.
4029         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
4030         New includes.
4031         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
4032         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
4033         (__CONCATX): Handle exceptions correctly on large values that may
4034         set FE_INVALID.
4035         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
4036         Initialize if not already set.
4037         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
4039 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4041         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
4042         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
4043         Likewise.
4044         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
4045         Likewise.
4046         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
4047         Likewise.
4048         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
4049         Likewise.
4050         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
4051         Likewise.
4052         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
4053         Likewise.
4054         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
4055         Likewise.
4056         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
4057         (NO_CANCELLATION): Likewise.
4058         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
4059         Likewise.
4060         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
4061         Likewise.
4062         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
4063         Likewise.
4064         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
4065         (NO_CANCELLATION): Likewise.
4066         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
4067         (NO_CANCELLATION): Likewise.
4068         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
4069         Likewise
4070         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
4071         Likewise.
4072         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
4073         Likewise.
4074         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
4075         Likewise.
4076         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
4077         hidden prototype.
4078         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
4079         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
4081 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
4083         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
4084         in resolver call.
4086 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4088         * include/libc-symbols.h (internal_function): Remove.
4090 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4092         * stdlib/fmtmsg.c (internal_addseverity): Remove
4093         internal_function.
4095 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4097         * stdio-common/printf_fp.c (group_number): Remove
4098         internal_function.
4099         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
4101 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4103         * posix/fnmatch.c (internal_function): Remove definition.
4104         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
4105         * posix/regcomp.c (peek_token, init_word_char)
4106         (duplicate_node_closure, fetch_token, peek_token)
4107         (peek_token_bracket, build_range_exp, build_collating_symbol):
4108         Likewise.
4109         * posix/regex_internal.c (re_string_construct_common)
4110         (create_ci_newstate, create_cd_newstate, re_string_allocate)
4111         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
4112         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
4113         (re_string_translate_buffer, re_string_reconstruct)
4114         (re_string_peek_byte_case, re_string_fetch_byte_case)
4115         (re_string_destruct, re_string_context_at, re_node_set_alloc)
4116         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
4117         (re_node_set_add_intersect, re_node_set_init_union)
4118         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
4119         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
4120         (re_dfa_add_node, calc_state_hash, re_acquire_state)
4121         (re_acquire_state_context): Likewise.
4122         * posix/regex_internal.h (internal_function): Remove definition.
4123         (re_string_realloc_buffers, build_wcs_buffer)
4124         (build_wcs_upper_buffer, build_upper_buffer)
4125         (re_string_translate_buffer, re_string_context_at)
4126         (re_string_char_size_at, re_string_wchar_at)
4127         (re_string_elem_size_at): Likewise.
4128         * posix/regexec.c (match_ctx_init, match_ctx_clean)
4129         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
4130         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
4131         (re_search_internal, re_search_2_stub, re_search_stub)
4132         (re_copy_regs, prune_impossible_nodes, check_matching)
4133         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
4134         (free_fail_stack_return, sift_states_iter_mb)
4135         (sift_states_backward, build_sifted_states)
4136         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
4137         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
4138         (check_subexp_limits, sift_states_bkref, merge_state_array)
4139         (find_recover_state, transit_state, merge_state_with_log)
4140         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
4141         (transit_state_mb, transit_state_bkref, get_subexp)
4142         (get_subexp_sub, find_subexp_node, check_arrival)
4143         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
4144         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
4145         (check_node_accept_bytes, find_collation_sequence_value)
4146         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
4147         (acquire_init_state_context, check_halt_node_context)
4148         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
4149         (sub_epsilon_src_nodes): Likewise.
4150         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
4151         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
4152         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
4153         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
4154         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
4155         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
4156         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
4157         * sysdeps/posix/ttyname.c (getttyname): Likewise.
4158         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
4159         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
4160         (PREADV): Likewise.
4161         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
4162         (PREADV): Likewise.
4163         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
4164         (PWRITEV): Likewise.
4165         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
4166         (PWRITEV): Likewise.
4167         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
4168         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
4170 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4172         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
4173         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
4174         Remove internal_function.
4175         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
4176         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
4177         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
4178         (__deallocate_stack, __libc_pthread_init)
4179         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
4180         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
4181         (__libc_disable_asynccancel, __librt_disable_asynccancel):
4182         Likewise.
4183         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
4184         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
4185         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
4186         Likewise.
4187         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
4188         (__pthread_mutex_unlock_usercnt): Likewise.
4190 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4192         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
4193         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
4194         (fts_safe_changedir): Remove internal_function.
4195         * io/ftw.c (internal_function): Remove definition.
4196         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
4198 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4200         * inet/deadline.c (__deadline_current_time)
4201         (__deadline_from_timeval, __deadline_to_ms): Remove
4202         internal_function.
4203         * inet/getnameinfo.c (nrl_domainname): Likewise.
4204         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
4205         * inet/inet6_option.c (add_pad): Likewise.
4206         * inet/net-internal.h (__deadline_current_time)
4207         (__deadline_from_timeval, __deadline_to_ms): Likewise.
4208         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
4209         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
4210         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
4212 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
4214         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
4215         include <bits/nan.h>.
4216         * math/Makefile (headers): Remove bits/nan.h.
4217         * bits/nan.h: Remove.
4218         * sysdeps/ieee754/bits/nan.h: Likewise.
4219         * sysdeps/mips/bits/nan.h: Likewise.
4221         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
4222         not include <bits/inf.h>.
4223         * math/Makefile (headers): Remove bits/inf.h.
4224         * bits/inf.h: Remove.
4225         * sysdeps/ieee754/bits/inf.h: Likewise.
4227         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
4228         bits/huge_vall.h or bits/huge_val_flt128.h.
4229         (HUGE_VAL): Define directly here.
4230         [__USE_ISOC99] (HUGE_VALF): Likewise.
4231         [__USE_ISOC99] (HUGE_VALL): Likewise.
4232         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4233         (HUGE_VAL_F128): Likewise.
4234         * math/Makefile (headers): Remove bits/huge_val.h,
4235         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
4236         * bits/huge_val.h: Remove.
4237         * bits/huge_val_flt128.h: Likewise.
4238         * bits/huge_valf.h: Likewise.
4239         * bits/huge_vall.h: Likewise.
4240         * sysdeps/ia64/bits/huge_vall.h: Likewise.
4241         * sysdeps/ieee754/bits/huge_val.h: Likewise.
4242         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
4243         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
4244         * sysdeps/sh/bits/huge_val.h: Likewise.
4245         * sysdeps/sparc/bits/huge_vall.h: Likewise.
4246         * sysdeps/x86/bits/huge_vall.h: Likewise.
4248 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4250         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
4251         internal_function.
4252         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
4253         Likewise.
4254         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
4255         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
4256         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
4257         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
4258         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4259         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
4260         * elf/dl-libc.c (dlerror_run): Likewise.
4261         * elf/dl-load.c (add_name_to_object, decompose_rpath)
4262         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
4263         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
4264         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
4265         Likewise.
4266         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
4267         (_dl_higher_prime_number, _dl_strtoul): Likewise.
4268         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
4269         * elf/dl-profile.c (_dl_start_profile): Likewise.
4270         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
4271         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
4272         Likewise.
4273         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
4274         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
4275         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
4276         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
4277         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
4278         (_dl_allocate_tls_storage): Likewise.
4279         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
4280         (_dl_check_all_versions): Likewise.
4281         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
4282         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
4283         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
4284         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
4285         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
4286         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
4287         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
4288         internal_function from __dl_start.
4289         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
4290         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
4291         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
4292         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
4293         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
4294         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
4295         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
4296         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
4297         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
4298         (_dl_next_ld_env_entry, _dl_important_hwcaps)
4299         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
4300         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
4301         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
4302         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
4303         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
4304         Likewise.
4305         (struct rtld_global_ro): Remove internal_function from the
4306         _dl_lookup_symbol_x member.
4307         (_dl_symbol_value): Remove.  No longer defined anywhere.
4308         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
4309         internal_function.
4310         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
4311         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
4312         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
4313         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
4314         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
4315         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
4316         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
4317         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
4318         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
4319         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
4320         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
4321         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
4323 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4325         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
4326         Remove internal_function.
4327         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
4328         Likewise.
4329         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
4330         Likewise.
4332 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4334         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
4335         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
4336         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
4338 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4340         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
4341         (__gai_enqueue_request): Remove internal_function.
4342         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
4343         (__gai_remove_request, __gai_notify, __gai_notify_only)
4344         (__gai_sigqueue): Likewise.
4345         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
4346         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
4347         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
4348         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
4349         Likewise.
4351 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4353         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
4354         * include/dirent.h (__opendirat, __getdents, __getdents64)
4355         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
4356         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
4357         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
4358         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4359         Likewise.
4360         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
4362 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4364         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
4365         internal_function.
4366         (GETCWD_RETURN_TYPE): Likewise.
4368 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4370         * include/time.h (__tz_compute, __strptime_internal): Remove
4371         internal_function.
4372         * time/strptime_l.c (__strptime_internal): Likewise.
4373         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
4375 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4377         * iconv/gconv.c (__gconv): Remove internal_function.
4378         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
4379         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
4380         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
4381         (__gconv_release_cache): Likewise.
4382         * iconv/gconv_close.c (__gconv_close): Likewise.
4383         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
4384         (read_conf_file, __gconv_get_path): Likewise.
4385         * iconv/gconv_db.c (derivation_lookup, add_derivation)
4386         (__gconv_release_step, gen_steps, increment_counter)
4387         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
4388         (__gconv_close_transform, free_modules_db): Likewise.
4389         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
4390         Likewise.
4391         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
4392         (__gconv_find_transform, __gconv_lookup_cache)
4393         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
4394         (__gconv_close_transform, __gconv_release_cache)
4395         (__gconv_loaded_object, __gconv_release_shlib)
4396         (__gconv_compare_alias): Likewise.
4397         * iconv/gconv_open.c (__gconv_open): Likewise.
4398         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
4399         * iconv/iconvconfig.c (add_module): Likewise.
4400         * intl/dcigettext.c (plural_lookup, guess_category_value)
4401         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
4402         * intl/eval-plural.h (plural_eval): Likewise.
4403         * intl/finddomain.c (_nl_find_domain): Likewise.
4404         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
4405         (_nl_load_domain, _nl_find_msg): Likewise.
4406         (internal_function): Remove definition.
4407         * intl/loadinfo.h (internal_function): Likewise.
4408         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
4409         internal_function.
4410         * intl/localealias.c (internal_function): Remove definition.
4411         (read_alias_file): Remove internal_function.
4412         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
4413         * intl/plural-exp.h (internal_function): Remove definition.
4414         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
4415         internal_function.
4416         * intl/plural.c: Regenerate.
4417         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
4418         * locale/coll-lookup.c (__collidx_table_lookup)
4419         (__collseq_table_lookup): Likewise.
4420         * locale/coll-lookup.h (__collidx_table_lookup)
4421         (__collseq_table_lookup): Likewise.
4422         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
4423         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
4424         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
4425         (_nl_unload_locale): Likewise.
4426         * locale/localeinfo.h (struct __locale_data): Remove
4427         internal_function from cleanup member.
4428         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
4429         (_nl_remove_locale, _nl_load_locale_from_archive)
4430         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
4431         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
4432         (_nl_cleanup_time): Remove internal_function.
4433         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
4434         (_nl_parse_alt_digit): Likewise.
4435         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
4436         (_nl_select_era_entry): Likewise.
4437         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4438         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
4439         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
4440         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
4441         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
4443 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4445         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
4446         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4447         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
4448         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
4449         Likewise.
4450         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
4451         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
4452         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
4453         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
4454         Likewise.
4455         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
4457 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4459         * misc/getttyent.c (skip, value): Remove internal_function.
4460         * misc/syslog.c (openlog_internal): Likewise.
4461         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
4463 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4465         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
4466         (__nss_rewrite_field): Remove internal_function.
4467         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4468         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4469         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4470         * nss/nsswitch.c (nss_parse_file, nss_getline)
4471         (nss_parse_service_list, nss_new_service): Likewise.
4472         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
4473         * nss/valid_field.c (__nss_valid_field): Likewise.
4474         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
4476 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4478         * malloc/arena.c (__malloc_fork_lock_parent)
4479         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
4480         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
4481         internal_function from defintions.
4482         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
4483         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
4484         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
4485         internal_function from declarations.
4486         * malloc/malloc.c (internal_function): Do not define.
4487         (mem2mem_check): Remove internal_function from declaration.
4488         (munmap_chunk, mremap_chunk): Remove internal_function.
4489         * malloc/mtrace.c (tr_where): Likewise.
4491 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4493         * include/rpc/pmap_clnt.h (__get_socket): Remove
4494         internal_function.
4495         * sunrpc/auth_des.c (synchronize): Likewise.
4496         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
4497         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
4498         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
4499         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
4500         (key_call): Likewise.
4501         * sunrpc/pm_getport.c (__get_socket): Likewise.
4502         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
4503         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
4504         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
4505         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
4506         (invalidate): Likewise.
4507         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
4508         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
4509         (set_input_fragment, get_input_bytes): Likewise.
4511 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4513         * malloc/malloc.c (_int_free): Remove locked variable and related
4514         asserts.
4516 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
4518         [BZ #22051]
4519         * Makerules (build-module-helper-objlist): Filter out
4520         $(elf-objpfx)sofini.os.
4521         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
4522         needed.
4524 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4526         * libio/fcloseall.c: Assume weak_alias is defined.
4527         * libio/feof.c: Likewise.
4528         * libio/fileno.c: Likewise.
4529         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
4530         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
4531         definitions.
4532         (_IO_file_open): Call __open directly.
4533         (_IO_new_file_sync): Assume ESPIPE is defined.
4534         (_IO_file_seekoff_maybe_mmap): Call __read directly.
4535         (_IO_new_file_write): Call __write directly.
4536         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
4537         * libio/ftello64.c (__ftello64): Assume EIO is defined.
4538         * libio/genops.c: Assume _LIBC is defined.
4539         (save_for_backup): Remove internal_function.
4540         * libio/getc.c: Assume weak_alias is defined.
4541         * libio/getwc.c: Likewise.
4542         * libio/iofclose.c: Assume _LIBC is defined.
4543         * libio/iofdopen.c: Likewise.
4544         (_IO_fcntl): Remove macro definition.
4545         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
4546         Call __fcntl directly.
4547         * libio/iofflush.c: Assume weak_alias is defined.
4548         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
4549         defined.
4550         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
4551         * libio/iofgets.c: Likewise.
4552         * libio/iofopen.c: Assume _LIBC is defined.
4553         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
4554         * libio/iofputs.c: Assume weak_alias is defined.
4555         * libio/iofread.c: Likewise.
4556         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
4557         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
4558         * libio/ioftell.c: Assume weak_alias is defined.
4559         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
4560         * libio/iofwide.c: Assume _LIBC is defined.
4561         (_IO_fwide): Drop SHARED conditional because it is implied by
4562         SHLIB_COMPAT.
4563         * libio/iofwrite.c: Assume weak_alias is defined.
4564         * libio/iogetdelim.c: Likewise.
4565         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
4566         * libio/iogetwline.c (wmemcpy): Remove macro definition.
4567         (_IO_getwline): Call __wmemcpy directly.
4568         * libio/iopopen.c: Assume _LIBC is defined.
4569         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
4570         (_IO_close): Remove macro definitions.
4571         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
4572         _exit directly.
4573         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
4574         directly.
4575         * libio/ioputs.c: Assume weak_alias is defined.
4576         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
4577         * libio/iosetbuffer.c: Assume weak_alias is defined.
4578         * libio/iosetvbuf.c: Likewise.
4579         * libio/ioungetc.c: Likewise.
4580         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
4581         libc_hidden_def, libc_hidden_weak, NULL are defined.
4582         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
4583         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
4584         defined.
4585         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
4586         definitions.
4587         (_IO_old_file_init_internal): Drop SHARED conditional because it
4588         is implied by SHLIB_COMPAT.
4589         (_IO_old_file_fopen): Call __open directly.
4590         (_IO_old_file_sync): Assume ESPIPE is defined.
4591         (_IO_old_file_write): Call __write directly.
4592         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
4593         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
4594         Call __fcntl directly.
4595         * libio/oldiofgetpos.c: Assume weak_alias is defined.
4596         (_IO_old_fgetpos): Assume EIO is defined.
4597         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
4598         (_IO_old_fgetpos64): Assume EIO is defined.
4599         * libio/oldiofsetpos.c: Assume weak_alias is defined.
4600         (_IO_old_fsetpos): Assume EIO is defined.
4601         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
4602         (_IO_old_fsetpos64): Assume EIO is defined.
4603         * libio/oldiopopen.c:  Assume _LIBC is defined.
4604         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
4605         (_IO_close): Remove macro definitions.
4606         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
4607         directly.
4608         (_IO_old_proc_close): Call __close, __waitpid directly.
4609         * libio/put.c: Assume weak_alias is defined.
4610         * libio/stdfiles.c: Assume _LIBC is defined.
4611         * libio/stdio.c: Likewise.
4612         * libio/wfileops.c: Likewise.
4613         (_IO_wfile_sync): Assume ESPIPE is defined.
4614         * libio/wgenops.c: Assume _LIBC is defined.
4615         (save_for_wbackup): Remove internal_function.
4617 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4619         * malloc/malloc.c (top_check): Change return type to void.  Remove
4620         internal_function.
4621         * malloc/hooks.c (top_check): Likewise.
4622         (malloc_check, realloc_check, memalign_check): Adjust.
4624 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
4626         [BZ #21457]
4627         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
4628         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
4629         sigcontext and namespace requirements.
4630         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
4631         * sysdeps/m68k/sys/ucontext.h: Likewise.
4632         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
4633         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
4634         <bits/sigcontext.h>.
4635         (__ctx): Define earlier.
4636         (mcontext_t): Define structure contents rather than using struct
4637         sigcontext.
4638         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
4639         __glibc_reserved1 instead of __reserved.
4640         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
4641         <bits/sigcontext.h>.
4642         (__ctx): Define earlier.
4643         (mcontext_t): Define structure contents rather than using struct
4644         sigcontext.
4645         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
4646         mcontext_t instead of struct sigcontext.
4647         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
4648         <bits/sigcontext.h>.
4649         (__ctx): Define earlier.
4650         (mcontext_t): Define structure contents rather than using struct
4651         sigcontext.
4652         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
4653         <bits/sigcontext.h>.
4654         (__ctx): Define earlier.
4655         (mcontext_t): Define structure contents rather than using struct
4656         sigcontext.
4657         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
4658         mcontext_t instead of struct sigcontext.
4659         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
4660         mcontext_t instead of struct sigcontext.
4661         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4662         <bits/sigcontext.h>.
4663         (__ctx): New macro.
4664         (struct __ia64_fpreg_mcontext): New type.
4665         (mcontext_t): Define structure contents rather than using struct
4666         sigcontext.
4667         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
4668         (uc_sigmask): Define using __ctx.
4669         (uc_stack): Likewise.
4670         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
4671         <bits/sigcontext.h>.
4672         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
4673         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
4674         <bits/sigcontext.h>.
4675         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
4676         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
4677         <bits/sigcontext.h>.
4678         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
4679         <bits/sigcontext.h>.
4680         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
4681         <bits/sigcontext.h>.
4682         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
4683         <bits/sigcontext.h>.
4684         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
4685         <bits/sigcontext.h>.
4686         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
4687         <bits/sigcontext.h>.
4688         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
4689         <bits/sigcontext.h>.
4690         (__ctx): Define earlier.
4691         (mcontext_t): Define structure contents rather than using struct
4692         sigcontext.
4693         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
4694         <bits/sigcontext.h>.  Include <bits/types.h>.
4695         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
4696         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
4697         (test-xfail-XPG42/ucontext.h/conform): Likewise.
4698         (test-xfail-UNIX98/signal.h/conform): Likewise.
4699         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
4700         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
4701         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
4702         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
4703         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
4704         (test-xfail-POSIX2008/signal.h/conform): Likewise.
4705         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
4706         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
4707         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
4709 2017-08-30  Florian Weimer  <fweimer@redhat.com>
4711         * malloc/dynarray_emplace_enlarge.c
4712         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
4713         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4714         * malloc/tst-dynarray.c (test_long_overflow): New function.
4715         (do_test): Call it.
4717 2017-08-30  Florian Weimer  <fweimer@redhat.com>
4719         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
4720         (set_arena_corrupt): Remove definitions.
4721         (mtrim): Do not check for corrupt arena.
4722         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
4723         Likewise.
4725 2017-08-30  Florian Weimer  <fweimer@redhat.com>
4727         [BZ #21754]
4728         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
4729         check_action.
4730         (ptmalloc_init): Do not set or use check_action.
4731         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
4732         call to malloc_printerr.  Remove return statement.
4733         (free_check): Likewise.  Remove arena unlock.
4734         (top_check): Update comment.  Adjust call to malloc_printerr.
4735         Remove heap repair code.
4736         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
4737         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
4738         (sysmalloc): Adjust call to malloc_printerr.
4739         (munmap_chunk, __libc_realloc): Likewise.  Remove return
4740         statement.
4741         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
4742         Remove errout label and corresponding gotos.
4743         (_int_free): Likewise.  Remove arena unlock.
4744         (do_set_mallopt_check): Do not set check_action.
4745         (malloc_printerr): Adjust parameter list.  Do not mark arena as
4746         corrupt.
4747         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
4748         comment.
4749         * manual/probes.texi (Memory Allocation Probes): Remove
4750         memory_mallopt_check_action.
4752 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
4754         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
4755         Use pointer to uint64_t instead of long int for sp.
4757 2017-08-30  Florian Weimer  <fweimer@redhat.com>
4759         [BZ #21754]
4760         * malloc/malloc.c (malloc_printerr): Always terminate the process,
4761         without printing a backtrace.  Do not leak any information in the
4762         error message.
4763         * manual/memory.texi (Heap Consistency Checking): Update.
4764         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
4766 2017-08-30  Florian Weimer  <fweimer@redhat.com>
4768         Do not scale NPTL tests with available number of CPUs.
4769         * nptl/tst-cond16.c (count): Set to constant value of 8.
4770         * nptl/tst-cond18.c (count): Likewise.
4772 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
4774         [BZ #22035]
4775         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
4776         Define to take a second argument that is a macro that
4777         concatentates a suffix, not the suffix itself.
4778         (__CONCAT_d): New macro.
4779         (__CONCAT_f): Likewise.
4780         (__CONCAT_l): Likewise.
4782 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
4784         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
4785         by child.
4787 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4788             Aurelien Jarno  <aurelien@aurel32.net>
4789             Maciej W. Rozycki  <macro@imgtec.com>
4791         [BZ #21956]
4792         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
4793         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
4794         `mips16-syscall6' and `mips16-syscall7'.
4795         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
4796         (CFLAGS-mips16-syscall7.c): Remove.
4797         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
4798         Remove `__mips16_syscall5', `__mips16_syscall6' and
4799         `__mips16_syscall7'.
4800         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
4801         (__mips16_syscall0): Rename `__mips16_syscall_return' to
4802         `__mips_syscall_return'.
4803         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
4804         (__mips16_syscall1): Likewise.
4805         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
4806         (__mips16_syscall2): Likewise.
4807         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
4808         (__mips16_syscall3): Likewise.
4809         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
4810         (__mips16_syscall4): Likewise.
4811         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
4812         Remove.
4813         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
4814         Remove.
4815         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
4816         Remove.
4817         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
4818         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
4819         `__mips16_syscall5'.  Remove prototype.
4820         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
4821         `__mips16_syscall6'.  Remove prototype.
4822         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
4823         `__mips16_syscall7'.  Remove prototype.
4824         (__nomips16, __mips16_syscall_return): Move to...
4825         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
4826         (__nomips16, __mips_syscall_return): ... here.
4827         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
4828         `__mips16_syscall_return' to `__mips_syscall_return'.
4829         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
4830         `internal_syscall##nr'.
4831         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
4832         `internal_syscall##nr'.
4833         (FORCE_FRAME_POINTER): Remove.
4834         (__mips_syscall5): New prototype.
4835         (internal_syscall5): Rewrite to call `__mips_syscall5'.
4836         (__mips_syscall6): New prototype.
4837         (internal_syscall6): Rewrite to call `__mips_syscall6'.
4838         (__mips_syscall7): New prototype.
4839         (internal_syscall7): Rewrite to call `__mips_syscall7'.
4840         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
4841         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
4842         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
4843         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
4844         (sysdep_routines): Add libc-do-syscall.
4845         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
4846         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
4848 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4850         [BZ #21672]
4851         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
4852         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
4853         (advise_stack_range): New function.
4854         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
4855         stack non required to advise_stack_range at allocatestack.c
4857 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4859         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
4861 2017-08-29  Florian Weimer  <fweimer@redhat.com>
4863         [BZ #22026]
4864         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
4865         __end_fct.  Mangle __end_fct after setting it to NULL.
4866         * iconv/Makefile (tests): Add tst-gconv-init-failure.
4867         (modules-names, modules-names-tests): Add
4868         tst-gconv-init-failure-mod.
4869         (gconv-modules): New target.
4870         (tst-gconv-init-failure-mod.so): Link against libsupport.
4871         (tst-gconv-init-failure): Depend on gconv-modules,
4872         tst-gconv-init-failure-mod.so.
4873         * iconv/tst-gconv-init-failure-mod.c: New file.
4874         * iconv/tst-gconv-init-failure.c: Likewise.
4875         * iconv/test-gconv-modules: Likewise.
4877 2017-08-29  Florian Weimer  <fweimer@redhat.com>
4879         [BZ #22025]
4880         * iconv/gconv_db.c (free_derivation): Remove redundant
4881         parentheses.
4882         (gen_steps): Unconditionally mangle __btowc_fct after
4883         initialization.
4884         (increment_counter): Likewise.  Do not call init_fct for internal
4885         modules.
4887 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
4889         [BZ #22028]
4890         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
4891         (_MSUF_): Remove macro.
4892         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
4893         Likewise.
4894         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
4895         (__REDIRFROM_X): New macro.
4896         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
4897         Likewise.
4898         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
4899         (__REDIRTO_X): Likewise.
4900         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
4901         arguments.
4902         (__MATH_REDIRCALL_2): Likewise.
4903         (__MATH_REDIRCALL_INTERNAL): Likewise.
4904         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
4905         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
4906         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
4907         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
4908         * math/test-finite-macros.c: New file.
4909         * math/Makefile (tests): Add test-finite-macros.
4910         (CFLAGS-test-finite-macros.c): New variable.
4912 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
4913             Jeff Law  <law@redhat.com>
4915         [BZ #22025]
4916         Mangle NULL pointers in iconv/gconv.
4917         * iconv/gconv_cache.c (find_module): Demangle init_fct before
4918         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
4919         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
4920         is non-NULL before demangling the end_fct.  Check for NULL
4921         end_fct after demangling.
4922         (__gconv_release_step): Demangle the end_fct before checking
4923         it for NULL.   Remove assert on __shlibc_handle != NULL.
4924         (gen_steps): Don't check btowc_fct for NULL before mangling.
4925         Demangle init_fct before checking for NULL.
4926         (increment_counter): Likewise.
4927         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
4928         end_fct for NULL before mangling.
4929         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
4930         for NULL.
4932 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
4934         [BZ #21971]
4935         * locale/iso-639.def: add Morisyen.
4937 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4939         [BZ #21930]
4940         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
4941         (iszero): New C++ implementation that does not use
4942         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
4943         signaling nans are enabled, since __builtin_types_compatible_p
4944         is a C-only feature.
4945         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
4946         defined, include ieee754_float128.h for access to the union and
4947         member ieee854_float128.ieee.
4948         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
4949         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
4950         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
4951         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
4952         options of test-math-zero on powerpc64le.
4954 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
4956         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
4957         Change double to float.
4959 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
4961         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
4962         unconditional.
4963         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
4964         conditional code; define contents only for [LIBM_SVID_COMPAT].
4966 2017-08-28  Florian Weimer  <fweimer@redhat.com>
4968         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
4969         (abi-lp64_be-options): Remove.
4970         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
4971         (abi-hard-options): Likewise.
4972         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
4973         (abi-o32_hard-options, abi-o32_soft_2008-options)
4974         (abi-o32_hard_2008-options, abi-n32_soft-options)
4975         (abi-n32_hard-options, abi-n32_soft_2008-options)
4976         (abi-n32_hard_2008-options, abi-n64_soft-options)
4977         (abi-n64_hard-options, abi-n64_soft_2008-options)
4978         (abi-n64_hard_2008-options): Likewise.
4979         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
4980         (abi-64-v1-options, abi-64-v2-options): Likewise.
4981         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
4982         (abi-64-options): Likewise.
4983         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
4984         (abi-64-options): Likewise.
4985         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
4986         (abi-64-options): Likewise.
4987         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
4988         (abi-64-options, abi-x32-options): Likewise.
4990 2017-08-28  Florian Weimer  <fweimer@redhat.com>
4992         Store supported list of SYS_* system calls in the source tree.
4993         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4994         (bits/syscall.h): Generate from list file.
4995         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
4996         [$(subdir) = misc] (tests): Add tst-syscall-list.
4997         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
4998         [$(subdir) = misc] (tst-syscall-list-macros.list)
4999         [$(subdir) = misc] (tst-syscall-list-nr.list)
5000         (tst-syscall-list-sys.list): Helper targets for new
5001         tst-syscall-list test.
5002         [$(subdir) = misc] (tst-syscall-list.out): Run test script
5003         tst-syscall-list.sh.
5004         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
5005         target. Do not include bits/syscall.d.
5006         [$(subdir) = misc] (generated): Do not update.
5007         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
5008         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
5009         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
5010         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
5012 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
5014         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
5015         (tst-cxa_atexit, tst-on_exit): Likewise.
5016         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
5017         tst-cxa_atexit, and tst-on_exit.
5018         * stdlib/tst-atexit-common.c: New file.
5019         * stdlib/tst-atexit.c: New file.
5020         * stdlib/tst-at_quick_exit.c: New file.
5021         * stdlib/tst-cxa_atexit.c: New file.
5022         * stdlib/tst-on_exit.c: New file.
5024 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5026         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
5027         * mach/stack_chk_fail_local.c: New file.
5028         * hurd/stack_chk_fail_local.c: New file.
5029         * mach/Machrules ($(interface-library)-routines): Add
5030         stack_chk_fail_local.
5031         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
5032         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
5033         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
5034         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
5035         * hurd/Makefile (CFLAGS-hurdstartup.o,
5036         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
5038 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
5040         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
5041         (index_cpu_*, index_arch_*): Removed.
5043 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5045         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
5046         Use uint64_t instead of unsigned long.
5048 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
5050         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
5051         [__HAVE_DISTINCT_FLOAT128].
5053         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
5054         of <bits/math-finite.h>.
5055         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
5056         inclusion of <bits/math-finite.h>.
5057         * math/bits/math-finite.h (__REDIRTO_X): Do not define
5058         conditionally on [__MATH_DECLARING_LDOUBLE && defined
5059         __NO_LONG_DOUBLE_MATH].
5060         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
5061         (__MATH_REDIRCALL_2): Likewise.
5062         (__MATH_REDIRCALL_INTERNAL): Likewise.
5063         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
5064         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
5065         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
5067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
5068         Remove file.
5069         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
5070         Likewise.
5071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
5072         Likewise.
5073         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
5074         Likewise.
5075         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
5076         Likewise.
5077         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
5078         Likewise.
5079         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
5080         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
5081         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
5082         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
5083         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
5084         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
5085         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
5086         w_sqrtf_compat-ppc32.
5088 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5090         * math/math.h [defined __cplusplus] (issignaling): In the long
5091         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
5092         is not defined.  Call __issignaling, otherwise.
5094 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5096         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
5097         syscall definitions and replace __builtin_expect with __glibc_likely.
5098         * sysdeps/unix/syscall-template.S: Update comment about cancellable
5099         syscall.
5100          (SYSCALL_CANCELLABLE): Removedefinition
5101         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
5102         definition.
5103         (PSEUDO_END): Likewise.
5104         [IS_IN (libpthread)] (CENABLE): Likewise.
5105         [IS_IN (libpthread)] (CDISABLE): Likewise.
5106         [IS_IN (libc)] (CENABLE): Likewise.
5107         [IS_IN (libc)] (CENABLE): Likewise.
5108         [IS_IN (librt)] (CDISABLE): Likewise.
5109         [IS_IN (librt)] (CDISABLE): Likewise.
5110         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5111         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
5112         definition.
5113         (PSEUDO_END): Likewise.
5114         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
5115         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
5116         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
5117         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
5118         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
5119         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
5120         (CENABLE): Likewise.
5121         (CDISABLE): Likewise.
5122         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5123         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
5124         defintion.
5125         (PSEUDO_END): Likewise.
5126         [IS_IN (libpthread)] (CENABLE): Likewise.
5127         [IS_IN (libpthread)] (CDISABLE): Likewise.
5128         [IS_IN (libc)] (CENABLE): Likewise.
5129         [IS_IN (libc)] (CENABLE): Likewise.
5130         [IS_IN (librt)] (CDISABLE): Likewise.
5131         [IS_IN (librt)] (CDISABLE): Likewise.
5132         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5133         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
5134         definition.
5135         (PSEUDO_END): Likewise.
5136         [IS_IN (libpthread)] (CENABLE): Likewise.
5137         [IS_IN (libpthread)] (CDISABLE): Likewise.
5138         [IS_IN (libc)] (CENABLE): Likewise.
5139         [IS_IN (libc)] (CENABLE): Likewise.
5140         [IS_IN (librt)] (CDISABLE): Likewise.
5141         [IS_IN (librt)] (CDISABLE): Likewise.
5142         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5143         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
5144         definition.
5145         (PSEUDO_END): Likewise.
5146         [IS_IN (libpthread)] (CENABLE): Likewise.
5147         [IS_IN (libpthread)] (CDISABLE): Likewise.
5148         [IS_IN (libc)] (CENABLE): Likewise.
5149         [IS_IN (libc)] (CENABLE): Likewise.
5150         [IS_IN (librt)] (CDISABLE): Likewise.
5151         [IS_IN (librt)] (CDISABLE): Likewise.
5152         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5153         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
5154         definition.
5155         (PSEUDO_END): Likewise.
5156         [IS_IN (libpthread)] (CENABLE): Likewise.
5157         [IS_IN (libpthread)] (CDISABLE): Likewise.
5158         [IS_IN (libc)] (CENABLE): Likewise.
5159         [IS_IN (libc)] (CENABLE): Likewise.
5160         [IS_IN (librt)] (CDISABLE): Likewise.
5161         [IS_IN (librt)] (CDISABLE): Likewise.
5162         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5163         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
5164         definition.
5165         (PSEUDO_END): Likewise.
5166         [IS_IN (libpthread)] (CENABLE): Likewise.
5167         [IS_IN (libpthread)] (CDISABLE): Likewise.
5168         [IS_IN (libc)] (CENABLE): Likewise.
5169         [IS_IN (libc)] (CENABLE): Likewise.
5170         [IS_IN (librt)] (CDISABLE): Likewise.
5171         [IS_IN (librt)] (CDISABLE): Likewise.
5172         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5173         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
5174         definition.
5175         (PSEUDO_END): Likewise.
5176         [IS_IN (libpthread)] (CENABLE): Likewise.
5177         [IS_IN (libpthread)] (CDISABLE): Likewise.
5178         [IS_IN (libc)] (CENABLE): Likewise.
5179         [IS_IN (libc)] (CENABLE): Likewise.
5180         [IS_IN (librt)] (CDISABLE): Likewise.
5181         [IS_IN (librt)] (CDISABLE): Likewise.
5182         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5183         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
5184         Remove definition.
5185         (PSEUDO_END): Likewise.
5186         [IS_IN (libpthread)] (CENABLE): Likewise.
5187         [IS_IN (libpthread)] (CDISABLE): Likewise.
5188         [IS_IN (libc)] (CENABLE): Likewise.
5189         [IS_IN (libc)] (CENABLE): Likewise.
5190         [IS_IN (librt)] (CDISABLE): Likewise.
5191         [IS_IN (librt)] (CDISABLE): Likewise.
5192         (SINGLE_THREAD_P): Likewise.
5193         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
5194         definition.
5195         (PSEUDO_END): Likewise.
5196         [IS_IN (libpthread)] (CENABLE): Likewise.
5197         [IS_IN (libpthread)] (CDISABLE): Likewise.
5198         [IS_IN (libc)] (CENABLE): Likewise.
5199         [IS_IN (libc)] (CENABLE): Likewise.
5200         [IS_IN (librt)] (CDISABLE): Likewise.
5201         [IS_IN (librt)] (CDISABLE): Likewise.
5202         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5203         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
5204         definition.
5205         (PSEUDO_END): Likewise.
5206         [IS_IN (libpthread)] (CENABLE): Likewise.
5207         [IS_IN (libpthread)] (CDISABLE): Likewise.
5208         [IS_IN (libc)] (CENABLE): Likewise.
5209         [IS_IN (libc)] (CENABLE): Likewise.
5210         [IS_IN (librt)] (CDISABLE): Likewise.
5211         [IS_IN (librt)] (CDISABLE): Likewise.
5212         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5213         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
5214         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
5215         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
5216         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
5217         definition.
5218         (PSEUDO_END): Likewise.
5219         [IS_IN (libpthread)] (CENABLE): Likewise.
5220         [IS_IN (libpthread)] (CDISABLE): Likewise.
5221         [IS_IN (libc)] (CENABLE): Likewise.
5222         [IS_IN (libc)] (CENABLE): Likewise.
5223         [IS_IN (librt)] (CDISABLE): Likewise.
5224         [IS_IN (librt)] (CDISABLE): Likewise.
5225         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5226         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
5227         definition.
5228         (PSEUDO_END): Likewise.
5229         [IS_IN (libpthread)] (CENABLE): Likewise.
5230         [IS_IN (libpthread)] (CDISABLE): Likewise.
5231         [IS_IN (libc)] (CENABLE): Likewise.
5232         [IS_IN (libc)] (CENABLE): Likewise.
5233         [IS_IN (librt)] (CDISABLE): Likewise.
5234         [IS_IN (librt)] (CDISABLE): Likewise.
5235         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5236         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
5237         definition.
5238         (PSEUDO_END): Likewise.
5239         [IS_IN (libpthread)] (CENABLE): Likewise.
5240         [IS_IN (libpthread)] (CDISABLE): Likewise.
5241         [IS_IN (libc)] (CENABLE): Likewise.
5242         [IS_IN (libc)] (CENABLE): Likewise.
5243         [IS_IN (librt)] (CDISABLE): Likewise.
5244         [IS_IN (librt)] (CDISABLE): Likewise.
5245         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5246         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
5247         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
5248         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
5249         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
5250         definition.
5251         (PSEUDO_END): Likewise.
5252         [IS_IN (libpthread)] (CENABLE): Likewise.
5253         [IS_IN (libpthread)] (CDISABLE): Likewise.
5254         [IS_IN (libc)] (CENABLE): Likewise.
5255         [IS_IN (libc)] (CENABLE): Likewise.
5256         [IS_IN (librt)] (CDISABLE): Likewise.
5257         [IS_IN (librt)] (CDISABLE): Likewise.
5258         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5259         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
5260         definition.
5261         (PSEUDO_END): Likewise.
5262         [IS_IN (libpthread)] (CENABLE): Likewise.
5263         [IS_IN (libpthread)] (CDISABLE): Likewise.
5264         [IS_IN (libc)] (CENABLE): Likewise.
5265         [IS_IN (libc)] (CENABLE): Likewise.
5266         [IS_IN (librt)] (CDISABLE): Likewise.
5267         [IS_IN (librt)] (CDISABLE): Likewise.
5268         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5270 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5272         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
5274 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
5276         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
5278 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
5280         [BZ #21982]
5281         * string/stratcliff.c (do_test): Declare size, nchars, inner,
5282         middle and outer with size_t instead of int.  Repleace %d and
5283         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
5284         "MAX (outer, nchars - 64)" to support unsigned outer and
5285         nchars.  Also exit loop when outer == 0.
5287 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5289         * include/fcntl.h (__fcntl_nocancel): Remove definition.
5290         * include/signal.h (__sigsuspend_nocancel): Likewise.
5291         * include/time.h (__nanosleep_nocancel): Likewise.
5292         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
5293         * login/utmp_file.c: Include non cancellable syscall header.
5294         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
5295         prototype.
5297 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
5299         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
5300         .byte sequences with AVX512F instructions.
5301         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
5302         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
5303         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
5304         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
5305         Likewise.
5306         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
5307         Likewise.
5309 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5310             Steve Ellcey  <sellcey@cavium.com>
5312         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
5313         Use PTR_REG macro in cmp instruction.
5315 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5317         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
5318         Change the return type of the ifunc resolver to match the return
5319         type of the target function.
5321 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5323         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
5324         (preadv64): Likewise.
5325         (pwrite64(: Likewise.
5326         (pwritev64): Likewise.
5328         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5329         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
5330         (LOAD_ARGS_0): Likewise.
5331         (LOAD_ARGS_1): Likewise.
5332         (LOAD_ARGS_2): Likewise.
5333         (LOAD_ARGS_3): Likewise.
5334         (LOAD_ARGS_4): Likewise.
5335         (LOAD_ARGS_5): Likewise.
5336         (LOAD_ARGS_6): Likewise.
5337         (LOAD_REGS_0): Likewise.
5338         (LOAD_REGS_1): Likewise.
5339         (LOAD_REGS_2): Likewise.
5340         (LOAD_REGS_3): Likewise.
5341         (LOAD_REGS_4): Likewise.
5342         (LOAD_REGS_5): Likewise.
5343         (LOAD_REGS_6): Likewise.
5344         (ASM_ARGS_0): Likewise.
5345         (ASM_ARGS_1): Likewise.
5346         (ASM_ARGS_2): Likewise.
5347         (ASM_ARGS_3): Likewise.
5348         (ASM_ARGS_4): Likewise.
5349         (ASM_ARGS_5): Likewise.
5350         (ASM_ARGS_6): Likewise.
5351         (LOAD_ARGS_TYPES_1): Likewise.
5352         (LOAD_ARGS_TYPES_2): Likewise.
5353         (LOAD_ARGS_TYPES_3): Likewise.
5354         (LOAD_ARGS_TYPES_4): Likewise.
5355         (LOAD_ARGS_TYPES_5): Likewise.
5356         (LOAD_ARGS_TYPES_6): Likewise.
5357         (LOAD_REGS_TYPES_1): Likewise.
5358         (LOAD_REGS_TYPES_2): Likewise.
5359         (LOAD_REGS_TYPES_3): Likewise.
5360         (LOAD_REGS_TYPES_4): Likewise.
5361         (LOAD_REGS_TYPES_5): Likewise.
5362         (LOAD_REGS_TYPES_6): Likewise.
5363         (TYPEFY): New define.
5364         (ARGIFY): Likewise.
5365         (internal_syscall0): Likewise.
5366         (internal_syscall1): Likewise.
5367         (internal_syscall2): Likewise.
5368         (internal_syscall3): Likewise.
5369         (internal_syscall4): Likewise.
5370         (internal_syscall5): Likewise.
5371         (internal_syscall6): Likewise.
5372         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
5373         (INTERNAL_SYSCALL_NCS): Remove define.
5374         (internal_syscall1): Add define.
5376 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5378         * math/w_remainder_compat.c: Remove duplicate inclusion of
5379         math-svid-compat.h.
5380         * math/w_remainderf_compat.c: Likewise.
5381         * math/w_remainderl_compat.c: Likewise.
5383 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5385         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5387 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
5389         [BZ #21684]
5390         * math/tgmath.h (__floating_type): Simplify definitions.
5391         (__real_integer_type): New macro.
5392         (__complex_integer_type): Likewise.
5393         (__expr_is_real): Likewise.
5394         (__tgmath_real_type_sub): Update comment to describe handling of
5395         complex types.
5396         (__tgmath_complex_type_sub): New macro.
5397         (__tgmath_complex_type): Likewise.
5398         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5399         (__TGMATH_CF128): Use __expr_is_real.
5400         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
5401         __expr_is_real.
5402         (__TGMATH_BINARY_REAL_IMAG): Likewise.
5403         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
5404         * math/gen-tgmath-tests.py (Type.create_type): Create complex
5405         integer types.
5407 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5409         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
5410         macro.
5411         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
5412         alias.
5413         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
5414         Likewise.
5416         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
5417         nanosleep_not_cancel with __nanosleep_nocancel.
5418         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
5419         (__nanosleep_nocancel): New macro.
5420         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
5421         function.
5422         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
5423         macro.
5424         (__nanosleep_nocancel): New prototype.
5426         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
5427         pause_not_cancel with __pause_nocancel.
5428         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
5429         (__pause_nocancel): New macro.
5430         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
5431         macro.
5432         (__pause_nocancel): New prototype.
5433         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
5435 2017-08-22  Martin Sebor  <msebor@redhat.com>
5437         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
5438         to return a pointer to the same type as the target function.
5440 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
5442         [BZ #18822]
5443         [BZ #21986]
5444         * include/printf.h (__printf_fphex): Add attribute_hidden.
5445         (__guess_grouping): New prototype.
5446         * stdio-common/printf_fp.c (__guess_grouping): Removed.
5447         * stdio-common/reg-printf.c (__register_printf_specifier): Add
5448         libc_hidden_proto and libc_hidden_def.
5449         * stdlib/strfmon_l.c (__guess_grouping): Removed.
5450         (__vstrfmon_l): Remove the third argument passed to
5451         __guess_grouping.
5453 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5455         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
5456         definition for issignaling that does not rely on __MATH_TG,
5457         since __MATH_TG uses __builtin_types_compatible_p, which is only
5458         available in C mode.
5459         (CFLAGS-test-math-issignaling.cc): New variable.
5460         * math/Makefile [CXX] (tests): Add test-math-issignaling.
5461         * math/test-math-issignaling.cc: New test for C++ implementation
5462         of type-generic issignaling.
5463         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
5464         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
5465         options of test-math-issignaling on powerpc64le.
5467 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
5469         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
5470         building libc.a.
5471         (hidden_proto): Likewise.
5472         (hidden_tls_proto): Likewise.
5473         (__hidden_proto): Likewise.
5475 2017-08-22  Florian Weimer  <fweimer@redhat.com>
5477         math: Statically link tests of internal functionality.
5478         * math/Makefile (tests): Remove atest-exp, atest-sincos,
5479         atest-exp2.
5480         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
5481         (gmp-objs): Remove assignment.
5482         (atest-exp, atest-sincos, atest-exp2): Remove targets.
5484 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
5486         [BZ #21987]
5487         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
5488         and copy to ...
5489         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
5490         ... here.
5491         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
5492         ... and here.
5494         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
5495         variable definitions above inclusion of ../Rules.
5497 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
5499         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
5500         case calling __builtin_unreachable.
5502 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5504         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
5505         __waitpid_nocancel.
5506         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
5507         (__waitpid_nocancel): New macro.
5508         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
5509         macro.
5510         (__waitpid_nocancel): Replace macro with a function.
5511         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
5512         function.
5514         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
5515         __fcntl_nocancel.
5516         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
5517         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
5519         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
5520         __writev_nocancel_nostatus.
5521         (write_call_graph): Likewise.
5522         (write_bb_counts): Likewise.
5523         * resolv/herror.c (herror): Likewise.
5524         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
5525         macro.
5526         (__writev_nocancel_nostatus): New macro.
5527         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
5528         Remove macro.
5529         (__writev_nocancel_nostatus): New function.
5531 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
5533         Revert:
5534         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5536         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
5537         building libc.a.
5538         (hidden_proto): Likewise.
5539         (hidden_tls_proto): Likewise.
5540         (__hidden_proto): Likewise.
5542         [BZ #21973]
5543         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
5544         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
5545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
5546         Likewise.
5547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
5548         Likewise.
5549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
5550         Likewise.
5551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
5552         Likewise.
5553         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
5554         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
5555         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
5556         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
5557         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5558         GLIBC_2.0 sqrtl symbol.
5560         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
5561         [__USE_MISC] (_LIB_VERSION): Likewise.
5562         [__USE_MISC] (struct exception): Likewise.
5563         [__USE_MISC] (matherr): Likewise.
5564         [__USE_MISC] (DOMAIN): Likewise.
5565         [__USE_MISC] (SING): Likewise.
5566         [__USE_MISC] (OVERFLOW): Likewise.
5567         [__USE_MISC] (UNDERFLOW): Likewise.
5568         [__USE_MISC] (TLOSS): Likewise.
5569         [__USE_MISC] (PLOSS): Likewise.
5570         [__USE_MISC] (HUGE): Likewise.
5571         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
5572         * math/math-svid-compat.h: New file.
5573         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
5574         and matherrl.
5575         * include/math.h [!_ISOMAC] (__matherr): Remove.
5576         * manual/arith.texi (FP Exceptions): Do not document matherr.
5577         * math/Makefile (tests): Change test-matherr to test-matherr-3.
5578         (tests-internal): New variable.
5579         (install-lib): Do not add libieee.a.
5580         (non-lib.a): Likewise.
5581         (extra-objs): Do not add libieee.a and ieee-math.o.
5582         (CPPFLAGS-s_lib_version.c): Remove variable.
5583         ($(objpfx)libieee.a): Remove rule.
5584         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
5585         * math/ieee-math.c: Remove.
5586         * math/libm-test-support.c (matherr): Remove.
5587         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
5588         and license notices.  Include <math-svid-compat.h> and
5589         <shlib-compat.h>.
5590         (matherr): Undefine as macro.  Use compat_symbol_reference.
5591         (_LIB_VERSION): Likewise.
5592         * math/test-matherr-2.c: New file.
5593         * math/test-matherr-3.c: Likewise.
5594         * sysdeps/generic/math_private.h (__kernel_standard): Remove
5595         declaration.
5596         (__kernel_standard_f): Likewise.
5597         (__kernel_standard_l): Likewise.
5598         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
5599         <math_private.h>.  Include <math-svid-compat.h>.
5600         (_LIB_VERSION): Undefine as macro.
5601         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
5602         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
5603         [LIBM_SVID_COMPAT], use compat_symbol.
5604         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
5605         <math_private.h>.  Include <math-svid-compat.h>.
5606         (matherr): Undefine as macro.
5607         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
5608         compat_symbol.
5609         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
5610         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
5611         compat_symbol_reference.
5612         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
5613         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
5614         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
5615         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
5616         (MATHERR_D): Remove declaration.
5617         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
5618         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
5619         [LIBM_BUILD] (pmatherrf): Likewise.
5620         [LIBM_BUILD] (pmatherr): Likewise.
5621         [LIBM_BUILD] (pmatherrl): Likewise.
5622         (DOMAIN): Likewise.
5623         (SING): Likewise.
5624         (OVERFLOW): Likewise.
5625         (UNDERFLOW): Likewise.
5626         (TLOSS): Likewise.
5627         (PLOSS): Likewise.
5628         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
5629         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
5630         compat_symbol.
5631         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
5632         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
5633         compat_symbol.
5634         * math/lgamma-compat.h: Include <math-svid-compat.h>.
5635         * math/w_acos_compat.c: Likewise.
5636         * math/w_acosf_compat.c: Likewise.
5637         * math/w_acosh_compat.c: Likewise.
5638         * math/w_acoshf_compat.c: Likewise.
5639         * math/w_acoshl_compat.c: Likewise.
5640         * math/w_acosl_compat.c: Likewise.
5641         * math/w_asin_compat.c: Likewise.
5642         * math/w_asinf_compat.c: Likewise.
5643         * math/w_asinl_compat.c: Likewise.
5644         * math/w_atan2_compat.c: Likewise.
5645         * math/w_atan2f_compat.c: Likewise.
5646         * math/w_atan2l_compat.c: Likewise.
5647         * math/w_atanh_compat.c: Likewise.
5648         * math/w_atanhf_compat.c: Likewise.
5649         * math/w_atanhl_compat.c: Likewise.
5650         * math/w_cosh_compat.c: Likewise.
5651         * math/w_coshf_compat.c: Likewise.
5652         * math/w_coshl_compat.c: Likewise.
5653         * math/w_exp10_compat.c: Likewise.
5654         * math/w_exp10f_compat.c: Likewise.
5655         * math/w_exp10l_compat.c: Likewise.
5656         * math/w_exp2_compat.c: Likewise.
5657         * math/w_exp2f_compat.c: Likewise.
5658         * math/w_exp2l_compat.c: Likewise.
5659         * math/w_fmod_compat.c: Likewise.
5660         * math/w_fmodf_compat.c: Likewise.
5661         * math/w_fmodl_compat.c: Likewise.
5662         * math/w_hypot_compat.c: Likewise.
5663         * math/w_hypotf_compat.c: Likewise.
5664         * math/w_hypotl_compat.c: Likewise.
5665         * math/w_j0_compat.c: Likewise.
5666         * math/w_j0f_compat.c: Likewise.
5667         * math/w_j0l_compat.c: Likewise.
5668         * math/w_j1_compat.c: Likewise.
5669         * math/w_j1f_compat.c: Likewise.
5670         * math/w_j1l_compat.c: Likewise.
5671         * math/w_jn_compat.c: Likewise.
5672         * math/w_jnf_compat.c: Likewise.
5673         * math/w_jnl_compat.c: Likewise.
5674         * math/w_lgamma_main.c: Likewise.
5675         * math/w_lgamma_r_compat.c: Likewise.
5676         * math/w_lgammaf_main.c: Likewise.
5677         * math/w_lgammaf_r_compat.c: Likewise.
5678         * math/w_lgammal_main.c: Likewise.
5679         * math/w_lgammal_r_compat.c: Likewise.
5680         * math/w_log10_compat.c: Likewise.
5681         * math/w_log10f_compat.c: Likewise.
5682         * math/w_log10l_compat.c: Likewise.
5683         * math/w_log2_compat.c: Likewise.
5684         * math/w_log2f_compat.c: Likewise.
5685         * math/w_log2l_compat.c: Likewise.
5686         * math/w_log_compat.c: Likewise.
5687         * math/w_logf_compat.c: Likewise.
5688         * math/w_logl_compat.c: Likewise.
5689         * math/w_pow_compat.c: Likewise.
5690         * math/w_powf_compat.c: Likewise.
5691         * math/w_powl_compat.c: Likewise.
5692         * math/w_remainder_compat.c: Likewise.
5693         * math/w_remainderf_compat.c: Likewise.
5694         * math/w_remainderl_compat.c: Likewise.
5695         * math/w_scalb_compat.c: Likewise.
5696         * math/w_scalbf_compat.c: Likewise.
5697         * math/w_scalbl_compat.c: Likewise.
5698         * math/w_sinh_compat.c: Likewise.
5699         * math/w_sinhf_compat.c: Likewise.
5700         * math/w_sinhl_compat.c: Likewise.
5701         * math/w_sqrt_compat.c: Likewise.
5702         * math/w_sqrtf_compat.c: Likewise.
5703         * math/w_sqrtl_compat.c: Likewise.
5704         * math/w_tgamma_compat.c: Likewise.
5705         * math/w_tgammaf_compat.c: Likewise.
5706         * math/w_tgammal_compat.c: Likewise.
5707         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
5708         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
5709         * sysdeps/ieee754/k_standard.c: Likewise.
5710         * sysdeps/ieee754/k_standardf.c: Likewise.
5711         * sysdeps/ieee754/k_standardl.c: Likewise.
5712         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
5713         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
5714         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
5715         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
5716         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
5717         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
5718         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
5719         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
5720         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
5721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
5722         Likewise.
5723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
5724         Likewise.
5725         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
5726         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
5727         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
5728         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
5730 2017-08-21  Florian Weimer  <fweimer@redhat.com>
5732         [BZ #21864]
5733         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
5734         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
5735         Move before inclusion of ../Rules.
5737 2017-08-21  Florian Weimer  <fweimer@redhat.com>
5739         [BZ #21972]
5740         * assert/assert.h (assert): Use static_cast (bool) for C++.
5741         Use the ternary operator in the warning branch for GNU C.
5742         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
5743         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
5744         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
5745         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
5746         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
5748 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5750         [BZ #18822]
5751         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5752         (__syscall_clock_gettime): Add attribute_hidden.
5753         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
5754         (__start_context): Likewise.
5756 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5758         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
5759         building libc.a.
5760         (hidden_proto): Likewise.
5761         (hidden_tls_proto): Likewise.
5762         (__hidden_proto): Likewise.
5764 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5766         * include/libc-symbols.h (attribute_hidden): Enable hidden
5767         visibility in libc.a compiled with PIE.
5769 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5771         [BZ #18822]
5772         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
5773         Add attribute_hidden.
5775 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5777         [BZ #21864]
5778         * Makerules (all-nonlib): Add $(others-extras).
5779         * catgets/Makefile (others-extras): New.
5780         * elf/Makefile (others-extras): Likewise.
5781         * nss/Makefile (others-extras): Likewise.
5783 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5785         [BZ #18822]
5786         * csu/libc-start.c (__libc_multiple_libcs): Removed.
5787         * elf/dl-open.c: Include <libc-internal.h>.
5788         (__libc_multiple_libcs): Removed.
5789         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
5790         <hp-timing.h>.
5791         * include/libc-internal.h (__libc_multiple_libcs): New.
5792         * misc/sbrk.c: Include <libc-internal.h>.
5793         (__libc_multiple_libcs): Removed.
5795 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5797         [BZ #18822]
5798         * grp/initgroups.c (__nss_group_database): Removed.
5799         (__nss_initgroups_database): Likewise.
5800         * nscd/gai.c (__nss_hosts_database): Likewise.
5801         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
5802         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
5803         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
5804         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
5805         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
5806         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
5807         attribute_hidden.
5808         * nss/nsswitch.c (__nss_database_custom): Define only if
5809         USE_NSCD is defined.
5810         (__nss_configure_lookup): Use __nss_database_custom only if
5811         USE_NSCD is defined.
5812         * nss/nsswitch.h (__nss_database_custom): Declare only if
5813         USE_NSCD is defined.  Add attribute_hidden.
5814         (__nss_setent): Add attribute_hidden.
5815         (__nss_endent): Likewise.
5816         (__nss_getent_r): Likewise.
5817         (__nss_getent): Likewise.
5818         (DEFINE_DATABASE): Declare __nss_##arg##_database.
5820 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5822         [BZ #18822]
5823         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
5824         libc_hidden_proto and libc_hidden_def.
5826 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5828         [BZ #18822]
5829         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
5830         Add libc_hidden_proto.
5831         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
5832         Add libc_hidden_def.
5834 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5836         [BZ #21974]
5837         * gmon/Makefile (routines): Remove bb_init_func and
5838         bb_exit_func.
5839         (elide-routines.os): Removed.
5840         * gmon/bb_exit_func.c: Likewise.
5841         * gmon/bb_init_func.c: Likewise.
5842         * include/sys/gmon.h (__bb): Likewise.
5843         (__bb_init_func): Likewise.
5844         (__bb_exit_func): Likewise.
5845         * sysdeps/alpha/bb_init_func.S: Likewise.
5847 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5849         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
5850         * include/setjmp.h (____longjmp_chk): Here.  Add
5851         attribute_hidden.
5853 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5855         [BZ #18822]
5856         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
5857         attribute_hidden.
5858         (__strspn_sse2): Likewise.
5860 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5862         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
5863         (close_not_cancel_no_status): Likewise.
5864         (__close_nocancel): New macro.
5865         (__close_nocancel_nostatus): Likewise.
5866         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
5867         macro.
5868         (close_not_cancel): Likewise.
5869         (close_not_cancel_no_status): Likewise.
5870         (__close_nocancel): New prototype.
5871         (__close_nocancel_nostatus): New function.
5872         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
5873         * catgets/open_catalog.c (__open_catalog): Replace
5874         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
5875         * gmon/gmon.c (write_gmon): Likewise.
5876         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5877         * intl/loadmsgcat.c (close): Likewise.
5878         * io/ftw.c (open_dir_stream): Likewise.
5879         (ftw_startup): Likewise.
5880         * libio/fileops.c (_IO_file_open): Likewise.
5881         (_IO_file_close_mmap): Likewise.
5882         (_IO_file_close): Likewise.
5883         * libio/iopopen.c (_IO_dup2): Likewise.
5884         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
5885         * locale/loadlocale.c (_nl_load_locale): Likewise.
5886         * login/utmp_file.c (pututline_file): Likewise.
5887         (endutent_file): Likewise.
5888         * misc/daemon.c (daemon): Likewise.
5889         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5890         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5891         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5892         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5893         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5894         * nscd/nscd_helper.c (open_socket): Likewise.
5895         (__nscd_open_socket): Likewise.
5896         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
5897         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
5898         (__nscd_innetgr): Likewise.
5899         * nss/nss_db/db-open.c (internal_setent): Likewise.
5900         * resolv/res-close.c (__res_iclose): Likewise.
5901         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
5902         * sysdeps/posix/closedir.c (__closedir): Likewise.
5903         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
5904         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
5905         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
5906         (opendir_tail): Likewise.
5907         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
5908         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
5909         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
5910         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
5911         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
5912         (gethostid): Likewise.
5913         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
5914         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
5915         Likewise.
5916         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
5917         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
5918         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
5919         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
5920         Likewise.
5921         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
5922         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
5923         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
5924         Likewise.
5925         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
5926         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
5927         Likewise.
5928         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
5929         Likewise.
5930         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5931         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
5932         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
5933         __close_nocancel.
5935         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
5936         (openat_not_cancel_3): Likewise.
5937         (openat64_not_cancel_3): Likewise).
5938         (openat_not_cancel_3): Likewise).
5939         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
5940         macro.
5941         (openat_not_cancel_3): Likewise.
5942         (openat64_not_cancel): Likewise.
5943         (openat64_not_cancel_3): Likewise.
5944         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
5945         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
5946         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
5947         __open{64}_nocancel.
5948         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
5949         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
5950         * sysdeps/posix/opendir.c (__opendirat): Likewise.
5952 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5954         [BZ #18822]
5955         * include/argz.h (__argz_create_sep): New function prototype.
5956         (__argz_append): Likewise.
5957         (__argz_add): Likewise.
5958         (__argz_add_sep): Likewise.
5959         (__argz_delete): Likewise.
5960         (__argz_insert): Likewise.
5961         (__argz_replace): Likewise.
5962         * string/argz.h (__argz_create_sep): Removed.
5963         (__argz_append): Likewise.
5964         (__argz_add): Likewise.
5965         (__argz_add_sep): Likewise.
5966         (__argz_delete): Likewise.
5967         (__argz_insert): Likewise.
5968         (__argz_replace): Likewise.
5970 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5972         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
5973         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
5974         (GNU_PROPERTY_STACK_SIZE): Likewie.
5975         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
5976         (GNU_PROPERTY_LOPROC): Likewise.
5977         (GNU_PROPERTY_HIPROC): Likewise.
5978         (GNU_PROPERTY_LOUSER): Likewise.
5979         (GNU_PROPERTY_HIUSER): Likewise.
5980         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
5981         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
5982         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
5983         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
5984         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
5985         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
5986         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
5987         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
5988         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
5989         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
5990         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
5991         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
5992         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
5993         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
5994         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
5995         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
5996         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
5997         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
5998         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
5999         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
6000         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
6001         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
6002         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
6004 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6006         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
6007         in C++ mode.
6009 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6011         [BZ #21930]
6012         * math/math.h (isinf): Check if in C or C++ mode before using
6013         __builtin_types_compatible_p, since this is a C mode feature.
6015 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6017         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
6018         (__write_nocancel): New macro.
6019         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
6020         Rewrite as a function prototype.
6021         (write_not_cancel): Remove macro.
6022         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
6023         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
6024         (write_gmon): Likewise.
6025         * libio/fileops.c (_IO_new_file_write): Likewise.
6026         * login/utmp_file.c (pututline_file): Likewise.
6027         (updwtmp_file): Likewise.
6028         * stdio-common/psiginfo.c (psiginfo): Likewise.
6029         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6030         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
6031         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6032         Likewise.
6033         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
6034         Likewise.
6036         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
6037         (__read_nocancel): New macro.
6038         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6039         __read_nocancel.
6040         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
6041         macro.
6042         (__read_nocancel): New prototype.
6043         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
6044         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
6045         with __read_nocancel.
6046         * intl/loadmsgcat.c (read): Likewise.
6047         * libio/fileops.c (_IO_file_read): Likewise.
6048         * locale/loadlocale.c (_nl_load_locale): Likewise.
6049         * login/utmp_file.c (getutent_r_file): Likewise.
6050         (internal_getut_r): Likewise.
6051         (getutline_r_file): Likewise.
6052         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
6053         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6054         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
6055         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6056         Likewise.
6057         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
6058         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
6059         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
6060         Likewise.
6061         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6062         Likewise.
6063         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
6064         Likewise.
6065         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
6066         Likewise.
6067         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
6069 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6071         [BZ #21966]
6072         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
6073         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
6074         usable.
6076 2017-08-17  DJ Delorie  <dj@redhat.com>
6078         * bug17079.c: Update to new test harness.
6079         * test-digits-dots.c: Likewise.
6080         * test-netdb.c: Likewise.
6081         * tst-field.c: Likewise.
6082         * tst-nss-getpwent.c: Likewise.
6083         * tst-nss-static.c: Likewise.
6084         * tst-nss-test1.c: Likewise.
6085         * tst-nss-test2.c: Likewise.
6086         * tst-nss-test3.c: Likewise.
6087         * tst-nss-test4.c: Likewise.
6088         * tst-nss-test5.c: Likewise.
6090 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6092         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
6093         (open_not_cancel_2): Likewise.
6094         (open_nocancel): New macro.
6095         (open64_nocancel): Likewise.
6096         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
6097         (open_not_cancel_2): Likewise.
6098         (__open_nocancel): New prototype.
6099         (__open64_nocancel): Likewise.
6100         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6101         __open_nocancel.
6102         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
6103         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
6104         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
6105         with __open_nocancel.
6106         * csu/check_fds.c (check_one_fd): Likewise.
6107         * gmon/gmon.c (write_gmon): Likewise.
6108         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
6109         * intl/loadmsgcat.c (open): Likewise.
6110         * libio/fileops.c (_IO_file_open): Likewise.
6111         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6112         * locale/loadlocale.c (_nl_load_locale): Likewise.
6113         * login/utmp_file.c (setutent_file): Likewise.
6114         * misc/daemon.c (daemon): Likewise.
6115         * nss/nss_db/db-open.c (internal_setent): Likewise.
6116         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6117         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
6118         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
6119         (__opendir): Likewise.
6120         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6121         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
6122         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
6123         (gethostid): Likewise.
6124         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
6125         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6126         Likewise.
6127         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
6128         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
6129         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
6130         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
6131         Likewise.
6132         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6133         Likewise.
6134         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
6135         Likewise.
6136         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
6137         Likewise.
6138         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
6139         Likewise.
6140         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
6141         Likewise.
6142         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6143         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
6145 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
6147         * benchtests/bench-skeleton.c (main): Add support for
6148         latency benchmarking.
6149         * benchtests/scripts/bench.py: Add support for latency benchmarking.
6151 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
6153         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
6154         the startup object.
6156 2017-08-17  Florian Weimer  <fweimer@redhat.com>
6158         * include/sys/socket.h (__opensock): Remove internal_function.
6159         * socket/opensock.c (__opensock): Likewise.
6160         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
6162 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
6164         [BZ #21944]
6165         * signal/bits/types/__sigval_t.h: New file.
6166         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
6167         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
6168         and define sigval_t using __sigval_t.
6169         * include/bits/types/__sigval_t.h: New file.
6170         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
6171         instead of <bits/types/__sigval_t.h>.
6172         (struct sigevent): Use __sigval_t instead of sigval_t.
6173         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
6174         instead of <bits/types/__sigval_t.h>.
6175         (siginfo_t): Use __sigval_t instead of sigval_t.
6176         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
6177         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
6178         (struct sigevent): Use __sigval_t instead of sigval_t.
6179         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
6180         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
6181         (siginfo_t): Use __sigval_t instead of sigval_t.
6182         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
6184 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
6186         * NEWS: Remove "[Add new features here]" for 2.27.
6188 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
6190         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
6191         libc.so.
6193 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
6195         * NEWS: Mention x86-64 FMA optimization.
6197 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
6199         [BZ #21912]
6200         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6201         Add e_expf-fma.
6202         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
6203         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
6204         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
6206 2017-08-16  Andreas Schwab  <schwab@suse.de>
6208         [BZ #16750]
6209         CVE-2009-5064
6210         * elf/ldd.bash.in: Never run file directly.
6212 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
6214         [BZ #21955]
6215         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
6216         (L(SP_INF_0)): Likewise.
6218 2017-08-15  Florian Weimer  <fweimer@redhat.com>
6220         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
6221         run-built-tests.
6223 2017-08-15  Florian Weimer  <fweimer@redhat.com>
6225         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
6226         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
6227         BROKEN_THREAD_SIGNALS code.
6228         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
6229         request_list): Remove caller_pid member used for
6230         BROKEN_THREAD_SIGNALS.
6231         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
6232         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
6233         Remove BROKEN_THREAD_SIGNALS support.
6234         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
6235         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
6237 2017-08-15  Florian Weimer  <fweimer@redhat.com>
6239         * gmon/Makefile (tests): Add tst-gmon.
6240         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
6241         Set.
6242         (tests-special): Add tst-gmon-prof.out.
6243         (tst-gmon.out): Depend on clean-tst-gmon-data.
6244         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
6245         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
6246         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
6247         startup object.
6248         * aclocal.m4 (GPROF): Set and substitute.
6249         * config.amke.in (GPROF): Set.
6250         * configure: Regenerate.
6252 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
6254         * elf/elf.h A (NT_PPC_TAR): New macro.
6255         (NT_PPC_PPR): Likewise.
6256         (NT_PPC_DSCR): Likewise.
6257         (NT_PPC_EBB): Likewise.
6258         (NT_PPC_PMU): Likewise.
6259         (NT_PPC_TM_CGPR): Likewise.
6260         (NT_PPC_TM_CFPR): Likewise.
6261         (NT_PPC_TM_CVMX): Likewise.
6262         (NT_PPC_TM_CVSX): Likewise.
6263         (NT_PPC_TM_SPR): Likewise.
6264         (NT_PPC_TM_CTAR): Likewise.
6265         (NT_PPC_TM_CPPR): Likewise.
6266         (NT_PPC_TM_CDSCR): Likewise.
6268 2017-08-15  Florian Weimer  <fweimer@redhat.com>
6270         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
6271         regparm (2) instead of internal_function.
6272         (_MCOUNT_DECL): Adjust.
6274 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
6276         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
6277         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
6279 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
6281         * conform/data/sys/wait.h-data (si_value): Do not expect for
6282         XPG42.
6284 2017-08-14  Florian Weimer  <fweimer@redhat.com>
6286         [BZ #21962]
6287         NSS: Create stubs for accidentally exported lookup functions.
6288         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
6289         Remove declaration.
6290         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
6291         (ether_hostton): Call __nss_ethers_lookup2 instead.
6292         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
6293         (ether_ntohost): Call __nss_ethers_lookup2 instead.
6294         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
6295         (setup): Call __nss_netgroup_lookup2 instead.
6296         * nss/Makefile (routines): Add compat-lookup.
6297         * nss/Versions (GLIBC_2.27): Add symbol version.
6298         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
6299         (DB_COMPAT_FCT): Remove.
6300         * nss/compat-lookup.c: New file.
6301         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
6302         from databases.def.
6303         * nss/service-lookup.c (NO_COMPAT): Remove definition.
6304         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
6305         (netname2user): Call __nss_publickey_lookup2 instead.
6306         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
6307         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
6308         instead.
6310 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6311             Sergei Trofimovich  <slyfox@inbox.ru>
6313         [BZ #21908]
6314         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
6315         Rename to MMAP2_PAGE_UNIT.
6316         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
6317         __OFF_T_MATCHES_OFF64_T is not defined.
6318         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
6319         uint64_t.
6320         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
6321         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
6323 2017-08-14  Florian Weimer  <fweimer@redhat.com>
6325         i386: Do not set internal_function.
6326         * config.h.in (USE_REGPARMS, internal_function): Remove.
6327         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
6328         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
6330 2017-08-14  Florian Weimer  <fweimer@redhat.com>
6332         * elf/dl-init.c (_dl_init): Remove internal_function.
6333         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
6334         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
6336 2017-08-14  Florian Weimer  <fweimer@redhat.com>
6338         * elf/rtld.c (_dl_start): Remove internal_function.
6339         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
6340         _dl_start.
6342 2017-08-14  Florian Weimer  <fweimer@redhat.com>
6344         * elf/dl-fini.c (_dl_fini): Remove internal_function
6345         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
6347 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
6349         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
6350         (bit_cpu_SHSTK): Likewise.
6351         (index_cpu_IBT): Likewise.
6352         (index_cpu_SHSTK): Likewise.
6353         (reg_IBT): Likewise.
6354         (reg_SHSTK): Likewise.
6355         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6356         Handle index_cpu_IBT and index_cpu_SHSTK.
6358 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
6360         [BZ #19982]
6361         * po/fr.po: Fix spelling mistake.
6363 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6365         * elf/dl-addr.c (_dl_addr): Remove internal_function.
6366         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
6367         (_dl_catch_error, _dl_receive_error): Likewise.
6368         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
6369         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
6370         (_dl_deallocate_tls): Likewise.
6371         * include/dlfcn.h (_dl_addr): Likewise.
6372         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
6373         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
6374         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
6375         Likewise.
6377 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6379         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
6380         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
6381         internal_function.
6382         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
6384 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6386         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
6387         internal_function.
6388         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
6389         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
6390         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
6391         internal_function from _dl_make_stack_executable_hook member.
6392         (_dl_make_stack_executable): Remove internal_function.
6393         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
6394         Likewise.
6395         * sysdeps/unix/sysv/linux/dl-execstack.c
6396         (_dl_make_stack_executable): Likewise.
6398 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6400         * sysdeps/unix/sysv/linux/netlinkaccess.h
6401         (__netlink_assert_response): Remove internal_function.
6402         * sysdeps/unix/sysv/linux/netlink_assert_response.c
6403         (__netlink_assert_response): Likewise.
6405 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6407         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
6408         internal_function.
6409         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
6411 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6413         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
6414         internal_function.
6415         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
6416         * inet/netgroup.h (__internal_setnetgrent)
6417         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
6418         * inet/getnetgrent_r.c (__internal_setnetgrent)
6419         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
6420         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
6421         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
6422         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
6423         * nss/nsswitch.h (db_lookup_function): Likewise.
6425 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6427         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
6428         Remove internal_function.
6429         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
6430         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
6431         message argument on the stack.
6432         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
6433         Likeweise.
6435 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
6437         Adapt test case data to the changes in the thousands
6438         separators.
6440         [BZ #20756]
6441         * localedata/tst-langinfo.sh: Adapt test case data.
6442         * stdlib/tst-strfmon_l.c: Likewise.
6443         * stdlib/tst-strtod4.c: Likewise.
6444         * stdlib/tst-strtod5i.c: Likewise.
6446 2017-08-11  Florian Weimer  <fweimer@redhat.com>
6448         [BZ #21242]
6449         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
6450         Suppress pedantic warning resulting from statement expression.
6451         (__ASSERT_FUNCTION): Add missing __extension__.
6453 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6455         * benchtests/bench-memmove-large.c: Print output in JSON
6456         format.
6457         * benchtests/bench-memmove.c: Likewise.
6459         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
6460         * benchtests/bench-memchr.c (do_one_test): Likewise.
6461         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
6462         * benchtests/bench-memcpy.c (do_one_test): Likewise.
6463         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
6464         * benchtests/bench-memmove.c (do_one_test): Likewise.
6465         * benchtests/bench-memset-large.c (do_one_test): Likewise.
6466         * benchtests/bench-memset.c (do_one_test): Likewise.
6467         * benchtests/bench-string.h (test_init): Remove memsets.
6469 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
6471         * manual/lang.texi
6472         (Computing the Width of an Integer Data Type): Rename section to
6473         "Width of an Integer Type".  Remove inaccurate statement regarding
6474         lack of C language facilities for determining width of integer
6475         types, and reorder content to improve flow and context of
6476         discussion.
6478 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
6480         * lang.texi (va_copy): Change standard from ISO to C99.
6481         (__va_copy): Add standard and header annotation.
6482         Update description for clarity of origins and current use.
6484 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6486         [BZ #21941]
6487         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
6488         xssqrtqp requires operands to be in Vector Registers
6489         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
6490         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
6491         (__ieee754_sqrtf128): Likewise.
6493 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
6495         * sysdeps/aarch64/memcmp.S (memcmp):
6496         Rewrite of optimized memcmp.
6498 2017-08-10  Florian Weimer  <fweimer@redhat.com>
6500         Introduce ld.so exceptions.
6501         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
6502         (_dl_exception_create, _dl_exception_create_format)
6503         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
6504         (_dl_catch_exception): Declare.
6505         (_dl_catch_error): Update comment.
6506         * elf/dl-error-skeleton.c (struct catch): Replace objname,
6507         errstring, malloced members with exception member.
6508         (_dl_out_of_memory): Remove.
6509         (fatal_error): New function, extracted from _dl_signal_error.
6510         (_dl_signal_exception, _dl_signal_cexception): New functions.
6511         (_dl_signal_error): Call _dl_exception_create to allocate an
6512         exception object.
6513         (_dl_catch_exception): New function, based on _dl_catch_error.
6514         (_dl_catch_error): Implement using _dl_catch_exception.
6515         * elf/dl-exception.c: New file.
6516         * elf/Makefile (dl-routines): Add dl-exception.
6517         (elide-routines.os): Likewise.
6518         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
6519         _dl_exception_create_format, _dl_exception_free.
6520         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
6521         _dl_signal_exception.
6522         * elf/dl-lookup.c (make_string): Remove.
6523         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
6524         _dl_signal_cexception, _dl_exception_free.
6525         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
6526         _dl_signal_exception.
6527         * elf/dl-sym.c (do_sym): Likewise.
6528         * elf/dl-version.c (make_string): Remove.
6529         (match_symbol): Use _dl_exception_create_format,
6530         _dl_signal_cexception, _dl_exception_free.
6531         (_dl_check_map_versions): Likewise.
6532         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
6533         _dl_catch_exception.
6534         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
6535         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
6536         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
6537         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
6538         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
6539         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
6540         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
6541         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
6542         Likewise.
6543         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
6544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
6545         (ld.so): Likewise.
6546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
6547         (ld.so): Likewise.
6548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
6549         Likewise.
6550         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
6551         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
6552         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
6553         Likewise.
6554         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
6555         Likewise.
6556         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
6558 2017-08-10  Florian Weimer  <fweimer@redhat.com>
6560         * inet/net-internal.h (__inet6_scopeid_pton): Remove
6561         attribute_hidden, internal_function.
6562         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
6563         internal_function.
6565 2017-08-10  Florian Weimer  <fweimer@redhat.com>
6567         * malloc/malloc.c (get_max_fast): Reimplement as an inline
6568         function which calls __builtin_unreachable.
6570 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
6572         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
6573         Indian monetary formatting
6574         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
6575         test cases.
6577 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
6579         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
6580         Fix typo in comment.
6582         [BZ #21928]
6583         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
6584         PTRACE_SEIZE_DEVEL): Remove.
6585         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
6586         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6587         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6588         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6589         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6591 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
6593         * posix/bits/types.h (__qaddr_t): Remove.
6595         [BZ #21457]
6596         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
6597         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
6598         __glibc_reserved1.
6599         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
6600         (ucontext_t): Use __ctx with uc_flags.
6601         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
6602         (__ctxt): Likewise.
6603         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
6604         __glibc_reserved1.
6605         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
6606         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
6607         __glibc_reserved1.
6608         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
6609         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
6610         __glibc_reserved1.
6611         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
6612         macro.
6613         (ucontext_t): Use __ctx with uc_flags.
6614         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
6615         (ucontext_t): Use __ctx with uc_flags.
6616         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
6617         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
6618         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
6619         (ucontext_t): Use __ctx with uc_flags.
6620         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
6621         undefine further down.
6622         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
6623         __glibc_reserved1.
6624         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
6625         undefine further down.
6626         (ucontext_t): Use __ctx with uc_flags.
6627         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
6628         undefine further down.
6629         (ucontext_t): Use __ctx with uc_flags.
6630         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
6631         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
6632         Rename uc_pad to __glibc_reserved1.
6633         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
6634         undefine further down.
6635         (ucontext_t): Use __ctx with uc_flags.
6636         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
6637         further down.
6638         (ucontext_t): Use __ctx with uc_flags.
6639         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
6640         __ctx with uc_flags.
6641         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
6642         (ucontext_t): Use __ctx with uc_flags.
6643         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
6644         __ctx with uc_flags.
6646 2017-08-09  Florian Weimer  <fweimer@redhat.com>
6648         [BZ #21932]
6649         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
6650         before early return.
6652 2017-08-09  Andreas Schwab  <schwab@suse.de>
6654         [BZ #21041]
6655         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
6656         renamed alias.
6658         [BZ #21041]
6659         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
6660         tst-compat-forwarder.
6661         (modules-names): Add tst-compat-forwarder-mod.
6662         ($(objpfx)tst-compat-forwarder): Depend on
6663         $(objpfx)tst-compat-forwarder-mod.so.
6664         * nptl/tst-compat-forwarder.c: New file.
6665         * nptl/tst-compat-forwarder-mod.c: New file.
6667 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6669         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
6670         comments.
6672         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
6673         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
6674         memcpy_falkor.
6675         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
6676         Bump.
6677         (__libc_ifunc_impl_list): Add __memcpy_falkor.
6678         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
6679         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
6680         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6681         Add falkor.
6682         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
6683         New macro.
6685 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6687         [BZ #759]
6688         * manual/setjmp.texi (getcontex): Document uc_stack value
6689         compatibility differences.
6691 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
6693         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
6694         (old_malloc_hook): Likewise.
6695         (old_memalign_hook): Likewise.
6696         (old_realloc_hook): Likewise.
6697         (struct hdr): Likewise.
6698         (flood): Likewise.
6699         (freehook): Likewise.
6700         (mallochook): Likewise.
6701         (memalignhook): Likewise.
6702         (reallochook): Likewise.
6703         (mprobe): Likewise.
6704         * malloc/mtrace.c (mallwatch): Likewise.
6705         (tr_old_free_hook): Likewise.
6706         (tr_old_malloc_hook): Likewise.
6707         (tr_old_realloc_hook): Likewise.
6708         (tr_old_memalign_hook): Likewise.
6709         (tr_where): Likewise.
6710         (lock_and_info): Likewise.
6711         (tr_freehook): Likewise.
6712         (tr_mallochook): Likewise.
6713         (tr_reallochook): Likewise.
6714         (tr_memalignhook): Likewise.
6715         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
6716         * misc/mmap.c (__mmap): Likewise.
6717         * misc/mmap64.c (__mmap64): Likewise.
6718         * misc/mprotect.c (__mprotect): Likewise.
6719         * misc/msync.c (msync): Likewise.
6720         * misc/munmap.c (__munmap): Likewise.
6721         * posix/posix_madvise.c (posix_madvise): Likewise.
6722         * socket/send.c (__send): Likewise.
6723         * socket/sendto.c (__sendto): Likewise.
6724         * socket/setsockopt.c (__setsockopt): Likewise.
6725         * string/memcmp.c (__ptr_t): Remove macro.
6726         (MEMCMP): Use void * instead of ptr_t.
6727         * string/memrchr.c (__ptr_t): Remove macro.
6728         (__memrchr): Use void * instead of ptr_t.
6729         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
6730         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6731         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6732         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
6733         * sysdeps/mach/msync.c (msync): Likewise.
6734         * sysdeps/mach/munmap.c (__munmap): Likewise.
6735         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
6736         Likewise.
6737         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
6738         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
6739         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
6740         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
6741         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
6742         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
6743         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
6744         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
6745         Likewise.
6746         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
6747         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
6748         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
6749         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
6750         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
6751         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
6752         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
6753         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
6754         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
6755         Likewise.
6756         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
6757         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
6758         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
6759         (MEMCMP): Use void * instead of ptr_t.
6760         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
6761         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
6763 2017-08-08  Florian Weimer  <fweimer@redhat.com>
6765         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
6766         return statement.
6768 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
6770         [BZ #21913]
6771         * csu/libc-tls.c: Include <startup.h> first.
6772         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
6773         * elf/dl-tunables.c: Include <startup.h> first.
6774         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
6775         * sysdeps/generic/startup.h: New file.
6776         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
6777         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
6778         (I386_USE_SYSENTER): New.  Defined to 0.
6780 2017-08-08  Andreas Schwab  <schwab@suse.de>
6782         [BZ #21041]
6783         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
6784         * nptl/pt-system.c (system): Likewise.
6786 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6788         [BZ #21780]
6789         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
6790         EOPNOTSUPP.
6791         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
6792         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
6793         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
6794         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
6795         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6796         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6797         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6799 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
6801         [BZ #21899]
6802         * bits/sigaction.h (struct sigaction): Define sa_handler and
6803         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
6804         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6805         [__USE_XOPEN_EXTENDED].
6806         (SA_RESTART): Likewise.
6807         (SA_NODEFER): Likewise.
6808         (SA_RESETHAND): Likewise.
6809         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
6810         (struct sigaction): Define sa_handler and sa_sigaction using union
6811         also for [__USE_XOPEN_EXTENDED].
6812         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6813         [__USE_XOPEN_EXTENDED].
6814         (SA_RESTART): Likewise.
6815         (SA_NODEFER): Likewise.
6816         (SA_RESETHAND): Likewise.
6817         * sysdeps/unix/sysv/linux/bits/sigaction.h
6818         (struct sigaction): Define sa_handler and sa_sigaction using union
6819         also for [__USE_XOPEN_EXTENDED].
6820         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6821         [__USE_XOPEN_EXTENDED].
6822         (SA_RESTART): Likewise.
6823         (SA_NODEFER): Likewise.
6824         (SA_RESETHAND): Likewise.
6825         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
6826         (struct sigaction): Define sa_handler and sa_sigaction using union
6827         also for [__USE_XOPEN_EXTENDED].
6828         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6829         [__USE_XOPEN_EXTENDED].
6830         (SA_RESTART): Likewise.
6831         (SA_NODEFER): Likewise.
6832         (SA_RESETHAND): Likewise.
6833         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
6834         (struct sigaction): Define sa_handler and sa_sigaction using union
6835         also for [__USE_XOPEN_EXTENDED].
6836         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6837         [__USE_XOPEN_EXTENDED].
6838         (SA_RESTART): Likewise.
6839         (SA_NODEFER): Likewise.
6840         (SA_RESETHAND): Likewise.
6841         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
6842         (struct sigaction): Define sa_handler and sa_sigaction using union
6843         also for [__USE_XOPEN_EXTENDED].
6844         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6845         [__USE_XOPEN_EXTENDED].
6846         (SA_RESTART): Likewise.
6847         (SA_NODEFER): Likewise.
6848         (SA_RESETHAND): Likewise.
6849         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
6850         (struct sigaction): Define sa_handler and sa_sigaction using union
6851         also for [__USE_XOPEN_EXTENDED].
6852         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6853         [__USE_XOPEN_EXTENDED].
6854         (SA_RESTART): Likewise.
6855         (SA_NODEFER): Likewise.
6856         (SA_RESETHAND): Likewise.
6857         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
6858         (struct sigaction): Define sa_handler and sa_sigaction using union
6859         also for [__USE_XOPEN_EXTENDED].
6860         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6861         [__USE_XOPEN_EXTENDED].
6862         (SA_RESTART): Likewise.
6863         (SA_NODEFER): Likewise.  Define directly rather than as alias.
6864         (SA_RESETHAND): Likewise.
6865         (SA_INTERRUPT): Define only for [__USE_MISC].
6866         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
6867         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
6868         [__USE_MISC].
6869         (SA_STACK): Define only for [__USE_MISC].
6870         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
6871         (struct sigaction): Define sa_handler and sa_sigaction using union
6872         also for [__USE_XOPEN_EXTENDED].
6873         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6874         [__USE_XOPEN_EXTENDED].
6875         (SA_RESTART): Likewise.
6876         (SA_NODEFER): Likewise.
6877         (SA_RESETHAND): Likewise.
6878         (SA_NOPTRACE): Define only for [__USE_MISC].
6880         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
6881         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
6882         (struct catalog_info): Likewise.
6883         * inet/htontest.c (lo): Likewise.
6884         (foo): Likewise.
6885         * inet/inet_lnaof.c (inet_lnaof): Likewise.
6886         * inet/inet_net.c (inet_network): Likewise.
6887         * inet/inet_netof.c (inet_netof): Likewise.
6888         * inet/rcmd.c (__ivaliduser): Likewise.
6889         (iruserok): Likewise.
6890         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
6891         * locale/programs/locale-spec.c (locale_special): Likewise.
6892         * nis/nis_findserv.c (struct findserv_req): Likewise.
6893         (__nis_findfastest_with_timeout): Likewise.
6894         * nss/test-netdb.c (test_network): Likewise.
6895         * resolv/inet_neta.c (inet_neta): Likewise.
6896         * resolv/ns_date.c (ns_datetosecs): Likewise.
6897         (SECS_PER_DAY): Likewise.
6898         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
6899         Likewise.
6900         * resolv/res_comp.c (__putlong): Likewise.
6901         (__putshort): Likewise.
6902         (_getlong): Likewise.
6903         (_getshort): Likewise.
6904         * resolv/res_debug.c (p_time): Likewise.
6905         (precsize_ntoa): Likewise.
6906         (precsize_aton): Likewise.
6907         (latlon2ul): Likewise.
6908         (loc_aton): Likewise.
6909         (loc_ntoa): Likewise.
6910         * resolv/res_hconf.c (struct netaddr): Likewise.
6911         (_res_hconf_reorder_addrs): Likewise.
6912         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
6913         (clnttcp_control): Likewise.
6914         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
6915         (clntudp_control): Likewise.
6916         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
6917         (clntunix_control): Likewise.
6918         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
6919         * sunrpc/rpc/auth.h (union des_block): Likewise.
6920         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
6921         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
6922         (xdrrec_create): Likewise.
6923         (xdrrec_endofrecord): Likewise.
6924         (flush_out): Likewise.
6925         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
6926         (xdrstdio_putlong): Likewise.
6927         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
6928         Likewise.
6930         * misc/sys/cdefs.h (__long_double_t): Remove.
6931         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
6932         instead of __long_double_t,
6933         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
6935 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6937         * benchtests/scripts/compare_strings.py: Avoid display error when
6938         running on a text terminal.
6940         * benchtests/scripts/compare_strings.py (main): Add an
6941         optional -base option.
6942         (process_results): New argument base_func.
6944         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
6945         hardcoding memcpy.
6946         * benchtests/bench-memcpy-large.c (test_name): Likewise.
6947         * benchtests/bench-memcpy-random.c (test_name): Likewise.
6949 2017-08-07  Andreas Schwab  <schwab@suse.de>
6951         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
6952         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
6953         * intl/Makefile ($(objpfx)tst-gettext.out)
6954         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
6955         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
6956         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
6957         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
6958         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
6959         * posix/Makefile ($(objpfx)globtest.out)
6960         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
6961         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
6962         ($(objpfx)tst-printf.out): Likewise.
6963         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
6964         ($(objpfx)tst-setcontext3.out): Likewise.
6966 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
6968         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6969         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
6970         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
6971         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
6972         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
6973         and mptan-fma.
6974         (CFLAGS-doasin-fma.c): New.
6975         (CFLAGS-dosincos-fma.c): Likewise.
6976         (CFLAGS-e_asin-fma.c): Likewise.
6977         (CFLAGS-e_atan2-fma.c): Likewise.
6978         (CFLAGS-e_exp-fma.c): Likewise.
6979         (CFLAGS-e_log-fma.c): Likewise.
6980         (CFLAGS-e_pow-fma.c): Likewise.
6981         (CFLAGS-halfulp-fma.c): Likewise.
6982         (CFLAGS-mpa-fma.c): Likewise.
6983         (CFLAGS-mpatan-fma.c): Likewise.
6984         (CFLAGS-mpatan2-fma.c): Likewise.
6985         (CFLAGS-mpexp-fma.c): Likewise.
6986         (CFLAGS-mplog-fma.c): Likewise.
6987         (CFLAGS-mpsqrt-fma.c): Likewise.
6988         (CFLAGS-mptan-fma.c): Likewise.
6989         (CFLAGS-s_atan-fma.c): Likewise.
6990         (CFLAGS-sincos32-fma.c): Likewise.
6991         (CFLAGS-slowexp-fma.c): Likewise.
6992         (CFLAGS-slowpow-fma.c): Likewise.
6993         (CFLAGS-s_sin-fma.c): Likewise.
6994         (CFLAGS-s_tan-fma.c): Likewise.
6995         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
6996         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
6997         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
6998         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
6999         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
7000         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
7001         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
7002         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
7003         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
7004         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
7005         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
7006         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
7007         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
7008         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
7009         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
7010         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
7011         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
7012         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
7013         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
7014         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
7015         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
7016         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
7017         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
7018         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
7019         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
7020         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7021         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7022         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
7023         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7024         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7025         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7027 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
7029         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
7030         (min_of_type_f): New macro.
7031         (min_of_type_): Likewise.
7032         (min_of_type_l): Likewise.
7033         (min_of_type_f128): Likewise.
7034         (min_of_type): Define using __MATH_TG and taking an expression
7035         argument.
7036         (math_check_force_underflow): Pass expression instead of type to
7037         min_of_type.
7038         (math_check_force_underflow_nonneg): Likewise.
7040 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7042         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
7043         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
7044         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
7046 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7048         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7049         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
7050         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
7051         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
7052         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
7053         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
7054         memcpy_chk-nonshared, mempcpy_chk-nonshared,
7055         memmove_chk-nonshared and memset_chk-nonshared
7056         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
7057         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
7058         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
7059         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
7060         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
7061         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
7062         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
7063         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
7064         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
7065         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
7066         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
7067         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
7068         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
7069         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
7070         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
7071         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
7072         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
7073         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
7074         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
7075         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
7076         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
7077         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
7078         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
7079         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
7080         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
7081         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
7082         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
7083         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
7084         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
7085         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
7086         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
7087         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
7088         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
7089         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
7090         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
7091         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
7092         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
7093         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
7094         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
7095         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
7096         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
7097         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
7098         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
7099         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
7100         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
7101         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
7102         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
7103         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
7104         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
7105         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
7106         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
7107         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
7108         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
7109         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
7110         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
7111         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
7112         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
7113         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
7114         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
7115         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
7116         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
7117         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
7118         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
7119         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
7120         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
7121         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
7122         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
7123         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
7124         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
7125         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
7126         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
7127         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7128         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7129         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7130         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7131         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7132         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7133         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7134         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7135         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7136         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7137         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7138         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7139         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7140         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
7141         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
7142         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7143         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
7144         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7145         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7146         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7147         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7148         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7149         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7150         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
7151         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
7152         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
7153         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
7154         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7155         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
7156         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7157         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7158         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7159         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7160         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7161         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7162         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7163         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7165 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7167         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
7168         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
7169         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
7170         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
7171         svml_d_log2_core-sse2, svml_d_log4_core-sse,
7172         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
7173         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
7174         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
7175         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
7176         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
7177         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
7178         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
7179         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
7180         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
7181         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
7182         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
7183         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
7184         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
7185         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
7186         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
7187         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
7188         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
7189         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
7190         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
7191         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
7192         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
7193         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
7194         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
7195         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
7196         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
7197         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
7198         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
7199         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
7200         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
7201         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
7202         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
7203         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
7204         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
7205         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
7206         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
7207         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
7208         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
7209         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
7210         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
7211         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
7212         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
7213         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
7214         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
7215         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
7216         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
7217         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
7218         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
7219         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
7220         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
7221         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
7222         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
7223         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
7224         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
7225         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
7226         ...
7227         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
7228         Don't include <sysdep.h> nor <init-arch.h>.
7229         (_ZGVbN2v_cos): Removed.
7230         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
7231         ...
7232         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
7233         Don't include <sysdep.h> nor <init-arch.h>.
7234         (_ZGVdN4v_cos): Removed.
7235         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
7236         ...
7237         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
7238         Don't include <sysdep.h> nor <init-arch.h>.
7239         (_ZGVeN8v_cos): Removed.
7240         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
7241         ...
7242         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
7243         Don't include <sysdep.h> nor <init-arch.h>.
7244         (_ZGVbN2v_exp): Removed.
7245         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
7246         ...
7247         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
7248         Don't include <sysdep.h> nor <init-arch.h>.
7249         (_ZGVdN4v_exp): Removed.
7250         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
7251         ...
7252         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
7253         Don't include <sysdep.h> nor <init-arch.h>.
7254         (_ZGVeN8v_exp): Removed.
7255         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
7256         ...
7257         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
7258         Don't include <sysdep.h> nor <init-arch.h>.
7259         (_ZGVbN2v_log): Removed.
7260         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
7261         ...
7262         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
7263         Don't include <sysdep.h> nor <init-arch.h>.
7264         (_ZGVdN4v_log): Removed.
7265         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
7266         ...
7267         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
7268         Don't include <sysdep.h> nor <init-arch.h>.
7269         (_ZGVeN8v_log): Removed.
7270         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
7271         ...
7272         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
7273         Don't include <sysdep.h> nor <init-arch.h>.
7274         (_ZGVbN2vv_pow): Removed.
7275         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
7276         ...
7277         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
7278         Don't include <sysdep.h> nor <init-arch.h>.
7279         (_ZGVdN4vv_pow): Removed.
7280         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
7281         ...
7282         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
7283         Don't include <sysdep.h> nor <init-arch.h>.
7284         (_ZGVeN8vv_pow): Removed.
7285         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
7286         ...
7287         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
7288         Don't include <sysdep.h> nor <init-arch.h>.
7289         (_ZGVbN2v_sin): Removed.
7290         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
7291         ...
7292         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
7293         Don't include <sysdep.h> nor <init-arch.h>.
7294         (_ZGVbN4v_sin): Removed.
7295         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
7296         ...
7297         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
7298         Don't include <sysdep.h> nor <init-arch.h>.
7299         (_ZGVbN8v_sin): Removed.
7300         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
7301         ...
7302         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
7303         Don't include <sysdep.h> nor <init-arch.h>.
7304         (_ZGVbN2vvv_sincos): Removed.
7305         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
7306         ...
7307         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
7308         Don't include <sysdep.h> nor <init-arch.h>.
7309         (_ZGVdN4vvv_sincos): Removed.
7310         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
7311         ...
7312         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
7313         Don't include <sysdep.h> nor <init-arch.h>.
7314         (_ZGVeN8vvv_sincos): Removed.
7315         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
7316         ...
7317         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
7318         Don't include <sysdep.h> nor <init-arch.h>.
7319         (_ZGVeN16v_cosf): Removed.
7320         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
7321         ...
7322         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
7323         Don't include <sysdep.h> nor <init-arch.h>.
7324         (_ZGVbN4v_cosf): Removed.
7325         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
7326         ...
7327         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
7328         Don't include <sysdep.h> nor <init-arch.h>.
7329         (_ZGVdN8v_cosf): Removed.
7330         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
7331         ...
7332         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
7333         Don't include <sysdep.h> nor <init-arch.h>.
7334         (_ZGVeN16v_expf): Removed.
7335         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
7336         ...
7337         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
7338         Don't include <sysdep.h> nor <init-arch.h>.
7339         (_ZGVbN4v_expf): Removed.
7340         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
7341         ...
7342         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
7343         Don't include <sysdep.h> nor <init-arch.h>.
7344         (_ZGVdN8v_expf): Removed.
7345         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
7346         ...
7347         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
7348         Don't include <sysdep.h> nor <init-arch.h>.
7349         (_ZGVeN16v_logf): Removed.
7350         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
7351         ...
7352         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
7353         Don't include <sysdep.h> nor <init-arch.h>.
7354         (_ZGVbN4v_logf): Removed.
7355         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
7356         ...
7357         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
7358         Don't include <sysdep.h> nor <init-arch.h>.
7359         (_ZGVdN8v_logf): Removed.
7360         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
7361         ...
7362         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
7363         Don't include <sysdep.h> nor <init-arch.h>.
7364         (_ZGVeN16vv_powf): Removed.
7365         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
7366         ...
7367         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
7368         Don't include <sysdep.h> nor <init-arch.h>.
7369         (_ZGVbN4vv_powf): Removed.
7370         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
7371         ...
7372         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
7373         Don't include <sysdep.h> nor <init-arch.h>.
7374         (_ZGVdN8vv_powf): Removed.
7375         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
7376         ...
7377         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
7378         Don't include <sysdep.h> nor <init-arch.h>.
7379         (_ZGVeN16vvv_sincosf): Removed.
7380         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
7381         ...
7382         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
7383         Don't include <sysdep.h> nor <init-arch.h>.
7384         (_ZGVbN4vvv_sincosf): Removed.
7385         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
7386         ...
7387         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
7388         Don't include <sysdep.h> nor <init-arch.h>.
7389         (_ZGVdN8vvv_sincosf): Removed.
7390         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
7391         ...
7392         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
7393         Don't include <sysdep.h> nor <init-arch.h>.
7394         (_ZGVeN16v_sinf): Removed.
7395         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
7396         ...
7397         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
7398         Don't include <sysdep.h> nor <init-arch.h>.
7399         (_ZGVbN4v_sinf): Removed.
7400         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
7401         ...
7402         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
7403         Don't include <sysdep.h> nor <init-arch.h>.
7404         (_ZGVdN8v_sinf): Removed.
7406 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7408         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7409         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
7410         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
7411         s_rint-sse4_1 and s_rintf-sse4_1.
7412         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
7413         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7414         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7415         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7416         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7417         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
7418         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
7419         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7420         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7421         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
7422         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
7423         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7424         (__ceil): Removed.
7425         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
7426         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
7427         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7428         (__ceilf): Removed.
7429         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
7430         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
7431         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7432         (__floor): Removed.
7433         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
7434         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
7435         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7436         (__floorf): Removed.
7437         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
7438         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
7439         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7440         (__nearbyint): Removed.
7441         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
7442         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
7443         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7444         (__nearbyintf): Removed.
7445         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
7446         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
7447         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7448         (__rint): Removed.
7449         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
7450         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
7451         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7452         (__rintf): Removed.
7454 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7456         * sysdeps/i386/start.S (_start): Check Check PIC instead of
7457         SHARED.  Avoid dynamic relocation against main in static PIE.
7459 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7461         [BZ #21815]
7462         * elf/Makefile (CFLAGS-tst-prelink.c): New.
7463         (LDFLAGS-tst-prelink): Likewise.
7465 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7467         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
7468         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
7469         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
7470         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
7471         (INTERNAL_SYSCALL_NCS): Likewise.
7472         (LOADARGS_1): Likewise.
7473         (LOADARGS_5): Likewise.
7474         (RESTOREARGS_1): Likewise.
7475         (RESTOREARGS_5): Likewise.
7477 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7479         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
7480         (MEMPCPY_SYMBOL): Likewise.
7481         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7482         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
7483         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
7484         in libc.a.
7485         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7486         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7487         Likewise.
7488         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
7489         (__hidden_ver1): Don't use in libc.a.
7490         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
7491         (__mempcpy): Don't create a weak alias in libc.a.
7492         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
7493         libc.a.
7494         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
7495         (__hidden_ver1): Don't use in libc.a.
7497 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7499         * config.make.in (have-insert): New.
7500         * configure.ac (libc_cv_insert): New.  Set to yes if linker
7501         supports INSERT in linker script.
7502         (AC_SUBST(libc_cv_insert): New.
7503         * configure: Regenerated.
7504         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
7505         if $(have-insert) == yes.
7507 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7509         * elf/Makefile (tests): Add vismain only if
7510         $(have-protected-data) == yes.
7511         (tests-pie): Likewise.
7513 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7515         [BZ #21871]
7516         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
7517         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
7519 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7521         [BZ #21790]
7522         * sysdeps/i386/i586/memset.S
7523         (__memset_zero_constant_len_parameter): Removed.
7524         * sysdeps/i386/i686/memset.S
7525         (__memset_zero_constant_len_parameter): Likewise.
7526         * sysdeps/i386/i686/multiarch/memset_chk.S
7527         (__memset_zero_constant_len_parameter): Likewise.
7528         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
7529         Likewise.
7531 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
7533         * stdlib/getentropy.c (getentropy): Change return type to int.
7535 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
7537         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
7539 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
7541         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
7542         u_intN_t.
7543         * math/s_nexttowardf.c (__nexttowardf): Likewise.
7544         * sysdeps/generic/math_private.h (ieee_double_shape_type):
7545         Likewise.
7546         (ieee_float_shape_type): Likewise.
7547         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
7548         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
7549         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
7550         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7551         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
7552         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
7553         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
7554         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
7555         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7556         Likewise.
7557         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
7558         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7559         (__ieee754_yn): Likewise.
7560         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
7561         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
7562         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
7563         Likewise.
7564         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
7565         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
7566         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
7567         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
7568         (__erfc): Likewise.
7569         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
7570         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
7571         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
7572         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
7573         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
7574         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
7575         Likewise.
7576         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
7577         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
7578         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
7579         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
7580         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
7581         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
7582         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
7583         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
7584         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
7585         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
7586         (__issignaling): Likewise.
7587         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
7588         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
7589         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7590         Likewise.
7591         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
7592         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
7593         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
7594         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
7595         Likewise.
7596         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
7597         Likewise.
7598         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
7599         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
7600         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
7601         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
7602         (__erfcf): Likewise.
7603         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
7604         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
7605         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
7606         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
7607         Likewise.
7608         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
7609         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
7610         Likewise.
7611         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
7612         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
7613         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
7614         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
7615         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
7616         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
7617         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
7618         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
7619         Likewise.
7620         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
7621         Likewise.
7622         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
7623         Likewise.
7624         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
7625         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7626         Likewise.
7627         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
7628         Likewise.
7629         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7630         (__ieee754_ynl): Likewise.
7631         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7632         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
7633         Likewise.
7634         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
7635         Likewise.
7636         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
7637         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
7638         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
7639         Likewise.
7640         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
7641         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
7642         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
7643         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
7644         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
7645         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
7646         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
7647         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
7648         Likewise.
7649         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
7650         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
7651         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
7652         Likewise.
7653         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
7654         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
7655         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
7656         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
7657         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
7658         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
7659         Likewise.
7660         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
7661         Likewise.
7662         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7663         Likewise.
7664         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7665         Likewise.
7666         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
7667         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
7668         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
7669         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
7670         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
7671         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
7672         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
7673         Likewise.
7674         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7675         Likewise.
7676         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7677         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
7678         Likewise.
7679         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
7680         (__ieee754_remainderl): Likewise.
7681         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
7682         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
7683         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
7684         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
7685         Likewise.
7686         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
7687         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7688         Likewise.
7689         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
7690         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
7691         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
7692         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
7693         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
7694         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7695         Likewise.
7696         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
7697         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
7698         (__ieee754_y0l): Likewise.
7699         (pzero): Likewise.
7700         (qzero): Likewise.
7701         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7702         (__ieee754_y1l): Likewise.
7703         (pone): Likewise.
7704         (qone): Likewise.
7705         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7706         (__ieee754_ynl): Likewise.
7707         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7708         (__ieee754_lgammal_r): Likewise.
7709         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
7710         Likewise.
7711         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
7712         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
7713         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
7714         (__erfcl): Likewise.
7715         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
7716         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
7717         Likewise.
7718         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
7719         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
7720         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
7721         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
7722         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
7723         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7724         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7725         Likewise.
7726         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
7727         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
7728         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
7729         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
7730         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7731         Likewise.
7732         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
7733         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
7734         Likewise.
7735         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
7736         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
7737         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
7738         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
7739         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
7741 2017-08-03  Florian Weimer  <fweimer@redhat.com>
7743         [BZ #21885]
7744         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
7745         on memory allocation failure.
7747 2017-08-03  Alan Modra  <amodra@gmail.com>
7749         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
7750         tst-tlsopt-powerpc.c with function name change and no test harness.
7751         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
7752         Call tls_get_addr_opt_test.
7753         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
7754         (modules-names): Add mod-tlsopt-powerpc.
7755         (mod-tlsopt-powerpc.so-no-z-defs): Define.
7756         (tst-tlsopt-powerpc): Depend on .so.
7757         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
7758         define.  Expand use in TLS_GD and TLS_LD.
7760 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7762         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
7763         function.
7764         * sysdeps/posix/shm_open.c: Include <pthread.h>.
7766 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
7768         [BZ #21686]
7769         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
7770         comparing size with that of double.
7771         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
7772         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
7773         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
7774         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
7775         (__TGMATH_BINARY_REAL_IMAG): Likewise.
7776         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
7777         unsigned __int128 types.
7779 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
7781         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
7782         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
7783         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
7784         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
7785         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
7787 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
7789         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
7791 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
7793         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
7794         of SHARED.
7795         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
7796         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
7797         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
7798         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
7799         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
7800         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
7801         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
7803 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
7805         [BZ #21685]
7806         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
7807         bit-field expressions passed to sizeof or typeof.
7808         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7809         (__TGMATH_F128): Likewise.
7810         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7811         (__TGMATH_CF128): Likewise.
7812         (__TGMATH_UNARY_REAL_ONLY): Likewise.
7813         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
7814         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
7815         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
7816         (__TGMATH_BINARY_REAL_ONLY): Likewise.
7817         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
7818         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
7819         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
7820         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
7821         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
7822         (__TGMATH_UNARY_REAL_IMAG): Likewise.
7823         (__TGMATH_UNARY_IMAG): Likewise.
7824         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7825         (__TGMATH_BINARY_REAL_IMAG): Likewise.
7826         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
7827         type.
7828         (define_vars_for_type): Handle bit_field type specially.
7829         (Tests.__init__): Declare structure with bit-field element.
7831 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
7833         [BZ #21791]
7834         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
7835         (MEMCPY_CHK): Define only if SHARED is defined.
7836         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
7837         Likewise.
7838         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
7839         Likewise.
7841 See ChangeLog.18 for earlier changes.