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