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