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