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