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