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