Optimize sighold implementation
[glibc.git] / ChangeLog
blob8355074f7ff93c7c9d786e7a96ee19b17a37a8e1
1 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3         * signal/sighold.c (sighold): Optimize implementation.
5         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
6         __NR_rt_sigqueueinfo.
8         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9         __sigtimedwait.
10         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
11         assume __NR_rt_sigtimedwait.
12         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
13         and add LIBC_CANCEL_HANDLED for cancellation marking.
14         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
16         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
17         (sysdeps_routines): Add memchr_noneon.
18         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
19         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
20         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
21         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
24         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
26         * sysdeps/arm/arm-ifunc.h: New file.
27         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
29         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
30         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
31         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
32         (__memcpy_neon): Avoid create hidden alias.
33         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
34         (__memcpy_vfp): Likewise.
35         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
36         (sysdep_routines): Add memcpy_arm.
37         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
39 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
41         [BZ #22362]
42         * Makerules (make-link-multidir): New.
43         * config.make.in (multidir): New.
44         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
45         * configure: Regenerated.
46         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
47         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
48         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
49         New target.
51 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
53         [BZ #22402]
54         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
55         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
57 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
59         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
60         to be escaped.
62 2017-11-04  Florian Weimer  <fweimer@redhat.com>
64         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
66 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
68         * math/math.h [__HAVE_DISTINCT_FLOAT16
69         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
70         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
71         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
72         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
73         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
74         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
75         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
76         (__MATH_TG_F32): New macro.
77         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
78         (__MATH_TG_F64X): Likewise.
79         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
80         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
82 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
84         * po/de.po: Update translations.
85         * po/ru.po: Likewise.
87 2017-11-03  Florian Weimer  <fweimer@redhat.com>
89         * manual/filesys.texi (Hard Links): Document linkat.
91 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
93         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
94         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
95         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
96         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
97         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
98         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
99         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
100         the same as _Float128.
101         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
102         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
103         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
105         * stdlib/stdlib.h
106         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
107         Declare.
108         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
109         Likewise.
110         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
111         Likewise.
112         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
113         (strtof32x): Likewise.
114         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
115         (strtof64x): Likewise.
116         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
117         (strtof128x): Likewise.
118         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
119         (strfromf16): Likewise.
120         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
121         (strfromf32): Likewise.
122         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
123         (strfromf64): Likewise.
124         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
125         (strfromf32x): Likewise.
126         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
127         (strfromf64x): Likewise.
128         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
129         (strfromf128x): Likewise.
130         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
131         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
132         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
133         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
134         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
135         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
137 2017-11-03  Richard Henderson  <rth@twiddle.net>
139         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
141 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
143         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
145 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
147         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
148         DT_TLSDESC_GOT initialization.
149         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
150         (_dl_tlsdesc_resolve_hold): Likewise.
151         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
152         (_dl_tlsdesc_resolve_hold): Likewise.
153         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
154         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
156 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
158         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
160 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
162         [BZ #18572]
163         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
164         non-lazily for R_ARM_TLS_DESC.
166 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
168         [BZ #17078]
169         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
170         R_ARM_TLS_DESC case.
171         (elf_machine_lazy_rel): Remove the prelink check.
173 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
175         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
176         DT_TLSDESC_GOT initialization.
177         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
178         (_dl_tlsdesc_resolve_rela): Likewise.
179         (_dl_tlsdesc_resolve_hold): Likewise.
180         (_dl_tlsdesc_undefweak): Remove ldar.
181         (_dl_tlsdesc_dynamic): Likewise.
182         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
183         (_dl_tlsdesc_resolve_rela): Likewise.
184         (_dl_tlsdesc_resolve_hold): Likewise.
185         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
186         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
187         (_dl_tlsdesc_resolve_rela): Likewise.
188         (_dl_tlsdesc_resolve_hold): Likewise.
190 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
192         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
193         binding and initialization non-lazily for R_AARCH64_TLSDESC.
195 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
197         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
198         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
200 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
202         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
203         Declare.
204         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
205         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
206         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
207         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
208         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
209         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
210         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
211         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
212         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
213         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
214         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
216 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
218         [BZ #22382]
219         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
220         * localedata/locales/tpi_PG: Add standard header.
222 2017-11-02  Florian Weimer  <fweimer@redhat.com>
224         test-errno-linux: quotactl can fail with EPERM in containers.
225         * sysdeps/unix/sysv/linux/test-errno-linux.c
226         (LIST, LIST_FORWARD): New macros.
227         (check_error_in_list): New function.
228         (test_wrp_rv): Accept list of permitted error codes.
229         (test_wrp_rv2): Remove.
230         (test_wrp): Call test_wrp_rv with list of error codes.
231         (test_wrp2): Accept list of error codes.
232         (do_test): Adjust.  Allow EPERM for quotactl.
234 2017-11-02  Florian Weimer  <fweimer@redhat.com>
236         * stdio-common/bug16.c (do_test): Use array_length.
237         * stdio-common/errlist.c (_sys_nerr): Likewise.
238         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
239         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
240         * stdio-common/psiginfo.c (psiginfo): Use array_length.
241         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
242         (do_test): Use array_length.
243         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
244         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
245         * stdio-common/tst-printf-round.c (do_test): Likewise.
246         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
247         (CHECK): Use array_length.
248         * stdio-common/tstdiomisc.c (t3, F): Likewise.
249         * stdio-common/tstscanf.c (main): Likewise.
250         * stdio-common/vfprintf.c (process_string_arg): Likewise.
252 2017-11-02  Florian Weimer  <fweimer@redhat.com>
254         Add array_length and array_end macros.
255         * include/array_length.h: New file.
257 2017-11-02  Florian Weimer  <fweimer@redhat.com>
259         [BZ #22332]
260         * posix/tst-glob-tilde.c (do_noescape): New variable.
261         (one_test): Process it.
262         (do_test): Set do_noescape.  Add unescaping test case.
264 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
266         * math/complex.h
267         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
268         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
269         with appropriate macros defined and undefined.
270         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
271         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
272         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
273         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
274         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
275         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
276         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
277         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
278         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
279         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
281         * math/complex.h
282         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
283         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
284         that for long double.  Do not condition define and undefine of
285         _Mdouble_complex_ on [__CFLOAT128].
287 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
289         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
290         of <sysdeps/generic/sysdep.h>.
291         (ALIGNARG): Removed.
292         (ASM_SIZE_DIRECTIVE): Likewise.
293         (ENTRY): Likewise.
294         (END): Likewise.
295         (ENTRY_CHK): Likewise.
296         (END_CHK): Likewise.
297         (syscall_error): Likewise.
298         (mcount): Likewise.
299         (PSEUDO_END): Likewise.
300         (L): Likewise.
301         (atom_text_section): Likewise.
302         * sysdeps/x86/sysdep.h: New file.
303         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
304         of <sysdeps/generic/sysdep.h>.
305         (ALIGNARG): Removed.
306         (ASM_SIZE_DIRECTIVE): Likewise.
307         (ENTRY): Likewise.
308         (END): Likewise.
309         (ENTRY_CHK): Likewise.
310         (END_CHK): Likewise.
311         (syscall_error): Likewise.
312         (mcount): Likewise.
313         (PSEUDO_END): Likewise.
314         (L): Likewise.
315         (atom_text_section): Likewise.
317 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
319         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
320         category of LC_CTYPE set to "i18n:2012".
321         * localedata/locales/i18n_ctype: Regenerate.
323 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
325         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
326         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
327         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
328         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
330         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
331         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
332         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
333         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
335 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
337         * math/complex.h
338         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
339         New macro.
340         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
341         Likewise.
342         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
343         Likewise.
344         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
345         (CMPLXF32X): Likewise.
346         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
347         (CMPLXF64X): Likewise.
348         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
349         (CMPLXF128X): Likewise.
351         * math/math.h
352         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
353         (__MATH_EVAL_FMT2): Define to add 0.0f.
355 2017-10-31  Alan Modra  <amodra@gmail.com>
357         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
358         include sysdep.h.
359         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
360         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
361         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
362         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
364         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
370         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
372         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
373         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
374         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
375         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
376         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
377         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
378         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
379         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
380         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
381         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
382         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
383         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
384         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
385         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
386         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
387         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
388         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
389         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
390         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
391         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
392         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
393         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
394         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
395         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
396         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
397         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
398         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
399         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
400         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
401         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
402         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
403         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
404         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
405         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
406         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
407         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
408         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
409         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
410         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
411         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
412         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
413         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
414         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
415         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
416         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
417         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
418         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
419         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
420         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
421         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
422         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
423         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
424         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
425         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
426         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
427         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
429         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
430         include sysdep.h and math_ldbl_opt.h.
432         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
433         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
434         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
435         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
436         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
437         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
438         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
439         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
440         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
441         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
445         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
447         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
448         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
449         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
450         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
451         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
452         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
454         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
456         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
457         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
459 2017-10-31  Alan Modra  <amodra@gmail.com>
461         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
462         string/strncase_l.c, not string/strncase.c.
463         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
464         (libc_hidden_def): Redefine.
466 2017-10-31  Alan Modra  <amodra@gmail.com>
468         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
469         (__STRCMP, STRCMP, __strcasecmp_l): Define.
470         (__strcasecmp): Don't define.
472 2017-10-31  Alan Modra  <amodra@gmail.com>
474         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
475         IS_IN (libc).
476         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
477         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
478         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
480 2017-10-31  Alan Modra  <amodra@gmail.com>
482         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
483         USE_AS_STPNCPY.
485 2017-10-31  Alan Modra  <amodra@gmail.com>
487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
488         Redefine only when SHARED.
490 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
492         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
493         Include <bits/math-finite.h> with appropriate macros defined and
494         undefined.
495         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
496         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
497         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
498         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
499         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
501         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
502         [!_Mlong_double_] (_Mlong_double_): Likewise.
503         [!_Mfloat16_] (_Mfloat16_): Likewise.
504         [!_Mfloat32_] (_Mfloat32_): Likewise.
505         [!_Mfloat64_] (_Mfloat64_): Likewise.
506         [!_Mfloat128_] (_Mfloat128_): Likewise.
507         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
508         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
509         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
510         (_Mdouble_): Define without indirection through those macros.
511         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
512         [!_Mfloat128_] (_Mfloat128_): Likewise.
513         [_Mlong_double_] (_Mlong_double_): Likewise.
514         (_Mdouble_): Define without indirection through those macros.
515         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
516         not add -D_Mlong_double_=double.
517         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
518         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
520 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
522         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
524 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
526         * sysdeps/x86/libc-start.c: Reformat.
528 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
530         [BZ #22353]
531         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
532         (1): Renamed to ...
533         (L(Src0)): This.
534         (L(Src1)): New.
535         (L(Src2)): Likewise.
536         (L(1)): Renamed to ...
537         (L(Src3)): This.
539 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
541         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
542         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
543         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
544         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
545         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
546         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
547         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
548         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
549         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
550         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
551         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
552         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
553         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
554         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
555         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
556         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
557         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
558         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
559         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
560         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
561         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
562         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
563         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
564         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
565         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
566         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
567         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
568         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
569         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
570         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
571         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
572         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
573         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
574         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
575         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
576         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
577         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
578         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
579         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
580         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
581         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
582         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
583         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
584         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
585         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
586         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
587         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
588         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
589         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
590         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
591         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
592         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
593         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
594         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
595         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
596         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
597         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
598         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
599         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
600         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
601         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
602         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
603         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
604         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
605         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
606         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
608 2017-10-30  Florian Weimer  <fweimer@redhat.com>
610         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
611         always defined.
612         * io/tst-mkdirat.c (do_test): Likewise.
613         * io/tst-mkfifoat.c (do_test): Likewise.
614         * io/tst-mknodat.c (do_test): Likewise.
615         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
616         * locale/programs/locale.c (select_dirs): Likewise.
617         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
618         * posix/bug-glob2.c (my_readdir): Likewise.
619         * posix/tst-dir.c (main): Likewise.
620         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
621         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
623 2017-10-30  Florian Weimer  <fweimer@redhat.com>
625         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
626         just __USE_GNU.
628 2017-10-30  Florian Weimer  <fweimer@redhat.com>
630         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
631         Convert to support/test-driver.c.
632         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
633         New macro parameters.
634         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
635         * posix/tst-gnuglob.c: New file.
636         * posix/tst-gnuglob64.c: Likewise.
637         * posix/Makefile (tests): Add tst-gnuglob64.
639 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
641         [BZ #19485]
642         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
643         and use a better translation for March in “mon”.
644         * localedata/locales/csb_PL: Use more ASCII to improve the
645         readability of the source.
647 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
649         [BZ #13953]
650         * localedata/locales/km_KH: Use ASCII as much
651         as possible for better readability of the source and
652         remove useless comments.
653         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
654         was commented out and apparently wrong anyway because it was
655         using Lao characters. If Buddhist era should be used
656         for km_KH, a native speaker should write the correct formaat
657         for Khmer.
658         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
659         (According to CLDR, the first weekday for Cambodia is Sunday).
660         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
661         (These were using Lao characters which must be wrong. If we get
662         the correct data from a native speaker, we could add it back, until
663         then it is better not to have name_mr and name_mrs at all than
664         having it wrong).
666 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
668         * locale/loadlocale.c: Correct size of
669         _nl_value_type_LC_<category> arrays.
671 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
673         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
674         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
675         with appropriate macros defined and undefined.
676         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
677         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
678         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
679         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
680         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
682 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
684         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
685         "-O2 -march=i586".
687 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
689         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
690         with lowercase letters to make it agree with CLDR.
692 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
694         [BZ #15260]
695         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
696         first letters of yesstr and nostr in yesexpr and noexpr,
697         not for the full words.
698         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
699         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
700         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
701         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
702         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
703         first letters of yesstr and nostr in yesexpr and noexpr,
704         until now only English was matched in yesexpr and noexpr.
705         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
706         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
707         fil but not for tl. As tl and fil are very similar, using fil
708         is probably better than using English.
710 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
712         [BZ #21706]
713         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
714         in yesstr and nostr.
716 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
718         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
719         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
720         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
721         Likewise.
722         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
723         Likewise.
724         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
725         Likewise.
726         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
727         Likewise.
728         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
729         (SNANF128X): Likewise.
731         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
732         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
733         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
734         (HUGE_VAL_F32): Likewise.
735         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
736         (HUGE_VAL_F64): Likewise.
737         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
738         (HUGE_VAL_F32X): Likewise.
739         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
740         (HUGE_VAL_F64X): Likewise.
741         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
742         (HUGE_VAL_F128X): Likewise.
744 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
746         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
747         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
748         for the br_FR locale.
750 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
752         [BZ #21706]
753         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
755 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
757         * locale/programs/record-status.h: Define globals, and function
758         prototypes. Move function bodies...
759         * locale/programs/record-status.c: ... to here. New file.
760         * iconv/Makefile (iconv_prog-modules): Add record-status.
761         * locale/Makefile (lib-modules): Likewise.
762         * iconv/iconv_prog.c: Remove verbose.
763         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
764         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
765         record a warning about ASCII compatibility.
766         * locale/programs/ld-monetary.c (monetary_finish): If
767         warn_int_curr_symbol is true then record a warning about the symbol
768         not being in our ISO 4217 list.
769         * locale/programs/locale.c: Include record-status.h. Remove verbose.
770         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
771         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
772         (OPT_NO_WARN): Define.
773         (OPT_WARN): Define.
774         (options): Add entry for --no-warnings, and --warnings.
775         (set_warnings): New function to enable/disable warnings.
776         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
777         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
778         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
779         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
780         Pass flags to generate_locale.
781         (generate_locale): Accept new flag argument and pass it to localedef
782         invocation.
783         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
784         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
786         * localedata/Makefile (test-input-data): Use full file name.
787         * localedata/da_DK.in: Rename to...
788         * localedata/da_DK.ISO-8859-1.in: ...this.
789         * localedata/de_DE.in: Rename to...
790         * localedata/de_DE.ISO-8859-1.in: ...this.
791         * localedata/en_US.in: Rename to...
792         * localedata/en_US.ISO-8859-1.in: ...this.
793         * localedata/fr_FR.in: Rename to...
794         * localedata/fr_FR.UTF-8.in: ... this.
795         * localedata/hr_HR.in: Rename to...
796         * localedata/hr_HR.ISO-8859-2.in: ...this.
797         * localedata/hu_HU.in: Rename to...
798         * localedata/hu_HU.UTF-8.in: ...this.
799         * localedata/si_LK.in: Rename to...
800         * localedata/si_LK.UTF-8.in: ...this.
801         * localedata/sv_SE.in: Rename to...
802         * localedata/sv_SE.ISO-8859-1.in: ...this.
803         * localedata/tr_TR.in: Rename to...
804         * localedata/tr_TR.UTF-8.in: ...this.
805         * localedata/uk_UA.in: Rename to...
806         * localedata/uk_UA.UTF-8.in: ...this.
807         * localedata/sort-test.sh: Test file is locale name with the
808         suffix.
810         * localedata/unicode-gen/Makefile (check_i18n): Rename to
811         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
812         file.
813         * localedata/locales/i18n_ctype: Regenerate.
814         * localedata/locales/tr_TR: Likewise.
815         * localedata/locales/translit_circle: Likewise.
816         * localedata/locales/translit_cjk_compat: Likewise.
817         * localedata/locales/translit_combining: Likewise.
818         * localedata/locales/translit_compat: Likewise.
819         * localedata/locales/translit_font: Likewise.
820         * localedata/locales/translit_fraction: Likewise.
822 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
824         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
825         lxvd2x/stxvd2x with lvx/stvx.
826         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
828 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
830         * include/alloc_buffer.h: Replace "if if " with "if " in
831         comments.
832         * sysdeps/mips/memcpy.S: Likkewise.
833         * sysdeps/mips/memset.S: Likewise.
834         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
835         Likewise.
836         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
837         Likewise.
838         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
839         Likewise.
841 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
843         [BZ #15261]
844         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
845         yesexpr and noexpr.
846         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
847         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
848         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
849         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
850         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
851         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
852         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
854 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
856         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
857         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
858         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
859         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
860         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
861         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
862         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
863         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
864         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
865         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
866         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
867         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
869 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
871         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
872         as possible for better readability of the source.
873         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
874         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
875         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
876         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
877         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
878         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
879         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
880         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
881         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
882         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
883         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
884         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
885         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
886         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
887         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
888         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
889         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
890         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
891         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
892         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
893         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
894         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
895         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
896         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
897         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
898         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
899         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
900         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
901         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
902         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
903         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
904         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
905         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
906         * localedata/locales/en_US (LC_MESSAGES): Likewise.
907         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
908         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
909         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
910         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
911         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
912         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
913         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
914         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
915         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
916         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
917         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
918         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
919         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
920         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
921         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
922         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
923         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
924         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
925         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
926         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
927         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
928         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
929         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
930         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
931         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
932         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
933         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
934         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
935         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
936         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
937         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
938         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
939         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
940         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
941         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
942         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
943         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
944         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
945         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
946         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
947         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
948         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
949         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
950         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
951         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
952         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
953         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
954         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
955         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
956         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
957         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
958         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
959         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
960         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
961         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
962         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
963         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
964         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
965         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
966         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
967         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
968         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
969         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
970         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
971         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
972         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
973         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
974         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
975         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
976         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
977         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
978         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
979         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
980         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
981         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
982         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
983         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
984         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
985         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
986         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
987         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
988         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
989         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
990         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
991         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
992         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
993         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
994         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
995         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
996         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
997         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
998         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
999         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
1000         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
1001         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
1002         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
1003         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
1004         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
1005         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
1006         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
1007         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
1008         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
1009         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
1010         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
1011         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
1012         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
1013         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
1014         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
1015         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
1016         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
1017         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
1018         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1019         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
1020         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
1021         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
1022         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
1023         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
1024         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
1025         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
1026         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
1027         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1028         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
1029         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
1030         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
1031         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
1032         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
1033         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
1034         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
1035         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
1036         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
1037         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
1038         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1039         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
1040         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
1041         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
1042         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
1043         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1044         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1045         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1046         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
1048 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1050         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
1051         (Use first letters of yesstr and nostr correctly instead of using
1052         full words).
1054 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1056         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
1057         (Use first letters of yesstr and nostr correctly).
1059 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1061         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
1062         also check for the first characters of yesstr and nostr.
1063         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
1064         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
1066 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1068         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
1069         also check for Chinese characters.
1071 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1073         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
1074         match also for the contents of yesstr and nostr. As the first letter
1075         of yesstr and nostr is equal, checking only for the first letter
1076         is not enough.
1078 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1080         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
1081         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
1083 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1085         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
1086         of main contributor.
1088 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1090         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
1091         instead of using English.
1093 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1095         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
1096         by including the first letters of nostr and yesexpr in the regexp.
1097         Also make it more readable by using ASCII where possible.
1099 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1101         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
1102         the first letter of nostr in the regexp. It agrees with CLDR now.
1103         Also make it more readable by using ASCII where possible.
1105 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1107         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
1108         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
1109         these strings contain a U+17D6 (which somewhat looks like a colon)
1110         instead of a real colon to separate the full words for “yes”
1111         and “no” from the single letter responses.
1113 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1115         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
1116         it agree with CLDR (include the first letter of yesstr).
1117         Also make it more readable by using ASCII where possible.
1119 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1121         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
1122         and improve yesexpr and noexpr. The yesstr and nostr apparently
1123         came from CLDR. And CLDR has a bug there: these strings contain
1124         a U+0903 (which looks like a colon) instead of a real colon
1125         to separate the full words for “yes” and “no” from the single
1126         letter responses.
1128 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1130         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
1131         letters of the full yesstr and nostr in yesexpr and noexpr.
1133 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1135         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
1136         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
1137         * localedata/locales/an_ES: Make source more readable by using ASCII
1138         where possible.
1140 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1142         [BZ #20952]
1143         * localedata/locales/yuw_PG: New file.
1144         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
1145         * locale/iso-639.def: Add Yau (Uruwa).
1147 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
1149         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
1151 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
1153         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
1154         (__libc_realloc): Likewise.
1155         (_mid_memalign): Likewise.
1156         (__libc_calloc): Likewise.
1158 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
1160         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
1161         by adding the generic +1 and -0 as in all other locales.
1162         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
1163         day names and make it more readable by using ASCII where possible.
1165 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
1167         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
1168         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
1170 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1172         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
1173         WNOHANG in waitpid call.
1175 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1177         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
1178         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
1180         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
1181         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
1182         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
1183         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
1184         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
1185         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
1186         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
1187         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
1188         variables.
1190 2017-10-23  Michael Collison  <michael.collison@arm.com>
1192         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
1193         with __builtin_sqrt.
1194         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
1195         with __builtin_sqrtf.
1196         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
1197         with __builtin_ceil.
1198         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
1199         with __builtin_ceilf.
1200         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
1201         with __builtin_floor.
1202         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
1203         with __builtin_floorf.
1204         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
1205         with __builtin_fma.
1206         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
1207         with __builtin_fmaf.
1208         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
1209         with __builtin_fmax.
1210         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
1211         with __builtin_fmaxf.
1212         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
1213         with __builtin_fmin.
1214         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
1215         with __builtin_fminf.
1216         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
1217         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
1218         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
1219         with builtin_rint and conversion to int.
1220         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
1221         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
1222         with builtin_llround.
1223         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
1224         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
1225         with builtin_rint and conversion to long int.
1226         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
1227         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
1228         with builtin_lround.
1229         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
1230         with builtin_lroundf.
1231         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
1232         statements with __builtin_nearbyint.
1233         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
1234         statements with __builtin_nearbyintf.
1235         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
1236         with __builtin_rint.
1237         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
1238         with __builtin_rintf.
1239         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
1240         with __builtin_round.
1241         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
1242         with __builtin_roundf.
1243         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
1244         with __builtin_trunc.
1245         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
1246         with __builtin_truncf.
1247         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
1248         and s_l[l]round[f].c too.
1250 2017-10-23  Alan Modra  <amodra@gmail.com>
1252         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
1253         Adjust stack after restoring regs.  Add missing LR cfi_restore.
1255 2017-10-23  Alan Modra  <amodra@gmail.com>
1257         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
1258         Move LR save and frame setup/teardown and LR restore to
1259         immediately around memset call.  Provide cfi.
1261 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1263         * sysdeps/i386/fpu/e_powf.S: Removed.
1264         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
1265         * sysdeps/i386/fpu/w_powf.c: Likewise.
1266         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
1267         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1268         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1269         Add e_powf-sse2.
1270         (CFLAGS-e_powf-sse2.c): New.
1271         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
1272         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
1274 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1276         * sysdeps/i386/fpu/e_log2f.S: Removed.
1277         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
1278         * sysdeps/i386/fpu/w_log2f.c: Likewise.
1279         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
1280         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1281         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1282         Add e_log2f-sse2.
1283         (CFLAGS-e_log2f-sse2.c): New.
1284         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
1285         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
1287 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1289         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1290         Add e_powf-fma.
1291         (CFLAGS-e_powf-fma.c): New.
1292         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
1293         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
1295 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1297         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1298         Add e_log2f-fma.
1299         (CFLAGS-e_log2f-fma.c): New.
1300         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
1301         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
1303 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1305         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1306         Add e_logf-fma.
1307         (CFLAGS-e_logf-fma.c): New.
1308         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
1309         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
1311 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1313         * sysdeps/i386/fpu/e_logf.S: Removed.
1314         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
1315         * sysdeps/i386/fpu/w_logf.c: Likewise.
1316         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
1317         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
1318         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1319         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1320         Add e_logf-sse2.
1321         (CFLAGS-e_logf-sse2.c): New.
1322         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
1323         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
1325 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1327         * sysdeps/i386/fpu/e_exp2f.S: Removed.
1328         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
1329         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
1330         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1331         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1332         Add e_exp2f-sse2.
1333         (CFLAGS-e_exp2f-sse2.c): New.
1334         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
1335         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
1337 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1339         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1340         Add e_exp2f-fma.
1341         (CFLAGS-e_exp2f-fma.c): New.
1342         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
1343         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
1345 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1347         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
1348         * sysdeps/i386/fpu/e_expf.S: Likewise.
1349         * sysdeps/i386/fpu/math_errf.c: Likewise.
1350         * sysdeps/i386/fpu/w_expf.c: Likewise.
1351         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
1352         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1353         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
1354         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
1355         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1356         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1357         Remove e_expf-ia32.
1358         (CFLAGS-e_expf-sse2.c): New.
1359         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
1360         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
1362 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1364         * sysdeps/x86_64/fpu/e_expf.S: Removed.
1365         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
1366         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
1367         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
1368         e_expf.c.
1369         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
1370         New.
1371         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
1372         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
1373         Renamed to ...
1374         (__redirect_expf): This.
1375         (SYMBOL_NAME): Changed to expf.
1376         (__ieee754_expf): Renamed to ...
1377         (__expf): This.
1378         (__GI___expf): This.
1379         (__ieee754_expf): Add strong_alias.
1380         (__expf_finite): Likewise.
1381         (__expf): New.
1382         Include <sysdeps/ieee754/flt-32/e_expf.c>.
1384 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
1386         [BZ #22332]
1387         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
1388         unescaping.
1390 2017-10-21  Florian Weimer  <fweimer@redhat.com>
1392         * posix/Makefile (tests): Add tst-glob-tilde.
1393         (tests-special): Add tst-glob-tilde-mem.out
1394         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
1395         (tst-glob-tilde-mem.out): Add mtrace check.
1396         * posix/tst-glob-tilde.c: New file.
1398 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
1400         * bits/floatn-common.h: New file.
1401         * math/Makefile (headers): Add bits/floatn-common.h.
1402         * bits/floatn.h: Include <bits/floatn-common.h>.
1403         * sysdeps/ia64/bits/floatn.h: Likewise.
1404         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1405         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
1406         * sysdeps/powerpc/bits/floatn.h: Likewise.
1407         * sysdeps/x86/bits/floatn.h: Likewise.
1409 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1411         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
1412         indicates whether compiler emits an warning for alias for
1413         functions with incompatible types.
1415         [BZ #22273]
1416         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
1417         the auxiliary process is terminated by a signal before calling _exit
1418         or execve.
1420 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1422         [BZ #21265]
1423         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
1424         New.
1425         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
1426         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
1427         and bit_arch_XSAVEC_Usable if needed.
1428         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
1429         and bit_arch_Use_dl_runtime_resolve_opt.
1430         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
1431         Removed.
1432         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
1433         (bit_arch_Prefer_No_AVX512): Updated.
1434         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
1435         (bit_arch_XSAVEC_Usable): New.
1436         (STATE_SAVE_OFFSET): Likewise.
1437         (STATE_SAVE_MASK): Likewise.
1438         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
1439         (cpu_features): Add xsave_state_size and xsave_state_full_size.
1440         (index_arch_Use_dl_runtime_resolve_opt): Removed.
1441         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
1442         (index_arch_XSAVEC_Usable): New.
1443         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
1444         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
1445         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
1446         is enabled.
1447         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1448         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
1449         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
1450         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
1451         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
1452         _dl_runtime_resolve_xsavec.
1453         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
1454         Removed.
1455         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
1456         instead of VEC_SIZE.
1457         (REGISTER_SAVE_BND0): Removed.
1458         (REGISTER_SAVE_BND1): Likewise.
1459         (REGISTER_SAVE_BND3): Likewise.
1460         (REGISTER_SAVE_RAX): Always defined to 0.
1461         (VMOV): Removed.
1462         (_dl_runtime_resolve_avx): Likewise.
1463         (_dl_runtime_resolve_avx_slow): Likewise.
1464         (_dl_runtime_resolve_avx_opt): Likewise.
1465         (_dl_runtime_resolve_avx512): Likewise.
1466         (_dl_runtime_resolve_avx512_opt): Likewise.
1467         (_dl_runtime_resolve_sse): Likewise.
1468         (_dl_runtime_resolve_sse_vex): Likewise.
1469         (USE_FXSAVE): New.
1470         (_dl_runtime_resolve_fxsave): Likewise.
1471         (USE_XSAVE): Likewise.
1472         (_dl_runtime_resolve_xsave): Likewise.
1473         (USE_XSAVEC): Likewise.
1474         (_dl_runtime_resolve_xsavec): Likewise.
1475         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
1476         Removed.
1477         (_dl_runtime_resolve_avx512_opt): Likewise.
1478         (_dl_runtime_resolve_avx): Likewise.
1479         (_dl_runtime_resolve_avx_opt): Likewise.
1480         (_dl_runtime_resolve_sse): Likewise.
1481         (_dl_runtime_resolve_sse_vex): Likewise.
1482         (_dl_runtime_resolve_fxsave): New.
1483         (_dl_runtime_resolve_xsave): Likewise.
1484         (_dl_runtime_resolve_xsavec): Likewise.
1486 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
1488         [BZ #22320]
1489         CVE-2017-15670
1490         * posix/glob.c (__glob): Fix one-byte overflow.
1492 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
1494         * malloc/malloc.c (sysdep-cancel.h): Add include.
1496 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
1498         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
1500 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
1502         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
1503         (tests): Remove $(objpfx)ga_test depdendency.
1504         * resolv/ga_test.c: Remove file.
1506 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
1508         [BZ #18812]
1509         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
1510         * localedata/locales/kab_DZ: New file.
1512 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1514         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
1515         _dl_relocate_static_pie instead of _dl_start to compute load
1516         address in static PIE.
1518 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1520         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
1522 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
1524         [BZ #13605]
1525         * localedata/SUPPORTED: Add shn_MM/UTF-8.
1526         * localedata/locales/shn_MM: New file.
1528 2017-10-20  Florian Weimer  <fweimer@redhat.com>
1530         [BZ #22321]
1531         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
1532         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
1533         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
1534         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
1535         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
1536         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
1538 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1540         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1542 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
1544         * sysdeps/mips/ieee754/bits/floatn.h: New file.
1546         [BZ #22322]
1547         * sysdeps/mips/bits/long-double.h: Move to ....
1548         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
1550 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
1552         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
1554 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
1555             H.J. Lu  <hongjiu.lu@intel.com>
1557         [BZ #22299]
1558         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
1559         GLRO(dl_platform) to NULL.
1560         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
1561         (modules-names): Add tst-platformmod-1 and
1562         x86_64/tst-platformmod-2.
1563         (CFLAGS-tst-platform-1.c): New.
1564         (CFLAGS-tst-platformmod-1.c): Likewise.
1565         (CFLAGS-tst-platformmod-2.c): Likewise.
1566         (LDFLAGS-tst-platformmod-2.so): Likewise.
1567         ($(objpfx)tst-platform-1): Likewise.
1568         ($(objpfx)tst-platform-1.out): Likewise.
1569         (tst-platform-1-ENV): Likewise.
1570         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
1571         * sysdeps/x86_64/tst-platform-1.c: New file.
1572         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
1573         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
1575 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
1577         [BZ #13994]
1578         * locale/iso-639.def: Add Karbi.
1579         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
1580         * localedata/locales/mjw_IN: New file.
1582 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
1584         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
1585         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1586         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
1587         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
1588         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1589         (libm_alias_ldouble_other_r): Also create _Float128 alias.
1590         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
1591         <bits/floatn.h>.
1592         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1593         (libm_alias_ldouble_other_r): Also create _Float128 alias.
1594         * manual/math.texi (Mathematics): Document additional architecture
1595         support for _Float128.
1596         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
1597         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1598         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1599         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1600         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1601         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1602         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1603         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1604         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1605         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1606         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1607         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1608         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1609         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1610         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1612 2017-10-18  Renlin Li  <renlin.li@arm.com>
1614         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
1615         _DYNAMIC symbol to calculate load address.
1617 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
1619         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
1620         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
1621         summary bits.
1622         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
1623         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
1625 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
1627         [BZ #16777]
1628         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
1629         and improve readability by using more ASCII.
1630         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
1631         and improve readability by using more ASCII.
1633 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
1635         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
1636         not all targets support atomics on bool.
1638 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
1640         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
1641         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
1642         __f128.
1643         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1644         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
1645         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1646         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
1647         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1648         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
1650 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1652         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
1653         defines.
1655 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
1657         [BZ #22159]
1658         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
1659         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
1660         (do_check_remalloced_chunk): Fix build bug.
1661         (do_check_malloc_state): Add assert that checks arena->top.
1662         (malloc_consolidate): Remove initialization.
1663         (int_mallinfo): Remove call to malloc_consolidate.
1664          (__libc_mallopt): Clarify why malloc_consolidate is needed.
1666 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
1668         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
1669         (have_fastchunks): Remove.
1670         (clear_fastchunks): Remove.
1671         (set_fastchunks): Remove.
1672         (malloc_state): Add have_fastchunks.
1673         (malloc_init_state): Use have_fastchunks.
1674         (do_check_malloc_state): Remove incorrect invariant checks.
1675         (_int_malloc): Use have_fastchunks.
1676         (_int_free): Likewise.
1677         (malloc_consolidate): Likewise.
1679 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
1681         * malloc/malloc.c (tcache_put): Inline.
1682         (tcache_get): Inline.
1684 2017-10-17  Jordi Mallach  <jordi@gnu.org>
1686         Aurelien Jarno  <aurelien@aurel32.net>
1687         [BZ #2522]
1688         * localedata/locales/ca_ES@valencia: New file.
1689         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
1691 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
1693         [BZ #22296]
1694         * math/math.h: Let signbit use the builtin in C++ mode with gcc
1695         < 6.x
1697 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1699         * scripts/build-many-glibcs.py (Context.add_all_configs):
1700         Add arm-linux-gnueabihf multiarch extra_glibcs.
1702         * sysdeps/generic/ifunc-init.h: New file.
1703         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
1705 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
1707         [BZ #22019]
1708         * localedata/locales/el_GR: Set n_cs_precedes to 0.
1709         * localedata/locales/el_CY: copy "el_GR" because it is identical.
1710         * stdlib/tst-strfmon_l.c: adapt test case.
1712 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
1714         * sysdeps/generic/float128-abi.h: New file.
1715         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
1716         non-__prefixed symbols to ....
1717         * math/Versions: ... here.  Include <float128-abi.h>.
1718         * stdlib/Versions ... and here.  Include <float128-abi.h>
1720 2017-10-16  Florian Weimer  <fweimer@redhat.com>
1722         * version.h (VERSION): Switch to ".9000" as the development
1723         version suffix.
1725 2017-10-16  Florian Weimer  <fweimer@redhat.com>
1727         [BZ #22050]
1728         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
1729         compat_symbol_reference to access non-default version.
1731 2017-10-16  Florian Weimer  <fweimer@redhat.com>
1733         * malloc/Makefile (others-extras): Set to mcheck-init.o.
1735 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
1737         * include/shlib-compat.h (compat_symbol_reference): Update
1738         comment.
1740 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
1742         * math/Makefile (test-types): Add
1743         $(type-float128-$(float128-alias-fcts)).
1744         * math/test-float128.h (TYPE_STR): Define conditional on
1745         [FLT128_MANT_DIG == LDBL_MANT_DIG].
1746         (ULP_IDX): Likewise.
1747         (ULP_I_IDX): Likewise.
1749         * stdlib/strtold.c: Include <bits/floatn.h>
1750         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
1751         and later undefine as macro.  Define as weak alias if
1752         [!USE_WIDE_CHAR].
1753         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
1754         and later undefine as macro.  Define as weak alias if
1755         [USE_WIDE_CHAR].
1756         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
1757         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
1758         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
1759         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
1760         Define and later undefine as macro.  Define as weak alias if
1761         [USE_WIDE_CHAR].
1762         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
1763         <bits/floatn.h>.
1764         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
1765         Define and later undefine as macro.  Define as weak alias if
1766         [!USE_WIDE_CHAR].
1767         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
1768         Define and later undefine as macro.  Define as weak alias if
1769         [USE_WIDE_CHAR].
1771 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
1773         * localedata/collate-test.c (allocate_arrays): Don't use \n in
1774         record_verbose messages.
1776 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1778         [BZ #22052]
1779         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
1780         to silence -O3 -Wall warning with GCC 7.
1782 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
1784         * Makeconfig (+link-static-before-libc): Use the first of
1785         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
1786         * gmon/Makefile (tests): Add tst-gmon-static.
1787         (tests-static): Likewise.
1788         (CFLAGS-tst-gmon-static.c): New.
1789         (CRT-tst-gmon-static): Likewise.
1790         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
1791         (tst-gmon-static-ENV): Likewise.
1792         (tests-special): Likewise.
1793         ($(objpfx)tst-gmon-static.out): Likewise.
1794         (clean-tst-gmon-static-data): Likewise.
1795         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
1796         * gmon/tst-gmon-static-gprof.sh: New file.
1797         * gmon/tst-gmon-static.c: Likewise.
1799 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
1801         [BZ #22295]
1802         * locale/programs/linereader.c (get_string): Don't warn on
1803         non-symbolic character.
1805         [BZ #22294]
1806         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
1807         int_curr_symbol.
1809         [BZ #22292]
1810         * locale/programs/record-status.h: New file
1811         * locale/programs/locale.c: Add comment.
1812         * locale/programs/charmap-dir.c: Don't include error.h.
1813         (charmap_opendir): Use record_error.
1814         * locale/programs/charmap.c: Don't include error.h.
1815         (charmap_read): Use record_error, and record_warning.
1816         (parse_charmap): Likewise.
1817         * locale/programs/ld-address.c: Don't include error.h.
1818         (address_finish): Use record_error, and record_warning.
1819         * locale/programs/ld-collate.c: Don't include error.h.
1820         (collate_finish): Use record_error, and record_error_at_line.
1821         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
1822         (ctype_class_new): Likewise.
1823         (ctype_map_new): Likewise.
1824         (set_one_default): Likewise.
1825         (set_class_defaults): Likewise.
1826         (translit_flatten): Likewise.
1827         (allocate_arrays): Use record_error, and record_verbose.
1828         * locale/programs/ld-identification.c: Don't include error.h.
1829         (indentation_finish): Use record_error and record_warning.
1830         * locale/programs/ld-measurement.c: Don't include error.h.
1831         (measurement_finish): Use record_error.
1832         * locale/programs/ld-messages.c
1833         (message_finish): Likewise.
1834         * locale/programs/ld-monetary.c
1835         (monetary_finish): Likewise.
1836         * locale/programs/ld-name.c (name_finish): Use record_error
1837         and record_warning.
1838         * locale/programs/ld-numeric.c
1839         (numeric_finish): Use record_error.
1840         * locale/programs/ld-paper.c: Don't include error.h.
1841         (paper_finish): Use record_error.
1842         * locale/programs/ld-telephone.c: Don't include error.h.
1843         (telephone_finish): Use record_error.
1844         * locale/programs/ld-time.c (time_finish): Likewise.
1845         * locale/programs/linereader.h (lr_error): Make inline func.
1846         * locale/programs/localedef.c: Define recorded_warning_count,
1847         and recorded_error_count.
1848         (main): Use record_error. Use recorded_error_count and
1849         recorded_warning_count to issue correct error returns.
1850         (add_to_readlist): Use record_error.
1851         (find_locale): Likewise.
1852         (load_locale): Likewise.
1853         * locale/programs/localedef.h: Remove be_quiet
1854         and WITH_CUR_LOCALE.
1855         * locale/programs/locarchive.c (compare_from_file): Use
1856         record_error.
1857         * locale/programs/locfile.c (write_locale_data): Use
1858         record_error.
1859         * locale/programs/repertoire.c: Dont include error.h.
1860         (repertoire_complain): Use record_error.
1861         * localedata/tst-fmon.sh: Expect failures from localedef.
1862         * localedata/tst-locale.sh: Likewise.
1863         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
1865         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
1866         (REPORTS): Likewise.
1867         (check): Likewise.
1868         (i18n): Rename to...
1869         (i18n_ctype): ...this.
1870         (i18n-report): Rename to...
1871         (i18n_ctype-report): ...this.
1872         * localedata/locales/i18n_ctype: Regenerate.
1873         * localedata/locales/i18n: copy i18n_ctype.
1875 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
1877         * stdlib/strfroml.c: Include <bits/floatn.h>.
1878         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
1879         Define before include of <stdlib.h> and undefine afterwards, then
1880         define as weak alias.
1882         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
1883         Undefine and restore default definition.  Use
1884         libm_alias_ldouble_other.
1886 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
1888         [BZ #22153]
1889         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
1890         in coredumps.
1892 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
1894         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
1895         Assign sym_map to be map for local symbols, as TLS relocations
1896         use sym_map to determine whether the symbol is defined and to
1897         extract the TLS information.
1898         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
1899         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1901 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1903         [BZ #22189]
1904         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
1905         (math_force_eval): Add powerpc version.
1907         [BZ #22142]
1908         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
1909         -DBL_MAX.
1910         (do_test): Likewise.
1911         * stdio-common/tst-printf.sh: Likewise.
1912         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
1913         ifdef clause in order to set the carry bit right.  Replace r0 by
1914         0 without changing the behavior.
1916 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
1918         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
1919         <libm-alias-ldouble.h>.
1920         (fabsl): Define using libm_alias_ldouble.
1921         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
1922         <libm-alias-ldouble.h>.
1923         (fabsl): Define using libm_alias_ldouble.
1925         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
1926         Remove conditional code.
1928         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
1929         Rename to __clog10_internal_l.
1930         (__clog10_internal_l): Define aliases using
1931         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
1932         with __clog10.
1934 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1936         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
1937         * benchtests/sincosf-inputs: New file.
1938         * benchtests/cosf-inputs: New file.
1939         * benchtests/sinf-inputs: New file.
1941 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1943         * posix/tst-spawn.c (do_test): Wait for both children.
1945 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1947         [BZ #22284]
1948         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
1949         tests-pie): Add tst-gmon-pie.
1950         (CFLAGS-tst-gmon-pie.c): New.
1951         (CRT-tst-gmon-pie): Likewise.
1952         (tst-gmon-pie-ENV): Likewise.
1953         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
1954         ($(objpfx)tst-gmon-pie.out): Likewise.
1955         (clean-tst-gmon-pie-data): Likewise.
1956         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
1957         * gmon/gmon.c [PIC]: Include <link.h>.
1958         [PIC] (callback): New function.
1959         (write_hist): Add an argument for load address.  Subtract load
1960         address from PCs.
1961         (write_call_graph): Likewise.
1962         (write_gmon): Call __dl_iterate_phdr to get load address, pass
1963         it to write_hist and write_call_graph.
1964         * gmon/tst-gmon-pie.c: New file.
1966 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
1968         * math/Makefile (test-types-basic): New variable.
1969         (test-types): Likewise.
1970         (libm-test-support): Use $(test-types) instead of $(types).
1971         (libm-tests-base-normal): Likewise.
1972         (libm-tests-base-finite): Likewise.
1973         (libm-tests-base-inline): Likewise.
1974         (generated): Likewise.
1975         ($(objpfx)libm-test-support-$(t).c): Likewise.
1976         (libm-tests-for-type iterator): Likewise.
1977         (libm-test-support iterator): Likewise.
1978         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
1979         (ulp_idx): Use ULP_IDX.
1980         * math/test-ldouble.h: Include <float.h>.
1981         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
1982         (ULP_IDX): New macro.
1983         (ULP_I_IDX): Likewise.
1984         * math/test-double.h (ULP_IDX): Likewise.
1985         (ULP_I_IDX): Likewise.
1986         * math/test-float.h (ULP_IDX): Likewise.
1987         (ULP_I_IDX): Likewise.
1988         * math/test-float128.h (ULP_IDX): Likewise.
1989         (ULP_I_IDX): Likewise.
1991 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1993         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
1994         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
1995         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
1996         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
1997         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
1998         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
1999         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
2000         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
2001         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
2002         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
2003         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
2004         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
2005         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
2006         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2007         (SINGLE_THREAD_BY_GLOBAL): Define.
2008         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2009         Likewise.
2010         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2011         Likewise.
2012         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2013         Likewise.
2014         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2015         Likewise.
2016         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
2017         (SINGLE_THREAD_BY_GLOBAL): Likewise.
2018         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2019         Likewise.
2021 2017-10-11  Andreas Schwab  <schwab@suse.de>
2023         * nis/Makefile (aux): Remove.
2024         * nscd/Makefile (aux): Add nscd_hash.
2025         (nscd-modules): Likewise.
2026         ($(objpfx)nscd): Don't depend on libnsl.
2027         * nscd/nscd_hash.c: New file.
2028         * nscd/nscd_hash.h: Likewise.
2029         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
2030         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
2031         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
2032         instead of <nis/rpcsvc/nis.h>.
2033         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
2035 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2037         [BZ #22078]
2038         Avoid large NSS buffers with many addresses, aliases.
2039         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
2040         using dynarrays and struct alloc_buffer.
2041         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
2042         (tst-nss-files-hosts-multi): Link with -ldl.
2043         * nss/tst-nss-files-hosts-multi.c: New file.
2045 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2047         [BZ #18023]
2048         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
2049         scratch_buffer.  Eliminate gotos.
2051 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2053         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
2054         libm_alias_ldouble_other.
2055         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
2056         undefine and redefine.
2057         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
2058         (exp10l): Do not define here.
2059         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
2060         (weak_alias): Undefine and redefine.
2061         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
2062         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
2063         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
2064         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
2066         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
2067         [!__fma] (fma): Define using libm_alias_double.
2068         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
2069         [!__fmaf] (fmaf): Define using libm_alias_float.
2070         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
2071         (fmal): Define using libm_alias_ldouble.
2073 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
2075         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
2076         New macro.
2077         (libm_alias_double_other): Likewise.
2078         (libm_alias_double_r): Use libm_alias_double_other_r.
2079         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
2080         New macro.
2081         (libm_alias_float_other): Likewise.
2082         (libm_alias_float_r): Use libm_alias_float_other_r.
2083         * sysdeps/generic/libm-alias-float128.h
2084         (libm_alias_float128_other_r): New macro.
2085         (libm_alias_float128_other): Likewise.
2086         (libm_alias_float128_r): Use libm_alias_float128_other_r.
2087         * sysdeps/generic/libm-alias-ldouble.h
2088         (libm_alias_ldouble_other_r): New macro.
2089         (libm_alias_ldouble_other): Likewise.
2090         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
2091         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
2092         (libm_alias_double_other_r): New macro.
2093         (libm_alias_double_other): Likewise.
2094         (libm_alias_double_r): Use libm_alias_double_other_r.
2095         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
2096         (libm_alias_ldouble_other_r): New macro.
2097         (libm_alias_ldouble_other): Likewise.
2098         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
2099         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
2100         [!USE_AS_COMPAT]: Use libm_alias_double_other.
2101         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
2102         [!USE_AS_COMPAT]: Use libm_alias_float_other.
2103         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
2104         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
2105         * math/w_exp2f.c: Use libm_alias_float_other.
2106         * math/w_expf.c: Likewise.
2107         * math/w_log2f.c: Likewise.
2108         * math/w_logf.c: Likewise.
2109         * math/w_powf.c: Likewise.
2110         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
2111         [!__exp2f]: Use libm_alias_float_other.
2112         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
2113         [!__expf]: Use libm_alias_float_other.
2114         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
2115         [!__log2f]: Use libm_alias_float_other.
2116         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
2117         [!__logf]: Use libm_alias_float_other.
2118         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
2119         [!__powf]: Use libm_alias_float_other.
2121 2017-10-10  Florian Weimer  <fweimer@redhat.com>
2123         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
2124         function.
2125         (_nss_files_gethostbyname3_r): Call it.
2127 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
2129         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
2130         error.  Remove default definition of declare_mgen_alias.
2131         [!declare_mgen_alias_r]: Likewise.
2132         * sysdeps/generic/math-type-macros-double.h
2133         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
2134         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
2135         (declare_mgen_alias_r): Likewise.
2136         * sysdeps/generic/math-type-macros-float128.h
2137         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
2138         * sysdeps/generic/math-type-macros-ldouble.h
2139         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
2140         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
2141         macro.
2142         (declare_mgen_alias_r_s): Likewise.
2143         (declare_mgen_alias_r): Likewise.
2144         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
2145         (lgamma_r): Define using libm_alias_double_r.
2146         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
2147         (lgammaf_r): Define using libm_alias_float_r.
2148         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
2149         (lgammal_r): Define using libm_alias_ldouble_r.
2150         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
2151         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
2153 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2155         * lib/glob.c (__glob_pattern_type): Remove now-spurious
2156         extern declaration.
2158 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
2160         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
2162 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
2164         [BZ #21326]
2165         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
2166         [__cplusplus >= 201103] (__USE_ISOC99): Define.
2167         * math/Makefile (test-math-cxx11): New test.
2168         * math/test-math-cxx11.cc: New file.
2170 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
2172         * login/openpty.c (openpty): Close slave pty file descriptor on error.
2174         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
2175         call to allocate the slave pty file descriptor.
2177 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
2179         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
2180         [!__fma] (fma): Define using libm_alias_double.
2181         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
2182         [!__fma] (fma): Define using libm_alias_double.
2184         * sysdeps/ieee754/float128/float128_private.h: Include
2185         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
2186         (libm_alias_ldouble_r): Undefine and redefine.
2187         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
2188         <libm-alias-ldouble.h>.
2189         (asinhl): Define using libm_alias_ldouble.
2190         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
2191         <libm-alias-ldouble.h>.
2192         (atanl): Define using libm_alias_ldouble.
2193         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
2194         <libm-alias-ldouble.h>.
2195         (cbrtl): Define using libm_alias_ldouble.
2196         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
2197         <libm-alias-ldouble.h>.
2198         (ceill): Define using libm_alias_ldouble.
2199         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
2200         <libm-alias-ldouble.h>.
2201         (copysignl): Define using libm_alias_ldouble.
2202         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
2203         <libm-alias-ldouble.h>.
2204         (cosl): Define using libm_alias_ldouble.
2205         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
2206         <libm-alias-ldouble.h>.
2207         (erfl): Define using libm_alias_ldouble.
2208         (erfcl): Likewise.
2209         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
2210         <libm-alias-ldouble.h>.
2211         (expm1l): Define using libm_alias_ldouble.
2212         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
2213         <libm-alias-ldouble.h>.
2214         (fabsl): Define using libm_alias_ldouble.
2215         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
2216         <libm-alias-ldouble.h>.
2217         (floorl): Define using libm_alias_ldouble.
2218         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
2219         <libm-alias-ldouble.h>.
2220         (fmal): Define using libm_alias_ldouble.
2221         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
2222         <libm-alias-ldouble.h>.
2223         (frexpl): Define using libm_alias_ldouble.
2224         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
2225         libm_alias_ldouble.
2226         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
2227         <libm-alias-ldouble.h>.
2228         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
2229         libm_alias_ldouble.
2230         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
2231         <libm-alias-ldouble.h>.
2232         (getpayloadl): Define using libm_alias_ldouble.
2233         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
2234         <libm-alias-ldouble.h>.
2235         (llrintl): Define using libm_alias_ldouble.
2236         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
2237         <libm-alias-ldouble.h>.
2238         (llroundl): Define using libm_alias_ldouble.
2239         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
2240         <libm-alias-ldouble.h>.
2241         (logbl): Define using libm_alias_ldouble.
2242         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
2243         <libm-alias-ldouble.h>.
2244         (lrintl): Define using libm_alias_ldouble.
2245         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
2246         <libm-alias-ldouble.h>.
2247         (lroundl): Define using libm_alias_ldouble.
2248         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
2249         <libm-alias-ldouble.h>.
2250         (modfl): Define using libm_alias_ldouble.
2251         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
2252         <libm-alias-ldouble.h>.
2253         (nearbyintl): Define using libm_alias_ldouble.
2254         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
2255         <libm-alias-ldouble.h>.
2256         (nextafterl): Define using libm_alias_ldouble.
2257         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
2258         <libm-alias-ldouble.h>.
2259         (nextupl): Define using libm_alias_ldouble.
2260         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
2261         <libm-alias-ldouble.h>.
2262         (remquol): Define using libm_alias_ldouble.
2263         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
2264         <libm-alias-ldouble.h>.
2265         (rintl): Define using libm_alias_ldouble.
2266         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
2267         <libm-alias-ldouble.h>.
2268         (roundevenl): Define using libm_alias_ldouble.
2269         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
2270         <libm-alias-ldouble.h>.
2271         (roundl): Define using libm_alias_ldouble.
2272         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
2273         using libm_alias_ldouble.
2274         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
2275         <libm-alias-ldouble.h>.
2276         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
2277         Define using libm_alias_ldouble.
2278         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
2279         <libm-alias-ldouble.h>.
2280         (sincosl): Define using libm_alias_ldouble.
2281         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
2282         <libm-alias-ldouble.h>.
2283         (sinl): Define using libm_alias_ldouble.
2284         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
2285         <libm-alias-ldouble.h>.
2286         (tanhl): Define using libm_alias_ldouble.
2287         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
2288         <libm-alias-ldouble.h>.
2289         (tanl): Define using libm_alias_ldouble.
2290         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2291         <libm-alias-ldouble.h>.
2292         (totalorderl): Define using libm_alias_ldouble.
2293         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2294         <libm-alias-ldouble.h>.
2295         (totalordermagl): Define using libm_alias_ldouble.
2296         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
2297         <libm-alias-ldouble.h>.
2298         (truncl): Define using libm_alias_ldouble.
2299         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
2300         libm_alias_ldouble.
2301         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
2302         libm_alias_ldouble.
2303         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
2304         <libm-alias-ldouble.h>.
2305         (weak_alias): Do not undefine and redefine.
2306         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2307         (copysignl): Define with long_double_symbol only if [IS_IN
2308         (libc)].
2309         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
2310         <libm-alias-ldouble.h>.
2311         (weak_alias): Do not undefine and redefine.
2312         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2313         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
2314         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
2315         <libm-alias-ldouble.h>.
2316         (weak_alias): Do not undefine and redefine.
2317         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2318         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
2319         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
2320         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
2321         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
2322         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
2323         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
2324         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
2325         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
2326         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
2327         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
2328         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
2329         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
2330         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
2331         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
2332         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
2333         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
2334         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
2335         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
2336         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
2337         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
2338         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
2339         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
2340         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
2341         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
2342         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
2344 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
2346         [BZ #22111]
2347         * malloc/malloc.c (tcache_shutting_down): Use bool type.
2348         (tcache_thread_freeres): Set tcache_shutting_down before
2349         freeing the tcache.
2350         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
2351         * malloc/tst-malloc-tcache-leak.c: New file.
2353 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2355         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
2356         back to powerpc32 file.
2357         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
2358         (memrchr): Add __memrchr_power8 to ifunc list.
2359         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
2360         extra bytes for unaligned inputs.
2362 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
2364         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
2365         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
2366         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
2367         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
2368         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
2370 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
2372         * sysdeps/arm/libm-test-ulps: Update.
2374         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
2375         <libm-alias-ldouble.h>.
2376         (asinhl): Define using libm_alias_ldouble.
2377         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
2378         <libm-alias-ldouble.h>.
2379         (cbrtl): Define using libm_alias_ldouble.
2380         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
2381         <libm-alias-ldouble.h>.
2382         (copysignl): Define using libm_alias_ldouble.
2383         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
2384         <libm-alias-ldouble.h>.
2385         (cosl): Define using libm_alias_ldouble.
2386         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
2387         <libm-alias-ldouble.h>.
2388         (erfl): Define using libm_alias_ldouble.
2389         (erfcl): Likewise.
2390         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
2391         <libm-alias-ldouble.h>.
2392         (fmal): Define using libm_alias_ldouble.
2393         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
2394         <libm-alias-ldouble.h>.
2395         (frexpl): Define using libm_alias_ldouble.
2396         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
2397         libm_alias_ldouble.
2398         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
2399         <libm-alias-ldouble.h>.
2400         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
2401         libm_alias_ldouble.
2402         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
2403         <libm-alias-ldouble.h>.
2404         (getpayloadl): Define using libm_alias_ldouble.
2405         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
2406         <libm-alias-ldouble.h>.
2407         (llrintl): Define using libm_alias_ldouble.
2408         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
2409         <libm-alias-ldouble.h>.
2410         (llroundl): Define using libm_alias_ldouble.
2411         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
2412         <libm-alias-ldouble.h>.
2413         (lrintl): Define using libm_alias_ldouble.
2414         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
2415         <libm-alias-ldouble.h>.
2416         (lroundl): Define using libm_alias_ldouble.
2417         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
2418         <libm-alias-ldouble.h>.
2419         (modfl): Define using libm_alias_ldouble.
2420         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
2421         <libm-alias-ldouble.h>.
2422         (nextupl): Define using libm_alias_ldouble.
2423         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
2424         <libm-alias-ldouble.h>.
2425         (remquol): Define using libm_alias_ldouble.
2426         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
2427         <libm-alias-ldouble.h>.
2428         (roundevenl): Define using libm_alias_ldouble.
2429         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
2430         <libm-alias-ldouble.h>.
2431         (roundl): Define using libm_alias_ldouble.
2432         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
2433         using libm_alias_ldouble.
2434         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
2435         <libm-alias-ldouble.h>.
2436         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
2437         <libm-alias-ldouble.h>.
2438         (setpayloadsigl): Define using libm_alias_ldouble.
2439         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
2440         <libm-alias-ldouble.h>.
2441         (sincosl): Define using libm_alias_ldouble.
2442         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
2443         <libm-alias-ldouble.h>.
2444         (sinl): Define using libm_alias_ldouble.
2445         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
2446         <libm-alias-ldouble.h>.
2447         (tanhl): Define using libm_alias_ldouble.
2448         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
2449         <libm-alias-ldouble.h>.
2450         (tanl): Define using libm_alias_ldouble.
2451         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2452         <libm-alias-ldouble.h>.
2453         (totalorderl): Define using libm_alias_ldouble.
2454         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2455         <libm-alias-ldouble.h>.
2456         (totalordermagl): Define using libm_alias_ldouble.
2457         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
2458         libm_alias_ldouble.
2459         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
2460         libm_alias_ldouble.
2462 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2464         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
2465         memmove_falkor.
2466         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2467         (__libc_ifunc_impl_list): Likewise.
2468         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
2469         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
2471         * benchtests/bench-memmove-walk.c: New file.
2472         * benchtests/Makefile (string-benchset): Add it.
2474         * benchtests/bench-memset-walk.c: New file.
2475         * benchtests/Makefile (string-benchset): Add it.
2477         * benchtests/bench-memcpy-walk.c: New file.
2478         * benchtests/Makefile (string-benchset): Add it.
2480 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2482         nscd: Eliminate compilation time dependency in the build output.
2483         * nscd/nscd_stat.c (STATDATA_VERSION)
2484         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
2485         (STATDATA_VERSION_FULL): New macro definitions.
2486         (compilation): Remove.
2487         (struct statdata): Adjust version member.
2488         (send_stats): Set version from STATDATA_VERSION_FULL.
2489         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
2491 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
2493         * configure.ac (--enable-add-ons): Remove option.
2494         (machine): Do not mention add-ons in comment.
2495         (LIBC_PRECONFIGURE): Likewise.
2496         (add_ons): Remove variable and sanity checks and logic to locate
2497         add-ons.
2498         (add_ons_automatic): Remove variable.
2499         (configured_add_ons): Likewise.
2500         (add_ons_sfx): Likewise.
2501         (add_ons_pfx): Likewise.
2502         (add_on_subdirs): Likewise.
2503         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
2504         consideration of add-ons in Implies handling.
2505         (sysdeps_add_ons): Likewise.
2506         * configure: Regenerated.
2507         * libidn/configure.ac: Remove.
2508         * libidn/configure: Likewise.
2509         * sysdeps/unix/inet/configure.ac: New file.
2510         * sysdeps/unix/inet/configure: New generated file.
2511         * sysdeps/unix/inet/Subdirs: Add libidn.
2512         * Makeconfig (sysdeps-srcdirs): Remove variable.
2513         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
2514         ($(common-objpfx)config.status): Do not depend on add-on files.
2515         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
2516         comment.
2517         (all-subdirs): Do not include $(add-on-subdirs).
2518         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
2519         * config.make.in (add-ons): Remove variable.
2520         (add-on-subdirs): Likewise.
2521         (sysdeps-add-ons): Likewise.
2522         * manual/Makefile (add-chapters): Remove.
2523         ($(objpfx)texis): Do not depend on $(add-chapters).
2524         (nonexamples): Do not handle $(add-chapters).
2525         (examples): Do not handle $(add-ons).
2526         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
2527         libc-texinfo.sh.
2528         * manual/install.texi (Installation): Do not mention add-ons.
2529         (--enable-add-ons): Do not document configure option.
2530         * INSTALL: Regenerated.
2531         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
2532         * manual/maint.texi (Hierarchy Conventions): Do not mention
2533         add-ons.
2534         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
2535         --enable-add-ons.
2536         * scripts/gen-sorted.awk: Do not handle Subdirs files from
2537         add-ons.
2538         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
2539         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
2541 2017-10-05  Andreas Schwab  <schwab@suse.de>
2543         [BZ #15142]
2544         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
2545         (_IO_flush_all_lockp): Always lock list_all_lock.
2546         (_IO_flush_all_linebuffered): Likewise.
2547         (_IO_unbuffer_all): Likewise.
2549 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2551         [BZ #15436]
2552         Do not flush stdio streams on abort.
2553         * stdlib/abort.c (fflush): Remove macro definition.
2554         (abort): Remove stages related to stdio flushing.
2556 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2558         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
2560 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
2562         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2564 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2566         * support/support_format_hostent.c (support_format_hostent): Add
2567         more error information for NETDB_INTERNAL.
2569 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2571         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
2572         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
2573         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
2574         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
2575         AC_DEFINE if multi-arch is enabled.
2576         * sysdeps/i386/configure: Regenerated.
2578 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2580         * Makeconfig (+link-static-before-libc): Use
2581         $(DEFAULT-LDFLAGS-$(@F)).
2582         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
2583         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
2584         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
2586 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2588         * elf/Makefile (tests): Add tst-main1.
2589         (modules-names): Add tst-main1mod.
2590         ($(objpfx)tst-main1): New.
2591         (CRT-tst-main1): Likewise.
2592         (LDFLAGS-tst-main1): Likewise.
2593         (LDLIBS-tst-main1): Likewise.
2594         (tst-main1mod.so-no-z-defs): Likewise.
2595         * elf/tst-main1.c: New file.
2596         * elf/tst-main1mod.c: Likewise.
2598 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2600         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
2602 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
2604         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
2605         (fma): Define using libm_alias_double.
2606         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
2607         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
2608         <math_ldbl_opt.h>.
2609         (fmal): Do not define as compat symbol here.
2610         * sysdeps/alpha/fpu/s_fma.c: New file.
2612 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2614         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
2616 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
2618         [BZ #22229]
2619         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
2620         <math_ldbl_opt.h>
2621         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
2622         and libc.
2623         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
2624         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2625         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
2626         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
2627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
2628         Include <math_ldbl_opt.h>
2629         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
2630         and libc.
2631         (compat_symbol): Undefine and redefine.
2632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
2633         <math_ldbl_opt.h>
2634         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2635         (compat_symbol): Undefine and redefine.
2636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
2637         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
2638         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
2639         GLIBC_2_1 for libm.
2640         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
2641         GLIBC_2.0 copysignl symbol.
2642         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
2643         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
2645         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
2647 2017-10-04  Florian Weimer  <fweimer@redhat.com>
2649         * scripts/check-local-headers.sh: Ignore nspr4 header file
2650         directory in addition to nspr.
2652 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
2654         [BZ #17956]
2655         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
2656         * configure: Regenerate.
2657         * crypt/Makefile (nss-cpp-flags): New variable.
2658         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
2659         (CPPFLAGS-md5-crypt.c): Use it.
2660         * scripts/check-local-headers.sh: Ignore nspr header file
2661         directory.
2663 2017-10-04  Andreas Schwab  <schwab@suse.de>
2665         * nis/Makefile (services): Remove compat.
2666         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
2667         ($(objpfx)libnss_compat.so): Remove rule.
2668         * nis/Versions (libnss_compat): Remove.
2669         * nss/Makefile (services): Add compat.
2670         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
2671         * nss/Versions (libnss_compat): Define.
2672         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
2673         Don't include <rpc/types.h>.  Replace bool_t by bool.
2674         * nss/nss_compat/compat-initgroups.c: Likewise.
2675         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
2676         instead of <rpcsrv/ypclnt.h>.
2677         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
2678         yp_get_default_domain.
2679         * nss/nss_compat/compat-pwd.c: Likewise.
2680         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
2681         yp_get_default_domain.
2682         * nss/nss_compat/nisdomain.c: New file.
2683         * nss/nss_compat/nisdomain.h: Likewise.
2685 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2687         [BZ #22244]
2688         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
2689         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2691 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2693         [BZ #22243]
2694         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
2695         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
2697 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2699         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
2700         "movl main@GOTOFF(%ebx), %eax".
2702 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2704         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
2705         allow undefined _DYNAMIC in PIE libc.a.
2706         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
2707         Likewse.
2709 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2711         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
2712         check _DYNAMIC.
2714 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2716         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
2717         check _DYNAMIC.
2719 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2721         * math/test-math-iscanonical.cc (error): Replace bool with int.
2723 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
2725         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
2726         (modf): Define using libm_alias_double, only if [!__modf].
2727         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
2728         <libm-alias-double.h>.
2729         (modf): Define using libm_alias_double, only if [!__modf].
2730         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
2731         compat symbol here.
2732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
2733         (weak_alias): Do not undefine and redefine.
2734         (strong_alias): Likewise.
2735         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
2736         (weak_alias): Likewise.
2737         (strong_alias): Likewise.
2739         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
2740         (logb): Define using libm_alias_double, only if [!__logb].
2741         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
2742         <libm-alias-double.h>.
2743         (logb): Define using libm_alias_double, only if [!__logb].
2744         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
2745         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
2746         (weak_alias): Do not undefine and redefine.
2747         (strong_alias): Likewise.
2748         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
2749         (weak_alias): Likewise.
2750         (strong_alias): Likewise.
2752 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2754         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
2755         Check SHARED instead PIC.
2757 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
2759         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
2760         [!__fmaf] (fmaf): Define using libm_alias_float.
2762         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
2763         (frexp): Define using libm_alias_double.
2764         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
2765         <libm-alias-double.h>.
2766         (frexp): Define using libm_alias_double.
2767         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
2768         compat symbol here.
2770 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2772         [BZ #22235]
2773         * math/math.h: Trivial fix for unbalanced parentheses in comment.
2774         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
2775         (CFLAGS-test-math-iscanonical.cc): New variable.
2776         * math/test-math-iscanonical.cc: New file.
2777         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
2778         Provide a C++ implementation based on function overloading,
2779         rather than using __MATH_TG, which uses C-only builtins.
2780         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
2781         Likewise.
2782         * sysdeps/powerpc/powerpc64le/Makefile
2783         (CFLAGS-test-math-iscanonical.cc): New variable.
2785 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
2787         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
2788         (ceil): Define using libm_alias_double.
2789         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
2790         (floor): Define using libm_alias_double.
2791         * sysdeps/ieee754/dbl-64/s_llround.c: Include
2792         <libm-alias-double.h>.
2793         (llround): Define using libm_alias_double.
2794         * sysdeps/ieee754/dbl-64/s_lround.c: Include
2795         <libm-alias-double.h>.
2796         (lround): Define using libm_alias_double.
2797         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
2798         <libm-alias-double.h>.
2799         (nearbyint): Define using libm_alias_double.
2800         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
2801         <libm-alias-double.h>.
2802         (remquo): Define using libm_alias_double.
2803         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
2804         (rint): Define using libm_alias_double.
2805         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
2806         (round): Define using libm_alias_double.
2807         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
2808         (trunc): Define using libm_alias_double.
2809         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
2810         <libm-alias-double.h>.
2811         (ceil): Define using libm_alias_double.
2812         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
2813         <libm-alias-double.h>.
2814         (floor): Define using libm_alias_double.
2815         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
2816         <libm-alias-double.h>.
2817         (llround): Define using libm_alias_double.
2818         [_LP64] (lround): Likewise.
2819         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
2820         <libm-alias-double.h>.
2821         [!_LP64] (lround): Define using libm_alias_double.
2822         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
2823         <libm-alias-double.h>.
2824         (nearbyint): Define using libm_alias_double.
2825         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
2826         <libm-alias-double.h>.
2827         (remquo): Define using libm_alias_double.
2828         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
2829         <libm-alias-double.h>.
2830         (rint): Define using libm_alias_double.
2831         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
2832         <libm-alias-double.h>.
2833         (round): Define using libm_alias_double.
2834         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
2835         <libm-alias-double.h>.
2836         (trunc): Define using libm_alias_double.
2837         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
2838         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
2839         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
2840         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
2841         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
2842         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
2843         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
2844         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
2845         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
2847 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2849         * math/w_remainder.c: New file.
2850         * math/w_remainderf.c: New file.
2851         * math/w_remainderl.c: New file.
2853 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2855         * elf/rtld.c (BOOTSTRAP_MAP): New.
2856         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
2857         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2858         Likewise.
2859         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2860         Likewise.
2861         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2862         Likewise.
2864 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2866         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
2867         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
2868         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
2869         rtld_hidden_data_ver): Define to empty.
2870         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
2871         __assert_perror_fail): Likewise.
2872         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2873         (__rewinddir): Likewise.
2874         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2875         (__profile_frequency): Likewise.
2876         * include/setjmp.h (__sigsetjmp): Likewise.
2877         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
2878         __libc_sigaction): Likewise.
2879         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
2880         not set hidden attribute.
2881         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
2882         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
2883         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
2884         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
2885         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
2886         __fxstatat64): Likewise.
2887         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2888         (__uname): Likewise.
2889         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2890         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
2891         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
2892         (NO_RTLD_HIDDEN): Set.
2893         * sysdeps/mach/hurd/configure: Refresh.
2894         * config.h.in: Refresh.
2896 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
2898         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
2899         (atan): Define using libm_alias_double.
2900         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
2901         (tan): Define using libm_alias_double.
2902         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
2903         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
2905         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
2906         define as weak alias of __atan.  Do not define any aliases if
2907         [__atan].
2908         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
2909         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
2910         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
2911         as weak alias of __tan.  Do not define any aliases if [__tan].
2912         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
2913         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
2914         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
2915         __atan.
2916         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
2917         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
2918         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
2919         and define as weak alias of __atan.
2920         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
2921         __atan.
2922         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
2923         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
2924         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
2925         define as weak alias of __tan.
2927 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2929         * math/w_lgamma.c: New file.
2930         * math/w_lgammaf.c: New file.
2931         * math/w_lgammal.c: New file.
2933 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2935         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
2936         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
2937         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
2938         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
2939         * sysdeps/ieee754/flt-32/w_logf.c: New file.
2940         * sysdeps/ieee754/flt-32/w_powf.c: New file.
2941         * sysdeps/i386/fpu/w_log2f.c: New file.
2942         * sysdeps/i386/fpu/w_logf.c: New file.
2943         * sysdeps/i386/fpu/w_powf.c: New file.
2944         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
2945         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
2946         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
2948 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2949             H.J. Lu  <hongjiu.lu@intel.com>
2951         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
2952         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
2953         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
2954         * sysdeps/ieee754/flt-32/w_expf.c: New file.
2955         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
2956         the new expf code.
2957         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
2958         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
2959         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
2960         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
2961         * sysdeps/i386/fpu/w_exp2f.c: New file.
2962         * sysdeps/i386/fpu/w_expf.c: New file.
2963         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
2964         * sysdeps/x86_64/fpu/w_expf.c: New file.
2966 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2968         * math/Versions (logf): New libm symbol at GLIBC_2.27.
2969         (log2f): Likewise.
2970         (powf): Likewise.
2971         * math/w_log2f.c: New file.
2972         * math/w_logf.c: New file.
2973         * math/w_powf.c: New file.
2974         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
2975         * math/w_logf_compat.c (__logf_compat): Likewise.
2976         * math/w_powf_compat.c (__powf_compat): Likewise.
2977         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
2978         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2979         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2980         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
2981         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2982         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2983         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2984         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2985         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2986         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2987         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2988         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2989         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2990         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2991         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2993         Likewise.
2994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2995         Likewise.
2996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2997         Likewise.
2998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2999         Likewise.
3000         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3001         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3002         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3003         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3004         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3005         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3006         Likewise.
3007         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3008         Likewise.
3009         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3010         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3011         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3013 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3015         * sysdeps/powerpc/powerpc64/multiarch/Makefile
3016         (sysdep_routines): Add memrchr_power8.
3017         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
3018         (memrchr): Add __memrchr_power8 to list of memrchr functions.
3019         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
3020         New file.
3021         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3022         (memrchr): Add __memrchr_power8 to ifunc list.
3023         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
3025 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3027         [BZ #18822]
3028         * sysdeps/unix/sysv/linux/posix_fadvise64.c
3029         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
3030         libc_hidden_def.
3031         * sysdeps/unix/sysv/linux/posix_fallocate64.c
3032         (__posix_fallocate64_l64): Likewise.
3034 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3036         [BZ #18822]
3037         * sysdeps/unix/sysv/linux/sched_setaffinity.c
3038         (__sched_setaffinity_new): Add libc_hidden_proto and
3039         libc_hidden_def.
3041 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3043         [BZ #18822]
3044         * include/glob.h (__glob64): Add libc_hidden_proto.
3045         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
3046         libc_hidden_def.
3048 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3050         [BZ #18822]
3051         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
3052         attribute_hidden.
3054 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3056         [BZ #18822]
3057         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
3059 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3061         [BZ #18822]
3062         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
3063         libc_hidden_def.
3065 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3067         [BZ #18822]
3068         * csu/version.c (__libc_print_version): Add attribute_hidden.
3070 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3072         [BZ #18822]
3073         * include/libc-internal.h (__init_misc): Add attribute_hidden.
3075 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3077         [BZ #18822]
3078         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
3080 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3082         [BZ #18822]
3083         * nscd/nscd_helper.c (__nis_hash): New prototype.
3085 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3087         [BZ #18822]
3088         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
3089         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
3090         libc_hidden_def.
3091         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
3092         * termios/tcgetattr.c (__tcgetattr): Likewise.
3094 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3096         [BZ #18822]
3097         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
3098         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
3099         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
3100         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
3101         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
3103 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3105         [BZ #18822]
3106         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
3108 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3110         [BZ #18822]
3111         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
3112         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
3114 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3116         [BZ #18822]
3117         * intl/hash-string.h (__hash_string): Add attribute_hidden.
3119 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3121         [BZ #18822]
3122         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
3123         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
3125 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3127         [BZ #18822]
3128         * include/ifreq.h: New file.
3129         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
3130         (__ifreq): Likewise.
3131         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
3132         (__ifreq): Likewise.
3134 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3136         [BZ #18822]
3137         * include/idna.h: New file.
3138         * inet/getnameinfo.c: Include <idna.h> instead of
3139         <libidn/idna.h>.
3140         (__idna_to_unicode_lzlz): Removed.
3141         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
3142         <libidn/idna.h>.
3143         (__idna_to_ascii_lz): Removed.
3144         (__idna_to_unicode_lzlz): Likewise.
3146 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3148         [BZ #18822]
3149         * include/plural-exp.h: New file.
3150         * intl/plural-exp.c: Include <plural-exp.h> instead of
3151         "plural-exp.h".
3153 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3155         [BZ #18822]
3156         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
3157         "getsourcefilter.h".
3158         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
3159         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
3160         "getsourcefilter.h".
3161         (__get_sol): Removed.
3163 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3165         [BZ #18822]
3166         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
3167         to ...
3168         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
3170 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3172         [BZ #18822]
3173         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
3174         attribute_hidden.
3176 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3178         [BZ #18822]
3179         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
3181 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3183         [BZ #18822]
3184         * include/search.h (__tdestroy): Add libc_hidden_proto.
3185         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
3187 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3189         [BZ #18822]
3190         * include/assert.h (__assert_fail_base): Add attribute_hidden.
3192 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3194         [BZ #18822]
3195         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
3196         attribute_hidden.
3198 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3200         [BZ #18822]
3201         * include/signal.h (__kill): Add libc_hidden_proto.
3202         (__sigblock): Likewise.
3203         (__sigprocmask): Likewise.
3204         (__sigaltstack): Likewise.
3205         * signal/kill.c (__kill): Add libc_hidden_def.
3206         * signal/sigblock.c (__sigblock): Likewise.
3207         * signal/sigprocmask.c (__sigprocmask): Likewise.
3208         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
3209         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
3210         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
3211         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
3212         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
3213         Likewise.
3214         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
3215         Likewise.
3216         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
3217         (__sigprocmask): Likewise.
3218         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
3219         Likewise.
3220         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
3221         (__sigprocmask): Likewise.
3222         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
3223         Likewise.
3225 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3227         [BZ #18822]
3228         * include/string.h (__strsep): Add libc_hidden_proto.
3229         * string/strsep.c (__strsep): Add libc_hidden_def.
3231 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3233         [BZ #18822]
3234         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
3235         attribute_hidden.
3236         (__spawni): Likewise.
3238 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3240         [BZ #18822]
3241         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
3242         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
3243         libc_hidden_def.
3245 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3247         [BZ #18822]
3248         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
3250 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3252         [BZ #18822]
3253         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
3254         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
3255         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3256         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
3257         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
3258         Likewise.
3259         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
3260         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
3262 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3264         [BZ #18822]
3265         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
3266         (__dcigettext): Likewise.
3268 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3270         [BZ #18822]
3271         * include/sys/sysinfo.h (__get_nprocs_conf): Add
3272         libc_hidden_proto.
3273         (__get_nprocs): Likewise.
3274         (__get_phys_pages): Likewise.
3275         (__get_avphys_pages): Likewise.
3276         (__get_child_max): Add attribute_hidden.
3277         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
3278         (__get_nprocs): Likewise.
3279         (__get_phys_pages): Likewise.
3280         (__get_avphys_pages): Likewise.
3281         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
3282         libc_hidden_def.
3283         (__get_nprocs): Likewise.
3284         (__get_phys_pages): Likewise.
3285         (__get_avphys_pages): Likewise.
3286         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
3287         libc_hidden_def.
3288         (__get_nprocs_conf): Likewise.
3289         (__get_phys_pages): Likewise.
3290         (__get_avphys_pages): Likewise.
3292 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3294         [BZ #18822]
3295         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
3296         attribute_hidden.
3297         (__netlink_close): Likewise.
3298         (__netlink_free_handle): Likewise.
3299         (__netlink_request): Likewise.
3301 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3303         [BZ #18822]
3304         * include/rpc/rpc.h (__rpc_thread_variables): Add
3305         attribute_hidden.
3306         (__rpc_thread_svc_cleanup): Likewise.
3307         (__rpc_thread_clnt_cleanup): Likewise.
3308         (__rpc_thread_key_cleanup): Likewise.
3310 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3312         [BZ #18822]
3313         * include/sys/uio.h (__readv): Add libc_hidden_proto.
3314         (__writev): Likewise.
3315         * misc/readv.c (__readv): Add libc_hidden_def.
3316         * misc/writev.c (__writev): Likewise.
3317         * sysdeps/posix/readv.c (__readv): Likewise.
3318         * sysdeps/posix/writev.c (__writev): Likewise.
3319         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
3320         (__readv): Likewise.
3321         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
3322         (__writev): Likewise.
3324 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3326         [BZ #18822]
3327         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
3328         (__regcomp): Add libc_hidden_proto.
3329         (__regexec): Likewise.
3330         (__regfree): Likewise.
3331         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
3332         (__regfree): Likewise.
3333         * posix/regexec.c (__regexec): Likewise.
3335 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3337         [BZ #18822]
3338         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
3339         (__getutent): Likewise.
3340         (__getutid): Likewise.
3341         (__getutline): Likewise.
3342         (__pututline): Likewise.
3343         (__getutent_r): Likewise.
3344         (__getutid_r): Likewise.
3345         (__getutline_r): Likewise.
3346         (__utmpname): Add attribute_hidden.
3347         (__setutent): Likewise.
3348         (__endutent): Likewise.
3349         * login/getutent.c (__getutent): Add libc_hidden_def.
3350         * login/getutent_r.c (__getutent_r): Likewise.
3351         (__pututline): Likewise.
3352         * login/getutid.c (__getutid): Likewise.
3353         * login/getutid_r.c (__getutid_r): Likewise.
3354         * login/getutline.c (__getutline): Likewise.
3355         * login/getutline_r.c (__getutline_r): Likewise.
3356         * login/updwtmp.c (__updwtmp): Likewise.
3358 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3360         [BZ #18822]
3361         * include/dirent.h (__opendir): Always add attribute_hidden.
3362         (__fdopendir): Likewise.
3363         (__closedir): Likewise.
3364         (__readdir): Likewise.
3365         (__readdir64): Add libc_hidden_proto.
3366         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
3367         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
3368         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
3369         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
3370         New alias.
3372 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3374         [BZ #18822]
3375         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
3376         * include/netdb.h (__gethostbyaddr_r): Likewise.
3377         (__gethostbyname_r): Likewise.
3378         (__gethostbyname2_r): Likewise.
3379         (__getnetbyaddr_r): Likewise.
3380         (__getnetbyname_r): Likewise.
3381         (__getservbyname_r): Likewise.
3382         (__getservbyport_r): Likewise.
3383         (__getprotobyname_r): Likewise.
3384         (__getprotobynumber_r): Likewise.
3385         (__getnetgrent_r): Likewise.
3386         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
3387         (__getrpcbynumber_r): Likewise.
3388         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
3390 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3392         [BZ #18822]
3393         * include/stdio.h (__fcloseall): Add attribute_hidden.
3394         (__getline): Likewise.
3395         (__path_search): Likewise.
3396         (__gen_tempname): Likewise.
3397         (__libc_message): Likewise.
3398         (__flockfile): Likewise.
3399         (__funlockfile): Likewise.
3400         (__fxprintf): Likewise.
3401         (__fxprintf_nocancel): Likewise.
3403 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3405         [BZ #18822]
3406         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
3407         (__sgetsgent_r): Likewise.
3409 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3411         [BZ #18822]
3412         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
3413         (__statfs64): Likewise.
3414         (__fstatfs64): Likewise.
3415         * include/sys/statvfs.h (__statvfs64): Likewise.
3416         (__fstatvfs64): Likewise.
3417         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
3418         (__statfs_filesize_max): Likewise.
3419         (__statfs_symlinks): Likewise.
3420         (__statfs_chown_restricted): Likewise.
3422 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3424         [BZ #18822]
3425         * include/time.h (__tzstring): Add attribute_hidden.
3426         (__tzfile_read): Likewise.
3427         (__tzfile_compute): Likewise.
3428         (__tzfile_default): Likewise.
3429         (__tzset_parse_tz): Likewise.
3430         (__offtime): Likewise.
3431         (__asctime_r): Likewise.
3432         (__tzset): Likewise.
3433         (__tz_convert): Likewise.
3434         (__getdate_r): Likewise.
3435         (__getclktck): Likewise.
3437 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3439         [BZ #18822]
3440         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
3441         (__nscd_unmap): Likewise.
3442         (__nscd_cache_search): Likewise.
3443         (__nscd_get_nl_timestamp): Likewise.
3444         (__nscd_getpwnam_r): Likewise.
3445         (__nscd_getpwuid_r): Likewise.
3446         (__nscd_getgrnam_r): Likewise.
3447         (__nscd_getgrgid_r): Likewise.
3448         (__nscd_gethostbyname_r): Likewise.
3449         (__nscd_gethostbyname2_r): Likewise.
3450         (__nscd_gethostbyaddr_r): Likewise.
3451         (__nscd_getai): Likewise.
3452         (__nscd_getgrouplist): Likewise.
3453         (__nscd_getservbyname_r): Likewise.
3454         (__nscd_getservbyport_r): Likewise.
3455         (__nscd_innetgr): Likewise.
3456         (__nscd_setnetgrent): Likewise.
3458 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3460         [BZ #18822]
3461         * include/gmp.h: Declare internal functions only if _ISOMAC is
3462         undefined.
3463         (__mpn_extract_double): Add attribute_hidden.
3464         (__mpn_extract_long_double): Likewise.
3465         (__mpn_extract_float128): Likewise.
3466         (__mpn_construct_float): Likewise.
3467         (__mpn_construct_double): Likewise.
3468         (__mpn_construct_long_double): Likewise.
3469         (__mpn_construct_float128): Likewise.
3470         (mpn_add_1): Likewise.
3471         (mpn_addmul_1): Likewise.
3472         (mpn_add_n): Likewise.
3473         (mpn_cmp): Likewise.
3474         (mpn_divrem): Likewise.
3475         (mpn_lshift): Likewise.
3476         (mpn_mul): Likewise.
3477         (mpn_mul_1): Likewise.
3478         (mpn_rshift): Likewise.
3479         (mpn_sub_1): Likewise.
3480         (mpn_submul_1): Likewise.
3481         (mpn_sub_n): Likewise.
3483 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3485         [BZ #18822]
3486         * include/wchar.h (__wcsnlen): Add attribute_hidden.
3487         (__wcscat): Likewise.
3488         (__btowc): Likewise.
3489         (__wcrtomb): Likewise.
3490         (__mbsrtowcs): Likewise.
3491         (__wcsrtombs): Likewise.
3492         (__mbsnrtowcs): Likewise.
3493         (__wcsnrtombs): Likewise.
3494         (__wcsncpy): Likewise.
3495         (__wcpncpy): Likewise.
3496         (__wmemcpy): Likewise.
3497         (__wmempcpy): Likewise.
3498         (__wmemmove): Likewise.
3499         (__wcschrnul): Likewise.
3500         (__vfwscanf): Likewise.
3501         (__vswprintf): Likewise.
3502         (__fwprintf): Likewise.
3503         (__vfwprintf): Likewise.
3505 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3507         [BZ #18822]
3508         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
3509         (__getgrgid_r): Likewise.
3510         (__getgrnam_r): Likewise.
3511         * include/pwd.h (__getpwuid_r): Likewise.
3512         (__getpwnam_r): Likewise.
3513         (__fgetpwent_r): Likewise.
3514         * include/shadow.h (__getspnam_r): Likewise.
3515         (__sgetspent_r): Likewise.
3516         (__fgetspent_r): Likewise.
3518 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3520         [BZ #18822]
3521         * include/unistd.h (__access): Add attribute_hidden.
3522         (__lseek64): Likewise.
3523         (__libc_pread64): Likewise.
3524         (__pipe2): Likewise.
3525         (__sleep): Likewise.
3526         (__chdir): Likewise.
3527         (__fchdir): Likewise.
3528         (__getcwd): Likewise.
3529         (__rmdir): Likewise.
3530         (__execvpe): Likewise.
3531         (__execve): Likewise.
3532         (__setsid): Likewise.
3533         (__getuid): Likewise.
3534         (__geteuid): Likewise.
3535         (__getgid): Likewise.
3536         (__getegid): Likewise.
3537         (__getgroups): Likewise.
3538         (__group_member): Likewise.
3539         (__ttyname_r): Likewise.
3540         (__isatty): Likewise.
3541         (__readlink): Likewise.
3542         (__unlink): Likewise.
3543         (__gethostname): Likewise.
3544         (__profil): Likewise.
3545         (__getdtablesize): Likewise.
3546         (__brk): Likewise.
3547         (__ftruncate): Likewise.
3548         (__ftruncate64): Likewise.
3550 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3552         [BZ #18822]
3553         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
3554         * argp/argp-fs-xinl.c: Likewise.
3555         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
3556         * argp/argp-parse.c: Include <argp.h>.
3557         * argp/argp-xinl.c: Likewise.
3558         * include/argp-fmtstream.h: New file.
3559         * include/argp.h (__argp_error): Add attribute_hidden.
3560         (__argp_failure): Likewise.
3561         (__argp_input): Likewise.
3562         (__argp_state_help): Likewise.
3564 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3566         [BZ #18822]
3567         * include/wchar.h (____wcstof_l_internal): New prototype.
3568         (____wcstod_l_internal): Likewise.
3569         (____wcstold_l_internal): Likewise.
3570         (____wcstol_l_internal): Likewise.
3571         (____wcstoul_l_internal): Likewise.
3572         (____wcstoll_l_internal): Likewise.
3573         (____wcstoull_l_internal): Likewise.
3574         (____wcstof128_l_internal): Likewise.
3575         * sysdeps/ieee754/float128/wcstof128.c
3576         (____wcstof128_l_internal): Removed.
3577         * sysdeps/ieee754/float128/wcstof128_l.c
3578         (____wcstof128_l_internal): Likewise.
3579         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
3580         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
3581         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
3582         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
3583         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
3584         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
3585         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
3586         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
3587         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
3588         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
3590 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3592         [BZ #18822]
3593         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
3594         instead of <sys/statvfs.h>.
3595         (__internal_statvfs): Removed.
3596         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
3597         instead of <sys/statvfs.h>.
3598         (__internal_statvfs64): Removed.
3599         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
3600         "internal_statvfs.h" instead of <sys/statvfs.h>.
3601         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
3602         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
3603         instead of <sys/statvfs.h>.
3604         (__internal_statvfs): Removed.
3605         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
3606         instead of <sys/statvfs.h>.
3607         (__internal_statvfs64): Removed.
3609 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3611         [BZ #18822]
3612         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
3613         (__gconv_close): Likewise.
3614         (__gconv): Likewise.
3615         (__gconv_find_transform): Likewise.
3616         (__gconv_lookup_cache): Likewise.
3617         (__gconv_compare_alias_cache): Likewise.
3618         (__gconv_load_cache): Likewise.
3619         (__gconv_get_path): Likewise.
3620         (__gconv_close_transform): Likewise.
3621         (__gconv_release_cache): Likewise.
3622         (__gconv_find_shlib): Likewise.
3623         (__gconv_release_shlib): Likewise.
3624         (__gconv_get_builtin_trans): Likewise.
3625         (__gconv_compare_alias): Likewise.
3626         * include/dlfcn.h (_dlerror_run): Likewise.
3627         * include/stdio.h (__fortify_fail_abort): Likewise.
3628         * include/time.h (__tz_compute): Likewise.
3629         (__strptime_internal): Likewise.
3630         * intl/gettextP.h (_nl_find_domain): Likewise.
3631         (_nl_load_domain): Likewise.
3632         (_nl_find_msg): Likewise.
3633         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
3634         (EXTRACT_PLURAL_EXPRESSION): Likewise.
3635         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
3636         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
3637         (__gai_find_request): Likewise.
3638         (__gai_remove_request): Likewise.
3639         (__gai_notify): Likewise.
3640         (__gai_notify_only): Likewise.
3641         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
3642         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
3643         (_dl_non_dynamic_init): Likewise.
3644         (_dl_aux_init): Likewise.
3645         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
3646         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
3647         Likewise.
3648         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
3649         (__wcsmbs_clone_conv): Likewise.
3650         (__wcsmbs_named_conv): Likewise.
3652 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3654         [BZ #18822]
3655         * include/stdlib.h (__random): Add attribute_hidden.
3656         (__random_r): Likewise.
3657         (__srandom_r): Likewise.
3658         (__initstate_r): Likewise.
3659         (__setstate_r): Likewise.
3660         (__erand48_r): Likewise.
3661         (__nrand48_r): Likewise.
3662         (__jrand48_r): Likewise.
3663         (__srand48_r): Likewise.
3664         (__seed48_r): Likewise.
3665         (__lcong48_r): Likewise.
3666         (__drand48_iterate): Likewise.
3667         (__setenv): Likewise.
3668         (__unsetenv): Likewise.
3669         (__clearenv): Likewise.
3670         (__ptsname_r): Likewise.
3671         (__posix_openpt): Likewise.
3672         (__add_to_environ): Likewise.
3673         (__realpath): Add libc_hidden_proto.
3674         (__ecvt_r): Likewise.
3675         (__fcvt_r): Likewise.
3676         (__qecvt_r): Likewise.
3677         (__qfcvt_r): Likewise.
3678         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
3679         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
3681 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3683         [BZ #18822]
3684         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
3685         * include/time.h (__mktime_internal): Likewise.
3686         * libio/iolibio.h (__fopen_internal): Likewise.
3688 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
3690         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
3691         pointer in frame.
3692         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
3693         Correct offset used to restore PIC register.
3695 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
3697         [BZ libc/22165]
3698         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
3699         code to load address of __getcontext_ret when generating PIC code.
3701 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
3703         * elf/Makefile (tests-static-internal): Add
3704         tst-tls1-static-non-pie.
3705         (LDFLAGS-tst-tls1-static-non-pie): New.
3706         * elf/tst-tls1-static-non-pie.c: New file.
3708 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
3710         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
3711         (asinh): Define using libm_alias_double.
3712         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
3713         (cbrt): Define using libm_alias_double.
3714         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
3715         <libm-alias-double.h>.
3716         (copysign): Define using libm_alias_double.
3717         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
3718         (erf): Define using libm_alias_double.
3719         (erfc): Likewise.
3720         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
3721         (expm1): Define using libm_alias_double.
3722         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
3723         (fabs): Define using libm_alias_double.
3724         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
3725         libm_alias_double.
3726         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
3727         <libm-alias-double.h>.
3728         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
3729         libm_alias_double.
3730         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
3731         <libm-alias-double.h>.
3732         (getpayload): Define using libm_alias_double.
3733         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
3734         <libm-alias-double.h>.
3735         (llrint): Define using libm_alias_double.
3736         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
3737         (lrint): Define using libm_alias_double.
3738         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
3739         <libm-alias-double.h>.
3740         (nextup): Define using libm_alias_double.
3741         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
3742         <libm-alias-double.h>.
3743         (roundeven): Define using libm_alias_double.
3744         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
3745         libm_alias_double.
3746         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
3747         <libm-alias-double.h>.
3748         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
3749         using libm_alias_double.
3750         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
3751         (cos): Define using libm_alias_double.
3752         (sin): Likewise.
3753         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
3754         <libm-alias-double.h>.
3755         (sincos): Define using libm_alias_double.
3756         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
3757         (tanh): Define using libm_alias_double.
3758         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
3759         <libm-alias-double.h>.
3760         (totalorder): Define using libm_alias_double.
3761         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
3762         <libm-alias-double.h>.
3763         (totalordermag): Define using libm_alias_double.
3764         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
3765         libm_alias_double.
3766         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
3767         libm_alias_double.
3768         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
3769         <libm-alias-double.h>.
3770         (getpayload): Define using libm_alias_double.
3771         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
3772         <libm-alias-double.h>.
3773         (roundeven): Define using libm_alias_double.
3774         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
3775         <libm-alias-double.h>.
3776         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
3777         <libm-alias-double.h>.
3778         (totalorder): Define using libm_alias_double.
3779         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
3780         <libm-alias-double.h>.
3781         (totalordermag): Define using libm_alias_double.
3782         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
3783         libc compat symbol here.
3784         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
3785         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
3786         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
3787         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
3788         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
3789         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
3790         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
3791         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
3792         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
3793         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
3795 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3797         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
3798         _dl_relocate_static_pie instead of _dl_start to compute load
3799         address in static PIE.  Return 0 if _DYNAMIC is undefined for
3800         static executable.
3802 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3804         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
3805         _DYNAMIC is undefined for static executable.
3807 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3809         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
3811 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
3813         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3815 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
3817         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
3818         (__ieee754_lgamma_r): Use fabs rather than __fabs.
3819         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
3820         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
3821         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
3822         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
3823         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
3824         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
3825         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
3826         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
3827         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3828         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
3829         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
3830         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
3831         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
3832         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
3833         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
3835 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
3837         * math/bits/cmathcalls.h (cimag): Remove inline.
3838         (creal): Remove inline.
3839         (conj): Remove inline.
3841 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3843         * math/Makefile (type-float-routines): Add e_powf_log2_data.
3844         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
3845         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
3846         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
3847         (issignalingf_inline): Likewise.
3848         (POWF_LOG2_TABLE_BITS): Likewise.
3849         (POWF_LOG2_POLY_ORDER): Likewise.
3850         (POWF_SCALE_BITS): Likewise.
3851         (POWF_SCALE): Likewise.
3852         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
3853         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
3854         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
3856 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3858         * math/Makefile (type-float-routines): Add e_log2f_data.
3859         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
3860         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
3861         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
3862         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
3863         * sysdeps/i386/fpu/e_log2f_data.c: New file.
3864         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
3865         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
3867 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3869         * math/Makefile (type-float-routines): Add e_logf_data.
3870         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
3871         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
3872         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
3873         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
3874         * sysdeps/i386/fpu/e_logf_data.c: New file.
3875         * sysdeps/ia64/fpu/e_logf_data.c: New file.
3876         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
3878 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
3880         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
3881         undefined _DYNAMIC in PIE libc.a.
3882         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3883         Likewse.
3885 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
3887         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
3888         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
3889         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
3890         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
3891         (__signbit): Remove.
3892         (__signbitl): Remove.
3893         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
3894         (__signbit): Remove.
3895         (__signbitl): Remove.
3896         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
3897         (__signbit): Remove.
3898         (__signbitl): Remove.
3899         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
3900         (__signbit): Remove.
3901         (__signbitl): Remove.
3902         * sysdeps/tile/bits/mathinline.h: Delete file.
3903         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
3904         (__signbit): Remove.
3905         (__signbitl): Remove.
3907 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
3909         * math/math.h: Improve handling of C99 isgreater macros.
3910         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
3911         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
3912         * sysdeps/powerpc/bits/mathinline.h: Likewise.
3913         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3914         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
3916 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3918         * sysdeps/aarch64/libm-test-ulps: Update.
3920 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
3922         [BZ #22225]
3923         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
3924         math_opt_barrier on argument when doing arithmetic on it.
3925         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3926         Likewise.  Use math_force_eval not math_opt_barrier after
3927         arithmetic.
3928         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
3929         math_opt_barrier on argument when doing arithmetic on it.
3930         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
3931         Likewise.
3933 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
3935         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
3936         libc_hidden_def.
3937         (__freeifaddrs): Likewise.
3939 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3941         * include/dirent.h (__dirfd): New declaration.
3942         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
3943         alias.
3944         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
3945         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
3946         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
3947         * include/unistd.h (__revoke): New declaration.
3948         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
3949         alias.
3950         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
3951         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
3952         revoke.
3953         * include/dirent.h (__seekdir): New declaration.
3954         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
3955         redefine as weak alias.
3956         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
3957         of seekdir.
3958         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
3959         and use libc_hidden_def on them.
3960         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
3961         them.
3962         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
3963         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
3964         instead of getifaddrs and freeifaddrs.
3966 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
3968         [BZ #18822]
3969         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
3970         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
3971         (__dso_handle): Remove declaration.
3972         * dlfcn/tstatexit.c (__dso_handle): Removed.
3973         (main): Don't check __dso_handle.
3974         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
3975         (main): Don't check __dso_handle.
3976         * include/dso_handle.h: New file.
3977         * malloc/mtrace.c: Include <dso_handle.h>.
3978         (mtrace): Pass __dso_handle directly.
3979         * nptl/pthread_atfork.c: Include <dso_handle.h>.
3980         (__dso_handle): Remove declaration.
3981         (__pthread_atfork): Pass __dso_handle directly.
3982         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
3983         (__dso_handle): Removed.
3984         * posix/wordexp-test.c: Include <dso_handle.h>.
3985         (__dso_handle): Remove declaration.
3986         (__app_register_atfork): Pass __dso_handle directly.
3987         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
3988         (__dso_handle): Remove declaration.
3989         (at_quick_exit): Pass __dso_handle directly.
3990         * stdlib/atexit.c: Include <dso_handle.h>.
3991         (__dso_handle): Remove declaration.
3992         (atexit): Pass __dso_handle directly.
3993         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
3994         (__dso_handle): Removed.
3996 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
3998         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
3999         using VDSO.
4001 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
4003         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
4004         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
4005         values to correct default value for given type.
4007 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4009         [BZ #22101]
4010         * elf/Makefile (tests): Add tst-debug1.
4011         ($(objpfx)tst-debug1): New.
4012         ($(objpfx)tst-debug1.out): Likewise.
4013         ($(objpfx)tst-debug1mod1.so): Likewise.
4014         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
4015         with p_filesz == 0.
4016         * elf/tst-debug1.c: New file.
4018 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4020         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
4021         Define using __ifunc.
4023 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4025         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
4026         exp2f() values.
4028 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4030         [BZ #22156]
4031         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
4033 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4035         * resolv/Makefile (tests-internal): Fix typo in comment.
4037 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4039         * resolv/nss_dns/dns-host.c: Fix typo in comment.
4041 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4043         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
4044         Use an union instead of a max_align_t array for __space,
4045         so that __space is the same size on all platforms.
4046         * malloc/scratch_buffer_grow_preserve.c
4047         (__libc_scratch_buffer_grow_preserve): Likewise.
4049         [BZ #22183]
4050         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
4051         version to 2.
4052         * posix/Makefile (routines): Add glob-lstat-compat and
4053         glob64-lstat-compat.
4054         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
4055         * posix/glob-lstat-compat.c: New file.
4056         * posix/glob64-lstat-compat.c: Likewise.
4057         * posix/tst-glob_lstat_compat.c: Likewise.
4058         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
4059         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
4060         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
4061         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
4062         Likewise.
4063         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
4064         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
4065         * posix/glob.c (glob_lstat): New function.
4066         (glob): Rename to __glob and add versioned symbol to 2.27.
4067         (glob_in_dir): Use glob_lstat.
4068         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
4069         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4070         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
4071         2.27.
4072         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
4073         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
4074         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
4075         gl_lstat on glob call.
4076         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
4077         and glob64 symbols.
4078         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4079         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4080         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4081         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4082         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4083         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4084         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4085         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4086         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
4087         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4088         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4089         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4091         Likewise.
4092         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
4093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
4094         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4095         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4096         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4097         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4098         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4099         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
4100         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
4101         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
4102         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4103         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4105 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
4107         * configure.ac (AS): Require binutils 2.25 or later.
4108         * configure: Regenerated.
4110 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4112         [BZ #22207]
4113         * stdlib/test-atexit-race-common.c (do_test): Minimize required
4114         VM size.
4116 2017-09-25  DJ Delorie  <dj@redhat.com>
4118         [BZ #22161]
4119         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
4120         resetting timeout.
4122 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
4124         * sysdeps/ieee754/dbl-64/sincos32.h
4125         [SINCCOS32_H]: Remove define.
4126         [SINCOS32_H]: Define.
4128 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4130         * math/Versions (expf): New libm symbol at GLIBC_2.27.
4131         (exp2f): Likewise.
4132         * math/w_exp2f.c: New file.
4133         * math/w_expf.c: New file.
4134         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
4135         * math/w_expf_compat.c (__expf_compat): Likewise.
4136         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
4137         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4138         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4139         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4140         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4141         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4142         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4143         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4144         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4145         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4146         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4147         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4148         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4149         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4151         Likewise.
4152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4153         Likewise.
4154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4155         Likewise.
4156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4157         Likewise.
4158         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4159         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4160         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4161         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4162         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4163         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4164         Likewise.
4165         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4166         Likewise.
4167         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4168         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4169         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4171 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4173         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
4174         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
4175         (roundtoint, converttoint): Likewise.
4176         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
4177         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
4178         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
4179         * sysdeps/ieee754/flt-32/math_config.h: New file.
4180         * sysdeps/ieee754/flt-32/math_errf.c: New file.
4181         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
4182         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
4183         * sysdeps/i386/fpu/math_errf.c: New file.
4184         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
4185         * sysdeps/ia64/fpu/math_errf.c: New file.
4186         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
4187         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
4189 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4191         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
4192         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
4193         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
4194         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
4195         to make sure that these symbols are defined.
4196         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
4197         of <limits.h>
4198         (__need_NULL): Do not define.
4199         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
4200         alignment.
4201         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
4202         CMGROUP_MAX, cmsgcred): Do not define.
4203         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
4204         NULL.
4205         * bits/socket.h: Likewise.
4206         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
4207         __gettimeofday instead of gettimeofday.
4208         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
4209         instead of settimeofday.
4211 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
4213         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
4214         (asinhf): Define using libm_alias_float.
4215         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
4216         (atanf): Define using libm_alias_float.
4217         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
4218         (cbrtf): Define using libm_alias_float.
4219         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
4220         (ceilf): Define using libm_alias_float.
4221         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
4222         <libm-alias-float.h>.
4223         (copysignf): Define using libm_alias_float.
4224         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
4225         (cosf): Define using libm_alias_float.
4226         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
4227         (erff): Define using libm_alias_float.
4228         (erfcf): Likewise.
4229         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
4230         (expm1f): Define using libm_alias_float.
4231         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
4232         (fabsf): Define using libm_alias_float.
4233         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
4234         (floorf): Define using libm_alias_float.
4235         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
4236         (frexpf): Define using libm_alias_float.
4237         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
4238         libm_alias_float.
4239         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
4240         <libm-alias-float.h>.
4241         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
4242         libm_alias_float.
4243         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
4244         <libm-alias-float.h>.
4245         (getpayloadf): Define using libm_alias_float.
4246         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
4247         <libm-alias-float.h>.
4248         (llrintf): Define using libm_alias_float.
4249         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
4250         <libm-alias-float.h>.
4251         (llroundf): Define using libm_alias_float.
4252         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
4253         (logbf): Define using libm_alias_float.
4254         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
4255         (lrintf): Define using libm_alias_float.
4256         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
4257         (lroundf): Define using libm_alias_float.
4258         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
4259         (modff): Define using libm_alias_float.
4260         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
4261         <libm-alias-float.h>.
4262         (nearbyintf): Define using libm_alias_float.
4263         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
4264         <libm-alias-float.h>.
4265         (nextafterf): Define using libm_alias_float.
4266         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
4267         <libm-alias-float.h>.
4268         (nextupf): Define using libm_alias_float.
4269         * sysdeps/ieee754/flt-32/s_remquof.c: Include
4270         <libm-alias-float.h>.
4271         (remquof): Define using libm_alias_float.
4272         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
4273         (rintf): Define using libm_alias_float.
4274         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
4275         <libm-alias-float.h>.
4276         (roundevenf): Define using libm_alias_float.
4277         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
4278         (roundf): Define using libm_alias_float.
4279         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
4280         using libm_alias_float.
4281         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
4282         <libm-alias-float.h>.
4283         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
4284         Define using libm_alias_float.
4285         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
4286         <libm-alias-float.h>.
4287         (sincosf): Define using libm_alias_float.
4288         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
4289         (sinf): Define using libm_alias_float.
4290         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
4291         (tanf): Define using libm_alias_float.
4292         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
4293         (tanhf): Define using libm_alias_float.
4294         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
4295         <libm-alias-float.h>.
4296         (totalorderf): Define using libm_alias_float.
4297         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
4298         <libm-alias-float.h>.
4299         (totalordermagf): Define using libm_alias_float.
4300         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
4301         (truncf): Define using libm_alias_float.
4302         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
4303         libm_alias_float.
4304         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
4305         libm_alias_float.
4307 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4309         [BZ #22146]
4310         math/math.h: Let fpclassify use the builtin in C++ mode, even
4311         when optimazing for size.
4313 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
4315         * csu/Makefile (generated): Do not add version-info.h.
4316         (before-compile): Likewise.
4317         (all-Banner-files): Remove variable.
4318         ($(objpfx)version-info.h): Remove rule.
4319         * csu/version.c (banner): Do not include "version-info.h".
4320         * libidn/Banner: Remove.
4321         * manual/contrib.texi (Simon Josefsson): New entry.
4323 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4325         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4326         Remove conditionals on LDBL_MANT_DIG.
4327         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4328         (__ieee754_lgammal_r): Likewise.
4330 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4332         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
4333         _Float128 and L().
4334         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
4335         _Float128 and L(). Replace _Float128 with long double and L(x)
4336         with xL, throughout the file.
4337         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4338         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4339         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4340         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4342 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4344         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
4345         sysdeps/ieee754/ldbl-128ibm.
4346         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
4347         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
4348         of including it.  Keep _Float128 and L() intact.  These will be
4349         reviewed by a separate patch.
4350         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4351         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4352         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4353         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4355 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4357         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
4358         (__finitef128): Define to __redirect___finitef128.
4359         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
4360         (__isinff128): Define to __redirect___isinff128.
4361         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
4362         (__isnanf128): Define to __redirect___isnanf128.
4364 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4366         * sysdeps/powerpc/powerpc64le/Makefile
4367         (CFLAGS-tst-strtod-nan-locale.c): New variable.
4368         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
4370 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
4371             Carlos O'Donell  <carlos@redhat.com>
4373         [BZ #22180]
4374         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
4375         * stdlib/test-dlclose-exit-race.c: New file.
4376         * stdlib/test-dlclose-exit-race-helper.c: New file.
4377         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
4379 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
4381         * crypt/Banner: Remove file.
4382         * nptl/Banner: Likewise.
4383         * resolv/Banner: Likewise.
4384         * soft-fp/Banner: Likewise.
4385         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
4386         ($(objpfx)version.d): Remove dependency on banner.h.
4387         ($(objpfx)version.os): Likewise.
4388         * nptl/version.c (banner): Do not include banner.h.
4389         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
4390         Jelinek and BIND code.
4392 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4393             Carlos O'Donell  <carlos@redhat.com>
4395         * support/xdlfcn.h: New file.
4396         * support/xdlfcn.c: New file.
4397         * support/Makefile (libsupport-routines): Add xdlfcn.
4398         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
4400 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
4402         [BZ #20142]
4403         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4404         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
4405         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
4406         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
4407         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
4408         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
4409         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
4410         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
4412 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4413             Ricky Zhou  <rickyz@google.com>
4414             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
4416         [BZ #14333]
4417         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
4418         Remove atomics.
4419         (__new_exitfn): Fail registration when we finished at_exit processing.
4420         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
4421         * stdlib/on_exit.c (__on_exit): Likewise.
4422         * stdlib/exit.c (__exit_funcs_done): New variable.
4423         (__run_exit_handlers): Use __exit_funcs_lock.
4424         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
4425         declarations.
4426         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
4427         (test-cxa_atexit-race, test-on_exit-race): New tests.
4428         * stdlib/test-atexit-race-common.c: New file.
4429         * stdlib/test-atexit-race.c: New file.
4430         * stdlib/test-at_quick_exit-race.c: New file.
4431         * stdlib/test-cxa_atexit-race.c: New file.
4432         * stdlib/test-on_exit-race.c: New file.
4434 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4436         * benchtests/Makefile: Add exp2f and log2f benchmarks.
4437         * benchtests/exp2f-inputs: Copy of expf-inputs.
4438         * benchtests/log2f-inputs: Copy of logf-inputs.
4440 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
4442         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
4443         Explicitly take address of first element of array arguments in
4444         call to INLINE_SYSCALL.
4446 2017-09-19  Andreas Schwab  <schwab@suse.de>
4448         [BZ #22134]
4449         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
4450         execveat first.
4451         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
4452         unimplemented.
4453         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
4454         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
4455         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4456         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
4457         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4458         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4459         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4460         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4461         * posix/Makefile (tests): Add tst-fexecve.
4462         * posix/tst-fexecve.c: New file.
4464 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4466         * benchtests/Makefile: Add logf benchmark.
4467         * benchtests/logf-inputs: Add reduced trace from wrf_r.
4469 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4471         * benchtests/Makefile: Add expf benchmark.
4472         * benchtests/expf-inputs: Add reduced trace from wrf_r.
4474 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4476         * csu/Makefile: Add -funwind-tables to libc-start.c.
4477         * debug/Makefile: Add -funwind-tables to backtrace.c.
4478         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
4479         * sysdeps/arm/Makefile: Likewise.
4480         * sysdeps/i386/Makefile: Likewise.
4481         * sysdeps/m68k/Makefile: Likewise.
4482         * sysdeps/mips/Makefile: Likewise.
4483         * sysdeps/nios2/Makefile: Likewise.
4484         * sysdeps/sh/Makefile: Likewise.
4485         * sysdeps/sparc/Makefile: Likewise.
4487 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
4489         * benchtests/Makefile (bench-math): Add trunc and truncf.
4490         (CFLAGS-bench-trunc.c): New variable.
4491         (CFLAGS-bench-truncf.c): Likewise.
4492         * benchtests/trunc-inputs: New file.
4493         * benchtests/truncf-inputs: Likewise.
4495 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4497         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
4499 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
4501         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
4502         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
4503         redefine.
4504         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
4505         (exp10l): Define as weak alias.
4506         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
4507         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
4508         and redefine.
4509         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
4510         (remainderl): Define as weak alias.
4512         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
4513         (fmal): Define using libm_alias_ldouble.
4514         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
4515         (acoshl): Define using libm_alias_ldouble.
4516         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
4517         (acosl): Define using libm_alias_ldouble.
4518         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
4519         (asinl): Define using libm_alias_ldouble.
4520         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
4521         (atan2l): Define using libm_alias_ldouble.
4522         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
4523         (atanhl): Define using libm_alias_ldouble.
4524         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
4525         (coshl): Define using libm_alias_ldouble.
4526         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
4527         (exp10l): Define using libm_alias_ldouble.
4528         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
4529         (exp2l): Define using libm_alias_ldouble.
4530         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
4531         (expl): Define using libm_alias_ldouble.
4532         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
4533         (fmodl): Define using libm_alias_ldouble.
4534         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
4535         (hypotl): Define using libm_alias_ldouble.
4536         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
4537         (j0l): Define using libm_alias_ldouble.
4538         (y0l): Likewise.
4539         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
4540         (j1l): Define using libm_alias_ldouble.
4541         (y1l): Likewise.
4542         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
4543         (jnl): Define using libm_alias_ldouble.
4544         (ynl): Likewise.
4545         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
4546         (log10l): Define using libm_alias_ldouble.
4547         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
4548         (log2l): Define using libm_alias_ldouble.
4549         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
4550         (logl): Define using libm_alias_ldouble.
4551         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
4552         (powl): Define using libm_alias_ldouble.
4553         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
4554         (remainderl): Define using libm_alias_ldouble.
4555         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
4556         (sinhl): Define using libm_alias_ldouble.
4557         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
4558         (sqrtl): Define using libm_alias_ldouble.
4559         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
4560         (tgammal): Define using libm_alias_ldouble.
4561         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
4562         (exp10l): Do not use long_double_symbol here.
4563         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
4564         [LIBM_SVID_COMPAT] (remainderl): Likewise.
4565         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
4566         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
4567         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
4568         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
4569         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
4570         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
4571         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
4572         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
4573         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
4574         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
4575         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
4576         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
4577         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
4578         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
4579         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
4580         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
4581         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
4582         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
4583         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
4584         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
4586 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
4588         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
4589         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
4591 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4593         * io/read.c (read): Add libc_hidden_weak.
4594         * sysdeps/mach/hurd/read.c (read): Likewise.
4595         * io/write.c (write): Likewise.
4596         * sysdeps/mach/hurd/write.c (write): Likewise.
4597         * io/pread64.c (__pread64): Likewise.
4598         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
4599         * posix/pread64.c (__pread64): Add libc_hidden_def.
4601 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4603         * benchtests/scripts/compare_strings.py: New option -g.
4604         (draw_graph): Print a message that a graph is being generated.
4605         (process_results): Generate graph only if -g is passed.
4606         (main): Process option -g.
4608         * benchtests/scripts/compare_strings.py (process_results):
4609         Better spacing for output.
4611         * benchtests/scripts/compare_strings.py: Use argparse.
4612         * benchtests/README: Document existence of compare_strings.py.
4614 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
4616         * math/s_fma.c: Include <libm-alias-double.h>.
4617         (fma): Define using libm_alias_double.
4618         * math/s_nextafter.c: Include <libm-alias-double.h>.
4619         (nextafter): Define using libm_alias_double.
4620         * math/w_acos_compat.c: Include <libm-alias-double.h>.
4621         (acos): Define using libm_alias_double.
4622         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
4623         (aocsh): Define using libm_alias_double.
4624         * math/w_asin_compat.c: Include <libm-alias-double.h>.
4625         (asin): Define using libm_alias_double.
4626         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
4627         (atan2): Define using libm_alias_double.
4628         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
4629         (atanh): Define using libm_alias_double.
4630         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
4631         (cosh): Define using libm_alias_double.
4632         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
4633         (exp10): Define using libm_alias_double.
4634         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
4635         (exp2): Define using libm_alias_double.
4636         * math/w_exp_compat.c: Include <libm-alias-double.h>.
4637         (exp): Define using libm_alias_double.
4638         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
4639         (fmod): Define using libm_alias_double.
4640         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
4641         (hypot): Define using libm_alias_double.
4642         * math/w_j0_compat.c: Include <libm-alias-double.h>.
4643         (j0): Define using libm_alias_double.
4644         (y0): Likewise.
4645         * math/w_j1_compat.c: Include <libm-alias-double.h>.
4646         (j1): Define using libm_alias_double.
4647         (y1): Likewise.
4648         * math/w_jn_compat.c: Include <libm-alias-double.h>.
4649         (jn): Define using libm_alias_double.
4650         (yn): Likewise.
4651         * math/w_log10_compat.c: Include <libm-alias-double.h>.
4652         (log10): Define using libm_alias_double.
4653         * math/w_log2_compat.c: Include <libm-alias-double.h>.
4654         (log2): Define using libm_alias_double.
4655         * math/w_log_compat.c: Include <libm-alias-double.h>.
4656         (log): Define using libm_alias_double.
4657         * math/w_pow_compat.c: Include <libm-alias-double.h>.
4658         (pow): Define using libm_alias_double.
4659         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
4660         (remainder): Define using libm_alias_double.
4661         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
4662         (sinh): Define using libm_alias_double.
4663         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
4664         (sqrt): Define using libm_alias_double.
4665         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
4666         (tgamma): Define using libm_alias_double.
4667         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
4668         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
4669         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
4670         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
4671         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
4672         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
4673         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
4674         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
4675         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
4676         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
4677         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
4678         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
4679         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
4680         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
4681         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
4682         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
4683         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
4684         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
4685         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
4686         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
4687         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
4688         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
4689         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
4690         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
4691         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
4693         * math/e_acoshl.c: Remove.
4694         * math/e_acosl.c: Likewise.
4695         * math/e_asinl.c: Likewise.
4696         * math/e_atan2l.c: Likewise.
4697         * math/e_atanhl.c: Likewise.
4698         * math/e_coshl.c: Likewise.
4699         * math/e_expl.c: Likewise.
4700         * math/e_fmodl.c: Likewise.
4701         * math/e_gammal_r.c: Likewise.
4702         * math/e_hypotl.c: Likewise.
4703         * math/e_j0l.c: Likewise.
4704         * math/e_j1l.c: Likewise.
4705         * math/e_jnl.c: Likewise.
4706         * math/e_lgammal_r.c: Likewise.
4707         * math/e_log10l.c: Likewise.
4708         * math/e_log2l.c: Likewise.
4709         * math/e_logl.c: Likewise.
4710         * math/e_powl.c: Likewise.
4711         * math/e_rem_pio2l.c: Likewise.
4712         * math/e_sinhl.c: Likewise.
4713         * math/e_sqrtf128.c: Likewise.
4714         * math/e_sqrtl.c: Likewise.
4715         * math/k_cosl.c: Likewise.
4716         * math/k_sinl.c: Likewise.
4717         * math/k_tanl.c: Likewise.
4718         * math/s_asinhl.c: Likewise.
4719         * math/s_atanl.c: Likewise.
4720         * math/s_cbrtl.c: Likewise.
4721         * math/s_erfl.c: Likewise.
4722         * math/s_expm1l.c: Likewise.
4723         * math/s_log1pl.c: Likewise.
4724         * math/s_tanhl.c: Likewise.
4726 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4728         [BZ #21745]
4729         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
4730         [$(subdir) = math] (sysdep_calls): New variable.  Has the
4731         previous contents of sysdep_routines, but re-sorted..
4732         [$(subdir) = math] (sysdep_routines): Re-use the contents from
4733         sysdep_calls.
4734         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
4735         defined in sysdep_calls and replace by the respective m_* names.
4736         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
4737         (compat_symbol): Undefine to avoid duplicated compat symbols in
4738         libc.
4740 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
4742         * math/s_fmaf.c: Include <libm-alias-float.h>.
4743         (fmaf): Define using libm_alias_float.
4744         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
4745         (acosf): Define using libm_alias_float.
4746         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
4747         (acoshf): Define using libm_alias_float.
4748         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
4749         (asinf): Define using libm_alias_float.
4750         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
4751         (atan2f): Define using libm_alias_float.
4752         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
4753         (atanhf): Define using libm_alias_float.
4754         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
4755         (coshf): Define using libm_alias_float.
4756         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
4757         (exp10f): Define using libm_alias_float.
4758         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
4759         (fmodf): Define using libm_alias_float.
4760         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
4761         (hypotf): Define using libm_alias_float.
4762         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
4763         (j0f): Define using libm_alias_float.
4764         (y0f): Likewise.
4765         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
4766         (j1f): Define using libm_alias_float.
4767         (y1f): Likewise.
4768         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
4769         (jnf): Define using libm_alias_float.
4770         (ynf): Likewise.
4771         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
4772         (log10f): Define using libm_alias_float.
4773         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
4774         (log2f): Define using libm_alias_float.
4775         * math/w_logf_compat.c: Include <libm-alias-float.h>.
4776         (logf): Define using libm_alias_float.
4777         * math/w_powf_compat.c: Include <libm-alias-float.h>.
4778         (powf): Define using libm_alias_float.
4779         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
4780         (remainderf): Define using libm_alias_float.
4781         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
4782         (sinhf): Define using libm_alias_float.
4783         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
4784         (sqrtf): Define using libm_alias_float.
4785         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
4786         (tgammaf): Define using libm_alias_float.
4788 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
4790         * include/math.h (roundeven): Change hidden_proto call to
4791         __roundeven.
4792         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
4793         alias.
4794         [NO_LONG_DOUBLE] (__j0l): New strong alias.
4795         (y0): Rename to __y0 and define as weak alias.
4796         [NO_LONG_DOUBLE] (__y0l): New strong alias.
4797         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
4798         alias.
4799         (y0f): Rename to __y0f and define as weak alias.
4800         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
4801         alias.
4802         [NO_LONG_DOUBLE] (__j1l): New strong alias.
4803         (y1): Rename to __y1 and define as weak alias.
4804         [NO_LONG_DOUBLE] (__y1l): New strong alias.
4805         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
4806         alias.
4807         (y1f): Rename to __y1f and define as weak alias.
4808         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
4809         alias.
4810         [NO_LONG_DOUBLE] (__jnl): New strong alias.
4811         (yn): Rename to __yn and define as weak alias.
4812         [NO_LONG_DOUBLE] (__ynl): New strong alias.
4813         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
4814         alias.
4815         (ynf): Rename to __ynf and define as weak alias.
4816         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
4817         (fromfp): Define as weak alias.
4818         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
4819         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
4820         (fromfpx): Define as weak alias.
4821         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
4822         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
4823         __getpayload and define as weak alias.
4824         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
4825         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
4826         __roundeven and define as weak alias.
4827         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
4828         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
4829         __setpayload.
4830         (setpayload): Define as weak alias.
4831         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
4832         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
4833         __setpayloadsig.
4834         (setpayloadsig): Define as weak alias.
4835         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
4836         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
4837         __totalorder and define as weak alias.
4838         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
4839         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
4840         to __totalordermag and define as weak alias.
4841         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
4842         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
4843         (ufromfp): Define as weak alias.
4844         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
4845         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
4846         __ufromfpx.
4847         (ufromfpx): Define as weak alias.
4848         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
4849         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
4850         Rename to __getpayload and define as weak alias.
4851         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
4852         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
4853         Rename to __roundeven and define as weak alias.
4854         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
4855         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
4856         Rename to __totalorder and define as weak alias.
4857         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
4858         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
4859         (totalordermag): Rename to __totalordermag and define as weak
4860         alias.
4861         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
4862         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
4863         macro.
4864         (__roundevenl): Likewise.
4865         (__totalorderl): Likewise.
4866         (__totalordermagl): Likewise
4867         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
4868         __fromfpf128.
4869         (fromfpf128): Define as weak alias.
4870         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
4871         __fromfpxf128.
4872         (fromfpxf128): Define as weak alias.
4873         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
4874         __setpayloadf128.
4875         (setpayloadf128): Define as weak alias.
4876         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
4877         __setpayloadsigf128.
4878         (setpayloadsigf128): Define as weak alias.
4879         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
4880         __ufromfpf128.
4881         (ufromfpf128): Define as weak alias.
4882         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
4883         __ufromfpxf128.
4884         (ufromfpxf128): Define as weak alias.
4885         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
4886         (fromfpf): Define as weak alias.
4887         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
4888         __fromfpxf.
4889         (fromfpxf): Define as weak alias.
4890         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
4891         __getpayloadf and define as weak alias.
4892         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
4893         __roundevenf and define as weak alias.
4894         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
4895         __setpayloadf.
4896         (setpayloadf): Define as weak alias.
4897         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
4898         __setpayloadsigf.
4899         (setpayloadsigf): Define as weak alias.
4900         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
4901         __totalorderf and define as weak alias.
4902         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
4903         Rename to __totalordermagf and define as weak alias.
4904         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
4905         __ufromfpf.
4906         (ufromfpf): Define as weak alias.
4907         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
4908         __ufromfpxf.
4909         (ufromfpxf): Define as weak alias.
4910         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
4911         __fromfpl.
4912         (fromfpl): Define as weak alias.
4913         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
4914         __fromfpxl.
4915         (fromfpxl): Define as weak alias.
4916         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
4917         to __getpayloadl and define as weak alias.
4918         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
4919         __roundevenl and define as weak alias.
4920         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
4921         __setpayloadl.
4922         (setpayloadl): Define as weak alias.
4923         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
4924         __setpayloadsigl.
4925         (setpayloadsigl): Define as weak alias.
4926         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
4927         to __totalorderl and define as weak alias.
4928         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
4929         Rename to __totalordermagl and define as weak alias.
4930         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
4931         __ufromfpl.
4932         (ufromfpl): Define as weak alias.
4933         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
4934         __ufromfpxl.
4935         (ufromfpxl): Define as weak alias.
4936         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
4937         __fromfpl.
4938         (fromfpl): Define as weak alias.
4939         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
4940         __fromfpxl.
4941         (fromfpxl): Define as weak alias.
4942         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
4943         Rename to __getpayloadl and define as weak alias.
4944         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
4945         to __roundevenl and define as weak alias.  Call __roundeven
4946         instead of roundeven.
4947         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
4948         __setpayloadl.
4949         (setpayloadl): Define as weak alias.
4950         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
4951         __setpayloadsigl.
4952         (setpayloadsigl): Define as weak alias.
4953         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
4954         Rename to __totalorderl and define as weak alias.
4955         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
4956         Rename to __totalordermagl and define as weak alias.
4957         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
4958         __ufromfpl.
4959         (ufromfpl): Define as weak alias.
4960         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
4961         __ufromfpxl.
4962         (ufromfpxl): Define as weak alias.
4963         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
4964         __fromfpl.
4965         (fromfpl): Define as weak alias.
4966         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
4967         __fromfpxl.
4968         (fromfpxl): Define as weak alias.
4969         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
4970         __getpayloadl and define as weak alias.
4971         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
4972         __roundevenl and define as weak alias.
4973         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
4974         __setpayloadl.
4975         (setpayloadl): Define as weak alias.
4976         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
4977         __setpayloadsigl.
4978         (setpayloadsigl): Define as weak alias.
4979         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
4980         __totalorderl and define as weak alias.
4981         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
4982         Rename to __totalordermagl and define as weak alias.
4983         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
4984         __ufromfpl.
4985         (ufromfpl): Define as weak alias.
4986         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
4987         __ufromfpxl.
4988         (ufromfpxl): Define as weak alias.
4990 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4992         * benchtests/bench-string.h (realloc_bufs): New function.
4993         (test_init): Call it.
4994         * benchtests/bench-memset-large.c (do_test): Likewise.
4995         * benchtests/bench-memset.c (do_test): Likewise.
4997         * benchtests/bench-memset-large.c: Print output in JSON
4998         format.
4999         * benchtests/bench-memset.c: Likewise.
5001 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5003         [BZ #21084]
5004         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
5005         * iconvdata/Makefile: Add IBM858.
5006         * iconvdata/gconv-modules: Likewise.
5007         * iconvdata/tst-tables.sh: Likewise.
5008         * iconvdata/ibm858.c: New file.
5009         * localedata/charmaps/IBM858: Likewise.
5011 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
5013         [BZ #22023]
5014         * locales/niu_NZ (LC_TIME): copy "niu_NU".
5015         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
5017 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5019         [BZ #22112]
5020         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
5021         and add tel_int_fmt.
5023 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5025         * sysdeps/generic/libm-alias-float128.h: New file.
5026         * sysdeps/generic/math-type-macros-float128.h: Include
5027         <libm-alias-float128.h>.
5028         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
5030 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5032         * sysdeps/generic/libm-alias-ldouble.h: New file.
5033         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
5034         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
5035         * sysdeps/generic/math-type-macros-ldouble.h: Include
5036         <libm-alias-ldouble.h>.
5037         [!declare_mgen_alias] (declare_mgen_alias): Define to use
5038         libm_alias_ldouble.
5040 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5042         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
5043         * math/w_exp_compat.c: ... here.
5044         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
5045         * math/w_expf_compat.c: ... here.
5046         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
5047         * math/w_expl_compat.c: ... here.
5048         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
5049         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
5050         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
5051         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5053 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5055         * math/w_scalbln_template.c (strong_alias): Do not undefine and
5056         redefine.
5057         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
5058         macro.
5059         (ldexpl): Only define as compat symbol for libc, not libm.
5060         (scalbnl): Define as compat symbol for libc here.
5061         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
5062         define for [IS_IN (libc)].
5063         (__ldexpl_2): Remove alias.
5064         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
5065         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
5066         name in long_double_symbol call.
5067         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
5068         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
5069         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
5070         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
5071         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
5072         Remove macro.
5073         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
5074         Define as compat symbol.
5076 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5078         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
5079         * sysdeps/unix/sysv/linux/alpha/Makefile
5080         [$(subdir) = csu] (sysdep_routines): Remove rule.
5082 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5084         * sysdeps/generic/libm-alias-double.h: New file.
5085         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
5086         * sysdeps/generic/math-type-macros-double.h: Include
5087         <libm-alias-double.h>.
5088         [declare_mgen_alias] (declare_mgen_alias): Define to use
5089         libm_alias_double.
5090         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
5091         (M_LIBM_NEED_COMPAT): Remove macro.
5092         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
5093         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
5094         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
5095         code.
5096         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5097         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5098         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5099         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5100         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5101         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5102         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5103         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5104         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5105         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5106         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5107         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5108         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5109         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5110         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5111         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5112         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5113         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5114         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5115         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5116         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5117         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5118         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5119         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5120         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5121         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5122         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5123         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
5124         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
5125         macro.
5126         (declare_mgen_alias): New macro.
5127         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
5128         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
5129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
5130         (M_LIBM_NEED_COMPAT): Remove macro.
5131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
5132         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
5133         <first-versions.h>.
5134         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
5135         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
5137 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
5139         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
5140         (declare_mgen_alias_2): Remove.
5141         * sysdeps/generic/math-type-macros-double.h
5142         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
5143         Likewise.
5144         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
5145         alias.
5146         (ldexp): Define with declare_mgen_alias.
5147         (scalbn): Likewise.
5149 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
5151         * grp/initgroups.c: Include config.h.
5152         (DEFAULT_CONFIG): New macro.
5153         (internal_getgrouplist): Use DEFAULT_CONFIG.
5154         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5155         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
5156         (DEFAULT_DEFCONFIG): New macro.
5157         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
5158         * nss/grp-lookup.c: Include config.h
5159         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
5160         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
5161         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
5162         * manual/nss.texi: Update default values section.
5164 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
5166         [BZ #21967]
5167         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
5168         New.
5169         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
5170         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
5171         Handle MathVec_Prefer_No_AVX512.
5172         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
5173         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
5174         is set.
5176 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5178         * posix/sched_primax.c (__sched_get_priority_max): Add
5179         libc_hidden_def.
5180         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
5181         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5182         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
5183         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
5184         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
5185         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
5186         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
5187         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
5188         Add aliases.
5190 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
5192         * sysdeps/generic/libm-alias-float.h: New file.
5193         * sysdeps/generic/math-type-macros-float.h: Include
5194         <libm-alias-float.h>.
5195         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
5197 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
5199         [BZ #22093]
5200         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
5201         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
5202         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
5203         (HWCAP_IMPORTANT): Likewise.
5204         (HWCAP_X86_64): New enum.
5205         (HWCAP_X86_AVX512_1): Updated.
5206         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
5207         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
5208         (modules-names): Add x86_64/tst-x86_64mod-1.
5209         (LDFLAGS-tst-x86_64mod-1.so): New.
5210         ($(objpfx)tst-x86_64-1): Likewise.
5211         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
5212         (tst-x86_64-1-clean): Likewise.
5213         * sysdeps/x86_64/tst-x86_64-1.c: New file.
5214         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
5216 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5218         * po/sv.po: Update translations.
5219         * po/fr.po: Likewise.
5221 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5223         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
5224         seconds.
5225         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
5226         seconds.
5227         * elf/rtld-Rules: Fix $(error) use.
5229 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
5231         [BZ #14925]
5232         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
5233         * locale/iso-639.def: Change “Bengali” to “Bangla”.
5234         * localedata/locales/bn_BD: “Bengali” was still used in some
5235         comments. Change it to “Bangla”.
5237 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
5239         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
5241 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
5243         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
5244         thunderx2t99p1 to list of cpu names.
5245         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
5246         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
5248 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
5250         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
5251         Use strcmp instead of tunable_is_name.
5253 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
5255         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5256         (F_GET_RW_HINT): New macro.
5257         [__USE_GNU] (F_SET_RW_HINT): Likewise.
5258         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
5259         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
5260         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
5261         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
5262         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
5263         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
5264         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
5265         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
5267         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5268         (F_ADD_SEALS): New macro.
5269         [__USE_GNU] (F_GET_SEALS): Likewise.
5270         [__USE_GNU] (F_SEAL_SEAL): Likewise.
5271         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
5272         [__USE_GNU] (F_SEAL_GROW): Likewise.
5273         [__USE_GNU] (F_SEAL_WRITE): Likewise.
5275 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5277         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5278         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5279         * posix/glob_internal.h (__glob_pattern_type):
5280         * posix/glob.c (glob):
5281         * posix/glob_pattern_p.c (__glob_pattern_p):
5282         Use them.
5284         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
5285         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5286         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
5287         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
5288         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
5290         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
5291         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
5292         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5293         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5294         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5295         * sysdeps/wordsize-64/glob.c: Likewise.
5296         * sysdeps/wordsize-64/glob64.c: Likewise.
5297         * sysdeps/wordsize-64/globfree.c: Likewise.
5298         * sysdeps/wordsize-64/globfree64.c: Likewise.
5299         * sysdeps/unix/sysv/linux/glob.c: New file.
5300         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
5301         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
5302         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
5303         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5304         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
5305         adds !GLOB_NO_OLD_VERSION as an extra condition.
5306         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
5307         using relative path instead of absolute one.
5308         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
5309         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
5310         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5311         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
5312         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
5313         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
5315         [BZ #1062]
5316         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
5317         (glob): Use the same scratch buffer for both getlogin_r and
5318         getpwnam_r.  Don’t require preallocation of the login name.  This
5319         simplifies storage allocation, and corrects the handling of
5320         long login names.
5322         [BZ #1062]
5323         * posix/glob.c (glob): Port recent patches to platforms
5324         lacking getpwnam_r.
5325         (glob): Fix longstanding misuse of errno after getpwnam_r, which
5326         returns an error number rather than setting errno.
5328         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
5329         instead of GCC extension.
5330         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
5331         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
5332         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
5334         [BZ #866]
5335         [BZ #1062]
5336         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
5337         * posix/bug-glob1.c: Remove file.
5338         * posix/tst-glob_symlinks.c: New file.
5339         * posix/glob.c (__lstat64): New macro.
5340         (is_dir): New function.
5341         (glob, glob_in_dir): Match symlinks even if they are dangling.
5342         (link_stat, link_exists_p): Remove.  All uses removed.
5344         [BZ #1062]
5345         [BZ #19971]
5346         * posix/glob.c (struct readdir_result): Remove skip_entry member.
5347         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5348         All uses removed.
5350         [BZ #1062]
5351         CVE-2017-15671
5352         * posix/Makefile (routines): Add globfree, globfree64, and
5353         glob_pattern_p.
5354         * posix/flexmember.h: New file.
5355         * posix/glob_internal.h: Likewise.
5356         * posix/glob_pattern_p.c: Likewise.
5357         * posix/globfree.c: Likewise.
5358         * posix/globfree64.c: Likewise.
5359         * sysdeps/gnu/globfree64.c: Likewise.
5360         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
5361         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5362         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
5363         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5364         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5365         * sysdeps/wordsize-64/globfree.c: Likewise.
5366         * sysdeps/wordsize-64/globfree64.c: Likewise.
5367         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
5368         [NDEBUG): Remove comments.
5369         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
5370         (dirent_type): New type.  Use uint_fast8_t not
5371         uint8_t, as C99 does not require uint8_t.
5372         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
5373         (struct readdir_result): Use dirent_type.  Do not define skip_entry
5374         unless it is needed; this saves a byte on platforms lacking d_ino.
5375         (readdir_result_type, readdir_result_skip_entry):
5376         New functions, replacing ...
5377         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5378          these functions, which were removed.  This makes the callers
5379         easier to read.  All callers changed.
5380         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5381         (size_add_wrapv, glob_use_alloca): New static functions.
5382         (glob, glob_in_dir): Check for size_t overflow in several places,
5383         and fix some size_t checks that were not quite right.
5384         Remove old code using SHELL since Bash no longer
5385         uses this.
5386         (glob, prefix_array): Separate MS code better.
5387         (glob_in_dir): Remove old Amiga and VMS code.
5388         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5389         separate files.
5390         (glob_in_dir): Do not rely on undefined behavior in accessing
5391         struct members beyond their bounds.  Use a flexible array member
5392         instead
5393         (link_stat): Rename from link_exists2_p and return -1/0 instead of
5394         0/1.  Caller changed.
5395         (glob): Fix memory leaks.
5396         * posix/glob64 (globfree64): Move to separate file.
5397         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
5398         (globfree64): Remove hidden alias.
5399         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
5400         oldglob.
5401         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
5402         separate file.
5403         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
5404         define.
5405         Move compat code to separate file.
5406         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
5407         separate file.
5409 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
5411         * resolv/tst-resolv-qtypes.c (domain): Changed to
5412         "const char domain[] =".
5414 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
5416         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
5417         version to 3.1.6.
5419         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
5420         (TCP_MD5SIG_EXT): Likewise.
5421         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
5422         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
5423         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
5425         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
5427 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
5429         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
5431 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
5433         [BZ #22100]
5434         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
5436 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5438         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
5439         before assuming that the file is empty.  Avoid testing buffer content
5440         when nread == 0.
5442 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5444         [BZ #18858]
5445         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5446         Remove define.
5447         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
5448         Likewise.
5449         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
5450         Likewise.
5451         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
5452         Likewise.
5453         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5454         Likewise.
5455         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
5456         Likewise.
5457         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
5458         Likewise.
5460 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5462         * malloc/dynarray_emplace_enlarge.c
5463         (__libc_dynarray_emplace_enlarge): Add missing else.
5465 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5467         [BZ #22096]
5468         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
5469         case of failure to obtain the global conf object.
5471 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5473         [BZ #22095]
5474         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
5475         dynarray allocation failure.
5477 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5479         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
5480         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
5481         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
5482         New functions.
5483         (response): Call them.  Add 'p', '6' flag processing.
5484         (test_reverse): New function.
5485         (test_get2_any): Call it.
5486         (test_no_inet6): Add 'p' test.
5487         (test_inet6): Likewise.
5489 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5491         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
5492         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
5493         the QNAME.
5494         (test_gai): Adjust query names.  Add additional tests.
5495         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
5496         test_get2.  Adjust query names.  Add additional tests.
5497         (test_no_inet6): New function, extracted from threadfunc.
5498         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
5499         Add additional tests.
5501 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
5503         [BZ #22070]
5504         * localedata/unicode-gen/utf8_gen.py: Set the width for
5505         characters with Prepended_Concatenation_Mark property to 1
5506         * localedata/charmaps/UTF-8: Updated using the improved script.
5508 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
5510         [BZ #21750]
5511         * localedata/unicode-gen/utf8_gen.py: Improve the script to
5512         use the range notation for all ranges of neighbouring characters
5513         with the same width.
5515 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
5517         * sysdeps/generic/math-type-macros-double.h: Include
5518         <math-svid-compat.h>.
5519         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5520         * sysdeps/generic/math-type-macros-float.h: Include
5521         <math-svid-compat.h>.
5522         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5523         * sysdeps/generic/math-type-macros-ldouble.h: Include
5524         <math-svid-compat.h>.
5525         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5526         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
5527         condition.
5528         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
5529         * math/w_acosf_compat.c: Likewise.
5530         * math/w_acosh_compat.c: Likewise.
5531         * math/w_acoshf_compat.c: Likewise.
5532         * math/w_acoshl_compat.c: Likewise.
5533         * math/w_acosl_compat.c: Likewise.
5534         * math/w_asin_compat.c: Likewise.
5535         * math/w_asinf_compat.c: Likewise.
5536         * math/w_asinl_compat.c: Likewise.
5537         * math/w_atan2_compat.c: Likewise.
5538         * math/w_atan2f_compat.c: Likewise.
5539         * math/w_atan2l_compat.c: Likewise.
5540         * math/w_atanh_compat.c: Likewise.
5541         * math/w_atanhf_compat.c: Likewise.
5542         * math/w_atanhl_compat.c: Likewise.
5543         * math/w_cosh_compat.c: Likewise.
5544         * math/w_coshf_compat.c: Likewise.
5545         * math/w_coshl_compat.c: Likewise.
5546         * math/w_exp10_compat.c: Likewise.
5547         * math/w_exp10f_compat.c: Likewise.
5548         * math/w_exp10l_compat.c: Likewise.
5549         * math/w_exp2_compat.c: Likewise.
5550         * math/w_exp2f_compat.c: Likewise.
5551         * math/w_exp2l_compat.c: Likewise.
5552         * math/w_fmod_compat.c: Likewise.
5553         * math/w_fmodf_compat.c: Likewise.
5554         * math/w_fmodl_compat.c: Likewise.
5555         * math/w_hypot_compat.c: Likewise.
5556         * math/w_hypotf_compat.c: Likewise.
5557         * math/w_hypotl_compat.c: Likewise.
5558         * math/w_j0_compat.c: Likewise.
5559         * math/w_j0f_compat.c: Likewise.
5560         * math/w_j0l_compat.c: Likewise.
5561         * math/w_j1_compat.c: Likewise.
5562         * math/w_j1f_compat.c: Likewise.
5563         * math/w_j1l_compat.c: Likewise.
5564         * math/w_jn_compat.c: Likewise.
5565         * math/w_jnf_compat.c: Likewise.
5566         * math/w_jnl_compat.c: Likewise.
5567         * math/w_lgamma_r_compat.c: Likewise.
5568         * math/w_lgammaf_r_compat.c: Likewise.
5569         * math/w_lgammal_r_compat.c: Likewise.
5570         * math/w_log10_compat.c: Likewise.
5571         * math/w_log10f_compat.c: Likewise.
5572         * math/w_log10l_compat.c: Likewise.
5573         * math/w_log2_compat.c: Likewise.
5574         * math/w_log2f_compat.c: Likewise.
5575         * math/w_log2l_compat.c: Likewise.
5576         * math/w_log_compat.c: Likewise.
5577         * math/w_logf_compat.c: Likewise.
5578         * math/w_logl_compat.c: Likewise.
5579         * math/w_pow_compat.c: Likewise.
5580         * math/w_powf_compat.c: Likewise.
5581         * math/w_powl_compat.c: Likewise.
5582         * math/w_remainder_compat.c: Likewise.
5583         * math/w_remainderf_compat.c: Likewise.
5584         * math/w_remainderl_compat.c: Likewise.
5585         * math/w_sinh_compat.c: Likewise.
5586         * math/w_sinhf_compat.c: Likewise.
5587         * math/w_sinhl_compat.c: Likewise.
5588         * math/w_sqrt_compat.c: Likewise.
5589         * math/w_sqrtf_compat.c: Likewise.
5590         * math/w_sqrtl_compat.c: Likewise.
5591         * math/w_tgamma_compat.c: Likewise.
5592         * math/w_tgammaf_compat.c: Likewise.
5593         * math/w_tgammal_compat.c: Likewise.
5594         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
5595         [LIBM_SVID_COMPAT].
5596         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
5597         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
5598         [LIBM_SVID_COMPAT].
5599         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
5600         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
5601         [LIBM_SVID_COMPAT].
5602         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
5603         * sysdeps/i386/fpu/w_sqrt.c: New file.
5604         * sysdeps/ia64/fpu/w_acos.c: Likewise.
5605         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5606         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5607         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5608         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5609         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5610         * sysdeps/ia64/fpu/w_asin.c: Likewise.
5611         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5612         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5613         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5614         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5615         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5616         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5617         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5618         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5619         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
5620         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
5621         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
5622         * sysdeps/ia64/fpu/w_exp.c: Likewise.
5623         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5624         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5625         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5626         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5627         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5628         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5629         * sysdeps/ia64/fpu/w_expf.c: Likewise.
5630         * sysdeps/ia64/fpu/w_expl.c: Likewise.
5631         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
5632         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
5633         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
5634         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
5635         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
5636         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
5637         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
5638         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
5639         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
5640         * sysdeps/ia64/fpu/w_log.c: Likewise.
5641         * sysdeps/ia64/fpu/w_log10.c: Likewise.
5642         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
5643         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
5644         * sysdeps/ia64/fpu/w_log2.c: Likewise.
5645         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5646         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5647         * sysdeps/ia64/fpu/w_logf.c: Likewise.
5648         * sysdeps/ia64/fpu/w_logl.c: Likewise.
5649         * sysdeps/ia64/fpu/w_pow.c: Likewise.
5650         * sysdeps/ia64/fpu/w_powf.c: Likewise.
5651         * sysdeps/ia64/fpu/w_powl.c: Likewise.
5652         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
5653         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
5654         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
5655         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5656         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5657         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5658         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
5659         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
5660         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
5661         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
5662         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
5663         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
5664         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
5665         [LIBM_SVID_COMPAT].
5666         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
5667         * sysdeps/ieee754/k_standard.c: Likewise.
5668         * sysdeps/ieee754/k_standardf.c: Likewise.
5669         * sysdeps/ieee754/k_standardl.c: Likewise.
5670         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
5671         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
5672         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
5673         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
5674         long_double_symbol call on [LIBM_SVID_COMPAT].
5675         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5676         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5677         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5678         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5679         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5680         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5681         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5682         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5683         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5684         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5685         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5686         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
5687         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5688         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5689         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5690         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5691         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
5692         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5693         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5694         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5695         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
5696         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
5698 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
5700         * include/shlib-compat.h (TEST_COMPAT): New Macro.
5701         * malloc/tst-mallocstate.c: Convert from test-skeleton
5702         to test-driver.  Ifdef code using TEST_COMPAT macro.
5703         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
5704         * math/test-matherr.c: Likewise.
5706 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
5708         [BZ #22086]
5709         * debug/pcprofiledump.c (main): Use byte-swapped mask when
5710         comparing word with byte-swapped constant.
5712 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
5714         [BZ #20498]
5715         * locale/iso-639.def: add Miskito.
5716         * localedata/SUPPORTED: Add miq_NI/UTF-8.
5717         * localedata/locales/miq_NI: New file.
5719 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
5721         [BZ #18822]
5722         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
5723         (__mkdir): Likewise.
5724         * io/chmod.c (__chmod): Add libc_hidden_def.
5725         * io/mkdir.c (__mkdir): Likewise.
5726         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
5727         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
5728         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
5729         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
5731 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
5733         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5734         version to 4.13.
5736         [BZ #22082]
5737         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
5738         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
5740 2017-09-04  Florian Weimer  <fweimer@redhat.com>
5742         * math/math.h: Issue warning if log is defined.
5744 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
5746         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5747         kernel version to 4.13.
5749 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5751         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
5752         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
5753         parameter.
5754         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
5755         just <bits/types.h>.
5756         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
5757         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
5758         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
5759         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
5760         * misc/preadv2.c: Include <errno.h>.
5761         * misc/preadv64v2.c: Include <errno.h>.
5762         * misc/pwritev2.c: Include <errno.h>.
5763         * misc/pwritev64v2.c: Include <errno.h>.
5764         * sysdeps/posix/preadv2.c: Include <errno.h>.
5765         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
5766         Fix <unistd.h> inclusion.
5767         * sysdeps/posix/pwritev2.c: Include <errno.h>.
5768         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
5769         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
5770         __strtoul_internal): New functions.
5771         * sysdeps/posix/pause.c: Include <sigsetops.h>.
5772         * sysdeps/posix/system.c: Include <sigsetops.h>.
5773         * sysdeps/mach/hurd/i386/Makefile
5774         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
5775         [$(subdir) = csu] (sysdep-only-routines): Likewise.
5776         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
5777         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
5778         __feraiseexcept_renamed to feraiseexcept instead of
5779         __GI_feraiseexcept.
5780         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
5781         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
5782         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
5783         RWF_NOWAIT): Define to 0 if undefined already.
5784         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
5785         boils down to 0.
5786         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
5787         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
5789 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
5791         * manual/math.texi (pow10): Do not document.
5792         (pow10f): Likewise.
5793         (pow10l): Likewise.
5794         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
5795         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
5796         * math/libm-test-exp10.inc (pow10_test): Remove.
5797         (do_test): Do not call pow10.
5798         * math/w_exp10_compat.c (pow10): Make into compat symbol.
5799         [NO_LONG_DOUBLE] (pow10l): Likewise.
5800         * math/w_exp10f_compat.c (pow10f): Likewise.
5801         * math/w_exp10l_compat.c (pow10l): Likewise.
5802         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
5803         (pow10): Make into compat symbol.
5804         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
5805         (pow10f): Make into compat symbol.
5806         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
5807         (pow10l): Make into compat symbol.
5808         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
5809         pow10.
5810         (CFLAGS-nldbl-pow10.c): Remove variable..
5811         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
5812         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
5813         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
5814         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
5815         Undefine and redefine.
5816         (pow10l): Make into compat symbol.
5817         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
5818         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
5819         * sysdeps/arm/libm-test-ulps: Likewise.
5820         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
5821         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
5822         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5823         * sysdeps/microblaze/libm-test-ulps: Likewise.
5824         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5825         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5826         * sysdeps/nios2/libm-test-ulps: Likewise.
5827         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5828         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5829         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5830         * sysdeps/sh/libm-test-ulps: Likewise.
5831         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5832         * sysdeps/tile/libm-test-ulps: Likewise.
5833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5835 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
5837         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
5839 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
5841         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
5842         "../ChangeLog.old/ChangeLog.8".
5843         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
5844         "../ChangeLog.old/ChangeLog.14".
5846 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
5848         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
5849         Threads Library.
5851 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
5853         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
5855 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
5857         * csu/version.c (banner): Remove "by Roland McGrath et al.".
5858         * nptl/Banner: Remove "by Ulrich Drepper et al.".
5860 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
5862         * stdlib/tst-atexit-common.c (do_test): Test support for at least
5863         32 atexit handlers.
5865 2017-09-01  Zack Weinberg  <zackw@panix.com>
5867         * math/math.h (HUGE_VAL): Improve commentary.
5869 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5870             Andreas Schwab  <schwab@suse.de>
5872         [BZ #21530]
5873         * include/stdio.h (__gen_tempfd): New function.
5874         * stdio-common/Makefile (routines): Add gentempfd.
5875         * stdio-common/gentempfd.c: New file.
5876         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
5877         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
5878         unnamed file first.
5880 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5882         [BZ #21915]
5883         [BZ #21922]
5884         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
5885         result to determine success or failure, not the errno value.
5886         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
5887         (tst-nss-files-hosts-erange): Link with -ldl.
5888         * nss/tst-nss-files-hosts-erange.c: New file.
5889         * nss/tst-resolv-basic.c (response): Handle nodata.example.
5890         (do_test): Add NO_DATA tests.
5891         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
5892         (do_test): Call it.
5894 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5896         [BZ #21922]
5897         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
5898         coming from gethostbyname2_r.
5900 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5902         * support/namespace.h (struct support_chroot_configuration): Add
5903         hosts, host_conf.
5904         (struct support_chroot): Add path_hosts, path_host_conf.
5905         * support/support_chroot.c (write_file): New function.
5906         (support_chroot_create): Call it to process /etc/resolv.conf,
5907         /etc/hosts, /etc/host.conf.
5908         (support_chroot_free): Update.
5910 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5912         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
5913         status indicates it is set.
5915 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5917         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
5918         function lookup failures more reliable.
5920 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5922         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
5923         (getcanonname): Likewise.
5924         (gaih_inet): Likewise.
5926 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5928         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
5929         (getcanonname): Likewise.
5930         (gaih_inet): Likewise.
5932 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
5933             Richard Henderson <rth@twiddle.net>
5935         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
5936         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
5937         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
5938         (IREG_SIZE, OREG_SIZE): New macros.
5939         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
5940         (IREG_SIZE, OREG_SIZE): New macros.
5941         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
5942         (IREG_SIZE): New macro.
5943         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
5944         (IREG_SIZE): New macro.
5945         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
5946         New includes.
5947         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
5948         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
5949         (__CONCATX): Handle exceptions correctly on large values that may
5950         set FE_INVALID.
5951         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
5952         Initialize if not already set.
5953         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
5955 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5957         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
5958         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
5959         Likewise.
5960         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
5961         Likewise.
5962         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
5963         Likewise.
5964         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
5965         Likewise.
5966         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
5967         Likewise.
5968         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
5969         Likewise.
5970         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
5971         Likewise.
5972         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
5973         (NO_CANCELLATION): Likewise.
5974         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
5975         Likewise.
5976         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
5977         Likewise.
5978         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
5979         Likewise.
5980         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
5981         (NO_CANCELLATION): Likewise.
5982         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
5983         (NO_CANCELLATION): Likewise.
5984         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
5985         Likewise
5986         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
5987         Likewise.
5988         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
5989         Likewise.
5990         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
5991         Likewise.
5992         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
5993         hidden prototype.
5994         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
5995         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
5997 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
5999         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
6000         in resolver call.
6002 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6004         * include/libc-symbols.h (internal_function): Remove.
6006 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6008         * stdlib/fmtmsg.c (internal_addseverity): Remove
6009         internal_function.
6011 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6013         * stdio-common/printf_fp.c (group_number): Remove
6014         internal_function.
6015         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
6017 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6019         * posix/fnmatch.c (internal_function): Remove definition.
6020         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
6021         * posix/regcomp.c (peek_token, init_word_char)
6022         (duplicate_node_closure, fetch_token, peek_token)
6023         (peek_token_bracket, build_range_exp, build_collating_symbol):
6024         Likewise.
6025         * posix/regex_internal.c (re_string_construct_common)
6026         (create_ci_newstate, create_cd_newstate, re_string_allocate)
6027         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
6028         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
6029         (re_string_translate_buffer, re_string_reconstruct)
6030         (re_string_peek_byte_case, re_string_fetch_byte_case)
6031         (re_string_destruct, re_string_context_at, re_node_set_alloc)
6032         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
6033         (re_node_set_add_intersect, re_node_set_init_union)
6034         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
6035         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
6036         (re_dfa_add_node, calc_state_hash, re_acquire_state)
6037         (re_acquire_state_context): Likewise.
6038         * posix/regex_internal.h (internal_function): Remove definition.
6039         (re_string_realloc_buffers, build_wcs_buffer)
6040         (build_wcs_upper_buffer, build_upper_buffer)
6041         (re_string_translate_buffer, re_string_context_at)
6042         (re_string_char_size_at, re_string_wchar_at)
6043         (re_string_elem_size_at): Likewise.
6044         * posix/regexec.c (match_ctx_init, match_ctx_clean)
6045         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
6046         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
6047         (re_search_internal, re_search_2_stub, re_search_stub)
6048         (re_copy_regs, prune_impossible_nodes, check_matching)
6049         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
6050         (free_fail_stack_return, sift_states_iter_mb)
6051         (sift_states_backward, build_sifted_states)
6052         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
6053         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
6054         (check_subexp_limits, sift_states_bkref, merge_state_array)
6055         (find_recover_state, transit_state, merge_state_with_log)
6056         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
6057         (transit_state_mb, transit_state_bkref, get_subexp)
6058         (get_subexp_sub, find_subexp_node, check_arrival)
6059         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
6060         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
6061         (check_node_accept_bytes, find_collation_sequence_value)
6062         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
6063         (acquire_init_state_context, check_halt_node_context)
6064         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
6065         (sub_epsilon_src_nodes): Likewise.
6066         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
6067         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
6068         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
6069         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
6070         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
6071         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
6072         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
6073         * sysdeps/posix/ttyname.c (getttyname): Likewise.
6074         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
6075         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
6076         (PREADV): Likewise.
6077         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
6078         (PREADV): Likewise.
6079         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
6080         (PWRITEV): Likewise.
6081         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
6082         (PWRITEV): Likewise.
6083         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
6084         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
6086 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6088         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
6089         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
6090         Remove internal_function.
6091         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
6092         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
6093         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
6094         (__deallocate_stack, __libc_pthread_init)
6095         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
6096         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
6097         (__libc_disable_asynccancel, __librt_disable_asynccancel):
6098         Likewise.
6099         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
6100         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
6101         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
6102         Likewise.
6103         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
6104         (__pthread_mutex_unlock_usercnt): Likewise.
6106 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6108         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
6109         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
6110         (fts_safe_changedir): Remove internal_function.
6111         * io/ftw.c (internal_function): Remove definition.
6112         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
6114 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6116         * inet/deadline.c (__deadline_current_time)
6117         (__deadline_from_timeval, __deadline_to_ms): Remove
6118         internal_function.
6119         * inet/getnameinfo.c (nrl_domainname): Likewise.
6120         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
6121         * inet/inet6_option.c (add_pad): Likewise.
6122         * inet/net-internal.h (__deadline_current_time)
6123         (__deadline_from_timeval, __deadline_to_ms): Likewise.
6124         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
6125         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
6126         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
6128 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
6130         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
6131         include <bits/nan.h>.
6132         * math/Makefile (headers): Remove bits/nan.h.
6133         * bits/nan.h: Remove.
6134         * sysdeps/ieee754/bits/nan.h: Likewise.
6135         * sysdeps/mips/bits/nan.h: Likewise.
6137         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
6138         not include <bits/inf.h>.
6139         * math/Makefile (headers): Remove bits/inf.h.
6140         * bits/inf.h: Remove.
6141         * sysdeps/ieee754/bits/inf.h: Likewise.
6143         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
6144         bits/huge_vall.h or bits/huge_val_flt128.h.
6145         (HUGE_VAL): Define directly here.
6146         [__USE_ISOC99] (HUGE_VALF): Likewise.
6147         [__USE_ISOC99] (HUGE_VALL): Likewise.
6148         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6149         (HUGE_VAL_F128): Likewise.
6150         * math/Makefile (headers): Remove bits/huge_val.h,
6151         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
6152         * bits/huge_val.h: Remove.
6153         * bits/huge_val_flt128.h: Likewise.
6154         * bits/huge_valf.h: Likewise.
6155         * bits/huge_vall.h: Likewise.
6156         * sysdeps/ia64/bits/huge_vall.h: Likewise.
6157         * sysdeps/ieee754/bits/huge_val.h: Likewise.
6158         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
6159         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
6160         * sysdeps/sh/bits/huge_val.h: Likewise.
6161         * sysdeps/sparc/bits/huge_vall.h: Likewise.
6162         * sysdeps/x86/bits/huge_vall.h: Likewise.
6164 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6166         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
6167         internal_function.
6168         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
6169         Likewise.
6170         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
6171         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
6172         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
6173         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
6174         * elf/dl-fini.c (_dl_sort_fini): Likewise.
6175         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
6176         * elf/dl-libc.c (dlerror_run): Likewise.
6177         * elf/dl-load.c (add_name_to_object, decompose_rpath)
6178         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
6179         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
6180         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
6181         Likewise.
6182         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
6183         (_dl_higher_prime_number, _dl_strtoul): Likewise.
6184         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
6185         * elf/dl-profile.c (_dl_start_profile): Likewise.
6186         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
6187         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
6188         Likewise.
6189         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
6190         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
6191         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
6192         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
6193         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
6194         (_dl_allocate_tls_storage): Likewise.
6195         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
6196         (_dl_check_all_versions): Likewise.
6197         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
6198         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
6199         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
6200         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6201         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
6202         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
6203         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
6204         internal_function from __dl_start.
6205         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
6206         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
6207         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
6208         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
6209         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
6210         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
6211         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
6212         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
6213         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
6214         (_dl_next_ld_env_entry, _dl_important_hwcaps)
6215         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
6216         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
6217         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
6218         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
6219         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
6220         Likewise.
6221         (struct rtld_global_ro): Remove internal_function from the
6222         _dl_lookup_symbol_x member.
6223         (_dl_symbol_value): Remove.  No longer defined anywhere.
6224         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
6225         internal_function.
6226         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6227         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
6228         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
6229         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
6230         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
6231         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
6232         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
6233         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
6234         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
6235         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
6236         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6237         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
6239 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6241         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
6242         Remove internal_function.
6243         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
6244         Likewise.
6245         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
6246         Likewise.
6248 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6250         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
6251         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
6252         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
6254 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6256         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
6257         (__gai_enqueue_request): Remove internal_function.
6258         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
6259         (__gai_remove_request, __gai_notify, __gai_notify_only)
6260         (__gai_sigqueue): Likewise.
6261         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
6262         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
6263         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
6264         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
6265         Likewise.
6267 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6269         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
6270         * include/dirent.h (__opendirat, __getdents, __getdents64)
6271         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
6272         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
6273         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6274         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
6275         Likewise.
6276         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
6278 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6280         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
6281         internal_function.
6282         (GETCWD_RETURN_TYPE): Likewise.
6284 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6286         * include/time.h (__tz_compute, __strptime_internal): Remove
6287         internal_function.
6288         * time/strptime_l.c (__strptime_internal): Likewise.
6289         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
6291 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6293         * iconv/gconv.c (__gconv): Remove internal_function.
6294         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
6295         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
6296         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
6297         (__gconv_release_cache): Likewise.
6298         * iconv/gconv_close.c (__gconv_close): Likewise.
6299         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
6300         (read_conf_file, __gconv_get_path): Likewise.
6301         * iconv/gconv_db.c (derivation_lookup, add_derivation)
6302         (__gconv_release_step, gen_steps, increment_counter)
6303         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
6304         (__gconv_close_transform, free_modules_db): Likewise.
6305         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
6306         Likewise.
6307         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
6308         (__gconv_find_transform, __gconv_lookup_cache)
6309         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
6310         (__gconv_close_transform, __gconv_release_cache)
6311         (__gconv_loaded_object, __gconv_release_shlib)
6312         (__gconv_compare_alias): Likewise.
6313         * iconv/gconv_open.c (__gconv_open): Likewise.
6314         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
6315         * iconv/iconvconfig.c (add_module): Likewise.
6316         * intl/dcigettext.c (plural_lookup, guess_category_value)
6317         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
6318         * intl/eval-plural.h (plural_eval): Likewise.
6319         * intl/finddomain.c (_nl_find_domain): Likewise.
6320         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
6321         (_nl_load_domain, _nl_find_msg): Likewise.
6322         (internal_function): Remove definition.
6323         * intl/loadinfo.h (internal_function): Likewise.
6324         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
6325         internal_function.
6326         * intl/localealias.c (internal_function): Remove definition.
6327         (read_alias_file): Remove internal_function.
6328         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
6329         * intl/plural-exp.h (internal_function): Remove definition.
6330         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
6331         internal_function.
6332         * intl/plural.c: Regenerate.
6333         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
6334         * locale/coll-lookup.c (__collidx_table_lookup)
6335         (__collseq_table_lookup): Likewise.
6336         * locale/coll-lookup.h (__collidx_table_lookup)
6337         (__collseq_table_lookup): Likewise.
6338         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
6339         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6340         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
6341         (_nl_unload_locale): Likewise.
6342         * locale/localeinfo.h (struct __locale_data): Remove
6343         internal_function from cleanup member.
6344         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
6345         (_nl_remove_locale, _nl_load_locale_from_archive)
6346         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
6347         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
6348         (_nl_cleanup_time): Remove internal_function.
6349         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
6350         (_nl_parse_alt_digit): Likewise.
6351         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
6352         (_nl_select_era_entry): Likewise.
6353         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6354         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6355         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6356         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6357         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6359 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6361         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
6362         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
6363         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
6364         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
6365         Likewise.
6366         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
6367         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
6368         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
6369         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
6370         Likewise.
6371         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
6373 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6375         * misc/getttyent.c (skip, value): Remove internal_function.
6376         * misc/syslog.c (openlog_internal): Likewise.
6377         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
6379 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6381         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
6382         (__nss_rewrite_field): Remove internal_function.
6383         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6384         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6385         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6386         * nss/nsswitch.c (nss_parse_file, nss_getline)
6387         (nss_parse_service_list, nss_new_service): Likewise.
6388         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
6389         * nss/valid_field.c (__nss_valid_field): Likewise.
6390         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
6392 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6394         * malloc/arena.c (__malloc_fork_lock_parent)
6395         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
6396         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
6397         internal_function from defintions.
6398         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
6399         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
6400         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
6401         internal_function from declarations.
6402         * malloc/malloc.c (internal_function): Do not define.
6403         (mem2mem_check): Remove internal_function from declaration.
6404         (munmap_chunk, mremap_chunk): Remove internal_function.
6405         * malloc/mtrace.c (tr_where): Likewise.
6407 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6409         * include/rpc/pmap_clnt.h (__get_socket): Remove
6410         internal_function.
6411         * sunrpc/auth_des.c (synchronize): Likewise.
6412         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
6413         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
6414         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
6415         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
6416         (key_call): Likewise.
6417         * sunrpc/pm_getport.c (__get_socket): Likewise.
6418         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
6419         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
6420         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
6421         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
6422         (invalidate): Likewise.
6423         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
6424         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
6425         (set_input_fragment, get_input_bytes): Likewise.
6427 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6429         * malloc/malloc.c (_int_free): Remove locked variable and related
6430         asserts.
6432 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
6434         [BZ #22051]
6435         * Makerules (build-module-helper-objlist): Filter out
6436         $(elf-objpfx)sofini.os.
6437         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
6438         needed.
6440 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6442         * libio/fcloseall.c: Assume weak_alias is defined.
6443         * libio/feof.c: Likewise.
6444         * libio/fileno.c: Likewise.
6445         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
6446         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6447         definitions.
6448         (_IO_file_open): Call __open directly.
6449         (_IO_new_file_sync): Assume ESPIPE is defined.
6450         (_IO_file_seekoff_maybe_mmap): Call __read directly.
6451         (_IO_new_file_write): Call __write directly.
6452         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
6453         * libio/ftello64.c (__ftello64): Assume EIO is defined.
6454         * libio/genops.c: Assume _LIBC is defined.
6455         (save_for_backup): Remove internal_function.
6456         * libio/getc.c: Assume weak_alias is defined.
6457         * libio/getwc.c: Likewise.
6458         * libio/iofclose.c: Assume _LIBC is defined.
6459         * libio/iofdopen.c: Likewise.
6460         (_IO_fcntl): Remove macro definition.
6461         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
6462         Call __fcntl directly.
6463         * libio/iofflush.c: Assume weak_alias is defined.
6464         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
6465         defined.
6466         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
6467         * libio/iofgets.c: Likewise.
6468         * libio/iofopen.c: Assume _LIBC is defined.
6469         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
6470         * libio/iofputs.c: Assume weak_alias is defined.
6471         * libio/iofread.c: Likewise.
6472         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
6473         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
6474         * libio/ioftell.c: Assume weak_alias is defined.
6475         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
6476         * libio/iofwide.c: Assume _LIBC is defined.
6477         (_IO_fwide): Drop SHARED conditional because it is implied by
6478         SHLIB_COMPAT.
6479         * libio/iofwrite.c: Assume weak_alias is defined.
6480         * libio/iogetdelim.c: Likewise.
6481         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
6482         * libio/iogetwline.c (wmemcpy): Remove macro definition.
6483         (_IO_getwline): Call __wmemcpy directly.
6484         * libio/iopopen.c: Assume _LIBC is defined.
6485         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6486         (_IO_close): Remove macro definitions.
6487         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
6488         _exit directly.
6489         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
6490         directly.
6491         * libio/ioputs.c: Assume weak_alias is defined.
6492         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
6493         * libio/iosetbuffer.c: Assume weak_alias is defined.
6494         * libio/iosetvbuf.c: Likewise.
6495         * libio/ioungetc.c: Likewise.
6496         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
6497         libc_hidden_def, libc_hidden_weak, NULL are defined.
6498         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
6499         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
6500         defined.
6501         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6502         definitions.
6503         (_IO_old_file_init_internal): Drop SHARED conditional because it
6504         is implied by SHLIB_COMPAT.
6505         (_IO_old_file_fopen): Call __open directly.
6506         (_IO_old_file_sync): Assume ESPIPE is defined.
6507         (_IO_old_file_write): Call __write directly.
6508         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
6509         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
6510         Call __fcntl directly.
6511         * libio/oldiofgetpos.c: Assume weak_alias is defined.
6512         (_IO_old_fgetpos): Assume EIO is defined.
6513         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
6514         (_IO_old_fgetpos64): Assume EIO is defined.
6515         * libio/oldiofsetpos.c: Assume weak_alias is defined.
6516         (_IO_old_fsetpos): Assume EIO is defined.
6517         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
6518         (_IO_old_fsetpos64): Assume EIO is defined.
6519         * libio/oldiopopen.c:  Assume _LIBC is defined.
6520         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6521         (_IO_close): Remove macro definitions.
6522         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
6523         directly.
6524         (_IO_old_proc_close): Call __close, __waitpid directly.
6525         * libio/put.c: Assume weak_alias is defined.
6526         * libio/stdfiles.c: Assume _LIBC is defined.
6527         * libio/stdio.c: Likewise.
6528         * libio/wfileops.c: Likewise.
6529         (_IO_wfile_sync): Assume ESPIPE is defined.
6530         * libio/wgenops.c: Assume _LIBC is defined.
6531         (save_for_wbackup): Remove internal_function.
6533 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6535         * malloc/malloc.c (top_check): Change return type to void.  Remove
6536         internal_function.
6537         * malloc/hooks.c (top_check): Likewise.
6538         (malloc_check, realloc_check, memalign_check): Adjust.
6540 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
6542         [BZ #21457]
6543         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6544         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
6545         sigcontext and namespace requirements.
6546         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6547         * sysdeps/m68k/sys/ucontext.h: Likewise.
6548         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
6549         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
6550         <bits/sigcontext.h>.
6551         (__ctx): Define earlier.
6552         (mcontext_t): Define structure contents rather than using struct
6553         sigcontext.
6554         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
6555         __glibc_reserved1 instead of __reserved.
6556         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
6557         <bits/sigcontext.h>.
6558         (__ctx): Define earlier.
6559         (mcontext_t): Define structure contents rather than using struct
6560         sigcontext.
6561         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
6562         mcontext_t instead of struct sigcontext.
6563         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
6564         <bits/sigcontext.h>.
6565         (__ctx): Define earlier.
6566         (mcontext_t): Define structure contents rather than using struct
6567         sigcontext.
6568         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
6569         <bits/sigcontext.h>.
6570         (__ctx): Define earlier.
6571         (mcontext_t): Define structure contents rather than using struct
6572         sigcontext.
6573         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
6574         mcontext_t instead of struct sigcontext.
6575         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
6576         mcontext_t instead of struct sigcontext.
6577         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
6578         <bits/sigcontext.h>.
6579         (__ctx): New macro.
6580         (struct __ia64_fpreg_mcontext): New type.
6581         (mcontext_t): Define structure contents rather than using struct
6582         sigcontext.
6583         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
6584         (uc_sigmask): Define using __ctx.
6585         (uc_stack): Likewise.
6586         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
6587         <bits/sigcontext.h>.
6588         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6589         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
6590         <bits/sigcontext.h>.
6591         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
6592         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
6593         <bits/sigcontext.h>.
6594         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
6595         <bits/sigcontext.h>.
6596         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
6597         <bits/sigcontext.h>.
6598         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
6599         <bits/sigcontext.h>.
6600         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
6601         <bits/sigcontext.h>.
6602         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
6603         <bits/sigcontext.h>.
6604         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
6605         <bits/sigcontext.h>.
6606         (__ctx): Define earlier.
6607         (mcontext_t): Define structure contents rather than using struct
6608         sigcontext.
6609         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
6610         <bits/sigcontext.h>.  Include <bits/types.h>.
6611         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
6612         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
6613         (test-xfail-XPG42/ucontext.h/conform): Likewise.
6614         (test-xfail-UNIX98/signal.h/conform): Likewise.
6615         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6616         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6617         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6618         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6619         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6620         (test-xfail-POSIX2008/signal.h/conform): Likewise.
6621         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6622         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6623         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6625 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6627         * malloc/dynarray_emplace_enlarge.c
6628         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
6629         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
6630         * malloc/tst-dynarray.c (test_long_overflow): New function.
6631         (do_test): Call it.
6633 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6635         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
6636         (set_arena_corrupt): Remove definitions.
6637         (mtrim): Do not check for corrupt arena.
6638         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
6639         Likewise.
6641 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6643         [BZ #21754]
6644         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
6645         check_action.
6646         (ptmalloc_init): Do not set or use check_action.
6647         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
6648         call to malloc_printerr.  Remove return statement.
6649         (free_check): Likewise.  Remove arena unlock.
6650         (top_check): Update comment.  Adjust call to malloc_printerr.
6651         Remove heap repair code.
6652         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
6653         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
6654         (sysmalloc): Adjust call to malloc_printerr.
6655         (munmap_chunk, __libc_realloc): Likewise.  Remove return
6656         statement.
6657         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
6658         Remove errout label and corresponding gotos.
6659         (_int_free): Likewise.  Remove arena unlock.
6660         (do_set_mallopt_check): Do not set check_action.
6661         (malloc_printerr): Adjust parameter list.  Do not mark arena as
6662         corrupt.
6663         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
6664         comment.
6665         * manual/probes.texi (Memory Allocation Probes): Remove
6666         memory_mallopt_check_action.
6668 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
6670         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
6671         Use pointer to uint64_t instead of long int for sp.
6673 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6675         [BZ #21754]
6676         * malloc/malloc.c (malloc_printerr): Always terminate the process,
6677         without printing a backtrace.  Do not leak any information in the
6678         error message.
6679         * manual/memory.texi (Heap Consistency Checking): Update.
6680         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
6682 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6684         Do not scale NPTL tests with available number of CPUs.
6685         * nptl/tst-cond16.c (count): Set to constant value of 8.
6686         * nptl/tst-cond18.c (count): Likewise.
6688 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
6690         [BZ #22035]
6691         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
6692         Define to take a second argument that is a macro that
6693         concatentates a suffix, not the suffix itself.
6694         (__CONCAT_d): New macro.
6695         (__CONCAT_f): Likewise.
6696         (__CONCAT_l): Likewise.
6698 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
6700         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
6701         by child.
6703 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6704             Aurelien Jarno  <aurelien@aurel32.net>
6705             Maciej W. Rozycki  <macro@imgtec.com>
6707         [BZ #21956]
6708         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
6709         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
6710         `mips16-syscall6' and `mips16-syscall7'.
6711         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
6712         (CFLAGS-mips16-syscall7.c): Remove.
6713         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
6714         Remove `__mips16_syscall5', `__mips16_syscall6' and
6715         `__mips16_syscall7'.
6716         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
6717         (__mips16_syscall0): Rename `__mips16_syscall_return' to
6718         `__mips_syscall_return'.
6719         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
6720         (__mips16_syscall1): Likewise.
6721         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
6722         (__mips16_syscall2): Likewise.
6723         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
6724         (__mips16_syscall3): Likewise.
6725         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
6726         (__mips16_syscall4): Likewise.
6727         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
6728         Remove.
6729         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
6730         Remove.
6731         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
6732         Remove.
6733         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
6734         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
6735         `__mips16_syscall5'.  Remove prototype.
6736         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
6737         `__mips16_syscall6'.  Remove prototype.
6738         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
6739         `__mips16_syscall7'.  Remove prototype.
6740         (__nomips16, __mips16_syscall_return): Move to...
6741         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
6742         (__nomips16, __mips_syscall_return): ... here.
6743         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
6744         `__mips16_syscall_return' to `__mips_syscall_return'.
6745         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
6746         `internal_syscall##nr'.
6747         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
6748         `internal_syscall##nr'.
6749         (FORCE_FRAME_POINTER): Remove.
6750         (__mips_syscall5): New prototype.
6751         (internal_syscall5): Rewrite to call `__mips_syscall5'.
6752         (__mips_syscall6): New prototype.
6753         (internal_syscall6): Rewrite to call `__mips_syscall6'.
6754         (__mips_syscall7): New prototype.
6755         (internal_syscall7): Rewrite to call `__mips_syscall7'.
6756         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
6757         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
6758         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
6759         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
6760         (sysdep_routines): Add libc-do-syscall.
6761         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
6762         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
6764 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6766         [BZ #21672]
6767         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
6768         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
6769         (advise_stack_range): New function.
6770         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
6771         stack non required to advise_stack_range at allocatestack.c
6773 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6775         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
6777 2017-08-29  Florian Weimer  <fweimer@redhat.com>
6779         [BZ #22026]
6780         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
6781         __end_fct.  Mangle __end_fct after setting it to NULL.
6782         * iconv/Makefile (tests): Add tst-gconv-init-failure.
6783         (modules-names, modules-names-tests): Add
6784         tst-gconv-init-failure-mod.
6785         (gconv-modules): New target.
6786         (tst-gconv-init-failure-mod.so): Link against libsupport.
6787         (tst-gconv-init-failure): Depend on gconv-modules,
6788         tst-gconv-init-failure-mod.so.
6789         * iconv/tst-gconv-init-failure-mod.c: New file.
6790         * iconv/tst-gconv-init-failure.c: Likewise.
6791         * iconv/test-gconv-modules: Likewise.
6793 2017-08-29  Florian Weimer  <fweimer@redhat.com>
6795         [BZ #22025]
6796         * iconv/gconv_db.c (free_derivation): Remove redundant
6797         parentheses.
6798         (gen_steps): Unconditionally mangle __btowc_fct after
6799         initialization.
6800         (increment_counter): Likewise.  Do not call init_fct for internal
6801         modules.
6803 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
6805         [BZ #22028]
6806         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
6807         (_MSUF_): Remove macro.
6808         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
6809         Likewise.
6810         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
6811         (__REDIRFROM_X): New macro.
6812         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
6813         Likewise.
6814         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
6815         (__REDIRTO_X): Likewise.
6816         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
6817         arguments.
6818         (__MATH_REDIRCALL_2): Likewise.
6819         (__MATH_REDIRCALL_INTERNAL): Likewise.
6820         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
6821         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
6822         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
6823         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
6824         * math/test-finite-macros.c: New file.
6825         * math/Makefile (tests): Add test-finite-macros.
6826         (CFLAGS-test-finite-macros.c): New variable.
6828 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
6829             Jeff Law  <law@redhat.com>
6831         [BZ #22025]
6832         Mangle NULL pointers in iconv/gconv.
6833         * iconv/gconv_cache.c (find_module): Demangle init_fct before
6834         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
6835         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
6836         is non-NULL before demangling the end_fct.  Check for NULL
6837         end_fct after demangling.
6838         (__gconv_release_step): Demangle the end_fct before checking
6839         it for NULL.   Remove assert on __shlibc_handle != NULL.
6840         (gen_steps): Don't check btowc_fct for NULL before mangling.
6841         Demangle init_fct before checking for NULL.
6842         (increment_counter): Likewise.
6843         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
6844         end_fct for NULL before mangling.
6845         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
6846         for NULL.
6848 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
6850         [BZ #21971]
6851         * locale/iso-639.def: add Morisyen.
6853 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6855         [BZ #21930]
6856         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
6857         (iszero): New C++ implementation that does not use
6858         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
6859         signaling nans are enabled, since __builtin_types_compatible_p
6860         is a C-only feature.
6861         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
6862         defined, include ieee754_float128.h for access to the union and
6863         member ieee854_float128.ieee.
6864         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
6865         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
6866         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
6867         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
6868         options of test-math-zero on powerpc64le.
6870 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
6872         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
6873         Change double to float.
6875 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
6877         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
6878         unconditional.
6879         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
6880         conditional code; define contents only for [LIBM_SVID_COMPAT].
6882 2017-08-28  Florian Weimer  <fweimer@redhat.com>
6884         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
6885         (abi-lp64_be-options): Remove.
6886         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
6887         (abi-hard-options): Likewise.
6888         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
6889         (abi-o32_hard-options, abi-o32_soft_2008-options)
6890         (abi-o32_hard_2008-options, abi-n32_soft-options)
6891         (abi-n32_hard-options, abi-n32_soft_2008-options)
6892         (abi-n32_hard_2008-options, abi-n64_soft-options)
6893         (abi-n64_hard-options, abi-n64_soft_2008-options)
6894         (abi-n64_hard_2008-options): Likewise.
6895         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
6896         (abi-64-v1-options, abi-64-v2-options): Likewise.
6897         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
6898         (abi-64-options): Likewise.
6899         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
6900         (abi-64-options): Likewise.
6901         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
6902         (abi-64-options): Likewise.
6903         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
6904         (abi-64-options, abi-x32-options): Likewise.
6906 2017-08-28  Florian Weimer  <fweimer@redhat.com>
6908         Store supported list of SYS_* system calls in the source tree.
6909         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6910         (bits/syscall.h): Generate from list file.
6911         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
6912         [$(subdir) = misc] (tests): Add tst-syscall-list.
6913         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
6914         [$(subdir) = misc] (tst-syscall-list-macros.list)
6915         [$(subdir) = misc] (tst-syscall-list-nr.list)
6916         (tst-syscall-list-sys.list): Helper targets for new
6917         tst-syscall-list test.
6918         [$(subdir) = misc] (tst-syscall-list.out): Run test script
6919         tst-syscall-list.sh.
6920         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
6921         target. Do not include bits/syscall.d.
6922         [$(subdir) = misc] (generated): Do not update.
6923         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
6924         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
6925         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
6926         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
6928 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
6930         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
6931         (tst-cxa_atexit, tst-on_exit): Likewise.
6932         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
6933         tst-cxa_atexit, and tst-on_exit.
6934         * stdlib/tst-atexit-common.c: New file.
6935         * stdlib/tst-atexit.c: New file.
6936         * stdlib/tst-at_quick_exit.c: New file.
6937         * stdlib/tst-cxa_atexit.c: New file.
6938         * stdlib/tst-on_exit.c: New file.
6940 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6942         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
6943         * mach/stack_chk_fail_local.c: New file.
6944         * hurd/stack_chk_fail_local.c: New file.
6945         * mach/Machrules ($(interface-library)-routines): Add
6946         stack_chk_fail_local.
6947         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
6948         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
6949         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
6950         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
6951         * hurd/Makefile (CFLAGS-hurdstartup.o,
6952         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
6954 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
6956         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
6957         (index_cpu_*, index_arch_*): Removed.
6959 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6961         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
6962         Use uint64_t instead of unsigned long.
6964 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
6966         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
6967         [__HAVE_DISTINCT_FLOAT128].
6969         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
6970         of <bits/math-finite.h>.
6971         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
6972         inclusion of <bits/math-finite.h>.
6973         * math/bits/math-finite.h (__REDIRTO_X): Do not define
6974         conditionally on [__MATH_DECLARING_LDOUBLE && defined
6975         __NO_LONG_DOUBLE_MATH].
6976         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
6977         (__MATH_REDIRCALL_2): Likewise.
6978         (__MATH_REDIRCALL_INTERNAL): Likewise.
6979         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
6980         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
6981         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
6983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
6984         Remove file.
6985         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
6986         Likewise.
6987         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
6988         Likewise.
6989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
6990         Likewise.
6991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
6992         Likewise.
6993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
6994         Likewise.
6995         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
6996         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
6997         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
6998         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
6999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
7000         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
7001         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
7002         w_sqrtf_compat-ppc32.
7004 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7006         * math/math.h [defined __cplusplus] (issignaling): In the long
7007         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
7008         is not defined.  Call __issignaling, otherwise.
7010 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7012         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
7013         syscall definitions and replace __builtin_expect with __glibc_likely.
7014         * sysdeps/unix/syscall-template.S: Update comment about cancellable
7015         syscall.
7016          (SYSCALL_CANCELLABLE): Removedefinition
7017         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
7018         definition.
7019         (PSEUDO_END): Likewise.
7020         [IS_IN (libpthread)] (CENABLE): Likewise.
7021         [IS_IN (libpthread)] (CDISABLE): Likewise.
7022         [IS_IN (libc)] (CENABLE): Likewise.
7023         [IS_IN (libc)] (CENABLE): Likewise.
7024         [IS_IN (librt)] (CDISABLE): Likewise.
7025         [IS_IN (librt)] (CDISABLE): Likewise.
7026         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7027         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
7028         definition.
7029         (PSEUDO_END): Likewise.
7030         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
7031         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
7032         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7033         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7034         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7035         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7036         (CENABLE): Likewise.
7037         (CDISABLE): Likewise.
7038         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7039         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
7040         defintion.
7041         (PSEUDO_END): Likewise.
7042         [IS_IN (libpthread)] (CENABLE): Likewise.
7043         [IS_IN (libpthread)] (CDISABLE): Likewise.
7044         [IS_IN (libc)] (CENABLE): Likewise.
7045         [IS_IN (libc)] (CENABLE): Likewise.
7046         [IS_IN (librt)] (CDISABLE): Likewise.
7047         [IS_IN (librt)] (CDISABLE): Likewise.
7048         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7049         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
7050         definition.
7051         (PSEUDO_END): Likewise.
7052         [IS_IN (libpthread)] (CENABLE): Likewise.
7053         [IS_IN (libpthread)] (CDISABLE): Likewise.
7054         [IS_IN (libc)] (CENABLE): Likewise.
7055         [IS_IN (libc)] (CENABLE): Likewise.
7056         [IS_IN (librt)] (CDISABLE): Likewise.
7057         [IS_IN (librt)] (CDISABLE): Likewise.
7058         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7059         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
7060         definition.
7061         (PSEUDO_END): Likewise.
7062         [IS_IN (libpthread)] (CENABLE): Likewise.
7063         [IS_IN (libpthread)] (CDISABLE): Likewise.
7064         [IS_IN (libc)] (CENABLE): Likewise.
7065         [IS_IN (libc)] (CENABLE): Likewise.
7066         [IS_IN (librt)] (CDISABLE): Likewise.
7067         [IS_IN (librt)] (CDISABLE): Likewise.
7068         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7069         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
7070         definition.
7071         (PSEUDO_END): Likewise.
7072         [IS_IN (libpthread)] (CENABLE): Likewise.
7073         [IS_IN (libpthread)] (CDISABLE): Likewise.
7074         [IS_IN (libc)] (CENABLE): Likewise.
7075         [IS_IN (libc)] (CENABLE): Likewise.
7076         [IS_IN (librt)] (CDISABLE): Likewise.
7077         [IS_IN (librt)] (CDISABLE): Likewise.
7078         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7079         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
7080         definition.
7081         (PSEUDO_END): Likewise.
7082         [IS_IN (libpthread)] (CENABLE): Likewise.
7083         [IS_IN (libpthread)] (CDISABLE): Likewise.
7084         [IS_IN (libc)] (CENABLE): Likewise.
7085         [IS_IN (libc)] (CENABLE): Likewise.
7086         [IS_IN (librt)] (CDISABLE): Likewise.
7087         [IS_IN (librt)] (CDISABLE): Likewise.
7088         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7089         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
7090         definition.
7091         (PSEUDO_END): Likewise.
7092         [IS_IN (libpthread)] (CENABLE): Likewise.
7093         [IS_IN (libpthread)] (CDISABLE): Likewise.
7094         [IS_IN (libc)] (CENABLE): Likewise.
7095         [IS_IN (libc)] (CENABLE): Likewise.
7096         [IS_IN (librt)] (CDISABLE): Likewise.
7097         [IS_IN (librt)] (CDISABLE): Likewise.
7098         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7099         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
7100         Remove definition.
7101         (PSEUDO_END): Likewise.
7102         [IS_IN (libpthread)] (CENABLE): Likewise.
7103         [IS_IN (libpthread)] (CDISABLE): Likewise.
7104         [IS_IN (libc)] (CENABLE): Likewise.
7105         [IS_IN (libc)] (CENABLE): Likewise.
7106         [IS_IN (librt)] (CDISABLE): Likewise.
7107         [IS_IN (librt)] (CDISABLE): Likewise.
7108         (SINGLE_THREAD_P): Likewise.
7109         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
7110         definition.
7111         (PSEUDO_END): Likewise.
7112         [IS_IN (libpthread)] (CENABLE): Likewise.
7113         [IS_IN (libpthread)] (CDISABLE): Likewise.
7114         [IS_IN (libc)] (CENABLE): Likewise.
7115         [IS_IN (libc)] (CENABLE): Likewise.
7116         [IS_IN (librt)] (CDISABLE): Likewise.
7117         [IS_IN (librt)] (CDISABLE): Likewise.
7118         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7119         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
7120         definition.
7121         (PSEUDO_END): Likewise.
7122         [IS_IN (libpthread)] (CENABLE): Likewise.
7123         [IS_IN (libpthread)] (CDISABLE): Likewise.
7124         [IS_IN (libc)] (CENABLE): Likewise.
7125         [IS_IN (libc)] (CENABLE): Likewise.
7126         [IS_IN (librt)] (CDISABLE): Likewise.
7127         [IS_IN (librt)] (CDISABLE): Likewise.
7128         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7129         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
7130         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
7131         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
7132         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
7133         definition.
7134         (PSEUDO_END): Likewise.
7135         [IS_IN (libpthread)] (CENABLE): Likewise.
7136         [IS_IN (libpthread)] (CDISABLE): Likewise.
7137         [IS_IN (libc)] (CENABLE): Likewise.
7138         [IS_IN (libc)] (CENABLE): Likewise.
7139         [IS_IN (librt)] (CDISABLE): Likewise.
7140         [IS_IN (librt)] (CDISABLE): Likewise.
7141         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7142         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
7143         definition.
7144         (PSEUDO_END): Likewise.
7145         [IS_IN (libpthread)] (CENABLE): Likewise.
7146         [IS_IN (libpthread)] (CDISABLE): Likewise.
7147         [IS_IN (libc)] (CENABLE): Likewise.
7148         [IS_IN (libc)] (CENABLE): Likewise.
7149         [IS_IN (librt)] (CDISABLE): Likewise.
7150         [IS_IN (librt)] (CDISABLE): Likewise.
7151         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7152         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
7153         definition.
7154         (PSEUDO_END): Likewise.
7155         [IS_IN (libpthread)] (CENABLE): Likewise.
7156         [IS_IN (libpthread)] (CDISABLE): Likewise.
7157         [IS_IN (libc)] (CENABLE): Likewise.
7158         [IS_IN (libc)] (CENABLE): Likewise.
7159         [IS_IN (librt)] (CDISABLE): Likewise.
7160         [IS_IN (librt)] (CDISABLE): Likewise.
7161         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7162         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
7163         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
7164         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
7165         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
7166         definition.
7167         (PSEUDO_END): Likewise.
7168         [IS_IN (libpthread)] (CENABLE): Likewise.
7169         [IS_IN (libpthread)] (CDISABLE): Likewise.
7170         [IS_IN (libc)] (CENABLE): Likewise.
7171         [IS_IN (libc)] (CENABLE): Likewise.
7172         [IS_IN (librt)] (CDISABLE): Likewise.
7173         [IS_IN (librt)] (CDISABLE): Likewise.
7174         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7175         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
7176         definition.
7177         (PSEUDO_END): Likewise.
7178         [IS_IN (libpthread)] (CENABLE): Likewise.
7179         [IS_IN (libpthread)] (CDISABLE): Likewise.
7180         [IS_IN (libc)] (CENABLE): Likewise.
7181         [IS_IN (libc)] (CENABLE): Likewise.
7182         [IS_IN (librt)] (CDISABLE): Likewise.
7183         [IS_IN (librt)] (CDISABLE): Likewise.
7184         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7186 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7188         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
7190 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
7192         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7194 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
7196         [BZ #21982]
7197         * string/stratcliff.c (do_test): Declare size, nchars, inner,
7198         middle and outer with size_t instead of int.  Repleace %d and
7199         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
7200         "MAX (outer, nchars - 64)" to support unsigned outer and
7201         nchars.  Also exit loop when outer == 0.
7203 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7205         * include/fcntl.h (__fcntl_nocancel): Remove definition.
7206         * include/signal.h (__sigsuspend_nocancel): Likewise.
7207         * include/time.h (__nanosleep_nocancel): Likewise.
7208         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
7209         * login/utmp_file.c: Include non cancellable syscall header.
7210         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
7211         prototype.
7213 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
7215         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
7216         .byte sequences with AVX512F instructions.
7217         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
7218         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
7219         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
7220         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
7221         Likewise.
7222         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
7223         Likewise.
7225 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7226             Steve Ellcey  <sellcey@cavium.com>
7228         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
7229         Use PTR_REG macro in cmp instruction.
7231 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7233         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
7234         Change the return type of the ifunc resolver to match the return
7235         type of the target function.
7237 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7239         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
7240         (preadv64): Likewise.
7241         (pwrite64(: Likewise.
7242         (pwritev64): Likewise.
7244         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
7245         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
7246         (LOAD_ARGS_0): Likewise.
7247         (LOAD_ARGS_1): Likewise.
7248         (LOAD_ARGS_2): Likewise.
7249         (LOAD_ARGS_3): Likewise.
7250         (LOAD_ARGS_4): Likewise.
7251         (LOAD_ARGS_5): Likewise.
7252         (LOAD_ARGS_6): Likewise.
7253         (LOAD_REGS_0): Likewise.
7254         (LOAD_REGS_1): Likewise.
7255         (LOAD_REGS_2): Likewise.
7256         (LOAD_REGS_3): Likewise.
7257         (LOAD_REGS_4): Likewise.
7258         (LOAD_REGS_5): Likewise.
7259         (LOAD_REGS_6): Likewise.
7260         (ASM_ARGS_0): Likewise.
7261         (ASM_ARGS_1): Likewise.
7262         (ASM_ARGS_2): Likewise.
7263         (ASM_ARGS_3): Likewise.
7264         (ASM_ARGS_4): Likewise.
7265         (ASM_ARGS_5): Likewise.
7266         (ASM_ARGS_6): Likewise.
7267         (LOAD_ARGS_TYPES_1): Likewise.
7268         (LOAD_ARGS_TYPES_2): Likewise.
7269         (LOAD_ARGS_TYPES_3): Likewise.
7270         (LOAD_ARGS_TYPES_4): Likewise.
7271         (LOAD_ARGS_TYPES_5): Likewise.
7272         (LOAD_ARGS_TYPES_6): Likewise.
7273         (LOAD_REGS_TYPES_1): Likewise.
7274         (LOAD_REGS_TYPES_2): Likewise.
7275         (LOAD_REGS_TYPES_3): Likewise.
7276         (LOAD_REGS_TYPES_4): Likewise.
7277         (LOAD_REGS_TYPES_5): Likewise.
7278         (LOAD_REGS_TYPES_6): Likewise.
7279         (TYPEFY): New define.
7280         (ARGIFY): Likewise.
7281         (internal_syscall0): Likewise.
7282         (internal_syscall1): Likewise.
7283         (internal_syscall2): Likewise.
7284         (internal_syscall3): Likewise.
7285         (internal_syscall4): Likewise.
7286         (internal_syscall5): Likewise.
7287         (internal_syscall6): Likewise.
7288         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
7289         (INTERNAL_SYSCALL_NCS): Remove define.
7290         (internal_syscall1): Add define.
7292 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7294         * math/w_remainder_compat.c: Remove duplicate inclusion of
7295         math-svid-compat.h.
7296         * math/w_remainderf_compat.c: Likewise.
7297         * math/w_remainderl_compat.c: Likewise.
7299 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7301         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7303 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
7305         [BZ #21684]
7306         * math/tgmath.h (__floating_type): Simplify definitions.
7307         (__real_integer_type): New macro.
7308         (__complex_integer_type): Likewise.
7309         (__expr_is_real): Likewise.
7310         (__tgmath_real_type_sub): Update comment to describe handling of
7311         complex types.
7312         (__tgmath_complex_type_sub): New macro.
7313         (__tgmath_complex_type): Likewise.
7314         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7315         (__TGMATH_CF128): Use __expr_is_real.
7316         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
7317         __expr_is_real.
7318         (__TGMATH_BINARY_REAL_IMAG): Likewise.
7319         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
7320         * math/gen-tgmath-tests.py (Type.create_type): Create complex
7321         integer types.
7323 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7325         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
7326         macro.
7327         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
7328         alias.
7329         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
7330         Likewise.
7332         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
7333         nanosleep_not_cancel with __nanosleep_nocancel.
7334         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
7335         (__nanosleep_nocancel): New macro.
7336         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
7337         function.
7338         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
7339         macro.
7340         (__nanosleep_nocancel): New prototype.
7342         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
7343         pause_not_cancel with __pause_nocancel.
7344         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
7345         (__pause_nocancel): New macro.
7346         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
7347         macro.
7348         (__pause_nocancel): New prototype.
7349         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
7351 2017-08-22  Martin Sebor  <msebor@redhat.com>
7353         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
7354         to return a pointer to the same type as the target function.
7356 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
7358         [BZ #18822]
7359         [BZ #21986]
7360         * include/printf.h (__printf_fphex): Add attribute_hidden.
7361         (__guess_grouping): New prototype.
7362         * stdio-common/printf_fp.c (__guess_grouping): Removed.
7363         * stdio-common/reg-printf.c (__register_printf_specifier): Add
7364         libc_hidden_proto and libc_hidden_def.
7365         * stdlib/strfmon_l.c (__guess_grouping): Removed.
7366         (__vstrfmon_l): Remove the third argument passed to
7367         __guess_grouping.
7369 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7371         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
7372         definition for issignaling that does not rely on __MATH_TG,
7373         since __MATH_TG uses __builtin_types_compatible_p, which is only
7374         available in C mode.
7375         (CFLAGS-test-math-issignaling.cc): New variable.
7376         * math/Makefile [CXX] (tests): Add test-math-issignaling.
7377         * math/test-math-issignaling.cc: New test for C++ implementation
7378         of type-generic issignaling.
7379         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7380         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
7381         options of test-math-issignaling on powerpc64le.
7383 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
7385         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7386         building libc.a.
7387         (hidden_proto): Likewise.
7388         (hidden_tls_proto): Likewise.
7389         (__hidden_proto): Likewise.
7391 2017-08-22  Florian Weimer  <fweimer@redhat.com>
7393         math: Statically link tests of internal functionality.
7394         * math/Makefile (tests): Remove atest-exp, atest-sincos,
7395         atest-exp2.
7396         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
7397         (gmp-objs): Remove assignment.
7398         (atest-exp, atest-sincos, atest-exp2): Remove targets.
7400 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
7402         [BZ #21987]
7403         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
7404         and copy to ...
7405         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
7406         ... here.
7407         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
7408         ... and here.
7410         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
7411         variable definitions above inclusion of ../Rules.
7413 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
7415         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
7416         case calling __builtin_unreachable.
7418 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7420         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
7421         __waitpid_nocancel.
7422         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
7423         (__waitpid_nocancel): New macro.
7424         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
7425         macro.
7426         (__waitpid_nocancel): Replace macro with a function.
7427         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
7428         function.
7430         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
7431         __fcntl_nocancel.
7432         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
7433         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
7435         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
7436         __writev_nocancel_nostatus.
7437         (write_call_graph): Likewise.
7438         (write_bb_counts): Likewise.
7439         * resolv/herror.c (herror): Likewise.
7440         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
7441         macro.
7442         (__writev_nocancel_nostatus): New macro.
7443         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
7444         Remove macro.
7445         (__writev_nocancel_nostatus): New function.
7447 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
7449         Revert:
7450         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7452         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7453         building libc.a.
7454         (hidden_proto): Likewise.
7455         (hidden_tls_proto): Likewise.
7456         (__hidden_proto): Likewise.
7458         [BZ #21973]
7459         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
7460         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
7461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
7462         Likewise.
7463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
7464         Likewise.
7465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
7466         Likewise.
7467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
7468         Likewise.
7469         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
7470         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
7471         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
7472         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
7473         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
7474         GLIBC_2.0 sqrtl symbol.
7476         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
7477         [__USE_MISC] (_LIB_VERSION): Likewise.
7478         [__USE_MISC] (struct exception): Likewise.
7479         [__USE_MISC] (matherr): Likewise.
7480         [__USE_MISC] (DOMAIN): Likewise.
7481         [__USE_MISC] (SING): Likewise.
7482         [__USE_MISC] (OVERFLOW): Likewise.
7483         [__USE_MISC] (UNDERFLOW): Likewise.
7484         [__USE_MISC] (TLOSS): Likewise.
7485         [__USE_MISC] (PLOSS): Likewise.
7486         [__USE_MISC] (HUGE): Likewise.
7487         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
7488         * math/math-svid-compat.h: New file.
7489         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
7490         and matherrl.
7491         * include/math.h [!_ISOMAC] (__matherr): Remove.
7492         * manual/arith.texi (FP Exceptions): Do not document matherr.
7493         * math/Makefile (tests): Change test-matherr to test-matherr-3.
7494         (tests-internal): New variable.
7495         (install-lib): Do not add libieee.a.
7496         (non-lib.a): Likewise.
7497         (extra-objs): Do not add libieee.a and ieee-math.o.
7498         (CPPFLAGS-s_lib_version.c): Remove variable.
7499         ($(objpfx)libieee.a): Remove rule.
7500         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
7501         * math/ieee-math.c: Remove.
7502         * math/libm-test-support.c (matherr): Remove.
7503         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
7504         and license notices.  Include <math-svid-compat.h> and
7505         <shlib-compat.h>.
7506         (matherr): Undefine as macro.  Use compat_symbol_reference.
7507         (_LIB_VERSION): Likewise.
7508         * math/test-matherr-2.c: New file.
7509         * math/test-matherr-3.c: Likewise.
7510         * sysdeps/generic/math_private.h (__kernel_standard): Remove
7511         declaration.
7512         (__kernel_standard_f): Likewise.
7513         (__kernel_standard_l): Likewise.
7514         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
7515         <math_private.h>.  Include <math-svid-compat.h>.
7516         (_LIB_VERSION): Undefine as macro.
7517         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
7518         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
7519         [LIBM_SVID_COMPAT], use compat_symbol.
7520         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
7521         <math_private.h>.  Include <math-svid-compat.h>.
7522         (matherr): Undefine as macro.
7523         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
7524         compat_symbol.
7525         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
7526         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
7527         compat_symbol_reference.
7528         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
7529         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
7530         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
7531         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
7532         (MATHERR_D): Remove declaration.
7533         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
7534         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
7535         [LIBM_BUILD] (pmatherrf): Likewise.
7536         [LIBM_BUILD] (pmatherr): Likewise.
7537         [LIBM_BUILD] (pmatherrl): Likewise.
7538         (DOMAIN): Likewise.
7539         (SING): Likewise.
7540         (OVERFLOW): Likewise.
7541         (UNDERFLOW): Likewise.
7542         (TLOSS): Likewise.
7543         (PLOSS): Likewise.
7544         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
7545         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
7546         compat_symbol.
7547         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
7548         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
7549         compat_symbol.
7550         * math/lgamma-compat.h: Include <math-svid-compat.h>.
7551         * math/w_acos_compat.c: Likewise.
7552         * math/w_acosf_compat.c: Likewise.
7553         * math/w_acosh_compat.c: Likewise.
7554         * math/w_acoshf_compat.c: Likewise.
7555         * math/w_acoshl_compat.c: Likewise.
7556         * math/w_acosl_compat.c: Likewise.
7557         * math/w_asin_compat.c: Likewise.
7558         * math/w_asinf_compat.c: Likewise.
7559         * math/w_asinl_compat.c: Likewise.
7560         * math/w_atan2_compat.c: Likewise.
7561         * math/w_atan2f_compat.c: Likewise.
7562         * math/w_atan2l_compat.c: Likewise.
7563         * math/w_atanh_compat.c: Likewise.
7564         * math/w_atanhf_compat.c: Likewise.
7565         * math/w_atanhl_compat.c: Likewise.
7566         * math/w_cosh_compat.c: Likewise.
7567         * math/w_coshf_compat.c: Likewise.
7568         * math/w_coshl_compat.c: Likewise.
7569         * math/w_exp10_compat.c: Likewise.
7570         * math/w_exp10f_compat.c: Likewise.
7571         * math/w_exp10l_compat.c: Likewise.
7572         * math/w_exp2_compat.c: Likewise.
7573         * math/w_exp2f_compat.c: Likewise.
7574         * math/w_exp2l_compat.c: Likewise.
7575         * math/w_fmod_compat.c: Likewise.
7576         * math/w_fmodf_compat.c: Likewise.
7577         * math/w_fmodl_compat.c: Likewise.
7578         * math/w_hypot_compat.c: Likewise.
7579         * math/w_hypotf_compat.c: Likewise.
7580         * math/w_hypotl_compat.c: Likewise.
7581         * math/w_j0_compat.c: Likewise.
7582         * math/w_j0f_compat.c: Likewise.
7583         * math/w_j0l_compat.c: Likewise.
7584         * math/w_j1_compat.c: Likewise.
7585         * math/w_j1f_compat.c: Likewise.
7586         * math/w_j1l_compat.c: Likewise.
7587         * math/w_jn_compat.c: Likewise.
7588         * math/w_jnf_compat.c: Likewise.
7589         * math/w_jnl_compat.c: Likewise.
7590         * math/w_lgamma_main.c: Likewise.
7591         * math/w_lgamma_r_compat.c: Likewise.
7592         * math/w_lgammaf_main.c: Likewise.
7593         * math/w_lgammaf_r_compat.c: Likewise.
7594         * math/w_lgammal_main.c: Likewise.
7595         * math/w_lgammal_r_compat.c: Likewise.
7596         * math/w_log10_compat.c: Likewise.
7597         * math/w_log10f_compat.c: Likewise.
7598         * math/w_log10l_compat.c: Likewise.
7599         * math/w_log2_compat.c: Likewise.
7600         * math/w_log2f_compat.c: Likewise.
7601         * math/w_log2l_compat.c: Likewise.
7602         * math/w_log_compat.c: Likewise.
7603         * math/w_logf_compat.c: Likewise.
7604         * math/w_logl_compat.c: Likewise.
7605         * math/w_pow_compat.c: Likewise.
7606         * math/w_powf_compat.c: Likewise.
7607         * math/w_powl_compat.c: Likewise.
7608         * math/w_remainder_compat.c: Likewise.
7609         * math/w_remainderf_compat.c: Likewise.
7610         * math/w_remainderl_compat.c: Likewise.
7611         * math/w_scalb_compat.c: Likewise.
7612         * math/w_scalbf_compat.c: Likewise.
7613         * math/w_scalbl_compat.c: Likewise.
7614         * math/w_sinh_compat.c: Likewise.
7615         * math/w_sinhf_compat.c: Likewise.
7616         * math/w_sinhl_compat.c: Likewise.
7617         * math/w_sqrt_compat.c: Likewise.
7618         * math/w_sqrtf_compat.c: Likewise.
7619         * math/w_sqrtl_compat.c: Likewise.
7620         * math/w_tgamma_compat.c: Likewise.
7621         * math/w_tgammaf_compat.c: Likewise.
7622         * math/w_tgammal_compat.c: Likewise.
7623         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
7624         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
7625         * sysdeps/ieee754/k_standard.c: Likewise.
7626         * sysdeps/ieee754/k_standardf.c: Likewise.
7627         * sysdeps/ieee754/k_standardl.c: Likewise.
7628         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
7629         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
7630         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
7631         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
7632         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
7633         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
7634         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
7635         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
7636         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
7637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
7638         Likewise.
7639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
7640         Likewise.
7641         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
7642         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
7643         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
7644         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
7646 2017-08-21  Florian Weimer  <fweimer@redhat.com>
7648         [BZ #21864]
7649         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
7650         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
7651         Move before inclusion of ../Rules.
7653 2017-08-21  Florian Weimer  <fweimer@redhat.com>
7655         [BZ #21972]
7656         * assert/assert.h (assert): Use static_cast (bool) for C++.
7657         Use the ternary operator in the warning branch for GNU C.
7658         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
7659         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
7660         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
7661         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
7662         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
7664 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7666         [BZ #18822]
7667         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7668         (__syscall_clock_gettime): Add attribute_hidden.
7669         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
7670         (__start_context): Likewise.
7672 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7674         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7675         building libc.a.
7676         (hidden_proto): Likewise.
7677         (hidden_tls_proto): Likewise.
7678         (__hidden_proto): Likewise.
7680 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7682         * include/libc-symbols.h (attribute_hidden): Enable hidden
7683         visibility in libc.a compiled with PIE.
7685 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7687         [BZ #18822]
7688         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
7689         Add attribute_hidden.
7691 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7693         [BZ #21864]
7694         * Makerules (all-nonlib): Add $(others-extras).
7695         * catgets/Makefile (others-extras): New.
7696         * elf/Makefile (others-extras): Likewise.
7697         * nss/Makefile (others-extras): Likewise.
7699 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7701         [BZ #18822]
7702         * csu/libc-start.c (__libc_multiple_libcs): Removed.
7703         * elf/dl-open.c: Include <libc-internal.h>.
7704         (__libc_multiple_libcs): Removed.
7705         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
7706         <hp-timing.h>.
7707         * include/libc-internal.h (__libc_multiple_libcs): New.
7708         * misc/sbrk.c: Include <libc-internal.h>.
7709         (__libc_multiple_libcs): Removed.
7711 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7713         [BZ #18822]
7714         * grp/initgroups.c (__nss_group_database): Removed.
7715         (__nss_initgroups_database): Likewise.
7716         * nscd/gai.c (__nss_hosts_database): Likewise.
7717         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
7718         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
7719         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
7720         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
7721         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
7722         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
7723         attribute_hidden.
7724         * nss/nsswitch.c (__nss_database_custom): Define only if
7725         USE_NSCD is defined.
7726         (__nss_configure_lookup): Use __nss_database_custom only if
7727         USE_NSCD is defined.
7728         * nss/nsswitch.h (__nss_database_custom): Declare only if
7729         USE_NSCD is defined.  Add attribute_hidden.
7730         (__nss_setent): Add attribute_hidden.
7731         (__nss_endent): Likewise.
7732         (__nss_getent_r): Likewise.
7733         (__nss_getent): Likewise.
7734         (DEFINE_DATABASE): Declare __nss_##arg##_database.
7736 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7738         [BZ #18822]
7739         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
7740         libc_hidden_proto and libc_hidden_def.
7742 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7744         [BZ #18822]
7745         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
7746         Add libc_hidden_proto.
7747         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
7748         Add libc_hidden_def.
7750 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7752         [BZ #21974]
7753         * gmon/Makefile (routines): Remove bb_init_func and
7754         bb_exit_func.
7755         (elide-routines.os): Removed.
7756         * gmon/bb_exit_func.c: Likewise.
7757         * gmon/bb_init_func.c: Likewise.
7758         * include/sys/gmon.h (__bb): Likewise.
7759         (__bb_init_func): Likewise.
7760         (__bb_exit_func): Likewise.
7761         * sysdeps/alpha/bb_init_func.S: Likewise.
7763 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7765         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
7766         * include/setjmp.h (____longjmp_chk): Here.  Add
7767         attribute_hidden.
7769 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7771         [BZ #18822]
7772         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
7773         attribute_hidden.
7774         (__strspn_sse2): Likewise.
7776 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7778         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
7779         (close_not_cancel_no_status): Likewise.
7780         (__close_nocancel): New macro.
7781         (__close_nocancel_nostatus): Likewise.
7782         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
7783         macro.
7784         (close_not_cancel): Likewise.
7785         (close_not_cancel_no_status): Likewise.
7786         (__close_nocancel): New prototype.
7787         (__close_nocancel_nostatus): New function.
7788         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
7789         * catgets/open_catalog.c (__open_catalog): Replace
7790         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
7791         * gmon/gmon.c (write_gmon): Likewise.
7792         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7793         * intl/loadmsgcat.c (close): Likewise.
7794         * io/ftw.c (open_dir_stream): Likewise.
7795         (ftw_startup): Likewise.
7796         * libio/fileops.c (_IO_file_open): Likewise.
7797         (_IO_file_close_mmap): Likewise.
7798         (_IO_file_close): Likewise.
7799         * libio/iopopen.c (_IO_dup2): Likewise.
7800         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7801         * locale/loadlocale.c (_nl_load_locale): Likewise.
7802         * login/utmp_file.c (pututline_file): Likewise.
7803         (endutent_file): Likewise.
7804         * misc/daemon.c (daemon): Likewise.
7805         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7806         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7807         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7808         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7809         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7810         * nscd/nscd_helper.c (open_socket): Likewise.
7811         (__nscd_open_socket): Likewise.
7812         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7813         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
7814         (__nscd_innetgr): Likewise.
7815         * nss/nss_db/db-open.c (internal_setent): Likewise.
7816         * resolv/res-close.c (__res_iclose): Likewise.
7817         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
7818         * sysdeps/posix/closedir.c (__closedir): Likewise.
7819         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
7820         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7821         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
7822         (opendir_tail): Likewise.
7823         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7824         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
7825         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
7826         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
7827         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7828         (gethostid): Likewise.
7829         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7830         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7831         Likewise.
7832         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7833         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
7834         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7835         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7836         Likewise.
7837         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
7838         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
7839         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7840         Likewise.
7841         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
7842         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7843         Likewise.
7844         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7845         Likewise.
7846         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7847         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7848         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7849         __close_nocancel.
7851         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
7852         (openat_not_cancel_3): Likewise.
7853         (openat64_not_cancel_3): Likewise).
7854         (openat_not_cancel_3): Likewise).
7855         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
7856         macro.
7857         (openat_not_cancel_3): Likewise.
7858         (openat64_not_cancel): Likewise.
7859         (openat64_not_cancel_3): Likewise.
7860         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
7861         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
7862         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
7863         __open{64}_nocancel.
7864         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7865         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7866         * sysdeps/posix/opendir.c (__opendirat): Likewise.
7868 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7870         [BZ #18822]
7871         * include/argz.h (__argz_create_sep): New function prototype.
7872         (__argz_append): Likewise.
7873         (__argz_add): Likewise.
7874         (__argz_add_sep): Likewise.
7875         (__argz_delete): Likewise.
7876         (__argz_insert): Likewise.
7877         (__argz_replace): Likewise.
7878         * string/argz.h (__argz_create_sep): Removed.
7879         (__argz_append): Likewise.
7880         (__argz_add): Likewise.
7881         (__argz_add_sep): Likewise.
7882         (__argz_delete): Likewise.
7883         (__argz_insert): Likewise.
7884         (__argz_replace): Likewise.
7886 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7888         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
7889         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
7890         (GNU_PROPERTY_STACK_SIZE): Likewie.
7891         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
7892         (GNU_PROPERTY_LOPROC): Likewise.
7893         (GNU_PROPERTY_HIPROC): Likewise.
7894         (GNU_PROPERTY_LOUSER): Likewise.
7895         (GNU_PROPERTY_HIUSER): Likewise.
7896         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
7897         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
7898         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
7899         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
7900         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
7901         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
7902         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
7903         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
7904         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
7905         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
7906         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
7907         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
7908         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
7909         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
7910         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
7911         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
7912         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
7913         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
7914         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
7915         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
7916         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
7917         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
7918         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
7920 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7922         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
7923         in C++ mode.
7925 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7927         [BZ #21930]
7928         * math/math.h (isinf): Check if in C or C++ mode before using
7929         __builtin_types_compatible_p, since this is a C mode feature.
7931 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7933         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
7934         (__write_nocancel): New macro.
7935         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
7936         Rewrite as a function prototype.
7937         (write_not_cancel): Remove macro.
7938         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
7939         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
7940         (write_gmon): Likewise.
7941         * libio/fileops.c (_IO_new_file_write): Likewise.
7942         * login/utmp_file.c (pututline_file): Likewise.
7943         (updwtmp_file): Likewise.
7944         * stdio-common/psiginfo.c (psiginfo): Likewise.
7945         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7946         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7947         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7948         Likewise.
7949         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7950         Likewise.
7952         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
7953         (__read_nocancel): New macro.
7954         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7955         __read_nocancel.
7956         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
7957         macro.
7958         (__read_nocancel): New prototype.
7959         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
7960         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
7961         with __read_nocancel.
7962         * intl/loadmsgcat.c (read): Likewise.
7963         * libio/fileops.c (_IO_file_read): Likewise.
7964         * locale/loadlocale.c (_nl_load_locale): Likewise.
7965         * login/utmp_file.c (getutent_r_file): Likewise.
7966         (internal_getut_r): Likewise.
7967         (getutline_r_file): Likewise.
7968         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
7969         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7970         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7971         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7972         Likewise.
7973         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
7974         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7975         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7976         Likewise.
7977         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7978         Likewise.
7979         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7980         Likewise.
7981         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7982         Likewise.
7983         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7985 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7987         [BZ #21966]
7988         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
7989         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
7990         usable.
7992 2017-08-17  DJ Delorie  <dj@redhat.com>
7994         * bug17079.c: Update to new test harness.
7995         * test-digits-dots.c: Likewise.
7996         * test-netdb.c: Likewise.
7997         * tst-field.c: Likewise.
7998         * tst-nss-getpwent.c: Likewise.
7999         * tst-nss-static.c: Likewise.
8000         * tst-nss-test1.c: Likewise.
8001         * tst-nss-test2.c: Likewise.
8002         * tst-nss-test3.c: Likewise.
8003         * tst-nss-test4.c: Likewise.
8004         * tst-nss-test5.c: Likewise.
8006 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8008         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
8009         (open_not_cancel_2): Likewise.
8010         (open_nocancel): New macro.
8011         (open64_nocancel): Likewise.
8012         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
8013         (open_not_cancel_2): Likewise.
8014         (__open_nocancel): New prototype.
8015         (__open64_nocancel): Likewise.
8016         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8017         __open_nocancel.
8018         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
8019         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
8020         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
8021         with __open_nocancel.
8022         * csu/check_fds.c (check_one_fd): Likewise.
8023         * gmon/gmon.c (write_gmon): Likewise.
8024         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
8025         * intl/loadmsgcat.c (open): Likewise.
8026         * libio/fileops.c (_IO_file_open): Likewise.
8027         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8028         * locale/loadlocale.c (_nl_load_locale): Likewise.
8029         * login/utmp_file.c (setutent_file): Likewise.
8030         * misc/daemon.c (daemon): Likewise.
8031         * nss/nss_db/db-open.c (internal_setent): Likewise.
8032         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8033         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
8034         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8035         (__opendir): Likewise.
8036         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8037         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8038         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8039         (gethostid): Likewise.
8040         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8041         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8042         Likewise.
8043         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8044         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
8045         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8046         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8047         Likewise.
8048         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8049         Likewise.
8050         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8051         Likewise.
8052         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
8053         Likewise.
8054         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8055         Likewise.
8056         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8057         Likewise.
8058         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8059         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8061 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
8063         * benchtests/bench-skeleton.c (main): Add support for
8064         latency benchmarking.
8065         * benchtests/scripts/bench.py: Add support for latency benchmarking.
8067 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
8069         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
8070         the startup object.
8072 2017-08-17  Florian Weimer  <fweimer@redhat.com>
8074         * include/sys/socket.h (__opensock): Remove internal_function.
8075         * socket/opensock.c (__opensock): Likewise.
8076         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
8078 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
8080         [BZ #21944]
8081         * signal/bits/types/__sigval_t.h: New file.
8082         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
8083         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
8084         and define sigval_t using __sigval_t.
8085         * include/bits/types/__sigval_t.h: New file.
8086         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
8087         instead of <bits/types/__sigval_t.h>.
8088         (struct sigevent): Use __sigval_t instead of sigval_t.
8089         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
8090         instead of <bits/types/__sigval_t.h>.
8091         (siginfo_t): Use __sigval_t instead of sigval_t.
8092         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
8093         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
8094         (struct sigevent): Use __sigval_t instead of sigval_t.
8095         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
8096         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
8097         (siginfo_t): Use __sigval_t instead of sigval_t.
8098         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
8100 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8102         * NEWS: Remove "[Add new features here]" for 2.27.
8104 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
8106         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
8107         libc.so.
8109 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8111         * NEWS: Mention x86-64 FMA optimization.
8113 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8115         [BZ #21912]
8116         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8117         Add e_expf-fma.
8118         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
8119         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
8120         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
8122 2017-08-16  Andreas Schwab  <schwab@suse.de>
8124         [BZ #16750]
8125         CVE-2009-5064
8126         * elf/ldd.bash.in: Never run file directly.
8128 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
8130         [BZ #21955]
8131         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
8132         (L(SP_INF_0)): Likewise.
8134 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8136         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
8137         run-built-tests.
8139 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8141         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
8142         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
8143         BROKEN_THREAD_SIGNALS code.
8144         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
8145         request_list): Remove caller_pid member used for
8146         BROKEN_THREAD_SIGNALS.
8147         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
8148         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
8149         Remove BROKEN_THREAD_SIGNALS support.
8150         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8151         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
8153 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8155         * gmon/Makefile (tests): Add tst-gmon.
8156         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
8157         Set.
8158         (tests-special): Add tst-gmon-prof.out.
8159         (tst-gmon.out): Depend on clean-tst-gmon-data.
8160         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
8161         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
8162         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
8163         startup object.
8164         * aclocal.m4 (GPROF): Set and substitute.
8165         * config.amke.in (GPROF): Set.
8166         * configure: Regenerate.
8168 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
8170         * elf/elf.h A (NT_PPC_TAR): New macro.
8171         (NT_PPC_PPR): Likewise.
8172         (NT_PPC_DSCR): Likewise.
8173         (NT_PPC_EBB): Likewise.
8174         (NT_PPC_PMU): Likewise.
8175         (NT_PPC_TM_CGPR): Likewise.
8176         (NT_PPC_TM_CFPR): Likewise.
8177         (NT_PPC_TM_CVMX): Likewise.
8178         (NT_PPC_TM_CVSX): Likewise.
8179         (NT_PPC_TM_SPR): Likewise.
8180         (NT_PPC_TM_CTAR): Likewise.
8181         (NT_PPC_TM_CPPR): Likewise.
8182         (NT_PPC_TM_CDSCR): Likewise.
8184 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8186         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
8187         regparm (2) instead of internal_function.
8188         (_MCOUNT_DECL): Adjust.
8190 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
8192         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
8193         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
8195 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
8197         * conform/data/sys/wait.h-data (si_value): Do not expect for
8198         XPG42.
8200 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8202         [BZ #21962]
8203         NSS: Create stubs for accidentally exported lookup functions.
8204         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
8205         Remove declaration.
8206         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8207         (ether_hostton): Call __nss_ethers_lookup2 instead.
8208         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
8209         (ether_ntohost): Call __nss_ethers_lookup2 instead.
8210         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
8211         (setup): Call __nss_netgroup_lookup2 instead.
8212         * nss/Makefile (routines): Add compat-lookup.
8213         * nss/Versions (GLIBC_2.27): Add symbol version.
8214         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
8215         (DB_COMPAT_FCT): Remove.
8216         * nss/compat-lookup.c: New file.
8217         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
8218         from databases.def.
8219         * nss/service-lookup.c (NO_COMPAT): Remove definition.
8220         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
8221         (netname2user): Call __nss_publickey_lookup2 instead.
8222         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
8223         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
8224         instead.
8226 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8227             Sergei Trofimovich  <slyfox@inbox.ru>
8229         [BZ #21908]
8230         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
8231         Rename to MMAP2_PAGE_UNIT.
8232         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
8233         __OFF_T_MATCHES_OFF64_T is not defined.
8234         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
8235         uint64_t.
8236         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
8237         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
8239 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8241         i386: Do not set internal_function.
8242         * config.h.in (USE_REGPARMS, internal_function): Remove.
8243         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
8244         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
8246 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8248         * elf/dl-init.c (_dl_init): Remove internal_function.
8249         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
8250         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
8252 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8254         * elf/rtld.c (_dl_start): Remove internal_function.
8255         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
8256         _dl_start.
8258 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8260         * elf/dl-fini.c (_dl_fini): Remove internal_function
8261         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
8263 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
8265         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
8266         (bit_cpu_SHSTK): Likewise.
8267         (index_cpu_IBT): Likewise.
8268         (index_cpu_SHSTK): Likewise.
8269         (reg_IBT): Likewise.
8270         (reg_SHSTK): Likewise.
8271         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
8272         Handle index_cpu_IBT and index_cpu_SHSTK.
8274 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
8276         [BZ #19982]
8277         * po/fr.po: Fix spelling mistake.
8279 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8281         * elf/dl-addr.c (_dl_addr): Remove internal_function.
8282         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
8283         (_dl_catch_error, _dl_receive_error): Likewise.
8284         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
8285         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
8286         (_dl_deallocate_tls): Likewise.
8287         * include/dlfcn.h (_dl_addr): Likewise.
8288         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
8289         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
8290         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
8291         Likewise.
8293 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8295         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
8296         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
8297         internal_function.
8298         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
8300 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8302         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
8303         internal_function.
8304         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
8305         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
8306         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
8307         internal_function from _dl_make_stack_executable_hook member.
8308         (_dl_make_stack_executable): Remove internal_function.
8309         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
8310         Likewise.
8311         * sysdeps/unix/sysv/linux/dl-execstack.c
8312         (_dl_make_stack_executable): Likewise.
8314 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8316         * sysdeps/unix/sysv/linux/netlinkaccess.h
8317         (__netlink_assert_response): Remove internal_function.
8318         * sysdeps/unix/sysv/linux/netlink_assert_response.c
8319         (__netlink_assert_response): Likewise.
8321 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8323         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
8324         internal_function.
8325         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
8327 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8329         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
8330         internal_function.
8331         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
8332         * inet/netgroup.h (__internal_setnetgrent)
8333         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8334         * inet/getnetgrent_r.c (__internal_setnetgrent)
8335         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8336         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
8337         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
8338         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
8339         * nss/nsswitch.h (db_lookup_function): Likewise.
8341 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8343         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
8344         Remove internal_function.
8345         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
8346         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
8347         message argument on the stack.
8348         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
8349         Likeweise.
8351 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
8353         Adapt test case data to the changes in the thousands
8354         separators.
8356         [BZ #20756]
8357         * localedata/tst-langinfo.sh: Adapt test case data.
8358         * stdlib/tst-strfmon_l.c: Likewise.
8359         * stdlib/tst-strtod4.c: Likewise.
8360         * stdlib/tst-strtod5i.c: Likewise.
8362 2017-08-11  Florian Weimer  <fweimer@redhat.com>
8364         [BZ #21242]
8365         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
8366         Suppress pedantic warning resulting from statement expression.
8367         (__ASSERT_FUNCTION): Add missing __extension__.
8369 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8371         * benchtests/bench-memmove-large.c: Print output in JSON
8372         format.
8373         * benchtests/bench-memmove.c: Likewise.
8375         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
8376         * benchtests/bench-memchr.c (do_one_test): Likewise.
8377         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
8378         * benchtests/bench-memcpy.c (do_one_test): Likewise.
8379         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
8380         * benchtests/bench-memmove.c (do_one_test): Likewise.
8381         * benchtests/bench-memset-large.c (do_one_test): Likewise.
8382         * benchtests/bench-memset.c (do_one_test): Likewise.
8383         * benchtests/bench-string.h (test_init): Remove memsets.
8385 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
8387         * manual/lang.texi
8388         (Computing the Width of an Integer Data Type): Rename section to
8389         "Width of an Integer Type".  Remove inaccurate statement regarding
8390         lack of C language facilities for determining width of integer
8391         types, and reorder content to improve flow and context of
8392         discussion.
8394 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
8396         * lang.texi (va_copy): Change standard from ISO to C99.
8397         (__va_copy): Add standard and header annotation.
8398         Update description for clarity of origins and current use.
8400 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8402         [BZ #21941]
8403         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
8404         xssqrtqp requires operands to be in Vector Registers
8405         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
8406         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
8407         (__ieee754_sqrtf128): Likewise.
8409 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
8411         * sysdeps/aarch64/memcmp.S (memcmp):
8412         Rewrite of optimized memcmp.
8414 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8416         Introduce ld.so exceptions.
8417         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
8418         (_dl_exception_create, _dl_exception_create_format)
8419         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
8420         (_dl_catch_exception): Declare.
8421         (_dl_catch_error): Update comment.
8422         * elf/dl-error-skeleton.c (struct catch): Replace objname,
8423         errstring, malloced members with exception member.
8424         (_dl_out_of_memory): Remove.
8425         (fatal_error): New function, extracted from _dl_signal_error.
8426         (_dl_signal_exception, _dl_signal_cexception): New functions.
8427         (_dl_signal_error): Call _dl_exception_create to allocate an
8428         exception object.
8429         (_dl_catch_exception): New function, based on _dl_catch_error.
8430         (_dl_catch_error): Implement using _dl_catch_exception.
8431         * elf/dl-exception.c: New file.
8432         * elf/Makefile (dl-routines): Add dl-exception.
8433         (elide-routines.os): Likewise.
8434         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
8435         _dl_exception_create_format, _dl_exception_free.
8436         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
8437         _dl_signal_exception.
8438         * elf/dl-lookup.c (make_string): Remove.
8439         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
8440         _dl_signal_cexception, _dl_exception_free.
8441         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
8442         _dl_signal_exception.
8443         * elf/dl-sym.c (do_sym): Likewise.
8444         * elf/dl-version.c (make_string): Remove.
8445         (match_symbol): Use _dl_exception_create_format,
8446         _dl_signal_cexception, _dl_exception_free.
8447         (_dl_check_map_versions): Likewise.
8448         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
8449         _dl_catch_exception.
8450         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8451         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8452         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8453         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8454         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8455         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8456         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8457         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
8458         Likewise.
8459         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8461         (ld.so): Likewise.
8462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8463         (ld.so): Likewise.
8464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8465         Likewise.
8466         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8467         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8468         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
8469         Likewise.
8470         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
8471         Likewise.
8472         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8474 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8476         * inet/net-internal.h (__inet6_scopeid_pton): Remove
8477         attribute_hidden, internal_function.
8478         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
8479         internal_function.
8481 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8483         * malloc/malloc.c (get_max_fast): Reimplement as an inline
8484         function which calls __builtin_unreachable.
8486 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
8488         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
8489         Indian monetary formatting
8490         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
8491         test cases.
8493 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
8495         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
8496         Fix typo in comment.
8498         [BZ #21928]
8499         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
8500         PTRACE_SEIZE_DEVEL): Remove.
8501         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
8502         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8503         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8504         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8505         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8507 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
8509         * posix/bits/types.h (__qaddr_t): Remove.
8511         [BZ #21457]
8512         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
8513         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8514         __glibc_reserved1.
8515         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
8516         (ucontext_t): Use __ctx with uc_flags.
8517         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
8518         (__ctxt): Likewise.
8519         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8520         __glibc_reserved1.
8521         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
8522         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8523         __glibc_reserved1.
8524         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
8525         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8526         __glibc_reserved1.
8527         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
8528         macro.
8529         (ucontext_t): Use __ctx with uc_flags.
8530         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
8531         (ucontext_t): Use __ctx with uc_flags.
8532         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
8533         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
8534         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
8535         (ucontext_t): Use __ctx with uc_flags.
8536         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
8537         undefine further down.
8538         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8539         __glibc_reserved1.
8540         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
8541         undefine further down.
8542         (ucontext_t): Use __ctx with uc_flags.
8543         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
8544         undefine further down.
8545         (ucontext_t): Use __ctx with uc_flags.
8546         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
8547         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
8548         Rename uc_pad to __glibc_reserved1.
8549         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
8550         undefine further down.
8551         (ucontext_t): Use __ctx with uc_flags.
8552         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
8553         further down.
8554         (ucontext_t): Use __ctx with uc_flags.
8555         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
8556         __ctx with uc_flags.
8557         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
8558         (ucontext_t): Use __ctx with uc_flags.
8559         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
8560         __ctx with uc_flags.
8562 2017-08-09  Florian Weimer  <fweimer@redhat.com>
8564         [BZ #21932]
8565         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
8566         before early return.
8568 2017-08-09  Andreas Schwab  <schwab@suse.de>
8570         [BZ #21041]
8571         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
8572         renamed alias.
8574         [BZ #21041]
8575         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
8576         tst-compat-forwarder.
8577         (modules-names): Add tst-compat-forwarder-mod.
8578         ($(objpfx)tst-compat-forwarder): Depend on
8579         $(objpfx)tst-compat-forwarder-mod.so.
8580         * nptl/tst-compat-forwarder.c: New file.
8581         * nptl/tst-compat-forwarder-mod.c: New file.
8583 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8585         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
8586         comments.
8588         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
8589         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8590         memcpy_falkor.
8591         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
8592         Bump.
8593         (__libc_ifunc_impl_list): Add __memcpy_falkor.
8594         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
8595         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
8596         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
8597         Add falkor.
8598         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
8599         New macro.
8601 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8603         [BZ #759]
8604         * manual/setjmp.texi (getcontex): Document uc_stack value
8605         compatibility differences.
8607 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
8609         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
8610         (old_malloc_hook): Likewise.
8611         (old_memalign_hook): Likewise.
8612         (old_realloc_hook): Likewise.
8613         (struct hdr): Likewise.
8614         (flood): Likewise.
8615         (freehook): Likewise.
8616         (mallochook): Likewise.
8617         (memalignhook): Likewise.
8618         (reallochook): Likewise.
8619         (mprobe): Likewise.
8620         * malloc/mtrace.c (mallwatch): Likewise.
8621         (tr_old_free_hook): Likewise.
8622         (tr_old_malloc_hook): Likewise.
8623         (tr_old_realloc_hook): Likewise.
8624         (tr_old_memalign_hook): Likewise.
8625         (tr_where): Likewise.
8626         (lock_and_info): Likewise.
8627         (tr_freehook): Likewise.
8628         (tr_mallochook): Likewise.
8629         (tr_reallochook): Likewise.
8630         (tr_memalignhook): Likewise.
8631         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
8632         * misc/mmap.c (__mmap): Likewise.
8633         * misc/mmap64.c (__mmap64): Likewise.
8634         * misc/mprotect.c (__mprotect): Likewise.
8635         * misc/msync.c (msync): Likewise.
8636         * misc/munmap.c (__munmap): Likewise.
8637         * posix/posix_madvise.c (posix_madvise): Likewise.
8638         * socket/send.c (__send): Likewise.
8639         * socket/sendto.c (__sendto): Likewise.
8640         * socket/setsockopt.c (__setsockopt): Likewise.
8641         * string/memcmp.c (__ptr_t): Remove macro.
8642         (MEMCMP): Use void * instead of ptr_t.
8643         * string/memrchr.c (__ptr_t): Remove macro.
8644         (__memrchr): Use void * instead of ptr_t.
8645         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
8646         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
8647         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
8648         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
8649         * sysdeps/mach/msync.c (msync): Likewise.
8650         * sysdeps/mach/munmap.c (__munmap): Likewise.
8651         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
8652         Likewise.
8653         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8654         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
8655         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
8656         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
8657         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
8658         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
8659         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
8660         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
8661         Likewise.
8662         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
8663         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
8664         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
8665         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
8666         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
8667         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
8668         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
8669         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
8670         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
8671         Likewise.
8672         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
8673         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
8674         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
8675         (MEMCMP): Use void * instead of ptr_t.
8676         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
8677         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
8679 2017-08-08  Florian Weimer  <fweimer@redhat.com>
8681         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
8682         return statement.
8684 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
8686         [BZ #21913]
8687         * csu/libc-tls.c: Include <startup.h> first.
8688         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
8689         * elf/dl-tunables.c: Include <startup.h> first.
8690         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
8691         * sysdeps/generic/startup.h: New file.
8692         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
8693         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
8694         (I386_USE_SYSENTER): New.  Defined to 0.
8696 2017-08-08  Andreas Schwab  <schwab@suse.de>
8698         [BZ #21041]
8699         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
8700         * nptl/pt-system.c (system): Likewise.
8702 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8704         [BZ #21780]
8705         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
8706         EOPNOTSUPP.
8707         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
8708         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
8709         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
8710         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
8711         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8712         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8713         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8715 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
8717         [BZ #21899]
8718         * bits/sigaction.h (struct sigaction): Define sa_handler and
8719         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
8720         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8721         [__USE_XOPEN_EXTENDED].
8722         (SA_RESTART): Likewise.
8723         (SA_NODEFER): Likewise.
8724         (SA_RESETHAND): Likewise.
8725         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
8726         (struct sigaction): Define sa_handler and sa_sigaction using union
8727         also for [__USE_XOPEN_EXTENDED].
8728         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8729         [__USE_XOPEN_EXTENDED].
8730         (SA_RESTART): Likewise.
8731         (SA_NODEFER): Likewise.
8732         (SA_RESETHAND): Likewise.
8733         * sysdeps/unix/sysv/linux/bits/sigaction.h
8734         (struct sigaction): Define sa_handler and sa_sigaction using union
8735         also for [__USE_XOPEN_EXTENDED].
8736         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8737         [__USE_XOPEN_EXTENDED].
8738         (SA_RESTART): Likewise.
8739         (SA_NODEFER): Likewise.
8740         (SA_RESETHAND): Likewise.
8741         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
8742         (struct sigaction): Define sa_handler and sa_sigaction using union
8743         also for [__USE_XOPEN_EXTENDED].
8744         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8745         [__USE_XOPEN_EXTENDED].
8746         (SA_RESTART): Likewise.
8747         (SA_NODEFER): Likewise.
8748         (SA_RESETHAND): Likewise.
8749         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
8750         (struct sigaction): Define sa_handler and sa_sigaction using union
8751         also for [__USE_XOPEN_EXTENDED].
8752         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8753         [__USE_XOPEN_EXTENDED].
8754         (SA_RESTART): Likewise.
8755         (SA_NODEFER): Likewise.
8756         (SA_RESETHAND): Likewise.
8757         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
8758         (struct sigaction): Define sa_handler and sa_sigaction using union
8759         also for [__USE_XOPEN_EXTENDED].
8760         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8761         [__USE_XOPEN_EXTENDED].
8762         (SA_RESTART): Likewise.
8763         (SA_NODEFER): Likewise.
8764         (SA_RESETHAND): Likewise.
8765         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
8766         (struct sigaction): Define sa_handler and sa_sigaction using union
8767         also for [__USE_XOPEN_EXTENDED].
8768         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8769         [__USE_XOPEN_EXTENDED].
8770         (SA_RESTART): Likewise.
8771         (SA_NODEFER): Likewise.
8772         (SA_RESETHAND): Likewise.
8773         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
8774         (struct sigaction): Define sa_handler and sa_sigaction using union
8775         also for [__USE_XOPEN_EXTENDED].
8776         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8777         [__USE_XOPEN_EXTENDED].
8778         (SA_RESTART): Likewise.
8779         (SA_NODEFER): Likewise.  Define directly rather than as alias.
8780         (SA_RESETHAND): Likewise.
8781         (SA_INTERRUPT): Define only for [__USE_MISC].
8782         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
8783         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
8784         [__USE_MISC].
8785         (SA_STACK): Define only for [__USE_MISC].
8786         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
8787         (struct sigaction): Define sa_handler and sa_sigaction using union
8788         also for [__USE_XOPEN_EXTENDED].
8789         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8790         [__USE_XOPEN_EXTENDED].
8791         (SA_RESTART): Likewise.
8792         (SA_NODEFER): Likewise.
8793         (SA_RESETHAND): Likewise.
8794         (SA_NOPTRACE): Define only for [__USE_MISC].
8796         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
8797         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
8798         (struct catalog_info): Likewise.
8799         * inet/htontest.c (lo): Likewise.
8800         (foo): Likewise.
8801         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8802         * inet/inet_net.c (inet_network): Likewise.
8803         * inet/inet_netof.c (inet_netof): Likewise.
8804         * inet/rcmd.c (__ivaliduser): Likewise.
8805         (iruserok): Likewise.
8806         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
8807         * locale/programs/locale-spec.c (locale_special): Likewise.
8808         * nis/nis_findserv.c (struct findserv_req): Likewise.
8809         (__nis_findfastest_with_timeout): Likewise.
8810         * nss/test-netdb.c (test_network): Likewise.
8811         * resolv/inet_neta.c (inet_neta): Likewise.
8812         * resolv/ns_date.c (ns_datetosecs): Likewise.
8813         (SECS_PER_DAY): Likewise.
8814         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
8815         Likewise.
8816         * resolv/res_comp.c (__putlong): Likewise.
8817         (__putshort): Likewise.
8818         (_getlong): Likewise.
8819         (_getshort): Likewise.
8820         * resolv/res_debug.c (p_time): Likewise.
8821         (precsize_ntoa): Likewise.
8822         (precsize_aton): Likewise.
8823         (latlon2ul): Likewise.
8824         (loc_aton): Likewise.
8825         (loc_ntoa): Likewise.
8826         * resolv/res_hconf.c (struct netaddr): Likewise.
8827         (_res_hconf_reorder_addrs): Likewise.
8828         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8829         (clnttcp_control): Likewise.
8830         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8831         (clntudp_control): Likewise.
8832         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8833         (clntunix_control): Likewise.
8834         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8835         * sunrpc/rpc/auth.h (union des_block): Likewise.
8836         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
8837         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
8838         (xdrrec_create): Likewise.
8839         (xdrrec_endofrecord): Likewise.
8840         (flush_out): Likewise.
8841         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
8842         (xdrstdio_putlong): Likewise.
8843         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
8844         Likewise.
8846         * misc/sys/cdefs.h (__long_double_t): Remove.
8847         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
8848         instead of __long_double_t,
8849         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
8851 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8853         * benchtests/scripts/compare_strings.py: Avoid display error when
8854         running on a text terminal.
8856         * benchtests/scripts/compare_strings.py (main): Add an
8857         optional -base option.
8858         (process_results): New argument base_func.
8860         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
8861         hardcoding memcpy.
8862         * benchtests/bench-memcpy-large.c (test_name): Likewise.
8863         * benchtests/bench-memcpy-random.c (test_name): Likewise.
8865 2017-08-07  Andreas Schwab  <schwab@suse.de>
8867         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
8868         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
8869         * intl/Makefile ($(objpfx)tst-gettext.out)
8870         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
8871         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
8872         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
8873         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
8874         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
8875         * posix/Makefile ($(objpfx)globtest.out)
8876         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
8877         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
8878         ($(objpfx)tst-printf.out): Likewise.
8879         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
8880         ($(objpfx)tst-setcontext3.out): Likewise.
8882 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8884         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8885         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
8886         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
8887         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
8888         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
8889         and mptan-fma.
8890         (CFLAGS-doasin-fma.c): New.
8891         (CFLAGS-dosincos-fma.c): Likewise.
8892         (CFLAGS-e_asin-fma.c): Likewise.
8893         (CFLAGS-e_atan2-fma.c): Likewise.
8894         (CFLAGS-e_exp-fma.c): Likewise.
8895         (CFLAGS-e_log-fma.c): Likewise.
8896         (CFLAGS-e_pow-fma.c): Likewise.
8897         (CFLAGS-halfulp-fma.c): Likewise.
8898         (CFLAGS-mpa-fma.c): Likewise.
8899         (CFLAGS-mpatan-fma.c): Likewise.
8900         (CFLAGS-mpatan2-fma.c): Likewise.
8901         (CFLAGS-mpexp-fma.c): Likewise.
8902         (CFLAGS-mplog-fma.c): Likewise.
8903         (CFLAGS-mpsqrt-fma.c): Likewise.
8904         (CFLAGS-mptan-fma.c): Likewise.
8905         (CFLAGS-s_atan-fma.c): Likewise.
8906         (CFLAGS-sincos32-fma.c): Likewise.
8907         (CFLAGS-slowexp-fma.c): Likewise.
8908         (CFLAGS-slowpow-fma.c): Likewise.
8909         (CFLAGS-s_sin-fma.c): Likewise.
8910         (CFLAGS-s_tan-fma.c): Likewise.
8911         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
8912         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
8913         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
8914         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
8915         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
8916         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
8917         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
8918         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
8919         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
8920         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
8921         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
8922         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
8923         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
8924         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
8925         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
8926         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
8927         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
8928         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
8929         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
8930         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
8931         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
8932         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
8933         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
8934         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
8935         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
8936         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8937         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8938         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
8939         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8940         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8941         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8943 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
8945         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
8946         (min_of_type_f): New macro.
8947         (min_of_type_): Likewise.
8948         (min_of_type_l): Likewise.
8949         (min_of_type_f128): Likewise.
8950         (min_of_type): Define using __MATH_TG and taking an expression
8951         argument.
8952         (math_check_force_underflow): Pass expression instead of type to
8953         min_of_type.
8954         (math_check_force_underflow_nonneg): Likewise.
8956 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8958         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8959         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
8960         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
8962 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8964         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8965         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
8966         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
8967         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
8968         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
8969         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
8970         memcpy_chk-nonshared, mempcpy_chk-nonshared,
8971         memmove_chk-nonshared and memset_chk-nonshared
8972         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
8973         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
8974         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
8975         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
8976         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
8977         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
8978         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
8979         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
8980         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
8981         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
8982         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
8983         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
8984         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
8985         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
8986         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
8987         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
8988         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
8989         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
8990         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
8991         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
8992         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
8993         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
8994         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
8995         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
8996         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
8997         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
8998         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
8999         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
9000         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
9001         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
9002         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
9003         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
9004         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
9005         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9006         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9007         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
9008         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
9009         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
9010         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
9011         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
9012         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
9013         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
9014         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
9015         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
9016         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
9017         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
9018         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
9019         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
9020         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
9021         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
9022         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
9023         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
9024         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
9025         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
9026         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
9027         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
9028         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
9029         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
9030         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
9031         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
9032         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
9033         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
9034         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
9035         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
9036         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
9037         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
9038         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
9039         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
9040         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
9041         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
9042         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
9043         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9044         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9045         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9046         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9047         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9048         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9049         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9050         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9051         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9052         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9053         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9054         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9055         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9056         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
9057         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
9058         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9059         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
9060         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9061         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9062         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9063         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9064         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9065         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9066         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
9067         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
9068         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
9069         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
9070         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9071         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
9072         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9073         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9074         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9075         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9076         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9077         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9078         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9079         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9081 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9083         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
9084         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
9085         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
9086         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
9087         svml_d_log2_core-sse2, svml_d_log4_core-sse,
9088         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
9089         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
9090         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
9091         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
9092         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
9093         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
9094         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
9095         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
9096         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
9097         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
9098         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
9099         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
9100         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
9101         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
9102         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
9103         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
9104         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
9105         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
9106         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
9107         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
9108         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
9109         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
9110         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
9111         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
9112         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
9113         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
9114         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
9115         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
9116         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
9117         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
9118         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
9119         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
9120         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
9121         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
9122         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
9123         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
9124         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
9125         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
9126         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
9127         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
9128         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
9129         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
9130         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
9131         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
9132         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
9133         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
9134         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
9135         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
9136         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
9137         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
9138         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
9139         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
9140         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
9141         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
9142         ...
9143         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
9144         Don't include <sysdep.h> nor <init-arch.h>.
9145         (_ZGVbN2v_cos): Removed.
9146         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
9147         ...
9148         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
9149         Don't include <sysdep.h> nor <init-arch.h>.
9150         (_ZGVdN4v_cos): Removed.
9151         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
9152         ...
9153         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
9154         Don't include <sysdep.h> nor <init-arch.h>.
9155         (_ZGVeN8v_cos): Removed.
9156         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
9157         ...
9158         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
9159         Don't include <sysdep.h> nor <init-arch.h>.
9160         (_ZGVbN2v_exp): Removed.
9161         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
9162         ...
9163         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
9164         Don't include <sysdep.h> nor <init-arch.h>.
9165         (_ZGVdN4v_exp): Removed.
9166         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
9167         ...
9168         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
9169         Don't include <sysdep.h> nor <init-arch.h>.
9170         (_ZGVeN8v_exp): Removed.
9171         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
9172         ...
9173         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
9174         Don't include <sysdep.h> nor <init-arch.h>.
9175         (_ZGVbN2v_log): Removed.
9176         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
9177         ...
9178         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
9179         Don't include <sysdep.h> nor <init-arch.h>.
9180         (_ZGVdN4v_log): Removed.
9181         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
9182         ...
9183         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
9184         Don't include <sysdep.h> nor <init-arch.h>.
9185         (_ZGVeN8v_log): Removed.
9186         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
9187         ...
9188         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
9189         Don't include <sysdep.h> nor <init-arch.h>.
9190         (_ZGVbN2vv_pow): Removed.
9191         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
9192         ...
9193         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
9194         Don't include <sysdep.h> nor <init-arch.h>.
9195         (_ZGVdN4vv_pow): Removed.
9196         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
9197         ...
9198         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
9199         Don't include <sysdep.h> nor <init-arch.h>.
9200         (_ZGVeN8vv_pow): Removed.
9201         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
9202         ...
9203         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
9204         Don't include <sysdep.h> nor <init-arch.h>.
9205         (_ZGVbN2v_sin): Removed.
9206         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
9207         ...
9208         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
9209         Don't include <sysdep.h> nor <init-arch.h>.
9210         (_ZGVbN4v_sin): Removed.
9211         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
9212         ...
9213         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
9214         Don't include <sysdep.h> nor <init-arch.h>.
9215         (_ZGVbN8v_sin): Removed.
9216         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
9217         ...
9218         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
9219         Don't include <sysdep.h> nor <init-arch.h>.
9220         (_ZGVbN2vvv_sincos): Removed.
9221         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
9222         ...
9223         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
9224         Don't include <sysdep.h> nor <init-arch.h>.
9225         (_ZGVdN4vvv_sincos): Removed.
9226         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
9227         ...
9228         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
9229         Don't include <sysdep.h> nor <init-arch.h>.
9230         (_ZGVeN8vvv_sincos): Removed.
9231         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
9232         ...
9233         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
9234         Don't include <sysdep.h> nor <init-arch.h>.
9235         (_ZGVeN16v_cosf): Removed.
9236         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
9237         ...
9238         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
9239         Don't include <sysdep.h> nor <init-arch.h>.
9240         (_ZGVbN4v_cosf): Removed.
9241         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
9242         ...
9243         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
9244         Don't include <sysdep.h> nor <init-arch.h>.
9245         (_ZGVdN8v_cosf): Removed.
9246         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
9247         ...
9248         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
9249         Don't include <sysdep.h> nor <init-arch.h>.
9250         (_ZGVeN16v_expf): Removed.
9251         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
9252         ...
9253         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
9254         Don't include <sysdep.h> nor <init-arch.h>.
9255         (_ZGVbN4v_expf): Removed.
9256         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
9257         ...
9258         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
9259         Don't include <sysdep.h> nor <init-arch.h>.
9260         (_ZGVdN8v_expf): Removed.
9261         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
9262         ...
9263         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
9264         Don't include <sysdep.h> nor <init-arch.h>.
9265         (_ZGVeN16v_logf): Removed.
9266         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
9267         ...
9268         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
9269         Don't include <sysdep.h> nor <init-arch.h>.
9270         (_ZGVbN4v_logf): Removed.
9271         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
9272         ...
9273         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
9274         Don't include <sysdep.h> nor <init-arch.h>.
9275         (_ZGVdN8v_logf): Removed.
9276         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
9277         ...
9278         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
9279         Don't include <sysdep.h> nor <init-arch.h>.
9280         (_ZGVeN16vv_powf): Removed.
9281         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
9282         ...
9283         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
9284         Don't include <sysdep.h> nor <init-arch.h>.
9285         (_ZGVbN4vv_powf): Removed.
9286         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
9287         ...
9288         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
9289         Don't include <sysdep.h> nor <init-arch.h>.
9290         (_ZGVdN8vv_powf): Removed.
9291         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
9292         ...
9293         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
9294         Don't include <sysdep.h> nor <init-arch.h>.
9295         (_ZGVeN16vvv_sincosf): Removed.
9296         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
9297         ...
9298         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
9299         Don't include <sysdep.h> nor <init-arch.h>.
9300         (_ZGVbN4vvv_sincosf): Removed.
9301         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
9302         ...
9303         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
9304         Don't include <sysdep.h> nor <init-arch.h>.
9305         (_ZGVdN8vvv_sincosf): Removed.
9306         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
9307         ...
9308         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
9309         Don't include <sysdep.h> nor <init-arch.h>.
9310         (_ZGVeN16v_sinf): Removed.
9311         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
9312         ...
9313         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
9314         Don't include <sysdep.h> nor <init-arch.h>.
9315         (_ZGVbN4v_sinf): Removed.
9316         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
9317         ...
9318         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
9319         Don't include <sysdep.h> nor <init-arch.h>.
9320         (_ZGVdN8v_sinf): Removed.
9322 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9324         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9325         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
9326         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
9327         s_rint-sse4_1 and s_rintf-sse4_1.
9328         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
9329         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9330         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9331         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9332         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9333         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
9334         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
9335         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9336         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9337         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
9338         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
9339         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9340         (__ceil): Removed.
9341         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
9342         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
9343         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9344         (__ceilf): Removed.
9345         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
9346         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
9347         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9348         (__floor): Removed.
9349         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
9350         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
9351         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9352         (__floorf): Removed.
9353         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
9354         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
9355         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9356         (__nearbyint): Removed.
9357         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
9358         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
9359         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9360         (__nearbyintf): Removed.
9361         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
9362         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
9363         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9364         (__rint): Removed.
9365         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
9366         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
9367         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9368         (__rintf): Removed.
9370 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9372         * sysdeps/i386/start.S (_start): Check Check PIC instead of
9373         SHARED.  Avoid dynamic relocation against main in static PIE.
9375 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9377         [BZ #21815]
9378         * elf/Makefile (CFLAGS-tst-prelink.c): New.
9379         (LDFLAGS-tst-prelink): Likewise.
9381 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9383         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
9384         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
9385         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
9386         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9387         (INTERNAL_SYSCALL_NCS): Likewise.
9388         (LOADARGS_1): Likewise.
9389         (LOADARGS_5): Likewise.
9390         (RESTOREARGS_1): Likewise.
9391         (RESTOREARGS_5): Likewise.
9393 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9395         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
9396         (MEMPCPY_SYMBOL): Likewise.
9397         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
9398         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
9399         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
9400         in libc.a.
9401         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9402         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
9403         Likewise.
9404         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
9405         (__hidden_ver1): Don't use in libc.a.
9406         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
9407         (__mempcpy): Don't create a weak alias in libc.a.
9408         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
9409         libc.a.
9410         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
9411         (__hidden_ver1): Don't use in libc.a.
9413 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9415         * config.make.in (have-insert): New.
9416         * configure.ac (libc_cv_insert): New.  Set to yes if linker
9417         supports INSERT in linker script.
9418         (AC_SUBST(libc_cv_insert): New.
9419         * configure: Regenerated.
9420         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
9421         if $(have-insert) == yes.
9423 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9425         * elf/Makefile (tests): Add vismain only if
9426         $(have-protected-data) == yes.
9427         (tests-pie): Likewise.
9429 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9431         [BZ #21871]
9432         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
9433         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
9435 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9437         [BZ #21790]
9438         * sysdeps/i386/i586/memset.S
9439         (__memset_zero_constant_len_parameter): Removed.
9440         * sysdeps/i386/i686/memset.S
9441         (__memset_zero_constant_len_parameter): Likewise.
9442         * sysdeps/i386/i686/multiarch/memset_chk.S
9443         (__memset_zero_constant_len_parameter): Likewise.
9444         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
9445         Likewise.
9447 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
9449         * stdlib/getentropy.c (getentropy): Change return type to int.
9451 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
9453         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
9455 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
9457         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
9458         u_intN_t.
9459         * math/s_nexttowardf.c (__nexttowardf): Likewise.
9460         * sysdeps/generic/math_private.h (ieee_double_shape_type):
9461         Likewise.
9462         (ieee_float_shape_type): Likewise.
9463         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
9464         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
9465         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
9466         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9467         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
9468         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
9469         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
9470         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
9471         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9472         Likewise.
9473         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
9474         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9475         (__ieee754_yn): Likewise.
9476         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
9477         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
9478         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
9479         Likewise.
9480         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
9481         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
9482         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
9483         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
9484         (__erfc): Likewise.
9485         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
9486         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
9487         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
9488         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
9489         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
9490         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
9491         Likewise.
9492         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
9493         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
9494         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9495         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
9496         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
9497         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
9498         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
9499         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
9500         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
9501         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
9502         (__issignaling): Likewise.
9503         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
9504         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
9505         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9506         Likewise.
9507         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
9508         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
9509         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
9510         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
9511         Likewise.
9512         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
9513         Likewise.
9514         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
9515         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
9516         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
9517         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
9518         (__erfcf): Likewise.
9519         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
9520         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
9521         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
9522         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
9523         Likewise.
9524         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
9525         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
9526         Likewise.
9527         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9528         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
9529         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9530         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
9531         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
9532         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
9533         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
9534         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
9535         Likewise.
9536         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
9537         Likewise.
9538         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
9539         Likewise.
9540         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
9541         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9542         Likewise.
9543         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9544         Likewise.
9545         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9546         (__ieee754_ynl): Likewise.
9547         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9548         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
9549         Likewise.
9550         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
9551         Likewise.
9552         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
9553         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
9554         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9555         Likewise.
9556         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
9557         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
9558         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
9559         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
9560         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
9561         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
9562         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
9563         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
9564         Likewise.
9565         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
9566         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
9567         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
9568         Likewise.
9569         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9570         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
9571         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9572         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
9573         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
9574         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
9575         Likewise.
9576         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
9577         Likewise.
9578         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9579         Likewise.
9580         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9581         Likewise.
9582         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
9583         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
9584         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9585         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
9586         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
9587         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
9588         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
9589         Likewise.
9590         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9591         Likewise.
9592         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9593         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
9594         Likewise.
9595         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
9596         (__ieee754_remainderl): Likewise.
9597         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9598         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9599         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
9600         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
9601         Likewise.
9602         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
9603         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9604         Likewise.
9605         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
9606         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
9607         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
9608         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
9609         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
9610         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9611         Likewise.
9612         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
9613         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
9614         (__ieee754_y0l): Likewise.
9615         (pzero): Likewise.
9616         (qzero): Likewise.
9617         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
9618         (__ieee754_y1l): Likewise.
9619         (pone): Likewise.
9620         (qone): Likewise.
9621         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9622         (__ieee754_ynl): Likewise.
9623         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9624         (__ieee754_lgammal_r): Likewise.
9625         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
9626         Likewise.
9627         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
9628         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
9629         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
9630         (__erfcl): Likewise.
9631         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
9632         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
9633         Likewise.
9634         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9635         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
9636         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9637         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
9638         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
9639         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9640         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9641         Likewise.
9642         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
9643         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
9644         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
9645         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
9646         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9647         Likewise.
9648         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
9649         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
9650         Likewise.
9651         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
9652         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
9653         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
9654         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
9655         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9657 2017-08-03  Florian Weimer  <fweimer@redhat.com>
9659         [BZ #21885]
9660         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
9661         on memory allocation failure.
9663 2017-08-03  Alan Modra  <amodra@gmail.com>
9665         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
9666         tst-tlsopt-powerpc.c with function name change and no test harness.
9667         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
9668         Call tls_get_addr_opt_test.
9669         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
9670         (modules-names): Add mod-tlsopt-powerpc.
9671         (mod-tlsopt-powerpc.so-no-z-defs): Define.
9672         (tst-tlsopt-powerpc): Depend on .so.
9673         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
9674         define.  Expand use in TLS_GD and TLS_LD.
9676 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9678         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
9679         function.
9680         * sysdeps/posix/shm_open.c: Include <pthread.h>.
9682 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
9684         [BZ #21686]
9685         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
9686         comparing size with that of double.
9687         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
9688         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
9689         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
9690         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
9691         (__TGMATH_BINARY_REAL_IMAG): Likewise.
9692         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
9693         unsigned __int128 types.
9695 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
9697         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
9698         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
9699         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
9700         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
9701         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
9703 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
9705         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
9707 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
9709         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
9710         of SHARED.
9711         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
9712         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
9713         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9714         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
9715         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
9716         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
9717         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
9719 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
9721         [BZ #21685]
9722         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
9723         bit-field expressions passed to sizeof or typeof.
9724         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9725         (__TGMATH_F128): Likewise.
9726         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9727         (__TGMATH_CF128): Likewise.
9728         (__TGMATH_UNARY_REAL_ONLY): Likewise.
9729         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
9730         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
9731         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
9732         (__TGMATH_BINARY_REAL_ONLY): Likewise.
9733         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
9734         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
9735         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
9736         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
9737         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
9738         (__TGMATH_UNARY_REAL_IMAG): Likewise.
9739         (__TGMATH_UNARY_IMAG): Likewise.
9740         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9741         (__TGMATH_BINARY_REAL_IMAG): Likewise.
9742         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
9743         type.
9744         (define_vars_for_type): Handle bit_field type specially.
9745         (Tests.__init__): Declare structure with bit-field element.
9747 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
9749         [BZ #21791]
9750         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
9751         (MEMCPY_CHK): Define only if SHARED is defined.
9752         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
9753         Likewise.
9754         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
9755         Likewise.
9757 See ChangeLog.18 for earlier changes.