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