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