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