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