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