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