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