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