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