Remove ENOSYS math/ function stubs.
[glibc.git] / ChangeLog
blobb9ce2753a94476c315d66be325e4e2b6b4b8c472
1 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
3         * math/e_acoshl.c: Remove.
4         * math/e_acosl.c: Likewise.
5         * math/e_asinl.c: Likewise.
6         * math/e_atan2l.c: Likewise.
7         * math/e_atanhl.c: Likewise.
8         * math/e_coshl.c: Likewise.
9         * math/e_expl.c: Likewise.
10         * math/e_fmodl.c: Likewise.
11         * math/e_gammal_r.c: Likewise.
12         * math/e_hypotl.c: Likewise.
13         * math/e_j0l.c: Likewise.
14         * math/e_j1l.c: Likewise.
15         * math/e_jnl.c: Likewise.
16         * math/e_lgammal_r.c: Likewise.
17         * math/e_log10l.c: Likewise.
18         * math/e_log2l.c: Likewise.
19         * math/e_logl.c: Likewise.
20         * math/e_powl.c: Likewise.
21         * math/e_rem_pio2l.c: Likewise.
22         * math/e_sinhl.c: Likewise.
23         * math/e_sqrtf128.c: Likewise.
24         * math/e_sqrtl.c: Likewise.
25         * math/k_cosl.c: Likewise.
26         * math/k_sinl.c: Likewise.
27         * math/k_tanl.c: Likewise.
28         * math/s_asinhl.c: Likewise.
29         * math/s_atanl.c: Likewise.
30         * math/s_cbrtl.c: Likewise.
31         * math/s_erfl.c: Likewise.
32         * math/s_expm1l.c: Likewise.
33         * math/s_log1pl.c: Likewise.
34         * math/s_tanhl.c: Likewise.
36 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
38         [BZ #21745]
39         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
40         [$(subdir) = math] (sysdep_calls): New variable.  Has the
41         previous contents of sysdep_routines, but re-sorted..
42         [$(subdir) = math] (sysdep_routines): Re-use the contents from
43         sysdep_calls.
44         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
45         defined in sysdep_calls and replace by the respective m_* names.
46         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
47         (compat_symbol): Undefine to avoid duplicated compat symbols in
48         libc.
50 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
52         * math/s_fmaf.c: Include <libm-alias-float.h>.
53         (fmaf): Define using libm_alias_float.
54         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
55         (acosf): Define using libm_alias_float.
56         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
57         (acoshf): Define using libm_alias_float.
58         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
59         (asinf): Define using libm_alias_float.
60         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
61         (atan2f): Define using libm_alias_float.
62         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
63         (atanhf): Define using libm_alias_float.
64         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
65         (coshf): Define using libm_alias_float.
66         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
67         (exp10f): Define using libm_alias_float.
68         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
69         (fmodf): Define using libm_alias_float.
70         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
71         (hypotf): Define using libm_alias_float.
72         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
73         (j0f): Define using libm_alias_float.
74         (y0f): Likewise.
75         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
76         (j1f): Define using libm_alias_float.
77         (y1f): Likewise.
78         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
79         (jnf): Define using libm_alias_float.
80         (ynf): Likewise.
81         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
82         (log10f): Define using libm_alias_float.
83         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
84         (log2f): Define using libm_alias_float.
85         * math/w_logf_compat.c: Include <libm-alias-float.h>.
86         (logf): Define using libm_alias_float.
87         * math/w_powf_compat.c: Include <libm-alias-float.h>.
88         (powf): Define using libm_alias_float.
89         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
90         (remainderf): Define using libm_alias_float.
91         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
92         (sinhf): Define using libm_alias_float.
93         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
94         (sqrtf): Define using libm_alias_float.
95         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
96         (tgammaf): Define using libm_alias_float.
98 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
100         * include/math.h (roundeven): Change hidden_proto call to
101         __roundeven.
102         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
103         alias.
104         [NO_LONG_DOUBLE] (__j0l): New strong alias.
105         (y0): Rename to __y0 and define as weak alias.
106         [NO_LONG_DOUBLE] (__y0l): New strong alias.
107         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
108         alias.
109         (y0f): Rename to __y0f and define as weak alias.
110         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
111         alias.
112         [NO_LONG_DOUBLE] (__j1l): New strong alias.
113         (y1): Rename to __y1 and define as weak alias.
114         [NO_LONG_DOUBLE] (__y1l): New strong alias.
115         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
116         alias.
117         (y1f): Rename to __y1f and define as weak alias.
118         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
119         alias.
120         [NO_LONG_DOUBLE] (__jnl): New strong alias.
121         (yn): Rename to __yn and define as weak alias.
122         [NO_LONG_DOUBLE] (__ynl): New strong alias.
123         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
124         alias.
125         (ynf): Rename to __ynf and define as weak alias.
126         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
127         (fromfp): Define as weak alias.
128         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
129         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
130         (fromfpx): Define as weak alias.
131         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
132         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
133         __getpayload and define as weak alias.
134         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
135         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
136         __roundeven and define as weak alias.
137         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
138         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
139         __setpayload.
140         (setpayload): Define as weak alias.
141         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
142         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
143         __setpayloadsig.
144         (setpayloadsig): Define as weak alias.
145         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
146         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
147         __totalorder and define as weak alias.
148         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
149         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
150         to __totalordermag and define as weak alias.
151         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
152         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
153         (ufromfp): Define as weak alias.
154         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
155         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
156         __ufromfpx.
157         (ufromfpx): Define as weak alias.
158         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
159         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
160         Rename to __getpayload and define as weak alias.
161         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
162         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
163         Rename to __roundeven and define as weak alias.
164         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
165         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
166         Rename to __totalorder and define as weak alias.
167         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
168         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
169         (totalordermag): Rename to __totalordermag and define as weak
170         alias.
171         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
172         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
173         macro.
174         (__roundevenl): Likewise.
175         (__totalorderl): Likewise.
176         (__totalordermagl): Likewise
177         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
178         __fromfpf128.
179         (fromfpf128): Define as weak alias.
180         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
181         __fromfpxf128.
182         (fromfpxf128): Define as weak alias.
183         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
184         __setpayloadf128.
185         (setpayloadf128): Define as weak alias.
186         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
187         __setpayloadsigf128.
188         (setpayloadsigf128): Define as weak alias.
189         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
190         __ufromfpf128.
191         (ufromfpf128): Define as weak alias.
192         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
193         __ufromfpxf128.
194         (ufromfpxf128): Define as weak alias.
195         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
196         (fromfpf): Define as weak alias.
197         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
198         __fromfpxf.
199         (fromfpxf): Define as weak alias.
200         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
201         __getpayloadf and define as weak alias.
202         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
203         __roundevenf and define as weak alias.
204         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
205         __setpayloadf.
206         (setpayloadf): Define as weak alias.
207         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
208         __setpayloadsigf.
209         (setpayloadsigf): Define as weak alias.
210         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
211         __totalorderf and define as weak alias.
212         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
213         Rename to __totalordermagf and define as weak alias.
214         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
215         __ufromfpf.
216         (ufromfpf): Define as weak alias.
217         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
218         __ufromfpxf.
219         (ufromfpxf): Define as weak alias.
220         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
221         __fromfpl.
222         (fromfpl): Define as weak alias.
223         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
224         __fromfpxl.
225         (fromfpxl): Define as weak alias.
226         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
227         to __getpayloadl and define as weak alias.
228         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
229         __roundevenl and define as weak alias.
230         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
231         __setpayloadl.
232         (setpayloadl): Define as weak alias.
233         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
234         __setpayloadsigl.
235         (setpayloadsigl): Define as weak alias.
236         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
237         to __totalorderl and define as weak alias.
238         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
239         Rename to __totalordermagl and define as weak alias.
240         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
241         __ufromfpl.
242         (ufromfpl): Define as weak alias.
243         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
244         __ufromfpxl.
245         (ufromfpxl): Define as weak alias.
246         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
247         __fromfpl.
248         (fromfpl): Define as weak alias.
249         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
250         __fromfpxl.
251         (fromfpxl): Define as weak alias.
252         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
253         Rename to __getpayloadl and define as weak alias.
254         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
255         to __roundevenl and define as weak alias.  Call __roundeven
256         instead of roundeven.
257         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
258         __setpayloadl.
259         (setpayloadl): Define as weak alias.
260         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
261         __setpayloadsigl.
262         (setpayloadsigl): Define as weak alias.
263         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
264         Rename to __totalorderl and define as weak alias.
265         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
266         Rename to __totalordermagl and define as weak alias.
267         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
268         __ufromfpl.
269         (ufromfpl): Define as weak alias.
270         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
271         __ufromfpxl.
272         (ufromfpxl): Define as weak alias.
273         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
274         __fromfpl.
275         (fromfpl): Define as weak alias.
276         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
277         __fromfpxl.
278         (fromfpxl): Define as weak alias.
279         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
280         __getpayloadl and define as weak alias.
281         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
282         __roundevenl and define as weak alias.
283         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
284         __setpayloadl.
285         (setpayloadl): Define as weak alias.
286         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
287         __setpayloadsigl.
288         (setpayloadsigl): Define as weak alias.
289         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
290         __totalorderl and define as weak alias.
291         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
292         Rename to __totalordermagl and define as weak alias.
293         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
294         __ufromfpl.
295         (ufromfpl): Define as weak alias.
296         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
297         __ufromfpxl.
298         (ufromfpxl): Define as weak alias.
300 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
302         * benchtests/bench-string.h (realloc_bufs): New function.
303         (test_init): Call it.
304         * benchtests/bench-memset-large.c (do_test): Likewise.
305         * benchtests/bench-memset.c (do_test): Likewise.
307         * benchtests/bench-memset-large.c: Print output in JSON
308         format.
309         * benchtests/bench-memset.c: Likewise.
311 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
313         [BZ #21084]
314         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
315         * iconvdata/Makefile: Add IBM858.
316         * iconvdata/gconv-modules: Likewise.
317         * iconvdata/tst-tables.sh: Likewise.
318         * iconvdata/ibm858.c: New file.
319         * localedata/charmaps/IBM858: Likewise.
321 2017-09-14  Akhilesh Kumar <akhilesh.k@samsung.com>
323         [BZ #22023]
324         * locales/niu_NZ (LC_TIME): copy "niu_NU".
325         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
327 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
329         [BZ #22112]
330         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
331         and add tel_int_fmt.
333 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
335         * sysdeps/generic/libm-alias-float128.h: New file.
336         * sysdeps/generic/math-type-macros-float128.h: Include
337         <libm-alias-float128.h>.
338         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
340 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
342         * sysdeps/generic/libm-alias-ldouble.h: New file.
343         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
344         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
345         * sysdeps/generic/math-type-macros-ldouble.h: Include
346         <libm-alias-ldouble.h>.
347         [!declare_mgen_alias] (declare_mgen_alias): Define to use
348         libm_alias_ldouble.
350 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
352         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
353         * math/w_exp_compat.c: ... here.
354         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
355         * math/w_expf_compat.c: ... here.
356         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
357         * math/w_expl_compat.c: ... here.
358         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
359         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
360         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
361         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
363 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
365         * math/w_scalbln_template.c (strong_alias): Do not undefine and
366         redefine.
367         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
368         macro.
369         (ldexpl): Only define as compat symbol for libc, not libm.
370         (scalbnl): Define as compat symbol for libc here.
371         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
372         define for [IS_IN (libc)].
373         (__ldexpl_2): Remove alias.
374         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
375         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
376         name in long_double_symbol call.
377         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
378         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
379         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
380         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
381         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
382         Remove macro.
383         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
384         Define as compat symbol.
386 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
388         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
389         * sysdeps/unix/sysv/linux/alpha/Makefile
390         [$(subdir) = csu] (sysdep_routines): Remove rule.
392 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
394         * sysdeps/generic/libm-alias-double.h: New file.
395         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
396         * sysdeps/generic/math-type-macros-double.h: Include
397         <libm-alias-double.h>.
398         [declare_mgen_alias] (declare_mgen_alias): Define to use
399         libm_alias_double.
400         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
401         (M_LIBM_NEED_COMPAT): Remove macro.
402         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
403         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
404         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
405         code.
406         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
407         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
408         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
409         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
410         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
411         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
412         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
413         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
414         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
415         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
416         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
417         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
418         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
419         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
420         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
421         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
422         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
423         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
424         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
425         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
426         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
427         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
428         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
429         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
430         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
431         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
432         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
433         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
434         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
435         macro.
436         (declare_mgen_alias): New macro.
437         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
438         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
440         (M_LIBM_NEED_COMPAT): Remove macro.
441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
442         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
443         <first-versions.h>.
444         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
445         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
447 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
449         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
450         (declare_mgen_alias_2): Remove.
451         * sysdeps/generic/math-type-macros-double.h
452         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
453         Likewise.
454         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
455         alias.
456         (ldexp): Define with declare_mgen_alias.
457         (scalbn): Likewise.
459 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
461         * grp/initgroups.c: Include config.h.
462         (DEFAULT_CONFIG): New macro.
463         (internal_getgrouplist): Use DEFAULT_CONFIG.
464         * nscd/initgrcache.c (addinitgroupsX): Likewise.
465         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
466         (DEFAULT_DEFCONFIG): New macro.
467         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
468         * nss/grp-lookup.c: Include config.h
469         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
470         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
471         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
472         * manual/nss.texi: Update default values section.
474 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
476         [BZ #21967]
477         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
478         New.
479         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
480         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
481         Handle MathVec_Prefer_No_AVX512.
482         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
483         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
484         is set.
486 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
488         * posix/sched_primax.c (__sched_get_priority_max): Add
489         libc_hidden_def.
490         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
491         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
492         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
493         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
494         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
495         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
496         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
497         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
498         Add aliases.
500 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
502         * sysdeps/generic/libm-alias-float.h: New file.
503         * sysdeps/generic/math-type-macros-float.h: Include
504         <libm-alias-float.h>.
505         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
507 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
509         [BZ #22093]
510         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
511         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
512         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
513         (HWCAP_IMPORTANT): Likewise.
514         (HWCAP_X86_64): New enum.
515         (HWCAP_X86_AVX512_1): Updated.
516         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
517         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
518         (modules-names): Add x86_64/tst-x86_64mod-1.
519         (LDFLAGS-tst-x86_64mod-1.so): New.
520         ($(objpfx)tst-x86_64-1): Likewise.
521         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
522         (tst-x86_64-1-clean): Likewise.
523         * sysdeps/x86_64/tst-x86_64-1.c: New file.
524         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
526 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
528         * po/sv.po: Update translations.
529         * po/fr.po: Likewise.
531 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
533         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
534         seconds.
535         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
536         seconds.
537         * elf/rtld-Rules: Fix $(error) use.
539 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
541         [BZ #14925]
542         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
543         * locale/iso-639.def: Change “Bengali” to “Bangla”.
544         * localedata/locales/bn_BD: “Bengali” was still used in some
545         comments. Change it to “Bangla”.
547 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
549         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
551 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
553         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
554         thunderx2t99p1 to list of cpu names.
555         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
556         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
558 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
560         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
561         Use strcmp instead of tunable_is_name.
563 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
565         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
566         (F_GET_RW_HINT): New macro.
567         [__USE_GNU] (F_SET_RW_HINT): Likewise.
568         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
569         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
570         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
571         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
572         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
573         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
574         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
575         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
577         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
578         (F_ADD_SEALS): New macro.
579         [__USE_GNU] (F_GET_SEALS): Likewise.
580         [__USE_GNU] (F_SEAL_SEAL): Likewise.
581         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
582         [__USE_GNU] (F_SEAL_GROW): Likewise.
583         [__USE_GNU] (F_SEAL_WRITE): Likewise.
585 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
587         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
588         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
589         * posix/glob_internal.h (__glob_pattern_type):
590         * posix/glob.c (glob):
591         * posix/glob_pattern_p.c (__glob_pattern_p):
592         Use them.
594         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
595         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
596         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
597         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
598         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
600         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
601         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
602         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
603         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
604         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
605         * sysdeps/wordsize-64/glob.c: Likewise.
606         * sysdeps/wordsize-64/glob64.c: Likewise.
607         * sysdeps/wordsize-64/globfree.c: Likewise.
608         * sysdeps/wordsize-64/globfree64.c: Likewise.
609         * sysdeps/unix/sysv/linux/glob.c: New file.
610         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
611         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
612         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
613         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
614         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
615         adds !GLOB_NO_OLD_VERSION as an extra condition.
616         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
617         using relative path instead of absolute one.
618         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
619         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
620         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
621         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
622         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
623         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
625         [BZ #1062]
626         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
627         (glob): Use the same scratch buffer for both getlogin_r and
628         getpwnam_r.  Don’t require preallocation of the login name.  This
629         simplifies storage allocation, and corrects the handling of
630         long login names.
632         [BZ #1062]
633         * posix/glob.c (glob): Port recent patches to platforms
634         lacking getpwnam_r.
635         (glob): Fix longstanding misuse of errno after getpwnam_r, which
636         returns an error number rather than setting errno.
638         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
639         instead of GCC extension.
640         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
641         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
642         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
644         [BZ #866]
645         [BZ #1062]
646         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
647         * posix/bug-glob1.c: Remove file.
648         * posix/tst-glob_symlinks.c: New file.
649         * posix/glob.c (__lstat64): New macro.
650         (is_dir): New function.
651         (glob, glob_in_dir): Match symlinks even if they are dangling.
652         (link_stat, link_exists_p): Remove.  All uses removed.
654         [BZ #1062]
655         [BZ #19971]
656         * posix/glob.c (struct readdir_result): Remove skip_entry member.
657         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
658         All uses removed.
660         [BZ #1062]
661         * posix/Makefile (routines): Add globfree, globfree64, and
662         glob_pattern_p.
663         * posix/flexmember.h: New file.
664         * posix/glob_internal.h: Likewise.
665         * posix/glob_pattern_p.c: Likewise.
666         * posix/globfree.c: Likewise.
667         * posix/globfree64.c: Likewise.
668         * sysdeps/gnu/globfree64.c: Likewise.
669         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
670         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
671         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
672         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
673         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
674         * sysdeps/wordsize-64/globfree.c: Likewise.
675         * sysdeps/wordsize-64/globfree64.c: Likewise.
676         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
677         [NDEBUG): Remove comments.
678         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
679         (dirent_type): New type.  Use uint_fast8_t not
680         uint8_t, as C99 does not require uint8_t.
681         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
682         (struct readdir_result): Use dirent_type.  Do not define skip_entry
683         unless it is needed; this saves a byte on platforms lacking d_ino.
684         (readdir_result_type, readdir_result_skip_entry):
685         New functions, replacing ...
686         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
687          these functions, which were removed.  This makes the callers
688         easier to read.  All callers changed.
689         (D_INO_TO_RESULT): Now empty if there is no d_ino.
690         (size_add_wrapv, glob_use_alloca): New static functions.
691         (glob, glob_in_dir): Check for size_t overflow in several places,
692         and fix some size_t checks that were not quite right.
693         Remove old code using SHELL since Bash no longer
694         uses this.
695         (glob, prefix_array): Separate MS code better.
696         (glob_in_dir): Remove old Amiga and VMS code.
697         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
698         separate files.
699         (glob_in_dir): Do not rely on undefined behavior in accessing
700         struct members beyond their bounds.  Use a flexible array member
701         instead
702         (link_stat): Rename from link_exists2_p and return -1/0 instead of
703         0/1.  Caller changed.
704         (glob): Fix memory leaks.
705         * posix/glob64 (globfree64): Move to separate file.
706         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
707         (globfree64): Remove hidden alias.
708         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
709         oldglob.
710         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
711         separate file.
712         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
713         define.
714         Move compat code to separate file.
715         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
716         separate file.
718 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
720         * resolv/tst-resolv-qtypes.c (domain): Changed to
721         "const char domain[] =".
723 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
725         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
726         version to 3.1.6.
728         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
729         (TCP_MD5SIG_EXT): Likewise.
730         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
731         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
732         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
734         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
736 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
738         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
740 2017-09-07  Akhilesh Kumar <akhilesh.k@samsung.com>
742         [BZ #22100]
743         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
745 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
747         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
748         before assuming that the file is empty.  Avoid testing buffer content
749         when nread == 0.
751 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
753         [BZ #18858]
754         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
755         Remove define.
756         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
757         Likewise.
758         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
759         Likewise.
760         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
761         Likewise.
762         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
763         Likewise.
764         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
765         Likewise.
766         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
767         Likewise.
769 2017-09-06  Florian Weimer  <fweimer@redhat.com>
771         * malloc/dynarray_emplace_enlarge.c
772         (__libc_dynarray_emplace_enlarge): Add missing else.
774 2017-09-06  Florian Weimer  <fweimer@redhat.com>
776         [BZ #22096]
777         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
778         case of failure to obtain the global conf object.
780 2017-09-06  Florian Weimer  <fweimer@redhat.com>
782         [BZ #22095]
783         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
784         dynarray allocation failure.
786 2017-09-06  Florian Weimer  <fweimer@redhat.com>
788         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
789         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
790         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
791         New functions.
792         (response): Call them.  Add 'p', '6' flag processing.
793         (test_reverse): New function.
794         (test_get2_any): Call it.
795         (test_no_inet6): Add 'p' test.
796         (test_inet6): Likewise.
798 2017-09-06  Florian Weimer  <fweimer@redhat.com>
800         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
801         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
802         the QNAME.
803         (test_gai): Adjust query names.  Add additional tests.
804         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
805         test_get2.  Adjust query names.  Add additional tests.
806         (test_no_inet6): New function, extracted from threadfunc.
807         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
808         Add additional tests.
810 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
812         [BZ #22070]
813         * localedata/unicode-gen/utf8_gen.py: Set the width for
814         characters with Prepended_Concatenation_Mark property to 1
815         * localedata/charmaps/UTF-8: Updated using the improved script.
817 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
819         [BZ #21750]
820         * localedata/unicode-gen/utf8_gen.py: Improve the script to
821         use the range notation for all ranges of neighbouring characters
822         with the same width.
824 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
826         * sysdeps/generic/math-type-macros-double.h: Include
827         <math-svid-compat.h>.
828         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
829         * sysdeps/generic/math-type-macros-float.h: Include
830         <math-svid-compat.h>.
831         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
832         * sysdeps/generic/math-type-macros-ldouble.h: Include
833         <math-svid-compat.h>.
834         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
835         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
836         condition.
837         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
838         * math/w_acosf_compat.c: Likewise.
839         * math/w_acosh_compat.c: Likewise.
840         * math/w_acoshf_compat.c: Likewise.
841         * math/w_acoshl_compat.c: Likewise.
842         * math/w_acosl_compat.c: Likewise.
843         * math/w_asin_compat.c: Likewise.
844         * math/w_asinf_compat.c: Likewise.
845         * math/w_asinl_compat.c: Likewise.
846         * math/w_atan2_compat.c: Likewise.
847         * math/w_atan2f_compat.c: Likewise.
848         * math/w_atan2l_compat.c: Likewise.
849         * math/w_atanh_compat.c: Likewise.
850         * math/w_atanhf_compat.c: Likewise.
851         * math/w_atanhl_compat.c: Likewise.
852         * math/w_cosh_compat.c: Likewise.
853         * math/w_coshf_compat.c: Likewise.
854         * math/w_coshl_compat.c: Likewise.
855         * math/w_exp10_compat.c: Likewise.
856         * math/w_exp10f_compat.c: Likewise.
857         * math/w_exp10l_compat.c: Likewise.
858         * math/w_exp2_compat.c: Likewise.
859         * math/w_exp2f_compat.c: Likewise.
860         * math/w_exp2l_compat.c: Likewise.
861         * math/w_fmod_compat.c: Likewise.
862         * math/w_fmodf_compat.c: Likewise.
863         * math/w_fmodl_compat.c: Likewise.
864         * math/w_hypot_compat.c: Likewise.
865         * math/w_hypotf_compat.c: Likewise.
866         * math/w_hypotl_compat.c: Likewise.
867         * math/w_j0_compat.c: Likewise.
868         * math/w_j0f_compat.c: Likewise.
869         * math/w_j0l_compat.c: Likewise.
870         * math/w_j1_compat.c: Likewise.
871         * math/w_j1f_compat.c: Likewise.
872         * math/w_j1l_compat.c: Likewise.
873         * math/w_jn_compat.c: Likewise.
874         * math/w_jnf_compat.c: Likewise.
875         * math/w_jnl_compat.c: Likewise.
876         * math/w_lgamma_r_compat.c: Likewise.
877         * math/w_lgammaf_r_compat.c: Likewise.
878         * math/w_lgammal_r_compat.c: Likewise.
879         * math/w_log10_compat.c: Likewise.
880         * math/w_log10f_compat.c: Likewise.
881         * math/w_log10l_compat.c: Likewise.
882         * math/w_log2_compat.c: Likewise.
883         * math/w_log2f_compat.c: Likewise.
884         * math/w_log2l_compat.c: Likewise.
885         * math/w_log_compat.c: Likewise.
886         * math/w_logf_compat.c: Likewise.
887         * math/w_logl_compat.c: Likewise.
888         * math/w_pow_compat.c: Likewise.
889         * math/w_powf_compat.c: Likewise.
890         * math/w_powl_compat.c: Likewise.
891         * math/w_remainder_compat.c: Likewise.
892         * math/w_remainderf_compat.c: Likewise.
893         * math/w_remainderl_compat.c: Likewise.
894         * math/w_sinh_compat.c: Likewise.
895         * math/w_sinhf_compat.c: Likewise.
896         * math/w_sinhl_compat.c: Likewise.
897         * math/w_sqrt_compat.c: Likewise.
898         * math/w_sqrtf_compat.c: Likewise.
899         * math/w_sqrtl_compat.c: Likewise.
900         * math/w_tgamma_compat.c: Likewise.
901         * math/w_tgammaf_compat.c: Likewise.
902         * math/w_tgammal_compat.c: Likewise.
903         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
904         [LIBM_SVID_COMPAT].
905         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
906         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
907         [LIBM_SVID_COMPAT].
908         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
909         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
910         [LIBM_SVID_COMPAT].
911         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
912         * sysdeps/i386/fpu/w_sqrt.c: New file.
913         * sysdeps/ia64/fpu/w_acos.c: Likewise.
914         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
915         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
916         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
917         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
918         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
919         * sysdeps/ia64/fpu/w_asin.c: Likewise.
920         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
921         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
922         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
923         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
924         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
925         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
926         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
927         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
928         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
929         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
930         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
931         * sysdeps/ia64/fpu/w_exp.c: Likewise.
932         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
933         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
934         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
935         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
936         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
937         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
938         * sysdeps/ia64/fpu/w_expf.c: Likewise.
939         * sysdeps/ia64/fpu/w_expl.c: Likewise.
940         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
941         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
942         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
943         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
944         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
945         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
946         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
947         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
948         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
949         * sysdeps/ia64/fpu/w_log.c: Likewise.
950         * sysdeps/ia64/fpu/w_log10.c: Likewise.
951         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
952         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
953         * sysdeps/ia64/fpu/w_log2.c: Likewise.
954         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
955         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
956         * sysdeps/ia64/fpu/w_logf.c: Likewise.
957         * sysdeps/ia64/fpu/w_logl.c: Likewise.
958         * sysdeps/ia64/fpu/w_pow.c: Likewise.
959         * sysdeps/ia64/fpu/w_powf.c: Likewise.
960         * sysdeps/ia64/fpu/w_powl.c: Likewise.
961         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
962         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
963         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
964         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
965         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
966         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
967         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
968         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
969         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
970         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
971         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
972         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
973         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
974         [LIBM_SVID_COMPAT].
975         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
976         * sysdeps/ieee754/k_standard.c: Likewise.
977         * sysdeps/ieee754/k_standardf.c: Likewise.
978         * sysdeps/ieee754/k_standardl.c: Likewise.
979         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
980         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
981         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
982         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
983         long_double_symbol call on [LIBM_SVID_COMPAT].
984         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
985         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
986         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
987         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
988         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
989         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
990         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
991         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
992         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
993         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
994         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
995         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
996         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
997         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
998         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
999         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
1000         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
1001         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
1002         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
1003         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
1004         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
1005         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
1007 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
1009         * include/shlib-compat.h (TEST_COMPAT): New Macro.
1010         * malloc/tst-mallocstate.c: Convert from test-skeleton
1011         to test-driver.  Ifdef code using TEST_COMPAT macro.
1012         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
1013         * math/test-matherr.c: Likewise.
1015 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
1017         [BZ #22086]
1018         * debug/pcprofiledump.c (main): Use byte-swapped mask when
1019         comparing word with byte-swapped constant.
1021 2017-09-05  Chris Leonard <cjlhomeaddress@gmail.com>
1023         [BZ #20498]
1024         * locale/iso-639.def: add Miskito.
1025         * localedata/SUPPORTED: Add miq_NI/UTF-8.
1026         * localedata/locales/miq_NI: New file.
1028 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1030         [BZ #18822]
1031         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
1032         (__mkdir): Likewise.
1033         * io/chmod.c (__chmod): Add libc_hidden_def.
1034         * io/mkdir.c (__mkdir): Likewise.
1035         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
1036         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
1037         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
1038         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
1040 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
1042         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1043         version to 4.13.
1045         [BZ #22082]
1046         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
1047         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
1049 2017-09-04  Florian Weimer  <fweimer@redhat.com>
1051         * math/math.h: Issue warning if log is defined.
1053 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
1055         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1056         kernel version to 4.13.
1058 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1060         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
1061         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
1062         parameter.
1063         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
1064         just <bits/types.h>.
1065         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
1066         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
1067         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
1068         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
1069         * misc/preadv2.c: Include <errno.h>.
1070         * misc/preadv64v2.c: Include <errno.h>.
1071         * misc/pwritev2.c: Include <errno.h>.
1072         * misc/pwritev64v2.c: Include <errno.h>.
1073         * sysdeps/posix/preadv2.c: Include <errno.h>.
1074         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
1075         Fix <unistd.h> inclusion.
1076         * sysdeps/posix/pwritev2.c: Include <errno.h>.
1077         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
1078         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
1079         __strtoul_internal): New functions.
1080         * sysdeps/posix/pause.c: Include <sigsetops.h>.
1081         * sysdeps/posix/system.c: Include <sigsetops.h>.
1082         * sysdeps/mach/hurd/i386/Makefile
1083         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
1084         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1085         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1086         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
1087         __feraiseexcept_renamed to feraiseexcept instead of
1088         __GI_feraiseexcept.
1089         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
1090         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
1091         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
1092         RWF_NOWAIT): Define to 0 if undefined already.
1093         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
1094         boils down to 0.
1095         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
1096         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
1098 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
1100         * manual/math.texi (pow10): Do not document.
1101         (pow10f): Likewise.
1102         (pow10l): Likewise.
1103         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
1104         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
1105         * math/libm-test-exp10.inc (pow10_test): Remove.
1106         (do_test): Do not call pow10.
1107         * math/w_exp10_compat.c (pow10): Make into compat symbol.
1108         [NO_LONG_DOUBLE] (pow10l): Likewise.
1109         * math/w_exp10f_compat.c (pow10f): Likewise.
1110         * math/w_exp10l_compat.c (pow10l): Likewise.
1111         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
1112         (pow10): Make into compat symbol.
1113         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
1114         (pow10f): Make into compat symbol.
1115         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
1116         (pow10l): Make into compat symbol.
1117         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
1118         pow10.
1119         (CFLAGS-nldbl-pow10.c): Remove variable..
1120         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
1121         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
1122         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
1123         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
1124         Undefine and redefine.
1125         (pow10l): Make into compat symbol.
1126         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
1127         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
1128         * sysdeps/arm/libm-test-ulps: Likewise.
1129         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
1130         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
1131         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1132         * sysdeps/microblaze/libm-test-ulps: Likewise.
1133         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
1134         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1135         * sysdeps/nios2/libm-test-ulps: Likewise.
1136         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
1137         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
1138         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1139         * sysdeps/sh/libm-test-ulps: Likewise.
1140         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
1141         * sysdeps/tile/libm-test-ulps: Likewise.
1142         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1144 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
1146         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
1148 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
1150         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
1151         "../ChangeLog.old/ChangeLog.8".
1152         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
1153         "../ChangeLog.old/ChangeLog.14".
1155 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
1157         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
1158         Threads Library.
1160 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
1162         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
1164 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
1166         * csu/version.c (banner): Remove "by Roland McGrath et al.".
1167         * nptl/Banner: Remove "by Ulrich Drepper et al.".
1169 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
1171         * stdlib/tst-atexit-common.c (do_test): Test support for at least
1172         32 atexit handlers.
1174 2017-09-01  Zack Weinberg  <zackw@panix.com>
1176         * math/math.h (HUGE_VAL): Improve commentary.
1178 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1179             Andreas Schwab  <schwab@suse.de>
1181         [BZ #21530]
1182         * include/stdio.h (__gen_tempfd): New function.
1183         * stdio-common/Makefile (routines): Add gentempfd.
1184         * stdio-common/gentempfd.c: New file.
1185         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
1186         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
1187         unnamed file first.
1189 2017-09-01  Florian Weimer  <fweimer@redhat.com>
1191         [BZ #21915]
1192         [BZ #21922]
1193         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
1194         result to determine success or failure, not the errno value.
1195         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
1196         (tst-nss-files-hosts-erange): Link with -ldl.
1197         * nss/tst-nss-files-hosts-erange.c: New file.
1198         * nss/tst-resolv-basic.c (response): Handle nodata.example.
1199         (do_test): Add NO_DATA tests.
1200         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
1201         (do_test): Call it.
1203 2017-09-01  Florian Weimer  <fweimer@redhat.com>
1205         [BZ #21922]
1206         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
1207         coming from gethostbyname2_r.
1209 2017-09-01  Florian Weimer  <fweimer@redhat.com>
1211         * support/namespace.h (struct support_chroot_configuration): Add
1212         hosts, host_conf.
1213         (struct support_chroot): Add path_hosts, path_host_conf.
1214         * support/support_chroot.c (write_file): New function.
1215         (support_chroot_create): Call it to process /etc/resolv.conf,
1216         /etc/hosts, /etc/host.conf.
1217         (support_chroot_free): Update.
1219 2017-09-01  Florian Weimer  <fweimer@redhat.com>
1221         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
1222         status indicates it is set.
1224 2017-09-01  Florian Weimer  <fweimer@redhat.com>
1226         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
1227         function lookup failures more reliable.
1229 2017-09-01  Florian Weimer  <fweimer@redhat.com>
1231         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
1232         (getcanonname): Likewise.
1233         (gaih_inet): Likewise.
1235 2017-09-01  Florian Weimer  <fweimer@redhat.com>
1237         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
1238         (getcanonname): Likewise.
1239         (gaih_inet): Likewise.
1241 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
1242             Richard Henderson <rth@twiddle.net>
1244         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
1245         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
1246         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
1247         (IREG_SIZE, OREG_SIZE): New macros.
1248         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
1249         (IREG_SIZE, OREG_SIZE): New macros.
1250         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
1251         (IREG_SIZE): New macro.
1252         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
1253         (IREG_SIZE): New macro.
1254         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
1255         New includes.
1256         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
1257         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
1258         (__CONCATX): Handle exceptions correctly on large values that may
1259         set FE_INVALID.
1260         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
1261         Initialize if not already set.
1262         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
1264 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1266         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
1267         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
1268         Likewise.
1269         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
1270         Likewise.
1271         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
1272         Likewise.
1273         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
1274         Likewise.
1275         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
1276         Likewise.
1277         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
1278         Likewise.
1279         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
1280         Likewise.
1281         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
1282         (NO_CANCELLATION): Likewise.
1283         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
1284         Likewise.
1285         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
1286         Likewise.
1287         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
1288         Likewise.
1289         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
1290         (NO_CANCELLATION): Likewise.
1291         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
1292         (NO_CANCELLATION): Likewise.
1293         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
1294         Likewise
1295         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
1296         Likewise.
1297         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
1298         Likewise.
1299         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
1300         Likewise.
1301         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
1302         hidden prototype.
1303         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
1304         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
1306 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
1308         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
1309         in resolver call.
1311 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1313         * include/libc-symbols.h (internal_function): Remove.
1315 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1317         * stdlib/fmtmsg.c (internal_addseverity): Remove
1318         internal_function.
1320 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1322         * stdio-common/printf_fp.c (group_number): Remove
1323         internal_function.
1324         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
1326 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1328         * posix/fnmatch.c (internal_function): Remove definition.
1329         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
1330         * posix/regcomp.c (peek_token, init_word_char)
1331         (duplicate_node_closure, fetch_token, peek_token)
1332         (peek_token_bracket, build_range_exp, build_collating_symbol):
1333         Likewise.
1334         * posix/regex_internal.c (re_string_construct_common)
1335         (create_ci_newstate, create_cd_newstate, re_string_allocate)
1336         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
1337         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
1338         (re_string_translate_buffer, re_string_reconstruct)
1339         (re_string_peek_byte_case, re_string_fetch_byte_case)
1340         (re_string_destruct, re_string_context_at, re_node_set_alloc)
1341         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
1342         (re_node_set_add_intersect, re_node_set_init_union)
1343         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
1344         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
1345         (re_dfa_add_node, calc_state_hash, re_acquire_state)
1346         (re_acquire_state_context): Likewise.
1347         * posix/regex_internal.h (internal_function): Remove definition.
1348         (re_string_realloc_buffers, build_wcs_buffer)
1349         (build_wcs_upper_buffer, build_upper_buffer)
1350         (re_string_translate_buffer, re_string_context_at)
1351         (re_string_char_size_at, re_string_wchar_at)
1352         (re_string_elem_size_at): Likewise.
1353         * posix/regexec.c (match_ctx_init, match_ctx_clean)
1354         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
1355         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
1356         (re_search_internal, re_search_2_stub, re_search_stub)
1357         (re_copy_regs, prune_impossible_nodes, check_matching)
1358         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
1359         (free_fail_stack_return, sift_states_iter_mb)
1360         (sift_states_backward, build_sifted_states)
1361         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
1362         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
1363         (check_subexp_limits, sift_states_bkref, merge_state_array)
1364         (find_recover_state, transit_state, merge_state_with_log)
1365         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
1366         (transit_state_mb, transit_state_bkref, get_subexp)
1367         (get_subexp_sub, find_subexp_node, check_arrival)
1368         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
1369         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
1370         (check_node_accept_bytes, find_collation_sequence_value)
1371         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
1372         (acquire_init_state_context, check_halt_node_context)
1373         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
1374         (sub_epsilon_src_nodes): Likewise.
1375         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
1376         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
1377         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
1378         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
1379         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
1380         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
1381         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
1382         * sysdeps/posix/ttyname.c (getttyname): Likewise.
1383         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
1384         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
1385         (PREADV): Likewise.
1386         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
1387         (PREADV): Likewise.
1388         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
1389         (PWRITEV): Likewise.
1390         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
1391         (PWRITEV): Likewise.
1392         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
1393         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
1395 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1397         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
1398         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
1399         Remove internal_function.
1400         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
1401         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
1402         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
1403         (__deallocate_stack, __libc_pthread_init)
1404         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
1405         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
1406         (__libc_disable_asynccancel, __librt_disable_asynccancel):
1407         Likewise.
1408         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
1409         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
1410         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
1411         Likewise.
1412         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
1413         (__pthread_mutex_unlock_usercnt): Likewise.
1415 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1417         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
1418         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
1419         (fts_safe_changedir): Remove internal_function.
1420         * io/ftw.c (internal_function): Remove definition.
1421         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
1423 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1425         * inet/deadline.c (__deadline_current_time)
1426         (__deadline_from_timeval, __deadline_to_ms): Remove
1427         internal_function.
1428         * inet/getnameinfo.c (nrl_domainname): Likewise.
1429         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
1430         * inet/inet6_option.c (add_pad): Likewise.
1431         * inet/net-internal.h (__deadline_current_time)
1432         (__deadline_from_timeval, __deadline_to_ms): Likewise.
1433         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
1434         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
1435         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
1437 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
1439         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
1440         include <bits/nan.h>.
1441         * math/Makefile (headers): Remove bits/nan.h.
1442         * bits/nan.h: Remove.
1443         * sysdeps/ieee754/bits/nan.h: Likewise.
1444         * sysdeps/mips/bits/nan.h: Likewise.
1446         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
1447         not include <bits/inf.h>.
1448         * math/Makefile (headers): Remove bits/inf.h.
1449         * bits/inf.h: Remove.
1450         * sysdeps/ieee754/bits/inf.h: Likewise.
1452         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
1453         bits/huge_vall.h or bits/huge_val_flt128.h.
1454         (HUGE_VAL): Define directly here.
1455         [__USE_ISOC99] (HUGE_VALF): Likewise.
1456         [__USE_ISOC99] (HUGE_VALL): Likewise.
1457         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1458         (HUGE_VAL_F128): Likewise.
1459         * math/Makefile (headers): Remove bits/huge_val.h,
1460         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
1461         * bits/huge_val.h: Remove.
1462         * bits/huge_val_flt128.h: Likewise.
1463         * bits/huge_valf.h: Likewise.
1464         * bits/huge_vall.h: Likewise.
1465         * sysdeps/ia64/bits/huge_vall.h: Likewise.
1466         * sysdeps/ieee754/bits/huge_val.h: Likewise.
1467         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
1468         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
1469         * sysdeps/sh/bits/huge_val.h: Likewise.
1470         * sysdeps/sparc/bits/huge_vall.h: Likewise.
1471         * sysdeps/x86/bits/huge_vall.h: Likewise.
1473 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1475         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
1476         internal_function.
1477         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
1478         Likewise.
1479         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
1480         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
1481         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
1482         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
1483         * elf/dl-fini.c (_dl_sort_fini): Likewise.
1484         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
1485         * elf/dl-libc.c (dlerror_run): Likewise.
1486         * elf/dl-load.c (add_name_to_object, decompose_rpath)
1487         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
1488         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
1489         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
1490         Likewise.
1491         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
1492         (_dl_higher_prime_number, _dl_strtoul): Likewise.
1493         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
1494         * elf/dl-profile.c (_dl_start_profile): Likewise.
1495         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
1496         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
1497         Likewise.
1498         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
1499         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
1500         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
1501         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
1502         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
1503         (_dl_allocate_tls_storage): Likewise.
1504         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
1505         (_dl_check_all_versions): Likewise.
1506         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
1507         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
1508         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
1509         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
1510         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
1511         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
1512         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
1513         internal_function from __dl_start.
1514         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
1515         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
1516         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
1517         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
1518         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
1519         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
1520         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
1521         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
1522         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
1523         (_dl_next_ld_env_entry, _dl_important_hwcaps)
1524         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
1525         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
1526         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
1527         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
1528         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
1529         Likewise.
1530         (struct rtld_global_ro): Remove internal_function from the
1531         _dl_lookup_symbol_x member.
1532         (_dl_symbol_value): Remove.  No longer defined anywhere.
1533         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
1534         internal_function.
1535         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
1536         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
1537         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
1538         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
1539         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
1540         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
1541         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
1542         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
1543         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
1544         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
1545         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
1546         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
1548 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1550         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
1551         Remove internal_function.
1552         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
1553         Likewise.
1554         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
1555         Likewise.
1557 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1559         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
1560         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
1561         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
1563 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1565         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
1566         (__gai_enqueue_request): Remove internal_function.
1567         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
1568         (__gai_remove_request, __gai_notify, __gai_notify_only)
1569         (__gai_sigqueue): Likewise.
1570         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
1571         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
1572         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
1573         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
1574         Likewise.
1576 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1578         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
1579         * include/dirent.h (__opendirat, __getdents, __getdents64)
1580         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
1581         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
1582         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
1583         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
1584         Likewise.
1585         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
1587 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1589         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
1590         internal_function.
1591         (GETCWD_RETURN_TYPE): Likewise.
1593 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1595         * include/time.h (__tz_compute, __strptime_internal): Remove
1596         internal_function.
1597         * time/strptime_l.c (__strptime_internal): Likewise.
1598         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
1600 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1602         * iconv/gconv.c (__gconv): Remove internal_function.
1603         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
1604         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
1605         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
1606         (__gconv_release_cache): Likewise.
1607         * iconv/gconv_close.c (__gconv_close): Likewise.
1608         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
1609         (read_conf_file, __gconv_get_path): Likewise.
1610         * iconv/gconv_db.c (derivation_lookup, add_derivation)
1611         (__gconv_release_step, gen_steps, increment_counter)
1612         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
1613         (__gconv_close_transform, free_modules_db): Likewise.
1614         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
1615         Likewise.
1616         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
1617         (__gconv_find_transform, __gconv_lookup_cache)
1618         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
1619         (__gconv_close_transform, __gconv_release_cache)
1620         (__gconv_loaded_object, __gconv_release_shlib)
1621         (__gconv_compare_alias): Likewise.
1622         * iconv/gconv_open.c (__gconv_open): Likewise.
1623         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
1624         * iconv/iconvconfig.c (add_module): Likewise.
1625         * intl/dcigettext.c (plural_lookup, guess_category_value)
1626         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
1627         * intl/eval-plural.h (plural_eval): Likewise.
1628         * intl/finddomain.c (_nl_find_domain): Likewise.
1629         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
1630         (_nl_load_domain, _nl_find_msg): Likewise.
1631         (internal_function): Remove definition.
1632         * intl/loadinfo.h (internal_function): Likewise.
1633         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
1634         internal_function.
1635         * intl/localealias.c (internal_function): Remove definition.
1636         (read_alias_file): Remove internal_function.
1637         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
1638         * intl/plural-exp.h (internal_function): Remove definition.
1639         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
1640         internal_function.
1641         * intl/plural.c: Regenerate.
1642         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
1643         * locale/coll-lookup.c (__collidx_table_lookup)
1644         (__collseq_table_lookup): Likewise.
1645         * locale/coll-lookup.h (__collidx_table_lookup)
1646         (__collseq_table_lookup): Likewise.
1647         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
1648         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
1649         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
1650         (_nl_unload_locale): Likewise.
1651         * locale/localeinfo.h (struct __locale_data): Remove
1652         internal_function from cleanup member.
1653         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
1654         (_nl_remove_locale, _nl_load_locale_from_archive)
1655         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
1656         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
1657         (_nl_cleanup_time): Remove internal_function.
1658         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
1659         (_nl_parse_alt_digit): Likewise.
1660         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
1661         (_nl_select_era_entry): Likewise.
1662         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
1663         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
1664         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
1665         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
1666         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
1668 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1670         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
1671         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
1672         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
1673         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
1674         Likewise.
1675         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
1676         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
1677         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
1678         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
1679         Likewise.
1680         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
1682 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1684         * misc/getttyent.c (skip, value): Remove internal_function.
1685         * misc/syslog.c (openlog_internal): Likewise.
1686         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
1688 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1690         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
1691         (__nss_rewrite_field): Remove internal_function.
1692         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1693         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1694         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1695         * nss/nsswitch.c (nss_parse_file, nss_getline)
1696         (nss_parse_service_list, nss_new_service): Likewise.
1697         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
1698         * nss/valid_field.c (__nss_valid_field): Likewise.
1699         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
1701 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1703         * malloc/arena.c (__malloc_fork_lock_parent)
1704         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
1705         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
1706         internal_function from defintions.
1707         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
1708         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
1709         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
1710         internal_function from declarations.
1711         * malloc/malloc.c (internal_function): Do not define.
1712         (mem2mem_check): Remove internal_function from declaration.
1713         (munmap_chunk, mremap_chunk): Remove internal_function.
1714         * malloc/mtrace.c (tr_where): Likewise.
1716 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1718         * include/rpc/pmap_clnt.h (__get_socket): Remove
1719         internal_function.
1720         * sunrpc/auth_des.c (synchronize): Likewise.
1721         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
1722         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
1723         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
1724         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
1725         (key_call): Likewise.
1726         * sunrpc/pm_getport.c (__get_socket): Likewise.
1727         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
1728         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
1729         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
1730         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
1731         (invalidate): Likewise.
1732         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
1733         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
1734         (set_input_fragment, get_input_bytes): Likewise.
1736 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1738         * malloc/malloc.c (_int_free): Remove locked variable and related
1739         asserts.
1741 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
1743         [BZ #22051]
1744         * Makerules (build-module-helper-objlist): Filter out
1745         $(elf-objpfx)sofini.os.
1746         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
1747         needed.
1749 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1751         * libio/fcloseall.c: Assume weak_alias is defined.
1752         * libio/feof.c: Likewise.
1753         * libio/fileno.c: Likewise.
1754         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
1755         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
1756         definitions.
1757         (_IO_file_open): Call __open directly.
1758         (_IO_new_file_sync): Assume ESPIPE is defined.
1759         (_IO_file_seekoff_maybe_mmap): Call __read directly.
1760         (_IO_new_file_write): Call __write directly.
1761         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
1762         * libio/ftello64.c (__ftello64): Assume EIO is defined.
1763         * libio/genops.c: Assume _LIBC is defined.
1764         (save_for_backup): Remove internal_function.
1765         * libio/getc.c: Assume weak_alias is defined.
1766         * libio/getwc.c: Likewise.
1767         * libio/iofclose.c: Assume _LIBC is defined.
1768         * libio/iofdopen.c: Likewise.
1769         (_IO_fcntl): Remove macro definition.
1770         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
1771         Call __fcntl directly.
1772         * libio/iofflush.c: Assume weak_alias is defined.
1773         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
1774         defined.
1775         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
1776         * libio/iofgets.c: Likewise.
1777         * libio/iofopen.c: Assume _LIBC is defined.
1778         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
1779         * libio/iofputs.c: Assume weak_alias is defined.
1780         * libio/iofread.c: Likewise.
1781         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
1782         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
1783         * libio/ioftell.c: Assume weak_alias is defined.
1784         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
1785         * libio/iofwide.c: Assume _LIBC is defined.
1786         (_IO_fwide): Drop SHARED conditional because it is implied by
1787         SHLIB_COMPAT.
1788         * libio/iofwrite.c: Assume weak_alias is defined.
1789         * libio/iogetdelim.c: Likewise.
1790         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
1791         * libio/iogetwline.c (wmemcpy): Remove macro definition.
1792         (_IO_getwline): Call __wmemcpy directly.
1793         * libio/iopopen.c: Assume _LIBC is defined.
1794         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
1795         (_IO_close): Remove macro definitions.
1796         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
1797         _exit directly.
1798         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
1799         directly.
1800         * libio/ioputs.c: Assume weak_alias is defined.
1801         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
1802         * libio/iosetbuffer.c: Assume weak_alias is defined.
1803         * libio/iosetvbuf.c: Likewise.
1804         * libio/ioungetc.c: Likewise.
1805         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
1806         libc_hidden_def, libc_hidden_weak, NULL are defined.
1807         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
1808         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
1809         defined.
1810         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
1811         definitions.
1812         (_IO_old_file_init_internal): Drop SHARED conditional because it
1813         is implied by SHLIB_COMPAT.
1814         (_IO_old_file_fopen): Call __open directly.
1815         (_IO_old_file_sync): Assume ESPIPE is defined.
1816         (_IO_old_file_write): Call __write directly.
1817         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
1818         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
1819         Call __fcntl directly.
1820         * libio/oldiofgetpos.c: Assume weak_alias is defined.
1821         (_IO_old_fgetpos): Assume EIO is defined.
1822         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
1823         (_IO_old_fgetpos64): Assume EIO is defined.
1824         * libio/oldiofsetpos.c: Assume weak_alias is defined.
1825         (_IO_old_fsetpos): Assume EIO is defined.
1826         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
1827         (_IO_old_fsetpos64): Assume EIO is defined.
1828         * libio/oldiopopen.c:  Assume _LIBC is defined.
1829         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
1830         (_IO_close): Remove macro definitions.
1831         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
1832         directly.
1833         (_IO_old_proc_close): Call __close, __waitpid directly.
1834         * libio/put.c: Assume weak_alias is defined.
1835         * libio/stdfiles.c: Assume _LIBC is defined.
1836         * libio/stdio.c: Likewise.
1837         * libio/wfileops.c: Likewise.
1838         (_IO_wfile_sync): Assume ESPIPE is defined.
1839         * libio/wgenops.c: Assume _LIBC is defined.
1840         (save_for_wbackup): Remove internal_function.
1842 2017-08-31  Florian Weimer  <fweimer@redhat.com>
1844         * malloc/malloc.c (top_check): Change return type to void.  Remove
1845         internal_function.
1846         * malloc/hooks.c (top_check): Likewise.
1847         (malloc_check, realloc_check, memalign_check): Adjust.
1849 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
1851         [BZ #21457]
1852         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
1853         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
1854         sigcontext and namespace requirements.
1855         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
1856         * sysdeps/m68k/sys/ucontext.h: Likewise.
1857         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
1858         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
1859         <bits/sigcontext.h>.
1860         (__ctx): Define earlier.
1861         (mcontext_t): Define structure contents rather than using struct
1862         sigcontext.
1863         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
1864         __glibc_reserved1 instead of __reserved.
1865         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
1866         <bits/sigcontext.h>.
1867         (__ctx): Define earlier.
1868         (mcontext_t): Define structure contents rather than using struct
1869         sigcontext.
1870         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
1871         mcontext_t instead of struct sigcontext.
1872         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
1873         <bits/sigcontext.h>.
1874         (__ctx): Define earlier.
1875         (mcontext_t): Define structure contents rather than using struct
1876         sigcontext.
1877         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
1878         <bits/sigcontext.h>.
1879         (__ctx): Define earlier.
1880         (mcontext_t): Define structure contents rather than using struct
1881         sigcontext.
1882         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
1883         mcontext_t instead of struct sigcontext.
1884         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
1885         mcontext_t instead of struct sigcontext.
1886         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
1887         <bits/sigcontext.h>.
1888         (__ctx): New macro.
1889         (struct __ia64_fpreg_mcontext): New type.
1890         (mcontext_t): Define structure contents rather than using struct
1891         sigcontext.
1892         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
1893         (uc_sigmask): Define using __ctx.
1894         (uc_stack): Likewise.
1895         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
1896         <bits/sigcontext.h>.
1897         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
1898         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
1899         <bits/sigcontext.h>.
1900         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
1901         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
1902         <bits/sigcontext.h>.
1903         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
1904         <bits/sigcontext.h>.
1905         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
1906         <bits/sigcontext.h>.
1907         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
1908         <bits/sigcontext.h>.
1909         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
1910         <bits/sigcontext.h>.
1911         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
1912         <bits/sigcontext.h>.
1913         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
1914         <bits/sigcontext.h>.
1915         (__ctx): Define earlier.
1916         (mcontext_t): Define structure contents rather than using struct
1917         sigcontext.
1918         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
1919         <bits/sigcontext.h>.  Include <bits/types.h>.
1920         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
1921         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
1922         (test-xfail-XPG42/ucontext.h/conform): Likewise.
1923         (test-xfail-UNIX98/signal.h/conform): Likewise.
1924         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
1925         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
1926         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
1927         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
1928         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
1929         (test-xfail-POSIX2008/signal.h/conform): Likewise.
1930         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
1931         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
1932         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
1934 2017-08-30  Florian Weimer  <fweimer@redhat.com>
1936         * malloc/dynarray_emplace_enlarge.c
1937         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
1938         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1939         * malloc/tst-dynarray.c (test_long_overflow): New function.
1940         (do_test): Call it.
1942 2017-08-30  Florian Weimer  <fweimer@redhat.com>
1944         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
1945         (set_arena_corrupt): Remove definitions.
1946         (mtrim): Do not check for corrupt arena.
1947         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
1948         Likewise.
1950 2017-08-30  Florian Weimer  <fweimer@redhat.com>
1952         [BZ #21754]
1953         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
1954         check_action.
1955         (ptmalloc_init): Do not set or use check_action.
1956         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
1957         call to malloc_printerr.  Remove return statement.
1958         (free_check): Likewise.  Remove arena unlock.
1959         (top_check): Update comment.  Adjust call to malloc_printerr.
1960         Remove heap repair code.
1961         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
1962         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
1963         (sysmalloc): Adjust call to malloc_printerr.
1964         (munmap_chunk, __libc_realloc): Likewise.  Remove return
1965         statement.
1966         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
1967         Remove errout label and corresponding gotos.
1968         (_int_free): Likewise.  Remove arena unlock.
1969         (do_set_mallopt_check): Do not set check_action.
1970         (malloc_printerr): Adjust parameter list.  Do not mark arena as
1971         corrupt.
1972         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
1973         comment.
1974         * manual/probes.texi (Memory Allocation Probes): Remove
1975         memory_mallopt_check_action.
1977 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
1979         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
1980         Use pointer to uint64_t instead of long int for sp.
1982 2017-08-30  Florian Weimer  <fweimer@redhat.com>
1984         [BZ #21754]
1985         * malloc/malloc.c (malloc_printerr): Always terminate the process,
1986         without printing a backtrace.  Do not leak any information in the
1987         error message.
1988         * manual/memory.texi (Heap Consistency Checking): Update.
1989         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
1991 2017-08-30  Florian Weimer  <fweimer@redhat.com>
1993         Do not scale NPTL tests with available number of CPUs.
1994         * nptl/tst-cond16.c (count): Set to constant value of 8.
1995         * nptl/tst-cond18.c (count): Likewise.
1997 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
1999         [BZ #22035]
2000         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
2001         Define to take a second argument that is a macro that
2002         concatentates a suffix, not the suffix itself.
2003         (__CONCAT_d): New macro.
2004         (__CONCAT_f): Likewise.
2005         (__CONCAT_l): Likewise.
2007 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
2009         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
2010         by child.
2012 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2013             Aurelien Jarno  <aurelien@aurel32.net>
2014             Maciej W. Rozycki  <macro@imgtec.com>
2016         [BZ #21956]
2017         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
2018         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
2019         `mips16-syscall6' and `mips16-syscall7'.
2020         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
2021         (CFLAGS-mips16-syscall7.c): Remove.
2022         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
2023         Remove `__mips16_syscall5', `__mips16_syscall6' and
2024         `__mips16_syscall7'.
2025         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
2026         (__mips16_syscall0): Rename `__mips16_syscall_return' to
2027         `__mips_syscall_return'.
2028         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
2029         (__mips16_syscall1): Likewise.
2030         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
2031         (__mips16_syscall2): Likewise.
2032         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
2033         (__mips16_syscall3): Likewise.
2034         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
2035         (__mips16_syscall4): Likewise.
2036         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
2037         Remove.
2038         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
2039         Remove.
2040         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
2041         Remove.
2042         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
2043         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
2044         `__mips16_syscall5'.  Remove prototype.
2045         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
2046         `__mips16_syscall6'.  Remove prototype.
2047         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
2048         `__mips16_syscall7'.  Remove prototype.
2049         (__nomips16, __mips16_syscall_return): Move to...
2050         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
2051         (__nomips16, __mips_syscall_return): ... here.
2052         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
2053         `__mips16_syscall_return' to `__mips_syscall_return'.
2054         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
2055         `internal_syscall##nr'.
2056         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
2057         `internal_syscall##nr'.
2058         (FORCE_FRAME_POINTER): Remove.
2059         (__mips_syscall5): New prototype.
2060         (internal_syscall5): Rewrite to call `__mips_syscall5'.
2061         (__mips_syscall6): New prototype.
2062         (internal_syscall6): Rewrite to call `__mips_syscall6'.
2063         (__mips_syscall7): New prototype.
2064         (internal_syscall7): Rewrite to call `__mips_syscall7'.
2065         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
2066         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
2067         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
2068         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
2069         (sysdep_routines): Add libc-do-syscall.
2070         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
2071         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
2073 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2075         [BZ #21672]
2076         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
2077         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
2078         (advise_stack_range): New function.
2079         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
2080         stack non required to advise_stack_range at allocatestack.c
2082 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2084         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
2086 2017-08-29  Florian Weimer  <fweimer@redhat.com>
2088         [BZ #22026]
2089         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
2090         __end_fct.  Mangle __end_fct after setting it to NULL.
2091         * iconv/Makefile (tests): Add tst-gconv-init-failure.
2092         (modules-names, modules-names-tests): Add
2093         tst-gconv-init-failure-mod.
2094         (gconv-modules): New target.
2095         (tst-gconv-init-failure-mod.so): Link against libsupport.
2096         (tst-gconv-init-failure): Depend on gconv-modules,
2097         tst-gconv-init-failure-mod.so.
2098         * iconv/tst-gconv-init-failure-mod.c: New file.
2099         * iconv/tst-gconv-init-failure.c: Likewise.
2100         * iconv/test-gconv-modules: Likewise.
2102 2017-08-29  Florian Weimer  <fweimer@redhat.com>
2104         [BZ #22025]
2105         * iconv/gconv_db.c (free_derivation): Remove redundant
2106         parentheses.
2107         (gen_steps): Unconditionally mangle __btowc_fct after
2108         initialization.
2109         (increment_counter): Likewise.  Do not call init_fct for internal
2110         modules.
2112 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
2114         [BZ #22028]
2115         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
2116         (_MSUF_): Remove macro.
2117         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
2118         Likewise.
2119         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
2120         (__REDIRFROM_X): New macro.
2121         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
2122         Likewise.
2123         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
2124         (__REDIRTO_X): Likewise.
2125         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
2126         arguments.
2127         (__MATH_REDIRCALL_2): Likewise.
2128         (__MATH_REDIRCALL_INTERNAL): Likewise.
2129         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
2130         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
2131         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
2132         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
2133         * math/test-finite-macros.c: New file.
2134         * math/Makefile (tests): Add test-finite-macros.
2135         (CFLAGS-test-finite-macros.c): New variable.
2137 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
2138             Jeff Law  <law@redhat.com>
2140         [BZ #22025]
2141         Mangle NULL pointers in iconv/gconv.
2142         * iconv/gconv_cache.c (find_module): Demangle init_fct before
2143         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
2144         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
2145         is non-NULL before demangling the end_fct.  Check for NULL
2146         end_fct after demangling.
2147         (__gconv_release_step): Demangle the end_fct before checking
2148         it for NULL.   Remove assert on __shlibc_handle != NULL.
2149         (gen_steps): Don't check btowc_fct for NULL before mangling.
2150         Demangle init_fct before checking for NULL.
2151         (increment_counter): Likewise.
2152         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
2153         end_fct for NULL before mangling.
2154         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
2155         for NULL.
2157 2017-08-29  Akhilesh Kumar <akhilesh.k@samsung.com>
2159         [BZ #21971]
2160         * locale/iso-639.def: add Morisyen.
2162 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2164         [BZ #21930]
2165         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
2166         (iszero): New C++ implementation that does not use
2167         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
2168         signaling nans are enabled, since __builtin_types_compatible_p
2169         is a C-only feature.
2170         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
2171         defined, include ieee754_float128.h for access to the union and
2172         member ieee854_float128.ieee.
2173         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
2174         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
2175         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
2176         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
2177         options of test-math-zero on powerpc64le.
2179 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
2181         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
2182         Change double to float.
2184 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
2186         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
2187         unconditional.
2188         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
2189         conditional code; define contents only for [LIBM_SVID_COMPAT].
2191 2017-08-28  Florian Weimer  <fweimer@redhat.com>
2193         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
2194         (abi-lp64_be-options): Remove.
2195         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
2196         (abi-hard-options): Likewise.
2197         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
2198         (abi-o32_hard-options, abi-o32_soft_2008-options)
2199         (abi-o32_hard_2008-options, abi-n32_soft-options)
2200         (abi-n32_hard-options, abi-n32_soft_2008-options)
2201         (abi-n32_hard_2008-options, abi-n64_soft-options)
2202         (abi-n64_hard-options, abi-n64_soft_2008-options)
2203         (abi-n64_hard_2008-options): Likewise.
2204         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
2205         (abi-64-v1-options, abi-64-v2-options): Likewise.
2206         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
2207         (abi-64-options): Likewise.
2208         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
2209         (abi-64-options): Likewise.
2210         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
2211         (abi-64-options): Likewise.
2212         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
2213         (abi-64-options, abi-x32-options): Likewise.
2215 2017-08-28  Florian Weimer  <fweimer@redhat.com>
2217         Store supported list of SYS_* system calls in the source tree.
2218         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2219         (bits/syscall.h): Generate from list file.
2220         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
2221         [$(subdir) = misc] (tests): Add tst-syscall-list.
2222         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
2223         [$(subdir) = misc] (tst-syscall-list-macros.list)
2224         [$(subdir) = misc] (tst-syscall-list-nr.list)
2225         (tst-syscall-list-sys.list): Helper targets for new
2226         tst-syscall-list test.
2227         [$(subdir) = misc] (tst-syscall-list.out): Run test script
2228         tst-syscall-list.sh.
2229         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
2230         target. Do not include bits/syscall.d.
2231         [$(subdir) = misc] (generated): Do not update.
2232         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
2233         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
2234         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
2235         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
2237 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
2239         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
2240         (tst-cxa_atexit, tst-on_exit): Likewise.
2241         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
2242         tst-cxa_atexit, and tst-on_exit.
2243         * stdlib/tst-atexit-common.c: New file.
2244         * stdlib/tst-atexit.c: New file.
2245         * stdlib/tst-at_quick_exit.c: New file.
2246         * stdlib/tst-cxa_atexit.c: New file.
2247         * stdlib/tst-on_exit.c: New file.
2249 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2251         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
2252         * mach/stack_chk_fail_local.c: New file.
2253         * hurd/stack_chk_fail_local.c: New file.
2254         * mach/Machrules ($(interface-library)-routines): Add
2255         stack_chk_fail_local.
2256         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
2257         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
2258         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
2259         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
2260         * hurd/Makefile (CFLAGS-hurdstartup.o,
2261         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
2263 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
2265         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
2266         (index_cpu_*, index_arch_*): Removed.
2268 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2270         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
2271         Use uint64_t instead of unsigned long.
2273 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
2275         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
2276         [__HAVE_DISTINCT_FLOAT128].
2278         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
2279         of <bits/math-finite.h>.
2280         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
2281         inclusion of <bits/math-finite.h>.
2282         * math/bits/math-finite.h (__REDIRTO_X): Do not define
2283         conditionally on [__MATH_DECLARING_LDOUBLE && defined
2284         __NO_LONG_DOUBLE_MATH].
2285         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
2286         (__MATH_REDIRCALL_2): Likewise.
2287         (__MATH_REDIRCALL_INTERNAL): Likewise.
2288         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
2289         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
2290         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
2292         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
2293         Remove file.
2294         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
2295         Likewise.
2296         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
2297         Likewise.
2298         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
2299         Likewise.
2300         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
2301         Likewise.
2302         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
2303         Likewise.
2304         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
2305         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
2306         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
2307         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
2308         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2309         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
2310         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
2311         w_sqrtf_compat-ppc32.
2313 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2315         * math/math.h [defined __cplusplus] (issignaling): In the long
2316         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
2317         is not defined.  Call __issignaling, otherwise.
2319 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2321         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
2322         syscall definitions and replace __builtin_expect with __glibc_likely.
2323         * sysdeps/unix/syscall-template.S: Update comment about cancellable
2324         syscall.
2325          (SYSCALL_CANCELLABLE): Removedefinition
2326         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
2327         definition.
2328         (PSEUDO_END): Likewise.
2329         [IS_IN (libpthread)] (CENABLE): Likewise.
2330         [IS_IN (libpthread)] (CDISABLE): Likewise.
2331         [IS_IN (libc)] (CENABLE): Likewise.
2332         [IS_IN (libc)] (CENABLE): Likewise.
2333         [IS_IN (librt)] (CDISABLE): Likewise.
2334         [IS_IN (librt)] (CDISABLE): Likewise.
2335         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2336         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
2337         definition.
2338         (PSEUDO_END): Likewise.
2339         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
2340         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
2341         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
2342         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
2343         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
2344         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
2345         (CENABLE): Likewise.
2346         (CDISABLE): Likewise.
2347         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2348         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
2349         defintion.
2350         (PSEUDO_END): Likewise.
2351         [IS_IN (libpthread)] (CENABLE): Likewise.
2352         [IS_IN (libpthread)] (CDISABLE): Likewise.
2353         [IS_IN (libc)] (CENABLE): Likewise.
2354         [IS_IN (libc)] (CENABLE): Likewise.
2355         [IS_IN (librt)] (CDISABLE): Likewise.
2356         [IS_IN (librt)] (CDISABLE): Likewise.
2357         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2358         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
2359         definition.
2360         (PSEUDO_END): Likewise.
2361         [IS_IN (libpthread)] (CENABLE): Likewise.
2362         [IS_IN (libpthread)] (CDISABLE): Likewise.
2363         [IS_IN (libc)] (CENABLE): Likewise.
2364         [IS_IN (libc)] (CENABLE): Likewise.
2365         [IS_IN (librt)] (CDISABLE): Likewise.
2366         [IS_IN (librt)] (CDISABLE): Likewise.
2367         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2368         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
2369         definition.
2370         (PSEUDO_END): Likewise.
2371         [IS_IN (libpthread)] (CENABLE): Likewise.
2372         [IS_IN (libpthread)] (CDISABLE): Likewise.
2373         [IS_IN (libc)] (CENABLE): Likewise.
2374         [IS_IN (libc)] (CENABLE): Likewise.
2375         [IS_IN (librt)] (CDISABLE): Likewise.
2376         [IS_IN (librt)] (CDISABLE): Likewise.
2377         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2378         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
2379         definition.
2380         (PSEUDO_END): Likewise.
2381         [IS_IN (libpthread)] (CENABLE): Likewise.
2382         [IS_IN (libpthread)] (CDISABLE): Likewise.
2383         [IS_IN (libc)] (CENABLE): Likewise.
2384         [IS_IN (libc)] (CENABLE): Likewise.
2385         [IS_IN (librt)] (CDISABLE): Likewise.
2386         [IS_IN (librt)] (CDISABLE): Likewise.
2387         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2388         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
2389         definition.
2390         (PSEUDO_END): Likewise.
2391         [IS_IN (libpthread)] (CENABLE): Likewise.
2392         [IS_IN (libpthread)] (CDISABLE): Likewise.
2393         [IS_IN (libc)] (CENABLE): Likewise.
2394         [IS_IN (libc)] (CENABLE): Likewise.
2395         [IS_IN (librt)] (CDISABLE): Likewise.
2396         [IS_IN (librt)] (CDISABLE): Likewise.
2397         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2398         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
2399         definition.
2400         (PSEUDO_END): Likewise.
2401         [IS_IN (libpthread)] (CENABLE): Likewise.
2402         [IS_IN (libpthread)] (CDISABLE): Likewise.
2403         [IS_IN (libc)] (CENABLE): Likewise.
2404         [IS_IN (libc)] (CENABLE): Likewise.
2405         [IS_IN (librt)] (CDISABLE): Likewise.
2406         [IS_IN (librt)] (CDISABLE): Likewise.
2407         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2408         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
2409         Remove definition.
2410         (PSEUDO_END): Likewise.
2411         [IS_IN (libpthread)] (CENABLE): Likewise.
2412         [IS_IN (libpthread)] (CDISABLE): Likewise.
2413         [IS_IN (libc)] (CENABLE): Likewise.
2414         [IS_IN (libc)] (CENABLE): Likewise.
2415         [IS_IN (librt)] (CDISABLE): Likewise.
2416         [IS_IN (librt)] (CDISABLE): Likewise.
2417         (SINGLE_THREAD_P): Likewise.
2418         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
2419         definition.
2420         (PSEUDO_END): Likewise.
2421         [IS_IN (libpthread)] (CENABLE): Likewise.
2422         [IS_IN (libpthread)] (CDISABLE): Likewise.
2423         [IS_IN (libc)] (CENABLE): Likewise.
2424         [IS_IN (libc)] (CENABLE): Likewise.
2425         [IS_IN (librt)] (CDISABLE): Likewise.
2426         [IS_IN (librt)] (CDISABLE): Likewise.
2427         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2428         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
2429         definition.
2430         (PSEUDO_END): Likewise.
2431         [IS_IN (libpthread)] (CENABLE): Likewise.
2432         [IS_IN (libpthread)] (CDISABLE): Likewise.
2433         [IS_IN (libc)] (CENABLE): Likewise.
2434         [IS_IN (libc)] (CENABLE): Likewise.
2435         [IS_IN (librt)] (CDISABLE): Likewise.
2436         [IS_IN (librt)] (CDISABLE): Likewise.
2437         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2438         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
2439         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
2440         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
2441         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
2442         definition.
2443         (PSEUDO_END): Likewise.
2444         [IS_IN (libpthread)] (CENABLE): Likewise.
2445         [IS_IN (libpthread)] (CDISABLE): Likewise.
2446         [IS_IN (libc)] (CENABLE): Likewise.
2447         [IS_IN (libc)] (CENABLE): Likewise.
2448         [IS_IN (librt)] (CDISABLE): Likewise.
2449         [IS_IN (librt)] (CDISABLE): Likewise.
2450         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2451         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
2452         definition.
2453         (PSEUDO_END): Likewise.
2454         [IS_IN (libpthread)] (CENABLE): Likewise.
2455         [IS_IN (libpthread)] (CDISABLE): Likewise.
2456         [IS_IN (libc)] (CENABLE): Likewise.
2457         [IS_IN (libc)] (CENABLE): Likewise.
2458         [IS_IN (librt)] (CDISABLE): Likewise.
2459         [IS_IN (librt)] (CDISABLE): Likewise.
2460         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2461         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
2462         definition.
2463         (PSEUDO_END): Likewise.
2464         [IS_IN (libpthread)] (CENABLE): Likewise.
2465         [IS_IN (libpthread)] (CDISABLE): Likewise.
2466         [IS_IN (libc)] (CENABLE): Likewise.
2467         [IS_IN (libc)] (CENABLE): Likewise.
2468         [IS_IN (librt)] (CDISABLE): Likewise.
2469         [IS_IN (librt)] (CDISABLE): Likewise.
2470         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2471         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
2472         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
2473         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
2474         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
2475         definition.
2476         (PSEUDO_END): Likewise.
2477         [IS_IN (libpthread)] (CENABLE): Likewise.
2478         [IS_IN (libpthread)] (CDISABLE): Likewise.
2479         [IS_IN (libc)] (CENABLE): Likewise.
2480         [IS_IN (libc)] (CENABLE): Likewise.
2481         [IS_IN (librt)] (CDISABLE): Likewise.
2482         [IS_IN (librt)] (CDISABLE): Likewise.
2483         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2484         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
2485         definition.
2486         (PSEUDO_END): Likewise.
2487         [IS_IN (libpthread)] (CENABLE): Likewise.
2488         [IS_IN (libpthread)] (CDISABLE): Likewise.
2489         [IS_IN (libc)] (CENABLE): Likewise.
2490         [IS_IN (libc)] (CENABLE): Likewise.
2491         [IS_IN (librt)] (CDISABLE): Likewise.
2492         [IS_IN (librt)] (CDISABLE): Likewise.
2493         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
2495 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2497         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
2499 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
2501         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2503 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
2505         [BZ #21982]
2506         * string/stratcliff.c (do_test): Declare size, nchars, inner,
2507         middle and outer with size_t instead of int.  Repleace %d and
2508         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
2509         "MAX (outer, nchars - 64)" to support unsigned outer and
2510         nchars.  Also exit loop when outer == 0.
2512 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2514         * include/fcntl.h (__fcntl_nocancel): Remove definition.
2515         * include/signal.h (__sigsuspend_nocancel): Likewise.
2516         * include/time.h (__nanosleep_nocancel): Likewise.
2517         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
2518         * login/utmp_file.c: Include non cancellable syscall header.
2519         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
2520         prototype.
2522 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
2524         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
2525         .byte sequences with AVX512F instructions.
2526         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
2527         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
2528         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
2529         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
2530         Likewise.
2531         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
2532         Likewise.
2534 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2535             Steve Ellcey  <sellcey@cavium.com>
2537         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
2538         Use PTR_REG macro in cmp instruction.
2540 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2542         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
2543         Change the return type of the ifunc resolver to match the return
2544         type of the target function.
2546 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2548         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
2549         (preadv64): Likewise.
2550         (pwrite64(: Likewise.
2551         (pwritev64): Likewise.
2553         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
2554         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
2555         (LOAD_ARGS_0): Likewise.
2556         (LOAD_ARGS_1): Likewise.
2557         (LOAD_ARGS_2): Likewise.
2558         (LOAD_ARGS_3): Likewise.
2559         (LOAD_ARGS_4): Likewise.
2560         (LOAD_ARGS_5): Likewise.
2561         (LOAD_ARGS_6): Likewise.
2562         (LOAD_REGS_0): Likewise.
2563         (LOAD_REGS_1): Likewise.
2564         (LOAD_REGS_2): Likewise.
2565         (LOAD_REGS_3): Likewise.
2566         (LOAD_REGS_4): Likewise.
2567         (LOAD_REGS_5): Likewise.
2568         (LOAD_REGS_6): Likewise.
2569         (ASM_ARGS_0): Likewise.
2570         (ASM_ARGS_1): Likewise.
2571         (ASM_ARGS_2): Likewise.
2572         (ASM_ARGS_3): Likewise.
2573         (ASM_ARGS_4): Likewise.
2574         (ASM_ARGS_5): Likewise.
2575         (ASM_ARGS_6): Likewise.
2576         (LOAD_ARGS_TYPES_1): Likewise.
2577         (LOAD_ARGS_TYPES_2): Likewise.
2578         (LOAD_ARGS_TYPES_3): Likewise.
2579         (LOAD_ARGS_TYPES_4): Likewise.
2580         (LOAD_ARGS_TYPES_5): Likewise.
2581         (LOAD_ARGS_TYPES_6): Likewise.
2582         (LOAD_REGS_TYPES_1): Likewise.
2583         (LOAD_REGS_TYPES_2): Likewise.
2584         (LOAD_REGS_TYPES_3): Likewise.
2585         (LOAD_REGS_TYPES_4): Likewise.
2586         (LOAD_REGS_TYPES_5): Likewise.
2587         (LOAD_REGS_TYPES_6): Likewise.
2588         (TYPEFY): New define.
2589         (ARGIFY): Likewise.
2590         (internal_syscall0): Likewise.
2591         (internal_syscall1): Likewise.
2592         (internal_syscall2): Likewise.
2593         (internal_syscall3): Likewise.
2594         (internal_syscall4): Likewise.
2595         (internal_syscall5): Likewise.
2596         (internal_syscall6): Likewise.
2597         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
2598         (INTERNAL_SYSCALL_NCS): Remove define.
2599         (internal_syscall1): Add define.
2601 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2603         * math/w_remainder_compat.c: Remove duplicate inclusion of
2604         math-svid-compat.h.
2605         * math/w_remainderf_compat.c: Likewise.
2606         * math/w_remainderl_compat.c: Likewise.
2608 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2610         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2612 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
2614         [BZ #21684]
2615         * math/tgmath.h (__floating_type): Simplify definitions.
2616         (__real_integer_type): New macro.
2617         (__complex_integer_type): Likewise.
2618         (__expr_is_real): Likewise.
2619         (__tgmath_real_type_sub): Update comment to describe handling of
2620         complex types.
2621         (__tgmath_complex_type_sub): New macro.
2622         (__tgmath_complex_type): Likewise.
2623         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2624         (__TGMATH_CF128): Use __expr_is_real.
2625         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
2626         __expr_is_real.
2627         (__TGMATH_BINARY_REAL_IMAG): Likewise.
2628         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
2629         * math/gen-tgmath-tests.py (Type.create_type): Create complex
2630         integer types.
2632 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2634         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
2635         macro.
2636         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
2637         alias.
2638         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
2639         Likewise.
2641         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
2642         nanosleep_not_cancel with __nanosleep_nocancel.
2643         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
2644         (__nanosleep_nocancel): New macro.
2645         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
2646         function.
2647         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
2648         macro.
2649         (__nanosleep_nocancel): New prototype.
2651         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
2652         pause_not_cancel with __pause_nocancel.
2653         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
2654         (__pause_nocancel): New macro.
2655         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
2656         macro.
2657         (__pause_nocancel): New prototype.
2658         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
2660 2017-08-22  Martin Sebor  <msebor@redhat.com>
2662         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
2663         to return a pointer to the same type as the target function.
2665 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
2667         [BZ #18822]
2668         [BZ #21986]
2669         * include/printf.h (__printf_fphex): Add attribute_hidden.
2670         (__guess_grouping): New prototype.
2671         * stdio-common/printf_fp.c (__guess_grouping): Removed.
2672         * stdio-common/reg-printf.c (__register_printf_specifier): Add
2673         libc_hidden_proto and libc_hidden_def.
2674         * stdlib/strfmon_l.c (__guess_grouping): Removed.
2675         (__vstrfmon_l): Remove the third argument passed to
2676         __guess_grouping.
2678 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2680         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
2681         definition for issignaling that does not rely on __MATH_TG,
2682         since __MATH_TG uses __builtin_types_compatible_p, which is only
2683         available in C mode.
2684         (CFLAGS-test-math-issignaling.cc): New variable.
2685         * math/Makefile [CXX] (tests): Add test-math-issignaling.
2686         * math/test-math-issignaling.cc: New test for C++ implementation
2687         of type-generic issignaling.
2688         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
2689         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
2690         options of test-math-issignaling on powerpc64le.
2692 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
2694         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
2695         building libc.a.
2696         (hidden_proto): Likewise.
2697         (hidden_tls_proto): Likewise.
2698         (__hidden_proto): Likewise.
2700 2017-08-22  Florian Weimer  <fweimer@redhat.com>
2702         math: Statically link tests of internal functionality.
2703         * math/Makefile (tests): Remove atest-exp, atest-sincos,
2704         atest-exp2.
2705         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
2706         (gmp-objs): Remove assignment.
2707         (atest-exp, atest-sincos, atest-exp2): Remove targets.
2709 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
2711         [BZ #21987]
2712         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
2713         and copy to ...
2714         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
2715         ... here.
2716         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
2717         ... and here.
2719         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
2720         variable definitions above inclusion of ../Rules.
2722 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
2724         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
2725         case calling __builtin_unreachable.
2727 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2729         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
2730         __waitpid_nocancel.
2731         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
2732         (__waitpid_nocancel): New macro.
2733         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
2734         macro.
2735         (__waitpid_nocancel): Replace macro with a function.
2736         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
2737         function.
2739         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
2740         __fcntl_nocancel.
2741         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
2742         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
2744         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
2745         __writev_nocancel_nostatus.
2746         (write_call_graph): Likewise.
2747         (write_bb_counts): Likewise.
2748         * resolv/herror.c (herror): Likewise.
2749         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
2750         macro.
2751         (__writev_nocancel_nostatus): New macro.
2752         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
2753         Remove macro.
2754         (__writev_nocancel_nostatus): New function.
2756 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
2758         Revert:
2759         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
2761         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
2762         building libc.a.
2763         (hidden_proto): Likewise.
2764         (hidden_tls_proto): Likewise.
2765         (__hidden_proto): Likewise.
2767         [BZ #21973]
2768         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
2769         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
2770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
2771         Likewise.
2772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
2773         Likewise.
2774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
2775         Likewise.
2776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
2777         Likewise.
2778         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
2779         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
2780         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
2781         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
2782         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
2783         GLIBC_2.0 sqrtl symbol.
2785         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
2786         [__USE_MISC] (_LIB_VERSION): Likewise.
2787         [__USE_MISC] (struct exception): Likewise.
2788         [__USE_MISC] (matherr): Likewise.
2789         [__USE_MISC] (DOMAIN): Likewise.
2790         [__USE_MISC] (SING): Likewise.
2791         [__USE_MISC] (OVERFLOW): Likewise.
2792         [__USE_MISC] (UNDERFLOW): Likewise.
2793         [__USE_MISC] (TLOSS): Likewise.
2794         [__USE_MISC] (PLOSS): Likewise.
2795         [__USE_MISC] (HUGE): Likewise.
2796         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
2797         * math/math-svid-compat.h: New file.
2798         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
2799         and matherrl.
2800         * include/math.h [!_ISOMAC] (__matherr): Remove.
2801         * manual/arith.texi (FP Exceptions): Do not document matherr.
2802         * math/Makefile (tests): Change test-matherr to test-matherr-3.
2803         (tests-internal): New variable.
2804         (install-lib): Do not add libieee.a.
2805         (non-lib.a): Likewise.
2806         (extra-objs): Do not add libieee.a and ieee-math.o.
2807         (CPPFLAGS-s_lib_version.c): Remove variable.
2808         ($(objpfx)libieee.a): Remove rule.
2809         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
2810         * math/ieee-math.c: Remove.
2811         * math/libm-test-support.c (matherr): Remove.
2812         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
2813         and license notices.  Include <math-svid-compat.h> and
2814         <shlib-compat.h>.
2815         (matherr): Undefine as macro.  Use compat_symbol_reference.
2816         (_LIB_VERSION): Likewise.
2817         * math/test-matherr-2.c: New file.
2818         * math/test-matherr-3.c: Likewise.
2819         * sysdeps/generic/math_private.h (__kernel_standard): Remove
2820         declaration.
2821         (__kernel_standard_f): Likewise.
2822         (__kernel_standard_l): Likewise.
2823         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
2824         <math_private.h>.  Include <math-svid-compat.h>.
2825         (_LIB_VERSION): Undefine as macro.
2826         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
2827         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
2828         [LIBM_SVID_COMPAT], use compat_symbol.
2829         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
2830         <math_private.h>.  Include <math-svid-compat.h>.
2831         (matherr): Undefine as macro.
2832         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
2833         compat_symbol.
2834         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
2835         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
2836         compat_symbol_reference.
2837         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
2838         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
2839         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
2840         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
2841         (MATHERR_D): Remove declaration.
2842         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
2843         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
2844         [LIBM_BUILD] (pmatherrf): Likewise.
2845         [LIBM_BUILD] (pmatherr): Likewise.
2846         [LIBM_BUILD] (pmatherrl): Likewise.
2847         (DOMAIN): Likewise.
2848         (SING): Likewise.
2849         (OVERFLOW): Likewise.
2850         (UNDERFLOW): Likewise.
2851         (TLOSS): Likewise.
2852         (PLOSS): Likewise.
2853         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
2854         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
2855         compat_symbol.
2856         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
2857         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
2858         compat_symbol.
2859         * math/lgamma-compat.h: Include <math-svid-compat.h>.
2860         * math/w_acos_compat.c: Likewise.
2861         * math/w_acosf_compat.c: Likewise.
2862         * math/w_acosh_compat.c: Likewise.
2863         * math/w_acoshf_compat.c: Likewise.
2864         * math/w_acoshl_compat.c: Likewise.
2865         * math/w_acosl_compat.c: Likewise.
2866         * math/w_asin_compat.c: Likewise.
2867         * math/w_asinf_compat.c: Likewise.
2868         * math/w_asinl_compat.c: Likewise.
2869         * math/w_atan2_compat.c: Likewise.
2870         * math/w_atan2f_compat.c: Likewise.
2871         * math/w_atan2l_compat.c: Likewise.
2872         * math/w_atanh_compat.c: Likewise.
2873         * math/w_atanhf_compat.c: Likewise.
2874         * math/w_atanhl_compat.c: Likewise.
2875         * math/w_cosh_compat.c: Likewise.
2876         * math/w_coshf_compat.c: Likewise.
2877         * math/w_coshl_compat.c: Likewise.
2878         * math/w_exp10_compat.c: Likewise.
2879         * math/w_exp10f_compat.c: Likewise.
2880         * math/w_exp10l_compat.c: Likewise.
2881         * math/w_exp2_compat.c: Likewise.
2882         * math/w_exp2f_compat.c: Likewise.
2883         * math/w_exp2l_compat.c: Likewise.
2884         * math/w_fmod_compat.c: Likewise.
2885         * math/w_fmodf_compat.c: Likewise.
2886         * math/w_fmodl_compat.c: Likewise.
2887         * math/w_hypot_compat.c: Likewise.
2888         * math/w_hypotf_compat.c: Likewise.
2889         * math/w_hypotl_compat.c: Likewise.
2890         * math/w_j0_compat.c: Likewise.
2891         * math/w_j0f_compat.c: Likewise.
2892         * math/w_j0l_compat.c: Likewise.
2893         * math/w_j1_compat.c: Likewise.
2894         * math/w_j1f_compat.c: Likewise.
2895         * math/w_j1l_compat.c: Likewise.
2896         * math/w_jn_compat.c: Likewise.
2897         * math/w_jnf_compat.c: Likewise.
2898         * math/w_jnl_compat.c: Likewise.
2899         * math/w_lgamma_main.c: Likewise.
2900         * math/w_lgamma_r_compat.c: Likewise.
2901         * math/w_lgammaf_main.c: Likewise.
2902         * math/w_lgammaf_r_compat.c: Likewise.
2903         * math/w_lgammal_main.c: Likewise.
2904         * math/w_lgammal_r_compat.c: Likewise.
2905         * math/w_log10_compat.c: Likewise.
2906         * math/w_log10f_compat.c: Likewise.
2907         * math/w_log10l_compat.c: Likewise.
2908         * math/w_log2_compat.c: Likewise.
2909         * math/w_log2f_compat.c: Likewise.
2910         * math/w_log2l_compat.c: Likewise.
2911         * math/w_log_compat.c: Likewise.
2912         * math/w_logf_compat.c: Likewise.
2913         * math/w_logl_compat.c: Likewise.
2914         * math/w_pow_compat.c: Likewise.
2915         * math/w_powf_compat.c: Likewise.
2916         * math/w_powl_compat.c: Likewise.
2917         * math/w_remainder_compat.c: Likewise.
2918         * math/w_remainderf_compat.c: Likewise.
2919         * math/w_remainderl_compat.c: Likewise.
2920         * math/w_scalb_compat.c: Likewise.
2921         * math/w_scalbf_compat.c: Likewise.
2922         * math/w_scalbl_compat.c: Likewise.
2923         * math/w_sinh_compat.c: Likewise.
2924         * math/w_sinhf_compat.c: Likewise.
2925         * math/w_sinhl_compat.c: Likewise.
2926         * math/w_sqrt_compat.c: Likewise.
2927         * math/w_sqrtf_compat.c: Likewise.
2928         * math/w_sqrtl_compat.c: Likewise.
2929         * math/w_tgamma_compat.c: Likewise.
2930         * math/w_tgammaf_compat.c: Likewise.
2931         * math/w_tgammal_compat.c: Likewise.
2932         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
2933         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
2934         * sysdeps/ieee754/k_standard.c: Likewise.
2935         * sysdeps/ieee754/k_standardf.c: Likewise.
2936         * sysdeps/ieee754/k_standardl.c: Likewise.
2937         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
2938         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
2939         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
2940         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
2941         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
2942         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
2943         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
2944         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
2945         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
2946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
2947         Likewise.
2948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
2949         Likewise.
2950         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
2951         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
2952         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
2953         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
2955 2017-08-21  Florian Weimer  <fweimer@redhat.com>
2957         [BZ #21864]
2958         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
2959         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
2960         Move before inclusion of ../Rules.
2962 2017-08-21  Florian Weimer  <fweimer@redhat.com>
2964         [BZ #21972]
2965         * assert/assert.h (assert): Use static_cast (bool) for C++.
2966         Use the ternary operator in the warning branch for GNU C.
2967         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
2968         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
2969         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
2970         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
2971         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
2973 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
2975         [BZ #18822]
2976         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2977         (__syscall_clock_gettime): Add attribute_hidden.
2978         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
2979         (__start_context): Likewise.
2981 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
2983         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
2984         building libc.a.
2985         (hidden_proto): Likewise.
2986         (hidden_tls_proto): Likewise.
2987         (__hidden_proto): Likewise.
2989 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
2991         * include/libc-symbols.h (attribute_hidden): Enable hidden
2992         visibility in libc.a compiled with PIE.
2994 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
2996         [BZ #18822]
2997         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
2998         Add attribute_hidden.
3000 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
3002         [BZ #21864]
3003         * Makerules (all-nonlib): Add $(others-extras).
3004         * catgets/Makefile (others-extras): New.
3005         * elf/Makefile (others-extras): Likewise.
3006         * nss/Makefile (others-extras): Likewise.
3008 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
3010         [BZ #18822]
3011         * csu/libc-start.c (__libc_multiple_libcs): Removed.
3012         * elf/dl-open.c: Include <libc-internal.h>.
3013         (__libc_multiple_libcs): Removed.
3014         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
3015         <hp-timing.h>.
3016         * include/libc-internal.h (__libc_multiple_libcs): New.
3017         * misc/sbrk.c: Include <libc-internal.h>.
3018         (__libc_multiple_libcs): Removed.
3020 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
3022         [BZ #18822]
3023         * grp/initgroups.c (__nss_group_database): Removed.
3024         (__nss_initgroups_database): Likewise.
3025         * nscd/gai.c (__nss_hosts_database): Likewise.
3026         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
3027         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
3028         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
3029         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
3030         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
3031         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
3032         attribute_hidden.
3033         * nss/nsswitch.c (__nss_database_custom): Define only if
3034         USE_NSCD is defined.
3035         (__nss_configure_lookup): Use __nss_database_custom only if
3036         USE_NSCD is defined.
3037         * nss/nsswitch.h (__nss_database_custom): Declare only if
3038         USE_NSCD is defined.  Add attribute_hidden.
3039         (__nss_setent): Add attribute_hidden.
3040         (__nss_endent): Likewise.
3041         (__nss_getent_r): Likewise.
3042         (__nss_getent): Likewise.
3043         (DEFINE_DATABASE): Declare __nss_##arg##_database.
3045 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3047         [BZ #18822]
3048         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
3049         libc_hidden_proto and libc_hidden_def.
3051 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3053         [BZ #18822]
3054         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
3055         Add libc_hidden_proto.
3056         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
3057         Add libc_hidden_def.
3059 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3061         [BZ #21974]
3062         * gmon/Makefile (routines): Remove bb_init_func and
3063         bb_exit_func.
3064         (elide-routines.os): Removed.
3065         * gmon/bb_exit_func.c: Likewise.
3066         * gmon/bb_init_func.c: Likewise.
3067         * include/sys/gmon.h (__bb): Likewise.
3068         (__bb_init_func): Likewise.
3069         (__bb_exit_func): Likewise.
3070         * sysdeps/alpha/bb_init_func.S: Likewise.
3072 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3074         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
3075         * include/setjmp.h (____longjmp_chk): Here.  Add
3076         attribute_hidden.
3078 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
3080         [BZ #18822]
3081         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
3082         attribute_hidden.
3083         (__strspn_sse2): Likewise.
3085 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3087         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
3088         (close_not_cancel_no_status): Likewise.
3089         (__close_nocancel): New macro.
3090         (__close_nocancel_nostatus): Likewise.
3091         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
3092         macro.
3093         (close_not_cancel): Likewise.
3094         (close_not_cancel_no_status): Likewise.
3095         (__close_nocancel): New prototype.
3096         (__close_nocancel_nostatus): New function.
3097         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
3098         * catgets/open_catalog.c (__open_catalog): Replace
3099         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
3100         * gmon/gmon.c (write_gmon): Likewise.
3101         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3102         * intl/loadmsgcat.c (close): Likewise.
3103         * io/ftw.c (open_dir_stream): Likewise.
3104         (ftw_startup): Likewise.
3105         * libio/fileops.c (_IO_file_open): Likewise.
3106         (_IO_file_close_mmap): Likewise.
3107         (_IO_file_close): Likewise.
3108         * libio/iopopen.c (_IO_dup2): Likewise.
3109         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
3110         * locale/loadlocale.c (_nl_load_locale): Likewise.
3111         * login/utmp_file.c (pututline_file): Likewise.
3112         (endutent_file): Likewise.
3113         * misc/daemon.c (daemon): Likewise.
3114         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3115         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3116         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3117         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3118         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3119         * nscd/nscd_helper.c (open_socket): Likewise.
3120         (__nscd_open_socket): Likewise.
3121         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3122         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
3123         (__nscd_innetgr): Likewise.
3124         * nss/nss_db/db-open.c (internal_setent): Likewise.
3125         * resolv/res-close.c (__res_iclose): Likewise.
3126         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
3127         * sysdeps/posix/closedir.c (__closedir): Likewise.
3128         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
3129         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
3130         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
3131         (opendir_tail): Likewise.
3132         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3133         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
3134         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
3135         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
3136         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
3137         (gethostid): Likewise.
3138         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
3139         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
3140         Likewise.
3141         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
3142         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
3143         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
3144         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
3145         Likewise.
3146         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
3147         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
3148         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
3149         Likewise.
3150         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
3151         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
3152         Likewise.
3153         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
3154         Likewise.
3155         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3156         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
3157         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
3158         __close_nocancel.
3160         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
3161         (openat_not_cancel_3): Likewise.
3162         (openat64_not_cancel_3): Likewise).
3163         (openat_not_cancel_3): Likewise).
3164         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
3165         macro.
3166         (openat_not_cancel_3): Likewise.
3167         (openat64_not_cancel): Likewise.
3168         (openat64_not_cancel_3): Likewise.
3169         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
3170         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
3171         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
3172         __open{64}_nocancel.
3173         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
3174         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
3175         * sysdeps/posix/opendir.c (__opendirat): Likewise.
3177 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3179         [BZ #18822]
3180         * include/argz.h (__argz_create_sep): New function prototype.
3181         (__argz_append): Likewise.
3182         (__argz_add): Likewise.
3183         (__argz_add_sep): Likewise.
3184         (__argz_delete): Likewise.
3185         (__argz_insert): Likewise.
3186         (__argz_replace): Likewise.
3187         * string/argz.h (__argz_create_sep): Removed.
3188         (__argz_append): Likewise.
3189         (__argz_add): Likewise.
3190         (__argz_add_sep): Likewise.
3191         (__argz_delete): Likewise.
3192         (__argz_insert): Likewise.
3193         (__argz_replace): Likewise.
3195 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3197         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
3198         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
3199         (GNU_PROPERTY_STACK_SIZE): Likewie.
3200         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
3201         (GNU_PROPERTY_LOPROC): Likewise.
3202         (GNU_PROPERTY_HIPROC): Likewise.
3203         (GNU_PROPERTY_LOUSER): Likewise.
3204         (GNU_PROPERTY_HIUSER): Likewise.
3205         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
3206         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
3207         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
3208         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
3209         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
3210         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
3211         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
3212         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
3213         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
3214         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
3215         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
3216         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
3217         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
3218         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
3219         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
3220         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
3221         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
3222         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
3223         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
3224         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
3225         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
3226         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
3227         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
3229 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3231         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
3232         in C++ mode.
3234 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3236         [BZ #21930]
3237         * math/math.h (isinf): Check if in C or C++ mode before using
3238         __builtin_types_compatible_p, since this is a C mode feature.
3240 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3242         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
3243         (__write_nocancel): New macro.
3244         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
3245         Rewrite as a function prototype.
3246         (write_not_cancel): Remove macro.
3247         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
3248         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
3249         (write_gmon): Likewise.
3250         * libio/fileops.c (_IO_new_file_write): Likewise.
3251         * login/utmp_file.c (pututline_file): Likewise.
3252         (updwtmp_file): Likewise.
3253         * stdio-common/psiginfo.c (psiginfo): Likewise.
3254         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3255         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
3256         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
3257         Likewise.
3258         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
3259         Likewise.
3261         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
3262         (__read_nocancel): New macro.
3263         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
3264         __read_nocancel.
3265         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
3266         macro.
3267         (__read_nocancel): New prototype.
3268         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
3269         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
3270         with __read_nocancel.
3271         * intl/loadmsgcat.c (read): Likewise.
3272         * libio/fileops.c (_IO_file_read): Likewise.
3273         * locale/loadlocale.c (_nl_load_locale): Likewise.
3274         * login/utmp_file.c (getutent_r_file): Likewise.
3275         (internal_getut_r): Likewise.
3276         (getutline_r_file): Likewise.
3277         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
3278         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3279         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
3280         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
3281         Likewise.
3282         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
3283         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
3284         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
3285         Likewise.
3286         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
3287         Likewise.
3288         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
3289         Likewise.
3290         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
3291         Likewise.
3292         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
3294 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3296         [BZ #21966]
3297         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
3298         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
3299         usable.
3301 2017-08-17  DJ Delorie  <dj@redhat.com>
3303         * bug17079.c: Update to new test harness.
3304         * test-digits-dots.c: Likewise.
3305         * test-netdb.c: Likewise.
3306         * tst-field.c: Likewise.
3307         * tst-nss-getpwent.c: Likewise.
3308         * tst-nss-static.c: Likewise.
3309         * tst-nss-test1.c: Likewise.
3310         * tst-nss-test2.c: Likewise.
3311         * tst-nss-test3.c: Likewise.
3312         * tst-nss-test4.c: Likewise.
3313         * tst-nss-test5.c: Likewise.
3315 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3317         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
3318         (open_not_cancel_2): Likewise.
3319         (open_nocancel): New macro.
3320         (open64_nocancel): Likewise.
3321         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
3322         (open_not_cancel_2): Likewise.
3323         (__open_nocancel): New prototype.
3324         (__open64_nocancel): Likewise.
3325         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
3326         __open_nocancel.
3327         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
3328         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
3329         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
3330         with __open_nocancel.
3331         * csu/check_fds.c (check_one_fd): Likewise.
3332         * gmon/gmon.c (write_gmon): Likewise.
3333         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
3334         * intl/loadmsgcat.c (open): Likewise.
3335         * libio/fileops.c (_IO_file_open): Likewise.
3336         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
3337         * locale/loadlocale.c (_nl_load_locale): Likewise.
3338         * login/utmp_file.c (setutent_file): Likewise.
3339         * misc/daemon.c (daemon): Likewise.
3340         * nss/nss_db/db-open.c (internal_setent): Likewise.
3341         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
3342         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
3343         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
3344         (__opendir): Likewise.
3345         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3346         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
3347         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
3348         (gethostid): Likewise.
3349         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
3350         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
3351         Likewise.
3352         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
3353         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
3354         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
3355         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
3356         Likewise.
3357         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
3358         Likewise.
3359         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
3360         Likewise.
3361         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
3362         Likewise.
3363         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
3364         Likewise.
3365         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
3366         Likewise.
3367         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3368         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
3370 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
3372         * benchtests/bench-skeleton.c (main): Add support for
3373         latency benchmarking.
3374         * benchtests/scripts/bench.py: Add support for latency benchmarking.
3376 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
3378         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
3379         the startup object.
3381 2017-08-17  Florian Weimer  <fweimer@redhat.com>
3383         * include/sys/socket.h (__opensock): Remove internal_function.
3384         * socket/opensock.c (__opensock): Likewise.
3385         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
3387 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
3389         [BZ #21944]
3390         * signal/bits/types/__sigval_t.h: New file.
3391         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
3392         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
3393         and define sigval_t using __sigval_t.
3394         * include/bits/types/__sigval_t.h: New file.
3395         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
3396         instead of <bits/types/__sigval_t.h>.
3397         (struct sigevent): Use __sigval_t instead of sigval_t.
3398         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
3399         instead of <bits/types/__sigval_t.h>.
3400         (siginfo_t): Use __sigval_t instead of sigval_t.
3401         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
3402         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
3403         (struct sigevent): Use __sigval_t instead of sigval_t.
3404         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
3405         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
3406         (siginfo_t): Use __sigval_t instead of sigval_t.
3407         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
3409 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
3411         * NEWS: Remove "[Add new features here]" for 2.27.
3413 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
3415         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
3416         libc.so.
3418 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
3420         * NEWS: Mention x86-64 FMA optimization.
3422 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
3424         [BZ #21912]
3425         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3426         Add e_expf-fma.
3427         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
3428         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
3429         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
3431 2017-08-16  Andreas Schwab  <schwab@suse.de>
3433         [BZ #16750]
3434         CVE-2009-5064
3435         * elf/ldd.bash.in: Never run file directly.
3437 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
3439         [BZ #21955]
3440         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
3441         (L(SP_INF_0)): Likewise.
3443 2017-08-15  Florian Weimer  <fweimer@redhat.com>
3445         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
3446         run-built-tests.
3448 2017-08-15  Florian Weimer  <fweimer@redhat.com>
3450         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
3451         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
3452         BROKEN_THREAD_SIGNALS code.
3453         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
3454         request_list): Remove caller_pid member used for
3455         BROKEN_THREAD_SIGNALS.
3456         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
3457         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
3458         Remove BROKEN_THREAD_SIGNALS support.
3459         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
3460         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
3462 2017-08-15  Florian Weimer  <fweimer@redhat.com>
3464         * gmon/Makefile (tests): Add tst-gmon.
3465         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
3466         Set.
3467         (tests-special): Add tst-gmon-prof.out.
3468         (tst-gmon.out): Depend on clean-tst-gmon-data.
3469         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
3470         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
3471         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
3472         startup object.
3473         * aclocal.m4 (GPROF): Set and substitute.
3474         * config.amke.in (GPROF): Set.
3475         * configure: Regenerate.
3477 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
3479         * elf/elf.h A (NT_PPC_TAR): New macro.
3480         (NT_PPC_PPR): Likewise.
3481         (NT_PPC_DSCR): Likewise.
3482         (NT_PPC_EBB): Likewise.
3483         (NT_PPC_PMU): Likewise.
3484         (NT_PPC_TM_CGPR): Likewise.
3485         (NT_PPC_TM_CFPR): Likewise.
3486         (NT_PPC_TM_CVMX): Likewise.
3487         (NT_PPC_TM_CVSX): Likewise.
3488         (NT_PPC_TM_SPR): Likewise.
3489         (NT_PPC_TM_CTAR): Likewise.
3490         (NT_PPC_TM_CPPR): Likewise.
3491         (NT_PPC_TM_CDSCR): Likewise.
3493 2017-08-15  Florian Weimer  <fweimer@redhat.com>
3495         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
3496         regparm (2) instead of internal_function.
3497         (_MCOUNT_DECL): Adjust.
3499 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
3501         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
3502         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
3504 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
3506         * conform/data/sys/wait.h-data (si_value): Do not expect for
3507         XPG42.
3509 2017-08-14  Florian Weimer  <fweimer@redhat.com>
3511         [BZ #21962]
3512         NSS: Create stubs for accidentally exported lookup functions.
3513         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
3514         Remove declaration.
3515         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
3516         (ether_hostton): Call __nss_ethers_lookup2 instead.
3517         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
3518         (ether_ntohost): Call __nss_ethers_lookup2 instead.
3519         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
3520         (setup): Call __nss_netgroup_lookup2 instead.
3521         * nss/Makefile (routines): Add compat-lookup.
3522         * nss/Versions (GLIBC_2.27): Add symbol version.
3523         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
3524         (DB_COMPAT_FCT): Remove.
3525         * nss/compat-lookup.c: New file.
3526         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
3527         from databases.def.
3528         * nss/service-lookup.c (NO_COMPAT): Remove definition.
3529         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
3530         (netname2user): Call __nss_publickey_lookup2 instead.
3531         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
3532         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
3533         instead.
3535 2017-08-14 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3536             Sergei Trofimovich  <slyfox@inbox.ru>
3538         [BZ #21908]
3539         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
3540         Rename to MMAP2_PAGE_UNIT.
3541         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
3542         __OFF_T_MATCHES_OFF64_T is not defined.
3543         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
3544         uint64_t.
3545         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
3546         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
3548 2017-08-14  Florian Weimer  <fweimer@redhat.com>
3550         i386: Do not set internal_function.
3551         * config.h.in (USE_REGPARMS, internal_function): Remove.
3552         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
3553         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
3555 2017-08-14  Florian Weimer  <fweimer@redhat.com>
3557         * elf/dl-init.c (_dl_init): Remove internal_function.
3558         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
3559         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
3561 2017-08-14  Florian Weimer  <fweimer@redhat.com>
3563         * elf/rtld.c (_dl_start): Remove internal_function.
3564         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
3565         _dl_start.
3567 2017-08-14  Florian Weimer  <fweimer@redhat.com>
3569         * elf/dl-fini.c (_dl_fini): Remove internal_function
3570         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
3572 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
3574         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
3575         (bit_cpu_SHSTK): Likewise.
3576         (index_cpu_IBT): Likewise.
3577         (index_cpu_SHSTK): Likewise.
3578         (reg_IBT): Likewise.
3579         (reg_SHSTK): Likewise.
3580         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
3581         Handle index_cpu_IBT and index_cpu_SHSTK.
3583 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
3585         [BZ #19982]
3586         * po/fr.po: Fix spelling mistake.
3588 2017-08-13  Florian Weimer  <fweimer@redhat.com>
3590         * elf/dl-addr.c (_dl_addr): Remove internal_function.
3591         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
3592         (_dl_catch_error, _dl_receive_error): Likewise.
3593         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
3594         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
3595         (_dl_deallocate_tls): Likewise.
3596         * include/dlfcn.h (_dl_addr): Likewise.
3597         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
3598         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
3599         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
3600         Likewise.
3602 2017-08-13  Florian Weimer  <fweimer@redhat.com>
3604         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
3605         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
3606         internal_function.
3607         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
3609 2017-08-13  Florian Weimer  <fweimer@redhat.com>
3611         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
3612         internal_function.
3613         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
3614         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
3615         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
3616         internal_function from _dl_make_stack_executable_hook member.
3617         (_dl_make_stack_executable): Remove internal_function.
3618         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
3619         Likewise.
3620         * sysdeps/unix/sysv/linux/dl-execstack.c
3621         (_dl_make_stack_executable): Likewise.
3623 2017-08-13  Florian Weimer  <fweimer@redhat.com>
3625         * sysdeps/unix/sysv/linux/netlinkaccess.h
3626         (__netlink_assert_response): Remove internal_function.
3627         * sysdeps/unix/sysv/linux/netlink_assert_response.c
3628         (__netlink_assert_response): Likewise.
3630 2017-08-13  Florian Weimer  <fweimer@redhat.com>
3632         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
3633         internal_function.
3634         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
3636 2017-08-13  Florian Weimer  <fweimer@redhat.com>
3638         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
3639         internal_function.
3640         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
3641         * inet/netgroup.h (__internal_setnetgrent)
3642         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
3643         * inet/getnetgrent_r.c (__internal_setnetgrent)
3644         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
3645         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
3646         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
3647         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
3648         * nss/nsswitch.h (db_lookup_function): Likewise.
3650 2017-08-13  Florian Weimer  <fweimer@redhat.com>
3652         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
3653         Remove internal_function.
3654         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
3655         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
3656         message argument on the stack.
3657         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
3658         Likeweise.
3660 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
3662         Adapt test case data to the changes in the thousands
3663         separators.
3665         [BZ #20756]
3666         * localedata/tst-langinfo.sh: Adapt test case data.
3667         * stdlib/tst-strfmon_l.c: Likewise.
3668         * stdlib/tst-strtod4.c: Likewise.
3669         * stdlib/tst-strtod5i.c: Likewise.
3671 2017-08-11  Florian Weimer  <fweimer@redhat.com>
3673         [BZ #21242]
3674         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
3675         Suppress pedantic warning resulting from statement expression.
3676         (__ASSERT_FUNCTION): Add missing __extension__.
3678 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3680         * benchtests/bench-memmove-large.c: Print output in JSON
3681         format.
3682         * benchtests/bench-memmove.c: Likewise.
3684         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
3685         * benchtests/bench-memchr.c (do_one_test): Likewise.
3686         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
3687         * benchtests/bench-memcpy.c (do_one_test): Likewise.
3688         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
3689         * benchtests/bench-memmove.c (do_one_test): Likewise.
3690         * benchtests/bench-memset-large.c (do_one_test): Likewise.
3691         * benchtests/bench-memset.c (do_one_test): Likewise.
3692         * benchtests/bench-string.h (test_init): Remove memsets.
3694 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
3696         * manual/lang.texi
3697         (Computing the Width of an Integer Data Type): Rename section to
3698         "Width of an Integer Type".  Remove inaccurate statement regarding
3699         lack of C language facilities for determining width of integer
3700         types, and reorder content to improve flow and context of
3701         discussion.
3703 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
3705         * lang.texi (va_copy): Change standard from ISO to C99.
3706         (__va_copy): Add standard and header annotation.
3707         Update description for clarity of origins and current use.
3709 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3711         [BZ #21941]
3712         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
3713         xssqrtqp requires operands to be in Vector Registers
3714         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
3715         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
3716         (__ieee754_sqrtf128): Likewise.
3718 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
3720         * sysdeps/aarch64/memcmp.S (memcmp):
3721         Rewrite of optimized memcmp.
3723 2017-08-10  Florian Weimer  <fweimer@redhat.com>
3725         Introduce ld.so exceptions.
3726         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
3727         (_dl_exception_create, _dl_exception_create_format)
3728         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
3729         (_dl_catch_exception): Declare.
3730         (_dl_catch_error): Update comment.
3731         * elf/dl-error-skeleton.c (struct catch): Replace objname,
3732         errstring, malloced members with exception member.
3733         (_dl_out_of_memory): Remove.
3734         (fatal_error): New function, extracted from _dl_signal_error.
3735         (_dl_signal_exception, _dl_signal_cexception): New functions.
3736         (_dl_signal_error): Call _dl_exception_create to allocate an
3737         exception object.
3738         (_dl_catch_exception): New function, based on _dl_catch_error.
3739         (_dl_catch_error): Implement using _dl_catch_exception.
3740         * elf/dl-exception.c: New file.
3741         * elf/Makefile (dl-routines): Add dl-exception.
3742         (elide-routines.os): Likewise.
3743         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
3744         _dl_exception_create_format, _dl_exception_free.
3745         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
3746         _dl_signal_exception.
3747         * elf/dl-lookup.c (make_string): Remove.
3748         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
3749         _dl_signal_cexception, _dl_exception_free.
3750         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
3751         _dl_signal_exception.
3752         * elf/dl-sym.c (do_sym): Likewise.
3753         * elf/dl-version.c (make_string): Remove.
3754         (match_symbol): Use _dl_exception_create_format,
3755         _dl_signal_cexception, _dl_exception_free.
3756         (_dl_check_map_versions): Likewise.
3757         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
3758         _dl_catch_exception.
3759         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
3760         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
3761         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
3762         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
3763         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
3764         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
3765         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
3766         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
3767         Likewise.
3768         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
3769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
3770         (ld.so): Likewise.
3771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
3772         (ld.so): Likewise.
3773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
3774         Likewise.
3775         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
3776         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
3777         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
3778         Likewise.
3779         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
3780         Likewise.
3781         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
3783 2017-08-10  Florian Weimer  <fweimer@redhat.com>
3785         * inet/net-internal.h (__inet6_scopeid_pton): Remove
3786         attribute_hidden, internal_function.
3787         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
3788         internal_function.
3790 2017-08-10  Florian Weimer  <fweimer@redhat.com>
3792         * malloc/malloc.c (get_max_fast): Reimplement as an inline
3793         function which calls __builtin_unreachable.
3795 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
3797         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
3798         Indian monetary formatting
3799         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
3800         test cases.
3802 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
3804         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
3805         Fix typo in comment.
3807         [BZ #21928]
3808         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
3809         PTRACE_SEIZE_DEVEL): Remove.
3810         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
3811         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3812         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3813         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3814         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3816 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
3818         * posix/bits/types.h (__qaddr_t): Remove.
3820         [BZ #21457]
3821         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
3822         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
3823         __glibc_reserved1.
3824         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
3825         (ucontext_t): Use __ctx with uc_flags.
3826         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
3827         (__ctxt): Likewise.
3828         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
3829         __glibc_reserved1.
3830         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
3831         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
3832         __glibc_reserved1.
3833         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
3834         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
3835         __glibc_reserved1.
3836         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
3837         macro.
3838         (ucontext_t): Use __ctx with uc_flags.
3839         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
3840         (ucontext_t): Use __ctx with uc_flags.
3841         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
3842         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
3843         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
3844         (ucontext_t): Use __ctx with uc_flags.
3845         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
3846         undefine further down.
3847         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
3848         __glibc_reserved1.
3849         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
3850         undefine further down.
3851         (ucontext_t): Use __ctx with uc_flags.
3852         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
3853         undefine further down.
3854         (ucontext_t): Use __ctx with uc_flags.
3855         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
3856         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
3857         Rename uc_pad to __glibc_reserved1.
3858         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
3859         undefine further down.
3860         (ucontext_t): Use __ctx with uc_flags.
3861         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
3862         further down.
3863         (ucontext_t): Use __ctx with uc_flags.
3864         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
3865         __ctx with uc_flags.
3866         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
3867         (ucontext_t): Use __ctx with uc_flags.
3868         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
3869         __ctx with uc_flags.
3871 2017-08-09  Florian Weimer  <fweimer@redhat.com>
3873         [BZ #21932]
3874         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
3875         before early return.
3877 2017-08-09  Andreas Schwab  <schwab@suse.de>
3879         [BZ #21041]
3880         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
3881         renamed alias.
3883         [BZ #21041]
3884         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
3885         tst-compat-forwarder.
3886         (modules-names): Add tst-compat-forwarder-mod.
3887         ($(objpfx)tst-compat-forwarder): Depend on
3888         $(objpfx)tst-compat-forwarder-mod.so.
3889         * nptl/tst-compat-forwarder.c: New file.
3890         * nptl/tst-compat-forwarder-mod.c: New file.
3892 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3894         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
3895         comments.
3897         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
3898         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3899         memcpy_falkor.
3900         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
3901         Bump.
3902         (__libc_ifunc_impl_list): Add __memcpy_falkor.
3903         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
3904         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
3905         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3906         Add falkor.
3907         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
3908         New macro.
3910 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3912         [BZ #759]
3913         * manual/setjmp.texi (getcontex): Document uc_stack value
3914         compatibility differences.
3916 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
3918         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
3919         (old_malloc_hook): Likewise.
3920         (old_memalign_hook): Likewise.
3921         (old_realloc_hook): Likewise.
3922         (struct hdr): Likewise.
3923         (flood): Likewise.
3924         (freehook): Likewise.
3925         (mallochook): Likewise.
3926         (memalignhook): Likewise.
3927         (reallochook): Likewise.
3928         (mprobe): Likewise.
3929         * malloc/mtrace.c (mallwatch): Likewise.
3930         (tr_old_free_hook): Likewise.
3931         (tr_old_malloc_hook): Likewise.
3932         (tr_old_realloc_hook): Likewise.
3933         (tr_old_memalign_hook): Likewise.
3934         (tr_where): Likewise.
3935         (lock_and_info): Likewise.
3936         (tr_freehook): Likewise.
3937         (tr_mallochook): Likewise.
3938         (tr_reallochook): Likewise.
3939         (tr_memalignhook): Likewise.
3940         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
3941         * misc/mmap.c (__mmap): Likewise.
3942         * misc/mmap64.c (__mmap64): Likewise.
3943         * misc/mprotect.c (__mprotect): Likewise.
3944         * misc/msync.c (msync): Likewise.
3945         * misc/munmap.c (__munmap): Likewise.
3946         * posix/posix_madvise.c (posix_madvise): Likewise.
3947         * socket/send.c (__send): Likewise.
3948         * socket/sendto.c (__sendto): Likewise.
3949         * socket/setsockopt.c (__setsockopt): Likewise.
3950         * string/memcmp.c (__ptr_t): Remove macro.
3951         (MEMCMP): Use void * instead of ptr_t.
3952         * string/memrchr.c (__ptr_t): Remove macro.
3953         (__memrchr): Use void * instead of ptr_t.
3954         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
3955         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
3956         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
3957         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
3958         * sysdeps/mach/msync.c (msync): Likewise.
3959         * sysdeps/mach/munmap.c (__munmap): Likewise.
3960         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
3961         Likewise.
3962         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
3963         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3964         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
3965         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
3966         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
3967         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
3968         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
3969         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
3970         Likewise.
3971         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
3972         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3973         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3974         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
3975         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
3976         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
3977         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
3978         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
3979         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
3980         Likewise.
3981         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
3982         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
3983         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
3984         (MEMCMP): Use void * instead of ptr_t.
3985         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
3986         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
3988 2017-08-08  Florian Weimer  <fweimer@redhat.com>
3990         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
3991         return statement.
3993 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
3995         [BZ #21913]
3996         * csu/libc-tls.c: Include <startup.h> first.
3997         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
3998         * elf/dl-tunables.c: Include <startup.h> first.
3999         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
4000         * sysdeps/generic/startup.h: New file.
4001         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
4002         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
4003         (I386_USE_SYSENTER): New.  Defined to 0.
4005 2017-08-08  Andreas Schwab  <schwab@suse.de>
4007         [BZ #21041]
4008         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
4009         * nptl/pt-system.c (system): Likewise.
4011 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4013         [BZ #21780]
4014         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
4015         EOPNOTSUPP.
4016         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
4017         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
4018         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
4019         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
4020         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
4021         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
4022         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
4024 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
4026         [BZ #21899]
4027         * bits/sigaction.h (struct sigaction): Define sa_handler and
4028         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
4029         (SA_ONSTACK): Change [__USE_UNIX98] condition to
4030         [__USE_XOPEN_EXTENDED].
4031         (SA_RESTART): Likewise.
4032         (SA_NODEFER): Likewise.
4033         (SA_RESETHAND): Likewise.
4034         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
4035         (struct sigaction): Define sa_handler and sa_sigaction using union
4036         also for [__USE_XOPEN_EXTENDED].
4037         (SA_ONSTACK): Change [__USE_UNIX98] condition to
4038         [__USE_XOPEN_EXTENDED].
4039         (SA_RESTART): Likewise.
4040         (SA_NODEFER): Likewise.
4041         (SA_RESETHAND): Likewise.
4042         * sysdeps/unix/sysv/linux/bits/sigaction.h
4043         (struct sigaction): Define sa_handler and sa_sigaction using union
4044         also for [__USE_XOPEN_EXTENDED].
4045         (SA_ONSTACK): Change [__USE_UNIX98] condition to
4046         [__USE_XOPEN_EXTENDED].
4047         (SA_RESTART): Likewise.
4048         (SA_NODEFER): Likewise.
4049         (SA_RESETHAND): Likewise.
4050         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
4051         (struct sigaction): Define sa_handler and sa_sigaction using union
4052         also for [__USE_XOPEN_EXTENDED].
4053         (SA_ONSTACK): Change [__USE_UNIX98] condition to
4054         [__USE_XOPEN_EXTENDED].
4055         (SA_RESTART): Likewise.
4056         (SA_NODEFER): Likewise.
4057         (SA_RESETHAND): Likewise.
4058         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
4059         (struct sigaction): Define sa_handler and sa_sigaction using union
4060         also for [__USE_XOPEN_EXTENDED].
4061         (SA_ONSTACK): Change [__USE_UNIX98] condition to
4062         [__USE_XOPEN_EXTENDED].
4063         (SA_RESTART): Likewise.
4064         (SA_NODEFER): Likewise.
4065         (SA_RESETHAND): Likewise.
4066         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
4067         (struct sigaction): Define sa_handler and sa_sigaction using union
4068         also for [__USE_XOPEN_EXTENDED].
4069         (SA_ONSTACK): Change [__USE_UNIX98] condition to
4070         [__USE_XOPEN_EXTENDED].
4071         (SA_RESTART): Likewise.
4072         (SA_NODEFER): Likewise.
4073         (SA_RESETHAND): Likewise.
4074         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
4075         (struct sigaction): Define sa_handler and sa_sigaction using union
4076         also for [__USE_XOPEN_EXTENDED].
4077         (SA_ONSTACK): Change [__USE_UNIX98] condition to
4078         [__USE_XOPEN_EXTENDED].
4079         (SA_RESTART): Likewise.
4080         (SA_NODEFER): Likewise.
4081         (SA_RESETHAND): Likewise.
4082         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
4083         (struct sigaction): Define sa_handler and sa_sigaction using union
4084         also for [__USE_XOPEN_EXTENDED].
4085         (SA_ONSTACK): Change [__USE_UNIX98] condition to
4086         [__USE_XOPEN_EXTENDED].
4087         (SA_RESTART): Likewise.
4088         (SA_NODEFER): Likewise.  Define directly rather than as alias.
4089         (SA_RESETHAND): Likewise.
4090         (SA_INTERRUPT): Define only for [__USE_MISC].
4091         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
4092         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
4093         [__USE_MISC].
4094         (SA_STACK): Define only for [__USE_MISC].
4095         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
4096         (struct sigaction): Define sa_handler and sa_sigaction using union
4097         also for [__USE_XOPEN_EXTENDED].
4098         (SA_ONSTACK): Change [__USE_UNIX98] condition to
4099         [__USE_XOPEN_EXTENDED].
4100         (SA_RESTART): Likewise.
4101         (SA_NODEFER): Likewise.
4102         (SA_RESETHAND): Likewise.
4103         (SA_NOPTRACE): Define only for [__USE_MISC].
4105         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
4106         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
4107         (struct catalog_info): Likewise.
4108         * inet/htontest.c (lo): Likewise.
4109         (foo): Likewise.
4110         * inet/inet_lnaof.c (inet_lnaof): Likewise.
4111         * inet/inet_net.c (inet_network): Likewise.
4112         * inet/inet_netof.c (inet_netof): Likewise.
4113         * inet/rcmd.c (__ivaliduser): Likewise.
4114         (iruserok): Likewise.
4115         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
4116         * locale/programs/locale-spec.c (locale_special): Likewise.
4117         * nis/nis_findserv.c (struct findserv_req): Likewise.
4118         (__nis_findfastest_with_timeout): Likewise.
4119         * nss/test-netdb.c (test_network): Likewise.
4120         * resolv/inet_neta.c (inet_neta): Likewise.
4121         * resolv/ns_date.c (ns_datetosecs): Likewise.
4122         (SECS_PER_DAY): Likewise.
4123         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
4124         Likewise.
4125         * resolv/res_comp.c (__putlong): Likewise.
4126         (__putshort): Likewise.
4127         (_getlong): Likewise.
4128         (_getshort): Likewise.
4129         * resolv/res_debug.c (p_time): Likewise.
4130         (precsize_ntoa): Likewise.
4131         (precsize_aton): Likewise.
4132         (latlon2ul): Likewise.
4133         (loc_aton): Likewise.
4134         (loc_ntoa): Likewise.
4135         * resolv/res_hconf.c (struct netaddr): Likewise.
4136         (_res_hconf_reorder_addrs): Likewise.
4137         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
4138         (clnttcp_control): Likewise.
4139         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
4140         (clntudp_control): Likewise.
4141         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
4142         (clntunix_control): Likewise.
4143         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
4144         * sunrpc/rpc/auth.h (union des_block): Likewise.
4145         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
4146         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
4147         (xdrrec_create): Likewise.
4148         (xdrrec_endofrecord): Likewise.
4149         (flush_out): Likewise.
4150         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
4151         (xdrstdio_putlong): Likewise.
4152         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
4153         Likewise.
4155         * misc/sys/cdefs.h (__long_double_t): Remove.
4156         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
4157         instead of __long_double_t,
4158         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
4160 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4162         * benchtests/scripts/compare_strings.py: Avoid display error when
4163         running on a text terminal.
4165         * benchtests/scripts/compare_strings.py (main): Add an
4166         optional -base option.
4167         (process_results): New argument base_func.
4169         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
4170         hardcoding memcpy.
4171         * benchtests/bench-memcpy-large.c (test_name): Likewise.
4172         * benchtests/bench-memcpy-random.c (test_name): Likewise.
4174 2017-08-07  Andreas Schwab  <schwab@suse.de>
4176         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
4177         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
4178         * intl/Makefile ($(objpfx)tst-gettext.out)
4179         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
4180         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
4181         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
4182         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
4183         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
4184         * posix/Makefile ($(objpfx)globtest.out)
4185         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
4186         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
4187         ($(objpfx)tst-printf.out): Likewise.
4188         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
4189         ($(objpfx)tst-setcontext3.out): Likewise.
4191 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
4193         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4194         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
4195         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
4196         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
4197         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
4198         and mptan-fma.
4199         (CFLAGS-doasin-fma.c): New.
4200         (CFLAGS-dosincos-fma.c): Likewise.
4201         (CFLAGS-e_asin-fma.c): Likewise.
4202         (CFLAGS-e_atan2-fma.c): Likewise.
4203         (CFLAGS-e_exp-fma.c): Likewise.
4204         (CFLAGS-e_log-fma.c): Likewise.
4205         (CFLAGS-e_pow-fma.c): Likewise.
4206         (CFLAGS-halfulp-fma.c): Likewise.
4207         (CFLAGS-mpa-fma.c): Likewise.
4208         (CFLAGS-mpatan-fma.c): Likewise.
4209         (CFLAGS-mpatan2-fma.c): Likewise.
4210         (CFLAGS-mpexp-fma.c): Likewise.
4211         (CFLAGS-mplog-fma.c): Likewise.
4212         (CFLAGS-mpsqrt-fma.c): Likewise.
4213         (CFLAGS-mptan-fma.c): Likewise.
4214         (CFLAGS-s_atan-fma.c): Likewise.
4215         (CFLAGS-sincos32-fma.c): Likewise.
4216         (CFLAGS-slowexp-fma.c): Likewise.
4217         (CFLAGS-slowpow-fma.c): Likewise.
4218         (CFLAGS-s_sin-fma.c): Likewise.
4219         (CFLAGS-s_tan-fma.c): Likewise.
4220         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
4221         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
4222         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
4223         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
4224         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
4225         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
4226         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
4227         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
4228         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
4229         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
4230         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
4231         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
4232         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
4233         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
4234         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
4235         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
4236         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
4237         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
4238         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
4239         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
4240         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
4241         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
4242         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
4243         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
4244         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
4245         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4246         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4247         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
4248         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4249         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4250         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4252 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
4254         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
4255         (min_of_type_f): New macro.
4256         (min_of_type_): Likewise.
4257         (min_of_type_l): Likewise.
4258         (min_of_type_f128): Likewise.
4259         (min_of_type): Define using __MATH_TG and taking an expression
4260         argument.
4261         (math_check_force_underflow): Pass expression instead of type to
4262         min_of_type.
4263         (math_check_force_underflow_nonneg): Likewise.
4265 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4267         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
4268         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
4269         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
4271 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4273         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
4274         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
4275         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
4276         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
4277         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
4278         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
4279         memcpy_chk-nonshared, mempcpy_chk-nonshared,
4280         memmove_chk-nonshared and memset_chk-nonshared
4281         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
4282         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
4283         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
4284         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
4285         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
4286         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
4287         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
4288         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
4289         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
4290         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
4291         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
4292         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
4293         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
4294         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
4295         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
4296         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
4297         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
4298         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
4299         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
4300         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
4301         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
4302         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
4303         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
4304         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
4305         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
4306         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
4307         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
4308         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
4309         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
4310         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
4311         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
4312         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
4313         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
4314         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
4315         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
4316         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
4317         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
4318         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
4319         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
4320         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
4321         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
4322         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
4323         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
4324         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
4325         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
4326         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
4327         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
4328         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
4329         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
4330         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
4331         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
4332         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
4333         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
4334         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
4335         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
4336         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
4337         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
4338         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
4339         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
4340         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
4341         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
4342         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
4343         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
4344         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
4345         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
4346         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
4347         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
4348         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
4349         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
4350         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
4351         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
4352         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
4353         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
4354         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
4355         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
4356         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
4357         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
4358         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
4359         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
4360         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
4361         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
4362         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
4363         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
4364         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
4365         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
4366         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
4367         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4368         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
4369         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
4370         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4371         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
4372         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
4373         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
4374         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4375         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
4376         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
4377         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
4378         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
4379         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
4380         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
4381         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
4382         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
4383         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
4384         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
4385         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
4386         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
4387         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
4388         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
4390 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4392         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
4393         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
4394         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
4395         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
4396         svml_d_log2_core-sse2, svml_d_log4_core-sse,
4397         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
4398         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
4399         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
4400         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
4401         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
4402         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
4403         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
4404         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
4405         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
4406         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
4407         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
4408         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
4409         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
4410         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
4411         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
4412         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
4413         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
4414         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
4415         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
4416         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
4417         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
4418         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
4419         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
4420         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
4421         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
4422         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
4423         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
4424         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
4425         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
4426         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
4427         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
4428         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
4429         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
4430         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
4431         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
4432         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
4433         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
4434         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
4435         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
4436         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
4437         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
4438         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
4439         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
4440         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
4441         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
4442         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
4443         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
4444         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
4445         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
4446         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
4447         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
4448         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
4449         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
4450         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
4451         ...
4452         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
4453         Don't include <sysdep.h> nor <init-arch.h>.
4454         (_ZGVbN2v_cos): Removed.
4455         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
4456         ...
4457         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
4458         Don't include <sysdep.h> nor <init-arch.h>.
4459         (_ZGVdN4v_cos): Removed.
4460         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
4461         ...
4462         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
4463         Don't include <sysdep.h> nor <init-arch.h>.
4464         (_ZGVeN8v_cos): Removed.
4465         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
4466         ...
4467         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
4468         Don't include <sysdep.h> nor <init-arch.h>.
4469         (_ZGVbN2v_exp): Removed.
4470         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
4471         ...
4472         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
4473         Don't include <sysdep.h> nor <init-arch.h>.
4474         (_ZGVdN4v_exp): Removed.
4475         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
4476         ...
4477         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
4478         Don't include <sysdep.h> nor <init-arch.h>.
4479         (_ZGVeN8v_exp): Removed.
4480         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
4481         ...
4482         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
4483         Don't include <sysdep.h> nor <init-arch.h>.
4484         (_ZGVbN2v_log): Removed.
4485         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
4486         ...
4487         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
4488         Don't include <sysdep.h> nor <init-arch.h>.
4489         (_ZGVdN4v_log): Removed.
4490         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
4491         ...
4492         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
4493         Don't include <sysdep.h> nor <init-arch.h>.
4494         (_ZGVeN8v_log): Removed.
4495         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
4496         ...
4497         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
4498         Don't include <sysdep.h> nor <init-arch.h>.
4499         (_ZGVbN2vv_pow): Removed.
4500         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
4501         ...
4502         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
4503         Don't include <sysdep.h> nor <init-arch.h>.
4504         (_ZGVdN4vv_pow): Removed.
4505         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
4506         ...
4507         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
4508         Don't include <sysdep.h> nor <init-arch.h>.
4509         (_ZGVeN8vv_pow): Removed.
4510         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
4511         ...
4512         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
4513         Don't include <sysdep.h> nor <init-arch.h>.
4514         (_ZGVbN2v_sin): Removed.
4515         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
4516         ...
4517         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
4518         Don't include <sysdep.h> nor <init-arch.h>.
4519         (_ZGVbN4v_sin): Removed.
4520         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
4521         ...
4522         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
4523         Don't include <sysdep.h> nor <init-arch.h>.
4524         (_ZGVbN8v_sin): Removed.
4525         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
4526         ...
4527         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
4528         Don't include <sysdep.h> nor <init-arch.h>.
4529         (_ZGVbN2vvv_sincos): Removed.
4530         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
4531         ...
4532         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
4533         Don't include <sysdep.h> nor <init-arch.h>.
4534         (_ZGVdN4vvv_sincos): Removed.
4535         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
4536         ...
4537         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
4538         Don't include <sysdep.h> nor <init-arch.h>.
4539         (_ZGVeN8vvv_sincos): Removed.
4540         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
4541         ...
4542         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
4543         Don't include <sysdep.h> nor <init-arch.h>.
4544         (_ZGVeN16v_cosf): Removed.
4545         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
4546         ...
4547         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
4548         Don't include <sysdep.h> nor <init-arch.h>.
4549         (_ZGVbN4v_cosf): Removed.
4550         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
4551         ...
4552         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
4553         Don't include <sysdep.h> nor <init-arch.h>.
4554         (_ZGVdN8v_cosf): Removed.
4555         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
4556         ...
4557         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
4558         Don't include <sysdep.h> nor <init-arch.h>.
4559         (_ZGVeN16v_expf): Removed.
4560         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
4561         ...
4562         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
4563         Don't include <sysdep.h> nor <init-arch.h>.
4564         (_ZGVbN4v_expf): Removed.
4565         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
4566         ...
4567         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
4568         Don't include <sysdep.h> nor <init-arch.h>.
4569         (_ZGVdN8v_expf): Removed.
4570         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
4571         ...
4572         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
4573         Don't include <sysdep.h> nor <init-arch.h>.
4574         (_ZGVeN16v_logf): Removed.
4575         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
4576         ...
4577         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
4578         Don't include <sysdep.h> nor <init-arch.h>.
4579         (_ZGVbN4v_logf): Removed.
4580         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
4581         ...
4582         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
4583         Don't include <sysdep.h> nor <init-arch.h>.
4584         (_ZGVdN8v_logf): Removed.
4585         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
4586         ...
4587         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
4588         Don't include <sysdep.h> nor <init-arch.h>.
4589         (_ZGVeN16vv_powf): Removed.
4590         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
4591         ...
4592         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
4593         Don't include <sysdep.h> nor <init-arch.h>.
4594         (_ZGVbN4vv_powf): Removed.
4595         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
4596         ...
4597         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
4598         Don't include <sysdep.h> nor <init-arch.h>.
4599         (_ZGVdN8vv_powf): Removed.
4600         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
4601         ...
4602         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
4603         Don't include <sysdep.h> nor <init-arch.h>.
4604         (_ZGVeN16vvv_sincosf): Removed.
4605         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
4606         ...
4607         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
4608         Don't include <sysdep.h> nor <init-arch.h>.
4609         (_ZGVbN4vvv_sincosf): Removed.
4610         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
4611         ...
4612         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
4613         Don't include <sysdep.h> nor <init-arch.h>.
4614         (_ZGVdN8vvv_sincosf): Removed.
4615         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
4616         ...
4617         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
4618         Don't include <sysdep.h> nor <init-arch.h>.
4619         (_ZGVeN16v_sinf): Removed.
4620         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
4621         ...
4622         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
4623         Don't include <sysdep.h> nor <init-arch.h>.
4624         (_ZGVbN4v_sinf): Removed.
4625         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
4626         ...
4627         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
4628         Don't include <sysdep.h> nor <init-arch.h>.
4629         (_ZGVdN8v_sinf): Removed.
4631 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4633         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4634         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
4635         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
4636         s_rint-sse4_1 and s_rintf-sse4_1.
4637         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
4638         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
4639         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
4640         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
4641         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
4642         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
4643         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
4644         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
4645         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
4646         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
4647         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
4648         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
4649         (__ceil): Removed.
4650         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
4651         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
4652         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
4653         (__ceilf): Removed.
4654         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
4655         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
4656         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
4657         (__floor): Removed.
4658         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
4659         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
4660         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
4661         (__floorf): Removed.
4662         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
4663         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
4664         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
4665         (__nearbyint): Removed.
4666         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
4667         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
4668         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
4669         (__nearbyintf): Removed.
4670         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
4671         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
4672         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
4673         (__rint): Removed.
4674         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
4675         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
4676         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
4677         (__rintf): Removed.
4679 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4681         * sysdeps/i386/start.S (_start): Check Check PIC instead of
4682         SHARED.  Avoid dynamic relocation against main in static PIE.
4684 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4686         [BZ #21815]
4687         * elf/Makefile (CFLAGS-tst-prelink.c): New.
4688         (LDFLAGS-tst-prelink): Likewise.
4690 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4692         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
4693         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
4694         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
4695         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
4696         (INTERNAL_SYSCALL_NCS): Likewise.
4697         (LOADARGS_1): Likewise.
4698         (LOADARGS_5): Likewise.
4699         (RESTOREARGS_1): Likewise.
4700         (RESTOREARGS_5): Likewise.
4702 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4704         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
4705         (MEMPCPY_SYMBOL): Likewise.
4706         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4707         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
4708         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
4709         in libc.a.
4710         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4711         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
4712         Likewise.
4713         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
4714         (__hidden_ver1): Don't use in libc.a.
4715         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
4716         (__mempcpy): Don't create a weak alias in libc.a.
4717         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
4718         libc.a.
4719         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
4720         (__hidden_ver1): Don't use in libc.a.
4722 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4724         * config.make.in (have-insert): New.
4725         * configure.ac (libc_cv_insert): New.  Set to yes if linker
4726         supports INSERT in linker script.
4727         (AC_SUBST(libc_cv_insert): New.
4728         * configure: Regenerated.
4729         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
4730         if $(have-insert) == yes.
4732 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4734         * elf/Makefile (tests): Add vismain only if
4735         $(have-protected-data) == yes.
4736         (tests-pie): Likewise.
4738 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4740         [BZ #21871]
4741         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4742         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
4744 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4746         [BZ #21790]
4747         * sysdeps/i386/i586/memset.S
4748         (__memset_zero_constant_len_parameter): Removed.
4749         * sysdeps/i386/i686/memset.S
4750         (__memset_zero_constant_len_parameter): Likewise.
4751         * sysdeps/i386/i686/multiarch/memset_chk.S
4752         (__memset_zero_constant_len_parameter): Likewise.
4753         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
4754         Likewise.
4756 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
4758         * stdlib/getentropy.c (getentropy): Change return type to int.
4760 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
4762         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
4764 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
4766         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
4767         u_intN_t.
4768         * math/s_nexttowardf.c (__nexttowardf): Likewise.
4769         * sysdeps/generic/math_private.h (ieee_double_shape_type):
4770         Likewise.
4771         (ieee_float_shape_type): Likewise.
4772         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
4773         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
4774         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
4775         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
4776         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
4777         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
4778         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
4779         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
4780         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
4781         Likewise.
4782         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
4783         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
4784         (__ieee754_yn): Likewise.
4785         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4786         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4787         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
4788         Likewise.
4789         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
4790         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
4791         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
4792         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
4793         (__erfc): Likewise.
4794         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
4795         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
4796         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
4797         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
4798         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
4799         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
4800         Likewise.
4801         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
4802         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
4803         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
4804         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
4805         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
4806         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
4807         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
4808         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
4809         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
4810         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
4811         (__issignaling): Likewise.
4812         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
4813         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
4814         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
4815         Likewise.
4816         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4817         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4818         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
4819         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
4820         Likewise.
4821         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
4822         Likewise.
4823         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
4824         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
4825         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
4826         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
4827         (__erfcf): Likewise.
4828         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
4829         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
4830         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
4831         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
4832         Likewise.
4833         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
4834         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
4835         Likewise.
4836         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
4837         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
4838         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
4839         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
4840         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
4841         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
4842         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
4843         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
4844         Likewise.
4845         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
4846         Likewise.
4847         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
4848         Likewise.
4849         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
4850         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
4851         Likewise.
4852         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
4853         Likewise.
4854         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4855         (__ieee754_ynl): Likewise.
4856         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
4857         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
4858         Likewise.
4859         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
4860         Likewise.
4861         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
4862         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
4863         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
4864         Likewise.
4865         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
4866         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
4867         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
4868         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
4869         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
4870         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
4871         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
4872         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
4873         Likewise.
4874         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
4875         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
4876         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
4877         Likewise.
4878         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
4879         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
4880         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
4881         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
4882         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
4883         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4884         Likewise.
4885         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
4886         Likewise.
4887         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
4888         Likewise.
4889         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
4890         Likewise.
4891         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
4892         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
4893         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
4894         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
4895         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
4896         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
4897         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
4898         Likewise.
4899         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
4900         Likewise.
4901         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
4902         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
4903         Likewise.
4904         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4905         (__ieee754_remainderl): Likewise.
4906         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4907         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4908         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
4909         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
4910         Likewise.
4911         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
4912         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4913         Likewise.
4914         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4915         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
4916         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
4917         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
4918         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
4919         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
4920         Likewise.
4921         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
4922         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
4923         (__ieee754_y0l): Likewise.
4924         (pzero): Likewise.
4925         (qzero): Likewise.
4926         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
4927         (__ieee754_y1l): Likewise.
4928         (pone): Likewise.
4929         (qone): Likewise.
4930         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4931         (__ieee754_ynl): Likewise.
4932         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
4933         (__ieee754_lgammal_r): Likewise.
4934         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
4935         Likewise.
4936         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
4937         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
4938         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
4939         (__erfcl): Likewise.
4940         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
4941         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
4942         Likewise.
4943         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
4944         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
4945         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
4946         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
4947         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
4948         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
4949         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
4950         Likewise.
4951         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
4952         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
4953         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
4954         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
4955         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
4956         Likewise.
4957         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
4958         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
4959         Likewise.
4960         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
4961         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
4962         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
4963         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
4964         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
4966 2017-08-03  Florian Weimer  <fweimer@redhat.com>
4968         [BZ #21885]
4969         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
4970         on memory allocation failure.
4972 2017-08-03  Alan Modra  <amodra@gmail.com>
4974         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
4975         tst-tlsopt-powerpc.c with function name change and no test harness.
4976         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
4977         Call tls_get_addr_opt_test.
4978         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
4979         (modules-names): Add mod-tlsopt-powerpc.
4980         (mod-tlsopt-powerpc.so-no-z-defs): Define.
4981         (tst-tlsopt-powerpc): Depend on .so.
4982         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
4983         define.  Expand use in TLS_GD and TLS_LD.
4985 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4987         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
4988         function.
4989         * sysdeps/posix/shm_open.c: Include <pthread.h>.
4991 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
4993         [BZ #21686]
4994         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
4995         comparing size with that of double.
4996         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
4997         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
4998         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
4999         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
5000         (__TGMATH_BINARY_REAL_IMAG): Likewise.
5001         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
5002         unsigned __int128 types.
5004 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
5006         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
5007         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
5008         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
5009         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
5010         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
5012 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
5014         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
5016 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
5018         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
5019         of SHARED.
5020         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
5021         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
5022         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
5023         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
5024         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
5025         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
5026         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
5028 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
5030         [BZ #21685]
5031         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
5032         bit-field expressions passed to sizeof or typeof.
5033         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5034         (__TGMATH_F128): Likewise.
5035         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5036         (__TGMATH_CF128): Likewise.
5037         (__TGMATH_UNARY_REAL_ONLY): Likewise.
5038         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
5039         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
5040         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
5041         (__TGMATH_BINARY_REAL_ONLY): Likewise.
5042         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
5043         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
5044         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
5045         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
5046         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
5047         (__TGMATH_UNARY_REAL_IMAG): Likewise.
5048         (__TGMATH_UNARY_IMAG): Likewise.
5049         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5050         (__TGMATH_BINARY_REAL_IMAG): Likewise.
5051         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
5052         type.
5053         (define_vars_for_type): Handle bit_field type specially.
5054         (Tests.__init__): Declare structure with bit-field element.
5056 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
5058         [BZ #21791]
5059         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
5060         (MEMCPY_CHK): Define only if SHARED is defined.
5061         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
5062         Likewise.
5063         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
5064         Likewise.
5066 See ChangeLog.18 for earlier changes.