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