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