Update NEWS to add sinf optimization
[glibc.git] / ChangeLog
blobab41d9d947f40b9f6b852271fcb79515464223b8
1 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3         * NEWS: Add sinf to list of optimized functions.
5 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
7         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
8         (__HAVE_FLOAT32X): Likewise.
9         * manual/math.texi (Mathematics): Document support for _Float64
10         and _Float32x.
11         * math/Makefile (test-types): Add float64 and float32x.
12         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
13         functions.
14         * stdlib/Versions (GLIBC_2.27): Likewise.
15         * wcsmbs/Versions (GLIBC_2.27): Likewise.
16         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
17         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
23         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
30         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
31         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
33         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
34         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
35         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
36         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
37         Likewise.
38         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
39         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
40         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
41         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
42         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
43         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
44         Likewise.
45         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
46         Likewise.
47         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
48         Likewise.
49         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
50         Likewise.
51         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
52         Likewise.
53         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
54         Likewise.
55         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
56         Likewise.
57         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
58         Likewise.
59         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
60         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
61         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
62         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
63         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
64         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
65         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
66         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
67         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
68         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
69         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
70         Likewise.
71         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
72         Likewise.
73         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
74         Likewise.
75         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
76         Likewise.
77         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
78         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
79         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
80         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
81         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
82         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
83         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
84         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
86 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
88         * bits/floatn-common.h: Include <bits/long-double.h>.
89         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
90         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
91         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
92         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
93         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
94         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
95         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
96         (__builtin_huge_valf64): Use __builtin_huge_vall.
97         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
98         (__builtin_inff64): Use __builtin_infl.
99         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
100         (__builtin_nanf64): Use __builtin_nanl.
101         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
102         (__builtin_nansf64): Use __builtin_nansl.
104 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>,
105             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>,
106             Carlos O'Donnell <carlos@redhat.com>
108         * elf/dl-tunables.list: Add elision parameters.
109         * manual/tunables.texi: Add entries about elision tunable.
110         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
111         Add callback functions to dynamically enable/disable elision.
112         Add multiple callbacks functions to set elision parameters.
113         Deleted __libc_enable_secure check.
114         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
115         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
116         * configure: Regenerated.
117         * configure.ac: Option enable_lock_elision was deleted.
118         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
119         * config.make.in: Remove references to enable_lock_elision.
120         * manual/install.texi: Elision configure option was removed.
121         * INSTALL: Regenerated to remove enable_lock_elision.
122         * nptl/Makefile:
123         Disable elision so it can verify error case for destroying a mutex.
124         * sysdeps/powerpc/nptl/elide.h:
125         Cleanup ENABLE_LOCK_ELISION check.
126         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
127         * sysdeps/s390/configure: Regenerated.
128         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
129         * nptl/tst-mutex8.c:
130         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
131         * sysdeps/powerpc/powerpc32/sysdep.h:
132         Deleted all ENABLE_LOCK_ELISION checks.
133         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
134         * sysdeps/powerpc/sysdep.h: Likewise.
135         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
136         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
137         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
138         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
139         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
140         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
141         enable-lock-elision.
143 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
145         * stdlib/strtod.c: Include <bits/floatn.h>.
146         (BUILD_DOUBLE): New macro.
147         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
148         (strtof64): Define and later undefine as macro.  Define as weak
149         alias if [!USE_WIDE_CHAR].
150         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
151         (wcstof64): Define and later undefine as macro.  Define as weak
152         alias if [USE_WIDE_CHAR].
153         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
154         (strtof32x): Define and later undefine as macro.  Define as weak
155         alias if [!USE_WIDE_CHAR].
156         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
157         (wcstof32x): Define and later undefine as macro.  Define as weak
158         alias if [USE_WIDE_CHAR].
159         * stdlib/strtod_l.c: Include <bits/floatn.h>.
160         (BUILD_DOUBLE): New macro.
161         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
162         (strtof64_l): Define and later undefine as macro.  Define as weak
163         alias if [!USE_WIDE_CHAR].
164         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
165         (wcstof64_l): Define and later undefine as macro.  Define as weak
166         alias if [USE_WIDE_CHAR].
167         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
168         (strtof32x_l): Define and later undefine as macro.  Define as weak
169         alias if [!USE_WIDE_CHAR].
170         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
171         (wcstof32x_l): Define and later undefine as macro.  Define as weak
172         alias if [USE_WIDE_CHAR].
174 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
176         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
177         (reduced): Use ones as double instead of integer.
179 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
181         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
183 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
185         * stdlib/strfromd.c: Include <bits/floatn.h>.
186         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
187         and later undefine as macro and define as weak alias.
188         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
189         Likewise.
191         * math/test-float32x.h: New file.
192         * math/test-float64.h: Likewise.
194         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
195         (libm_alias_double_other_r_f64): New macro.
196         (libm_alias_double_other_r_f32x): Likewise.
197         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
198         libm_alias_double_other_r_f32x.
199         (libm_alias_double_r): Use semicolon before call to
200         libm_alias_double_other_r.
201         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
202         <bits/floatn.h>.
203         (libm_alias_double_other_r_f64): New macro.
204         (libm_alias_double_other_r_f32x): Likewise.
205         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
206         libm_alias_double_other_r_f32x.
208 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
210         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
211         int.
212         (SINF_FUNC): Likewise.  Replace floor with simple casts.
214 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
216         [BZ #22517]
217         * localedata/Makefile: Add et_EE.UTF-8 to test-input
218         and to the list of locales to be built for testing.
219         * localedata/et_EE.UTF-8.in: New file for testing the collation.
220         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
221         and build the collation rules upon that.
223 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
225         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
226         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
227         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
228         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
229         instead of __insn__xxx.
230         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
231         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
232         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
233         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
234         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
235         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
237 2017-12-05  Florian Weimer  <fweimer@redhat.com>
239         Linux: Implement interfaces for memory protection keys
240         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
241         xsignal, xsysconf.
242         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
243         * support/xunistd.h (xsysconf): Declare.
244         * support/xraise.c: New file.
245         * support/xsigaction.c: Likewise.
246         * support/xsignal.c: Likewise.
247         * support/xsysconf.c: Likewise.
248         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
249         pkey_set, pkey_get, pkey_mprotect.
250         [misc] (tests): Add tst-pkey.
251         (tst-pkey): Link with -lpthread.
252         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
253         pkey_free, pkey_set, pkey_get, pkey_mprotect.
254         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
255         (PKEY_DISABLE_WRITE): Define.
256         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
257         Declare.
258         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
259         (SEGV_PKUERR): Add.
260         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
261         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
262         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
263         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
264         Add.
265         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
266         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
267         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
268         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
269         * sysdeps/unix/sysv/linux/**.abilist: Update.
271 2017-12-05  Florian Weimer  <fweimer@redhat.com>
273         * support/tst-test_compare.c (subprocess): Use long long instead
274         of long argument for consistent type width across 32-bit and
275         64-bit architectures.
276         (do_test): Adjust expected output.
278 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
280         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
281         (cosf): Define using libm_alias_float.
282         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
283         (fabsf): Define using libm_alias_float.
284         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
285         (fmaf): Define using libm_alias_float.
286         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
287         (rintf): Define using libm_alias_float.
288         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
289         (sinf): Define using libm_alias_float.
290         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
291         <libm-alias-float.h>.
292         (modff): Define using libm_alias_float.
293         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
294         <libm-alias-float.h>.
295         (logbf): Define using libm_alias_float.
296         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
297         <libm-alias-float.h>.
298         (ceilf): Define using libm_alias_float.
299         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
300         <libm-alias-float.h>.
301         (copysignf): Define using libm_alias_float.
302         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
303         <libm-alias-float.h>.
304         (floorf): Define using libm_alias_float.
305         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
306         <libm-alias-float.h>.
307         (llrintf): Define using libm_alias_float.
308         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
309         <libm-alias-float.h>.
310         (llroundf): Define using libm_alias_float.
311         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
312         <libm-alias-float.h>.
313         (lrintf): Define using libm_alias_float.
314         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
315         <libm-alias-float.h>.
316         (lroundf): Define using libm_alias_float.
317         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
318         <libm-alias-float.h>.
319         (nearbyintf): Define using libm_alias_float.
320         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
321         <libm-alias-float.h>.
322         (rintf): Define using libm_alias_float.
323         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
324         <libm-alias-float.h>.
325         (roundf): Define using libm_alias_float.
326         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
327         <libm-alias-float.h>.
328         (truncf): Define using libm_alias_float.
329         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
330         Include <libm-alias-float.h>.
331         (ceilf): Define using libm_alias_float.
332         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
333         Include <libm-alias-float.h>.
334         (copysignf): Define using libm_alias_float.
335         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
336         Include <libm-alias-float.h>.
337         (floorf): Define using libm_alias_float.
338         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
339         Include <libm-alias-float.h>.
340         (llrintf): Define using libm_alias_float.
341         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
342         Include <libm-alias-float.h>.
343         (llroundf): Define using libm_alias_float.
344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
345         Include <libm-alias-float.h>.
346         (logbf): Define using libm_alias_float.
347         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
348         Include <libm-alias-float.h>.
349         (lrintf): Define using libm_alias_float.
350         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
351         Include <libm-alias-float.h>.
352         (lroundf): Define using libm_alias_float.
353         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
354         Include <libm-alias-float.h>.
355         (modff): Define using libm_alias_float.
356         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
357         Include <libm-alias-float.h>.
358         (roundf): Define using libm_alias_float.
359         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
360         Include <libm-alias-float.h>.
361         (truncf): Define using libm_alias_float.
362         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
363         <libm-alias-float.h>.
364         (llrintf): Define using libm_alias_float.
365         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
366         <libm-alias-float.h>.
367         (llroundf): Define using libm_alias_float.
368         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
369         <libm-alias-float.h>.
370         (ceilf): Define using libm_alias_float.
371         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
372         <libm-alias-float.h>.
373         (floorf): Define using libm_alias_float.
374         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
375         <libm-alias-float.h>.
376         (llroundf): Define using libm_alias_float.
377         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
378         <libm-alias-float.h>.
379         (lroundf): Define using libm_alias_float.
380         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
381         <libm-alias-float.h>.
382         (roundf): Define using libm_alias_float.
383         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
384         <libm-alias-float.h>.
385         (truncf): Define using libm_alias_float.
386         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
387         <libm-alias-float.h>.
388         (copysignf): Define using libm_alias_float.
389         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
390         <libm-alias-float.h>.
391         (llrintf): Define using libm_alias_float.
392         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
393         <libm-alias-float.h>.
394         (llroundf): Define using libm_alias_float.
395         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
396         <libm-alias-float.h>.
397         (lrintf): Define using libm_alias_float.
398         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
399         <libm-alias-float.h>.
400         (lroundf): Define using libm_alias_float.
401         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
402         <libm-alias-float.h>.
403         (ceilf): Define using libm_alias_float.
404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
405         <libm-alias-float.h>.
406         (copysignf): Define using libm_alias_float.
407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
408         <libm-alias-float.h>.
409         (cosf): Define using libm_alias_float.
410         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
411         <libm-alias-float.h>.
412         (floorf): Define using libm_alias_float.
413         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
414         <libm-alias-float.h>.
415         (llrintf): Define using libm_alias_float.
416         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
417         <libm-alias-float.h>.
418         (llroundf): Define using libm_alias_float.
419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
420         <libm-alias-float.h>.
421         (logbf): Define using libm_alias_float.
422         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
423         <libm-alias-float.h>.
424         (modff): Define using libm_alias_float.
425         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
426         <libm-alias-float.h>.
427         (roundf): Define using libm_alias_float.
428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
429         <libm-alias-float.h>.
430         (sinf): Define using libm_alias_float.
431         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
432         <libm-alias-float.h>.
433         (truncf): Define using libm_alias_float.
434         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
435         <libm-alias-float.h>.
436         (ceilf): Define using libm_alias_float.
437         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
438         <libm-alias-float.h>.
439         (copysignf): Define using libm_alias_float.
440         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
441         <libm-alias-float.h>.
442         (floorf): Define using libm_alias_float.
443         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
444         <libm-alias-float.h>.
445         (llrintf): Define using libm_alias_float.
446         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
447         <libm-alias-float.h>.
448         (llroundf): Define using libm_alias_float.
449         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
450         <libm-alias-float.h>.
451         (nearbyintf): Define using libm_alias_float.
452         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
453         <libm-alias-float.h>.
454         (rintf): Define using libm_alias_float.
455         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
456         <libm-alias-float.h>.
457         (roundf): Define using libm_alias_float.
458         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
459         <libm-alias-float.h>.
460         (truncf): Define using libm_alias_float.
461         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
462         <libm-alias-float.h>.
463         (ceilf): Define using libm_alias_float.
464         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
465         <libm-alias-float.h>.
466         (floorf): Define using libm_alias_float.
467         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
468         <libm-alias-float.h>.
469         (llroundf): Define using libm_alias_float.
470         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
471         <libm-alias-float.h>.
472         (roundf): Define using libm_alias_float.
473         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
474         <libm-alias-float.h>.
475         (truncf): Define using libm_alias_float.
476         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
477         <libm-alias-float.h>.
478         (copysignf): Define using libm_alias_float.
479         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
480         <libm-alias-float.h>.
481         (llrintf): Define using libm_alias_float.
482         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
483         <libm-alias-float.h>.
484         (llroundf): Define using libm_alias_float.
485         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
486         <libm-alias-float.h>.
487         (cosf): Define using libm_alias_float.
488         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
489         <libm-alias-float.h>.
490         (llrintf): Define using libm_alias_float.
491         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
492         <libm-alias-float.h>.
493         (llroundf): Define using libm_alias_float.
494         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
495         <libm-alias-float.h>.
496         (sinf): Define using libm_alias_float.
498 2017-12-04  Florian Weimer  <fweimer@redhat.com>
500         * support/check.h (TEST_COMPARE): Define.
501         (support_test_compare_failure): Declare.
502         * support/Makefile (libsupport-routines): Add
503         support_test_compare_failure.
504         (tests): Add tst-test_compare.
505         * support /support_test_compare_failure.c: New file.
506         * support/tst-test_compare.c: Likewise.
508 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
510         [BZ #22527]
511         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
512         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
513         available, this rewrite of the collation rules does reproduce
514         the test file in the same order.
516 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
518         [BZ #10580]
519         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
520         digraphs in the month and day names. Using single code points for
521         digraphs is deprecated.  While there are dedicated Unicode
522         codepoints, for the digraphs, these are included for backwards
523         compatibility and modern texts use a sequence of Basic Latin
524         characters. See: https://www.unicode.org/faq/ligature_digraph.html
525         This makes the month and day names agree exactly with CLDR now,
526         CLDR does not use the single code points for the digraphs either.
528 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
530         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
532 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
534         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
535         of floor.
537 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
539         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
540         Define only for libc.so.
542 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
544         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
545         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
546          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
547         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
548         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
550 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
552         [BZ #5997]
553         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
555 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
557         [BZ libc/19170]
558         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
559         PREINIT_FUNCTION_WEAK is nonzero.
560         (gmon_initializer): New function.  Put procedure label for it in
561         .init_array section.
562         (_init): Don't call PREINIT_FUNCTION.
563         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
564         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
565         value when map argument is null.
567         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
568         depi instruction from PIC pc-relative sequence.
569         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
570         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
571         (elf_machine_load_address): Likewise.
572         (elf_machine_runtime_setup): Likewise.
574 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
576         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
577         <libm-alias-double.h>.
578         (logb): Define using libm_alias_double.
579         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
580         <libm-alias-double.h>.
581         (copysign): Define using libm_alias_double.
582         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
583         <libm-alias-double.h>.
584         (llrint): Define using libm_alias_double.
585         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
586         <libm-alias-double.h>.
587         (llround): Define using libm_alias_double.
588         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
589         <libm-alias-double.h>.
590         (lrint): Define using libm_alias_double.
591         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
592         <libm-alias-double.h>.
593         (lround): Define using libm_alias_double.
594         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
595         Include <libm-alias-double.h>.
596         (copysign): Define using libm_alias_double.
597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
598         Include <libm-alias-double.h>.
599         (llrint): Define using libm_alias_double.
600         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
601         Include <libm-alias-double.h>.
602         (llround): Define using libm_alias_double.
603         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
604         <libm-alias-double.h>.
605         (logb): Define using libm_alias_double.
606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
607         Include <libm-alias-double.h>.
608         (lrint): Define using libm_alias_double.
609         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
610         Include <libm-alias-double.h>.
611         (lround): Define using libm_alias_double.
612         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
613         <libm-alias-double.h>.
614         (llrint): Define using libm_alias_double.
615         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
616         <libm-alias-double.h>.
617         (llround): Define using libm_alias_double.
618         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
619         <libm-alias-double.h>.
620         (llround): Define using libm_alias_double.
621         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
622         <libm-alias-double.h>.
623         (lround): Define using libm_alias_double.
624         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
625         <libm-alias-double.h>.
626         (copysign): Define using libm_alias_double.
627         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
628         <libm-alias-double.h>.
629         (llrint): Define using libm_alias_double.
630         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
631         <libm-alias-double.h>.
632         (llround): Define using libm_alias_double.
633         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
634         <libm-alias-double.h>.
635         (lrint): Define using libm_alias_double.
636         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
637         <libm-alias-double.h>.
638         (lround): Define using libm_alias_double.
639         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
640         <libm-alias-double.h>.
641         (copysign): Define using libm_alias_double.
642         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
643         <libm-alias-double.h>.
644         (llrint): Define using libm_alias_double.
645         (lrint): Likewise.
646         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
647         <libm-alias-double.h>.
648         (llround): Define using libm_alias_double.
649         (lround): Likewise.
650         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
651         <libm-alias-double.h>.
652         (logb): Define using libm_alias_double.
653         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
654         <libm-alias-double.h>.
655         (copysign): Define using libm_alias_double.
656         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
657         <libm-alias-double.h>.
658         (llrint): Define using libm_alias_double.
659         (lrint): Likewise.
660         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
661         <libm-alias-double.h>.
662         (llround): Define using libm_alias_double.
663         (lround): Likewise.
664         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
665         <libm-alias-double.h>.
666         (llround): Define using libm_alias_double.
667         (lround): Likewise.
668         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
669         <libm-alias-double.h>.
670         (copysign): Define using libm_alias_double.
671         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
672         <libm-alias-double.h>.
673         (llrint): Define using libm_alias_double.
674         (lrint): Likewise.
675         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
676         <libm-alias-double.h>.
677         (llround): Define using libm_alias_double.
678         (lround): Likewise.
679         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
680         <libm-alias-double.h>.
681         (llrint): Define using libm_alias_double.
682         (lrint): Likewise.
683         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
684         <libm-alias-double.h>.
685         (llround): Define using libm_alias_double.
686         (lround): Likewise.
688 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
690         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
691         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
692         compat symbol based on llround.
694         * sysdeps/powerpc/power7/fpu/s_logb.c
695         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
696         symbol based on __logb, not on logb.
697         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
698         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
700         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
702         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
703         (rint): Define using libm_alias_double.
704         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
705         <libm-alias-double.h>.
706         (modf): Define using libm_alias_double.
707         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
708         <libm-alias-double.h>.
709         (ceil): Define using libm_alias_double.
710         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
711         <libm-alias-double.h>.
712         (floor): Define using libm_alias_double.
713         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
714         <libm-alias-double.h>.
715         (nearbyint): Define using libm_alias_double.
716         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
717         <libm-alias-double.h>.
718         (rint): Define using libm_alias_double.
719         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
720         <libm-alias-double.h>.
721         (round): Define using libm_alias_double.
722         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
723         <libm-alias-double.h>.
724         (trunc): Define using libm_alias_double.
725         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
726         <libm-alias-double.h>.
727         (ceil): Define using libm_alias_double.
728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
729         Include <libm-alias-double.h>.
730         (floor): Define using libm_alias_double.
731         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
732         <libm-alias-double.h>.
733         (modf): Define using libm_alias_double.
734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
735         Include <libm-alias-double.h>.
736         (round): Define using libm_alias_double.
737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
738         Include <libm-alias-double.h>.
739         (trunc): Define using libm_alias_double.
740         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
741         <libm-alias-double.h>.
742         (ceil): Define using libm_alias_double.
743         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
744         <libm-alias-double.h>.
745         (floor): Define using libm_alias_double.
746         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
747         <libm-alias-double.h>.
748         (round): Define using libm_alias_double.
749         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
750         <libm-alias-double.h>.
751         (trunc): Define using libm_alias_double.
752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
753         <libm-alias-double.h>.
754         (ceil): Define using libm_alias_double.
755         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
756         <libm-alias-double.h>.
757         (floor): Define using libm_alias_double.
758         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
759         <libm-alias-double.h>.
760         (modf): Define using libm_alias_double.
761         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
762         <libm-alias-double.h>.
763         (round): Define using libm_alias_double.
764         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
765         <libm-alias-double.h>.
766         (trunc): Define using libm_alias_double.
767         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
768         <libm-alias-double.h>.
769         (ceil): Define using libm_alias_double.
770         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
771         <libm-alias-double.h>.
772         (floor): Define using libm_alias_double.
773         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
774         <libm-alias-double.h>.
775         (nearbyint): Define using libm_alias_double.
776         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
777         <libm-alias-double.h>.
778         (rint): Define using libm_alias_double.
779         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
780         <libm-alias-double.h>.
781         (round): Define using libm_alias_double.
782         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
783         <libm-alias-double.h>.
784         (trunc): Define using libm_alias_double.
785         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
786         <libm-alias-double.h>.
787         (ceil): Define using libm_alias_double.
788         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
789         <libm-alias-double.h>.
790         (floor): Define using libm_alias_double.
791         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
792         <libm-alias-double.h>.
793         (round): Define using libm_alias_double.
794         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
795         <libm-alias-double.h>.
796         (trunc): Define using libm_alias_double.
798         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
799         (fabs): Define using libm_alias_double.
800         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
801         (fma): Define using libm_alias_double.
802         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
803         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
804         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
805         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
807 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
809         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
811         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
812         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
813         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
816         due redirect macro.
818 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
820         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
822 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
824         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
825         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
826         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
827         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
830         (libm-sysdep_routines): Add s_nearbyintf-generic and
831         s_nearbyint-generic.
832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
833         New file.
834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
836         Likewise.
837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
838         Likewise.
839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
840         file.
841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
842         Likewise.
844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
845         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
847         file.
848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
850         Likewise.
851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
856         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
858         file.
859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
861         Likewise.
862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
867         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
869         file.
870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
872         Likewise.
873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
878         (sysdep_calls): New rule.
879         (sysdep_routines): Use sysdep_calls as base.
880         (libm-sysdep_routines): Add generic rule for symbols shared with
881         libc.  Add s_copysign-generic and s_copysign-generic objects.
882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
883         New file.
884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
886         Likewise.
887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
891 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
893         [BZ #22519]
894         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
895         the list of locales to be built for testing.
896         * localedata/is_IS.UTF-8.in: New file.
897         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
898         on iso14651_t1.
900 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
902         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
903         <libm-alias-float.h>.
904         (fabsf): Define using libm_alias_float.
906 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
908         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
910 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
912         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
913         <libm-alias-float.h>.
914         (fabsf): Define using libm_alias_float.
915         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
916         <libm-alias-float.h>.
917         (lrintf): Define using libm_alias_float.
918         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
919         <libm-alias-float.h>.
920         (rintf): Define using libm_alias_float.
922         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
923         <libm-alias-double.h>.
924         (fabs): Define using libm_alias_double.
925         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
926         <libm-alias-double.h>.
927         (lrint): Define using libm_alias_double.
928         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
929         <libm-alias-double.h>.
930         (rint): Define using libm_alias_double.
932         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
933         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
934         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
935         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
936         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
937         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
938         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
939         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
940         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
941         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
942         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
943         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
944         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
945         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
946         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
947         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
948         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
949         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
950         s_atan_template.c.
951         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
952         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
953         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
954         s_ceil_template.c.
955         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
956         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
957         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
958         s_cos_template.c.
959         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
960         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
961         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
962         s_expm1_template.c.
963         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
964         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
965         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
966         s_fabs_template.c.
967         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
968         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
969         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
970         s_floor_template.c.
971         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
972         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
973         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
974         s_frexp_template.c.
975         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
976         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
977         s_lrint_template.c.
978         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
979         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
980         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
981         s_modf_template.c.
982         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
983         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
984         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
985         s_nearbyint_template.c.
986         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
987         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
988         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
989         s_remquo_template.c.
990         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
991         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
992         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
993         s_rint_template.c.
994         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
995         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
996         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
997         s_sin_template.c.
998         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
999         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
1000         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
1001         s_sincos_template.c.
1002         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
1003         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
1004         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
1005         s_tan_template.c.
1006         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
1007         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
1008         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
1009         s_tanh_template.c.
1010         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
1011         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
1012         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
1013         s_trunc_template.c.
1014         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
1015         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
1016         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
1017         s_atan.c instead of including s_atan.c.
1018         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
1019         s_atanf.c instead of including s_atanf.c.
1020         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
1021         s_atanl.c instead of including s_atanl.c.
1022         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
1023         instead of s_atan.c.
1024         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
1025         instead of s_atanf.c.
1026         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
1027         instead of s_atanl.c.
1029         * scripts/update-copyrights: Do not handle intl/plural.c
1030         specially.
1032 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
1034         [BZ #22432]
1035         * configure.ac (BISON): Require to be present.
1036         * configure: Regenerated.
1037         * intl/Makefile (generated): Add plural.c.
1038         [$(BISON) != no]: Make code unconditional.
1039         (plural.c): Change rule to $(objpfx)plural.c.
1040         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
1041         * intl/plural.c: Remove.
1042         * manual/install.texi (Tools for Compilation): Document bison as
1043         required.
1044         * INSTALL: Regenerated.
1046 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
1048         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
1049         <libm-alias-double.h>.
1050         (llrint): Define using libm_alias_double.
1051         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
1052         <libm-alias-float.h>.
1053         (llrintf): Define using libm_alias_float.
1054         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
1055         <libm-alias-ldouble.h>.
1056         (llrintl): Define using libm_alias_ldouble.
1058         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
1059         declare_mgen_alias instead of weak_alias.
1060         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
1061         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
1062         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
1064 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1066         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
1067         Add add_n-generic.
1068         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
1069         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
1070         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
1072         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
1073         Add submul_1-generic.
1074         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
1075         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
1076         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
1078         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
1079         Add addmul_1-generic.
1080         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
1081         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
1082         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
1084         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
1085         Add sub_n-generic.
1086         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
1087         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
1088         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
1090         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
1091         Add mul_1-generic.
1092         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
1093         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
1094         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
1096 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
1098         According to CLDR, collation rules for Serbian and Bosnian
1099         should be the same as for Croatian.
1101         [BZ #22534]
1102         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
1103         and to the list of locales to be built for testing.
1104         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
1105         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
1106         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
1107         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
1109 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
1111         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
1112         to make test case pass.
1113         * localedata/hr_HR.UTF-8.in: Add more test strings.
1115 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
1117         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
1119 2017-11-30  Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
1121         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
1122         the list of locales to built for testing.
1123         * localedata/hr_HR.UTF-8.in: New file.
1125 2017-11-30  Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
1127         [BZ #10580]
1128         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
1129         iso14651_t1.
1130         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
1131         CLDR (except use ligatures for the digraphs, CLDR does not use
1132         the ligatures), add first_workday, some fixes in the date and time
1133         formats.
1134         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
1135         for Đ and đ.
1136         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
1137         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
1138         Add int_p_cs_precedes and int_n_cs_precedes.
1139         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
1140         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
1141         LC_MONETARY now).
1142         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
1143         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
1144         name_miss.
1145         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
1146         and lang_lib. Change postal_fmt.
1148 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
1150         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
1151         <setjmp.h>.
1152         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
1153         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
1154         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
1155         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
1156         * sysdeps/generic/setjmpP.h: New file.
1157         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
1158         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
1159         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
1160         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
1161         Add jmp_buf-ssp.sym.
1162         (tests): Add tst-saved_mask-1.
1164 2017-11-30  Arjun Shankar  <arjun@redhat.com>
1166         [BZ #22375]
1167         * malloc/malloc.c (__libc_malloc): Use checked_request2size
1168         instead of request2size.
1170 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
1172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
1173         (__lllrint): Remove alias.
1174         (lllrint): Likewise.
1175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
1176         (__lllrintf): Likewise.
1177         (lllrintf): Likewise.
1179         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
1180         <libm-alias-float.h>.
1181         (copysignf): Define using libm_alias_float.
1182         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
1183         <libm-alias-float.h>.
1184         (fabsf): Define using libm_alias_float.
1185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
1186         Include <libm-alias-float.h>.
1187         (copysignf): Define using libm_alias_float.
1188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
1189         <libm-alias-float.h>.
1190         (fabsf): Define using libm_alias_float.
1191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
1192         <libm-alias-float.h>.
1193         (fdimf): Define using libm_alias_float.
1194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
1195         <libm-alias-float.h>.
1196         (fmaf): Define using libm_alias_float.
1197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
1198         <libm-alias-float.h>.
1199         (llrintf): Define using libm_alias_float.
1200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
1201         Include <libm-alias-float.h>.
1202         (nearbyintf): Define using libm_alias_float.
1203         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
1204         <libm-alias-float.h>.
1205         (rintf): Define using libm_alias_float.
1206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
1207         <libm-alias-float.h>.
1208         (llrintf): Define using libm_alias_float.
1209         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
1210         <libm-alias-float.h>.
1211         (lrintf): Define using libm_alias_float.
1212         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
1213         <libm-alias-float.h>.
1214         (nearbyintf): Define using libm_alias_float.
1215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
1216         <libm-alias-float.h>.
1217         (rintf): Define using libm_alias_float.
1218         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
1219         <libm-alias-float.h>.
1220         (ceilf): Define using libm_alias_float.
1221         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
1222         <libm-alias-float.h>.
1223         (floorf): Define using libm_alias_float.
1224         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
1225         <libm-alias-float.h>.
1226         (fmaf): Define using libm_alias_float.
1227         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
1228         <libm-alias-float.h>.
1229         (lrintf): Define using libm_alias_float.
1230         (llrintf): Likewise.
1231         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
1232         <libm-alias-float.h>.
1233         (nearbyintf): Define using libm_alias_float.
1234         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
1235         <libm-alias-float.h>.
1236         (rintf): Define using libm_alias_float.
1237         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
1238         <libm-alias-float.h>.
1239         (truncf): Define using libm_alias_float.
1240         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
1241         <libm-alias-float.h>.
1242         (copysignf): Define using libm_alias_float.
1243         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
1244         <libm-alias-float.h>.
1245         (fabsf): Define using libm_alias_float.
1246         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
1247         <libm-alias-float.h>.
1248         (lrintf): Define using libm_alias_float.
1249         (llrintf): Likewise.
1250         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
1251         <libm-alias-float.h>.
1252         (nearbyintf): Define using libm_alias_float.
1253         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
1254         <libm-alias-float.h>.
1255         (rintf): Define using libm_alias_float.
1257 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
1259         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
1260         <libm-alias-double.h>.
1261         (copysign): Define using libm_alias_double.
1262         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
1263         <libm-alias-double.h>.
1264         (fabs): Define using libm_alias_double.
1265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1266         Include <libm-alias-double.h>.
1267         (copysign): Define using libm_alias_double.
1268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
1269         <libm-alias-double.h>.
1270         (fabs): Define using libm_alias_double.
1271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
1272         <libm-alias-double.h>.
1273         (fdim): Define using libm_alias_double.
1274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
1275         <libm-alias-double.h>.
1276         (fma): Define using libm_alias_double.
1277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
1278         <libm-alias-double.h>.
1279         (llrint): Define using libm_alias_double.
1280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
1281         Include <libm-alias-double.h>.
1282         (nearbyint): Define using libm_alias_double.
1283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
1284         <libm-alias-double.h>.
1285         (rint): Define using libm_alias_double.
1286         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
1287         <libm-alias-double.h>.
1288         (fabs): Define using libm_alias_double.
1289         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
1290         <libm-alias-double.h>.
1291         (llrint): Define using libm_alias_double.
1292         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
1293         <libm-alias-double.h>.
1294         (nearbyint): Define using libm_alias_double.
1295         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
1296         <libm-alias-double.h>.
1297         (rint): Define using libm_alias_double.
1298         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
1299         <libm-alias-double.h>.
1300         (ceil): Define using libm_alias_double.
1301         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
1302         <libm-alias-double.h>.
1303         (floor): Define using libm_alias_double.
1304         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
1305         <libm-alias-double.h>.
1306         (fma): Define using libm_alias_double.
1307         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
1308         <libm-alias-double.h>.
1309         (lrint): Define using libm_alias_double.
1310         (llrint): Likewise.
1311         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
1312         <libm-alias-double.h>.
1313         (nearbyint): Define using libm_alias_double.
1314         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
1315         <libm-alias-double.h>.
1316         (rint): Define using libm_alias_double.
1317         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
1318         <libm-alias-double.h>.
1319         (trunc): Define using libm_alias_double.
1320         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
1321         <libm-alias-double.h>.
1322         (copysign): Define using libm_alias_double.
1323         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
1324         <libm-alias-double.h>.
1325         (fabs): Define using libm_alias_double.
1326         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
1327         <libm-alias-double.h>.
1328         (lrint): Define using libm_alias_double.
1329         (llrint): Likewise.
1330         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
1331         <libm-alias-double.h>.
1332         (nearbyint): Define using libm_alias_double.
1333         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
1334         <libm-alias-double.h>.
1335         (rint): Define using libm_alias_double.
1337         [BZ #22229]
1338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
1339         <math_ldbl_opt.h>.
1340         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
1342         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
1343         SPARC --disable-multi-arch glibc variants.
1345         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
1346         <libm-alias-float.h>.
1347         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1348         if [SHARED].
1349         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
1350         <libm-alias-float.h>.
1351         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1352         if [SHARED].
1353         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
1354         <libm-alias-float.h>.
1355         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1356         if [SHARED].
1357         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
1358         <libm-alias-float.h>.
1359         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1360         if [SHARED].
1361         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
1362         <libm-alias-float.h>.
1363         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1364         if [SHARED].
1365         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
1366         <libm-alias-float.h>.
1367         (ceilf): Define using libm_alias_float.
1368         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
1369         <libm-alias-float.h>.
1370         (floorf): Define using libm_alias_float.
1371         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
1372         <libm-alias-float.h>.
1373         (fmaf): Define using libm_alias_float.
1374         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
1375         <libm-alias-float.h>.
1376         (nearbyintf): Define using libm_alias_float.
1377         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
1378         <libm-alias-float.h>.
1379         (rintf): Define using libm_alias_float.
1380         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
1381         <libm-alias-float.h>.
1382         (truncf): Define using libm_alias_float.
1383         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
1384         (copysignf): Define using libm_alias_float.
1385         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
1386         (cosf): Define using libm_alias_float.
1387         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
1388         (fabsf): Define using libm_alias_float.
1389         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
1390         (fmaxf): Define using libm_alias_float.
1391         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
1392         (fminf): Define using libm_alias_float.
1393         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
1394         (llrintf): Define using libm_alias_float.
1395         [!__ILP32__] (lrintf): Likewise.
1396         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
1397         (sincosf): Define using libm_alias_float.
1398         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
1399         (sinf): Define using libm_alias_float.
1400         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
1401         (lrintf): Define using libm_alias_float.
1403         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
1404         <libm-alias-double.h>.
1405         (atan): Define using libm_alias_double.
1406         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
1407         <libm-alias-double.h>.
1408         (ceil): Define using libm_alias_double.
1409         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
1410         <libm-alias-double.h>.
1411         (floor): Define using libm_alias_double.
1412         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
1413         <libm-alias-double.h>.
1414         (fma): Define using libm_alias_double.
1415         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
1416         <libm-alias-double.h>.
1417         (nearbyint): Define using libm_alias_double.
1418         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
1419         <libm-alias-double.h>.
1420         (rint): Define using libm_alias_double.
1421         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
1422         <libm-alias-double.h>.
1423         (sin): Define using libm_alias_double.
1424         (cos): Likewise.
1425         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
1426         <libm-alias-double.h>.
1427         (tan): Define using libm_alias_double.
1428         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
1429         <libm-alias-double.h>.
1430         (trunc): Define using libm_alias_double.
1431         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
1432         (copysign): Define using libm_alias_double.
1433         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
1434         (fabs): Define using libm_alias_double.
1435         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
1436         (fmax): Define using libm_alias_double.
1437         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
1438         (fmin): Define using libm_alias_double.
1439         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
1440         (llrint): Define using libm_alias_double.
1441         [!__ILP32__] (lrint): Likewise.
1442         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
1443         (lrint): Define using libm_alias_double.
1445 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1447         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
1448         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
1449         objects.
1450         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
1451         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
1452         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
1453         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
1454         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
1455         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
1457         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
1458         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
1459         objects.
1460         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
1461         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
1462         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
1463         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
1464         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
1465         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
1467         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
1468         (libm-sysdep_routines): Add s_nearbyint-generic and
1469         s_nearbyintf-generic objects.
1470         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
1471         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
1472         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
1473         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
1474         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
1475         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
1477         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
1478         Add s_finitef-generic and s_finite-generic objects.
1479         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
1480         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
1481         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
1482         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
1483         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
1484         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
1486         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
1487         Add s_isinff-generic and s_isinf-generic objects.
1488         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
1489         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
1490         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
1491         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
1492         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
1493         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
1495         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
1496         Add s_isnanf-generic and s_isnan-generic objects.
1497         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
1498         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
1499         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
1500         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
1501         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
1502         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
1504         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
1505         macro.
1506         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
1507         rule.
1508         (sysdep_routines): Use sysdep_calls as base.
1509         (libm-sysdep_routines): Add generic rule for symbols shared with
1510         libc.  Add s_signbit-generic and s_signbitf-generic objects.
1511         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
1512         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
1513         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
1514         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
1515         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
1516         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
1518 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
1520         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
1521         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
1522         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
1523         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
1524         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
1525         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
1526         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
1527         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
1528         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
1529         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
1530         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
1531         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
1532         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
1533         libm_alias_float_r.
1534         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
1535         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
1536         (logf): Likewise.
1537         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
1538         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
1539         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
1540         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
1541         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
1542         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
1543         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
1544         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
1545         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
1546         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
1547         libm_alias_float.
1548         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
1549         (cosf): Likewise.
1550         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
1551         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
1552         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
1553         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
1554         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
1555         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
1556         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
1557         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
1558         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
1559         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
1560         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
1561         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
1562         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
1563         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
1564         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
1565         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
1566         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
1567         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
1568         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
1569         libm_alias_float.
1570         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
1571         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
1572         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
1573         * sysdeps/ia64/fpu/w_lgammaf_main.c
1574         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
1575         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
1577 2017-11-28  Mike FABIAN  <mfabian@redhat.com>, Alexandre Oliva <aoliva@redhat.com>
1579         [BZ #17750]
1580         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
1581         * localedata/fr_CA.UTF-8.in: New file with test data for backward
1582         accents sorting.
1583         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
1584         sorting.
1585         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
1586         * localedata/locales/de_DE (LC_COLLATE): Likewise.
1587         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
1588         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
1589         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
1590         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
1591         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
1592         instead of “ifdef DIACRIT_BACKWARD”.
1594 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1596         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
1597         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
1598         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
1599         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
1600         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
1601         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
1602         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
1603         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
1604         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
1605         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
1606         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
1607         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
1608         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
1609         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
1610         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
1611         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
1612         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
1613         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
1614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
1615         ($(have-as-vis3) == yes): Remove conditional.
1616         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
1617         Likewise.
1618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
1619         file.
1620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
1621         file.
1622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
1623         file.
1624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
1625         file.
1626         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
1627         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
1628         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
1629         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
1630         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
1631         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
1632         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
1633         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
1635 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
1637         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
1638         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
1639         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
1640         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
1641         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
1642         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
1643         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
1644         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
1645         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
1646         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
1647         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
1648         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
1649         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
1650         libm_alias_double_r.
1651         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
1652         (log): Likewise.
1653         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
1654         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
1655         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
1656         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
1657         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
1658         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
1659         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
1660         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
1661         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
1662         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
1663         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
1664         libm_alias_double.
1665         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
1666         (cos): Likewise.
1667         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
1668         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
1669         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
1670         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
1671         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
1672         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
1673         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
1674         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
1675         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
1676         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
1677         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
1678         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
1679         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
1680         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
1681         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
1682         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
1683         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
1684         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
1685         libm_alias_double.
1686         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
1687         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
1688         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
1689         * sysdeps/ia64/fpu/w_lgamma_main.c
1690         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
1691         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
1693 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
1695         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
1696         address of $global$ into %dp register earlier.  Use pc-relative
1697         instruction sequence for PIC case.
1699 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
1701         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
1702         (asinhf): Define using libm_alias_float.
1703         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
1704         (atanf): Define using libm_alias_float.
1705         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
1706         (cbrtf): Define using libm_alias_float.
1707         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
1708         (ceilf): Define using libm_alias_float.
1709         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
1710         (copysignf): Define using libm_alias_float.
1711         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
1712         (expm1f): Define using libm_alias_float.
1713         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
1714         (fabsf): Define using libm_alias_float.
1715         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
1716         (floorf): Define using libm_alias_float.
1717         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
1718         (fmaxf): Define using libm_alias_float.
1719         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
1720         (fminf): Define using libm_alias_float.
1721         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
1722         (frexpf): Define using libm_alias_float.
1723         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
1724         (llrintf): Define using libm_alias_float.
1725         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
1726         (logbf): Define using libm_alias_float.
1727         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
1728         (lrintf): Define using libm_alias_float.
1729         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
1730         (nearbyintf): Define using libm_alias_float.
1731         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
1732         (remquof): Define using libm_alias_float.
1733         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
1734         (rintf): Define using libm_alias_float.
1735         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
1736         (truncf): Define using libm_alias_float.
1737         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
1738         <libm-alias-float.h>.
1739         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1740         if [SHARED].
1741         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
1742         <libm-alias-float.h>.
1743         (expf): Define using libm_alias_float, or libm_alias_float_other
1744         if [SHARED].
1745         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
1746         <libm-alias-float.h>.
1747         (log2f): Define using libm_alias_float, or libm_alias_float_other
1748         if [SHARED].
1749         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
1750         <libm-alias-float.h>.
1751         (logf): Define using libm_alias_float, or libm_alias_float_other
1752         if [SHARED].
1753         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
1754         <libm-alias-float.h>.
1755         (powf): Define using libm_alias_float, or libm_alias_float_other
1756         if [SHARED].
1757         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
1758         <libm-alias-float.h>.
1759         (cosf): Define using libm_alias_float.
1760         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
1761         <libm-alias-float.h>.
1762         (sincosf): Define using libm_alias_float.
1763         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
1764         <libm-alias-float.h>.
1765         (sinf): Define using libm_alias_float.
1766         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
1767         (fmaxf): Define using libm_alias_float.
1768         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
1769         (fminf): Define using libm_alias_float.
1770         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
1771         <libm-alias-float.h>.
1772         (fmaf): Define using libm_alias_float.
1774         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
1775         (asinh): Define using libm_alias_double.
1776         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
1777         (atan): Define using libm_alias_double.
1778         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
1779         (cbrt): Define using libm_alias_double.
1780         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
1781         (ceil): Define using libm_alias_double.
1782         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
1783         (copysign): Define using libm_alias_double.
1784         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
1785         (expm1): Define using libm_alias_double.
1786         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
1787         (fabs): Define using libm_alias_double.
1788         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
1789         (fdim): Define using libm_alias_double.
1790         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
1791         (floor): Define using libm_alias_double.
1792         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
1793         (fmax): Define using libm_alias_double.
1794         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
1795         (fmin): Define using libm_alias_double.
1796         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
1797         (frexp): Define using libm_alias_double.
1798         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
1799         (llrint): Define using libm_alias_double.
1800         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
1801         (logb): Define using libm_alias_double.
1802         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
1803         (lrint): Define using libm_alias_double.
1804         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
1805         (nearbyint): Define using libm_alias_double.
1806         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
1807         (remquo): Define using libm_alias_double.
1808         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
1809         (rint): Define using libm_alias_double.
1810         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
1811         (trunc): Define using libm_alias_double.
1812         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
1813         (fmax): Define using libm_alias_double.
1814         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
1815         (fmin): Define using libm_alias_double.
1816         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
1817         (fma): Define using libm_alias_double.
1819 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
1821         [BZ #22370]
1822         * elf/dl-hwcaps.c (ROUND): Removed.
1823         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
1824         and ELF_NOTE_NEXT_OFFSET.
1825         * elf/dl-load.c (ROUND): Removed.
1826         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
1827         * elf/readelflib.c (ROUND): Removed.
1828         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
1829         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
1830         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
1831         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
1833 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
1835         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
1836         [!__fmaf] (fmaf): Define using libm_alias_float.
1838         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
1839         [!__fma] (fma): Define using libm_alias_double.
1840         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
1842 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
1844         [BZ #22336]
1845         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
1846         and implement the collation rules for cs from CLDR on top of that.
1847         * Makefile: Add cs_CZ.UTF-8 to test-input.
1848         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
1850 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1852         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
1854 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
1855             Icarus Sparry  <icarus.w.sparry@intel.com>
1857         * benchtests/Makefile:Add BENCHSET to allow subsets of
1858         benchmarks to be run.
1859         * benchtests/README: Add documentation for: Running subsets of
1860         benchmarks.
1862 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
1864         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
1865         range of tests names.
1867         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
1868         result from property and remove "max", min" and "mean" from
1869         required properties based on benchtests/bench-skeleton.c.
1871 2017-11-28  Florian Weimer  <fweimer@redhat.com>
1873         [BZ #20826]
1874         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
1875         due to Internet requirement.
1876         * posix/Makefile (tests): Remove tst-getaddrinfo4,
1877         tst-getaddrinfo5.
1878         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
1880 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1882         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
1883         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
1884         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
1885         (sysdep_routines): Add memset-ultra1.
1886         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
1887         file.
1888         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
1889         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
1890         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
1891         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
1892         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
1893         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
1894         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
1895         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1897         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
1898         file.
1899         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
1900         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
1901         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
1902         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
1903         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
1904         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
1905         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
1906         macro.
1907         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
1908         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
1909         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
1910         (sysdep_routines): Add memcpy-ultra1.
1911         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
1912         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
1914 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
1916         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
1917         (cfloat_versions): Take function argument without trailing 'f'.
1918         Call libm_alias_float_other.
1919         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
1920         * sysdeps/alpha/fpu/cargf.c: Likewise.
1921         * sysdeps/alpha/fpu/cimagf.c: Likewise.
1922         * sysdeps/alpha/fpu/conjf.c: Likewise.
1923         * sysdeps/alpha/fpu/crealf.c: Likewise.
1924         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
1925         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
1926         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
1927         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
1928         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
1929         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
1930         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
1931         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
1932         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
1933         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
1934         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
1935         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
1936         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
1937         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
1938         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
1939         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
1940         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
1941         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
1942         (clog10f): Use libm_alias_float_other.
1943         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
1944         (ceilf): Define using libm_alias_float.
1945         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
1946         (copysignf): Define using libm_alias_float.
1947         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
1948         (fabsf): Define using libm_alias_float.
1949         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
1950         (floorf): Define using libm_alias_float.
1951         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
1952         (fmaxf): Define using libm_alias_float.
1953         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
1954         (fminf): Define using libm_alias_float.
1955         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
1956         (lrintf): Define using libm_alias_float.
1957         (llrintf): Likewise.
1958         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
1959         (lroundf): Define using libm_alias_float.
1960         (llroundf): Likewise.
1961         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
1962         (rintf): Define using libm_alias_float.
1963         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
1964         (truncf): Define using libm_alias_float.
1966         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
1967         (ceilf): Define using libm_alias_float.
1968         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
1969         (floorf): Define using libm_alias_float.
1970         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
1971         (fmaf): Define using libm_alias_float.
1972         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
1973         (fmaxf): Define using libm_alias_float.
1974         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
1975         (fminf): Define using libm_alias_float.
1976         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
1977         (llrintf): Define using libm_alias_float.
1978         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
1979         (llroundf): Define using libm_alias_float.
1980         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
1981         (lrintf): Define using libm_alias_float.
1982         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
1983         (lroundf): Define using libm_alias_float.
1984         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
1985         <libm-alias-float.h>.
1986         (nearbyintf): Define using libm_alias_float.
1987         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
1988         (rintf): Define using libm_alias_float.
1989         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
1990         (roundf): Define using libm_alias_float.
1991         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
1992         (truncf): Define using libm_alias_float.
1994         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
1995         (ceil): Define using libm_alias_double.
1996         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
1997         (copysign): Define using libm_alias_double.
1998         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
1999         (fabs): Define using libm_alias_double.
2000         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
2001         (floor): Define using libm_alias_double.
2002         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
2003         (fmax): Define using libm_alias_double.
2004         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
2005         (fmin): Define using libm_alias_double.
2006         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
2007         (lrint): Define using libm_alias_double.
2008         (llrint): Likewise.
2009         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
2010         (lround): Define using libm_alias_double.
2011         (llround): Likewise.
2012         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
2013         (rint): Define using libm_alias_double.
2014         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
2015         (trunc): Define using libm_alias_double.
2017         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
2018         (libm_alias_double_r): Add semicolon after weak_alias call.
2020 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
2022         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
2023         (ceil): Define using libm_alias_double.
2024         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
2025         (floor): Define using libm_alias_double.
2026         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
2027         (fma): Define using libm_alias_double.
2028         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
2029         (fmax): Define using libm_alias_double.
2030         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
2031         (fmin): Define using libm_alias_double.
2032         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
2033         (llrint): Define using libm_alias_double.
2034         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
2035         (llround): Define using libm_alias_double.
2036         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
2037         (lrint): Define using libm_alias_double.
2038         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
2039         (lround): Define using libm_alias_double.
2040         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
2041         (nearbyint): Define using libm_alias_double.
2042         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
2043         (rint): Define using libm_alias_double.
2044         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
2045         (round): Define using libm_alias_double.
2046         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
2047         (trunc): Define using libm_alias_double.
2049 2017-11-27  Florian Weimer  <fweimer@redhat.com>
2051         * sysdeps/unix/sysv/linux/mlock2.c: New file.
2052         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
2053         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
2054         (tests): Add tst-mlock2.
2055         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
2056         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
2057         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
2058         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
2059         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
2060         for mlock.  Document mlock2.
2062 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
2064         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
2065         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
2066         Likewise.
2067         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
2068         Likewise.
2069         * sysdeps/x86/Makeconfig: New file.
2070         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
2071         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2072         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
2073         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2074         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
2075         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2076         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
2077         Likewise.
2078         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2079         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
2080         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2081         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
2082         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2083         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
2084         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2085         * manual/math.texi (Mathematics): Document support for _Float64x.
2086         * math/Versions (GLIBC_2.27): Add _Float64x functions.
2087         * stdlib/Versions (GLIBC_2.27): Likewise.
2088         * wcsmbs/Versions (GLIBC_2.27): Likewise.
2089         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2090         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2091         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2092         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2093         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2094         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2095         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2096         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2097         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2098         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2099         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2101         Likewise.
2102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2103         Likewise.
2104         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2105         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2106         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2107         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2108         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2109         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2110         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2111         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2112         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2113         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2114         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2115         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2116         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
2117         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2119 2017-11-27  Andreas Schwab  <schwab@suse.de>
2121         * elf/Makefile (dl-routines): Add dl-sort-maps.
2122         * elf/dl-sort-maps.c: New file.
2123         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
2124         (_dl_sort_maps): Declare.
2125         * elf/dl-fini.c (_dl_sort_fini): Remove.
2126         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
2127         * elf/dl-close.c (_dl_close_worker): Likewise.
2128         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
2129         open-coding it.
2130         * elf/dl-open.c (dl_open_worker): Likewise.
2132 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
2134         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
2135         using libm_alias_float128.
2136         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
2137         Likewise.
2138         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
2139         Likewise.
2140         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
2141         (setpayloadsigf128): Likewise.
2142         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
2143         Likewise.
2144         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
2145         Likewise.
2147         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
2148         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
2149         -mfloat128 to CFLAGS.
2150         ($(foreach
2151         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
2152         Likewise.
2153         (CFLAGS-libm-test-support-float64x.c): New variable.
2154         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
2155         $(f128-loader-link) to gnulib-tests.
2157         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
2158         (libm_alias_float128_other_r): If
2159         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
2160         alias.
2161         (libm_alias_float128_r): Add semicolon after weak_alias call.
2162         * sysdeps/generic/libm-alias-ldouble.h
2163         (libm_alias_ldouble_other_r_f128): New macro.
2164         (libm_alias_ldouble_other_r_f64x): Likewise.
2165         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
2166         and libm_alias_ldouble_other_r_f64x.
2167         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
2168         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
2169         (libm_alias_ldouble_other_r_f128): New macro.
2170         (libm_alias_ldouble_other_r_f64x): Likewise.
2171         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
2172         and libm_alias_ldouble_other_r_f64x.
2174         * stdlib/strfroml.c: Always include <stdlib.h>.
2175         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
2176         undefine as macro and define as weak alias.
2177         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
2178         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
2179         <stdlib.h>.
2180         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
2181         Define and later undefine as macro and define as weak alias.
2183         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
2184         Define and later undefine as macro.  Define as weak alias if
2185         [!USE_WIDE_CHAR].
2186         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
2187         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
2188         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
2189         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
2190         Define and later undefine as macro.  Define as weak alias if
2191         [!USE_WIDE_CHAR].
2192         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
2193         Define and later undefine as macro.  Define as weak alias if
2194         [USE_WIDE_CHAR].
2195         * sysdeps/ieee754/float128/strtof128_l.c
2196         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
2197         Define and later undefine as macro.  Define as weak alias if
2198         [!USE_WIDE_CHAR].
2199         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
2200         Define and later undefine as macro.  Define as weak alias if
2201         [USE_WIDE_CHAR].
2202         * sysdeps/ieee754/ldbl-128/strtold_l.c
2203         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
2204         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2205         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
2206         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
2207         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
2208         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
2209         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2210         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
2211         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
2212         * sysdeps/ieee754/ldbl-96/strtold_l.c
2213         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
2214         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2215         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
2216         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
2218         * math/test-float64x.h: New file.
2219         * math/Makefile (type-float64x-yes): New variable.
2220         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
2222         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
2223         function-like macro.
2224         (min_of_type_): Likewise.
2225         (min_of_type_l): Likewise.
2226         (min_of_type_f128): Likewise.
2227         (min_of_type): Pass () as last argument of __MATH_TG.
2229         * stdlib/tst-strtod-round-skeleton.c
2230         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
2231         headers.
2233         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
2234         for combinations of long double with _Float64 and _Float64x.
2236         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
2237         (__DECL_SIMD_cosf32): Likewise.
2238         (__DECL_SIMD_cosf64): Likewise.
2239         (__DECL_SIMD_cosf32x): Likewise.
2240         (__DECL_SIMD_cosf64x): Likewise.
2241         (__DECL_SIMD_cosf128x): Likewise.
2242         (__DECL_SIMD_sinf16): Likewise.
2243         (__DECL_SIMD_sinf32): Likewise.
2244         (__DECL_SIMD_sinf64): Likewise.
2245         (__DECL_SIMD_sinf32x): Likewise.
2246         (__DECL_SIMD_sinf64x): Likewise.
2247         (__DECL_SIMD_sinf128x): Likewise.
2248         (__DECL_SIMD_sincosf16): Likewise.
2249         (__DECL_SIMD_sincosf32): Likewise.
2250         (__DECL_SIMD_sincosf64): Likewise.
2251         (__DECL_SIMD_sincosf32x): Likewise.
2252         (__DECL_SIMD_sincosf64x): Likewise.
2253         (__DECL_SIMD_sincosf128x): Likewise.
2254         (__DECL_SIMD_logf16): Likewise.
2255         (__DECL_SIMD_logf32): Likewise.
2256         (__DECL_SIMD_logf64): Likewise.
2257         (__DECL_SIMD_logf32x): Likewise.
2258         (__DECL_SIMD_logf64x): Likewise.
2259         (__DECL_SIMD_logf128x): Likewise.
2260         (__DECL_SIMD_expf16): Likewise.
2261         (__DECL_SIMD_expf32): Likewise.
2262         (__DECL_SIMD_expf64): Likewise.
2263         (__DECL_SIMD_expf32x): Likewise.
2264         (__DECL_SIMD_expf64x): Likewise.
2265         (__DECL_SIMD_expf128x): Likewise.
2266         (__DECL_SIMD_powf16): Likewise.
2267         (__DECL_SIMD_powf32): Likewise.
2268         (__DECL_SIMD_powf64): Likewise.
2269         (__DECL_SIMD_powf32x): Likewise.
2270         (__DECL_SIMD_powf64x): Likewise.
2271         (__DECL_SIMD_powf128x): Likewise.
2273         * stdlib/Versions (libc): Move entries for wcstof128 and
2274         wcstof128_l to ....
2275         * wcsmbs/Versions (libc): ... here.
2276         Include <float128-abi.h>.
2278 2017-11-24  Florian Weimer  <fweimer@redhat.com>
2280         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2281         bits/mman-shared.h.
2282         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
2283         <bits/mman-shared.h>.
2284         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
2285         to ...
2286         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
2287         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
2288         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
2289         <bits/mman-shared.h>.
2291 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2293         [BZ #22457]
2294         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
2295         posix_memalign/free.
2296         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
2298 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
2300         [BZ #22469]
2301         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
2302         and implement the collation rules for pl from CLDR on top of that.
2303         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
2304         of locales to be built for testing.
2305         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
2307 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
2309         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
2310         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
2311         libm_alias_ldouble_other.
2312         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
2313         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
2314         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
2315         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
2316         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
2317         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
2318         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
2319         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
2320         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
2321         libm_alias_ldouble_r.
2322         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
2323         libm_alias_ldouble_other.
2324         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
2325         (log10l): Likewise.
2326         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
2327         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
2328         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
2329         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
2330         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
2331         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
2332         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
2333         (atan2l): Likewise.
2334         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
2335         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
2336         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
2337         libm_alias_ldouble.
2338         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
2339         (cosl): Likewise.
2340         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
2341         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
2342         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
2343         (expl): Likewise.
2344         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
2345         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
2346         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
2347         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
2348         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
2349         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
2350         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
2351         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
2352         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
2353         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
2354         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
2355         libm_alias_ldouble.
2356         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
2357         libm_alias_ldouble_other.
2358         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
2359         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
2360         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
2361         libm_alias_ldouble.
2362         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
2363         libm_alias_ldouble_other.
2364         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
2365         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
2366         * sysdeps/ia64/fpu/w_lgammal_main.c
2367         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
2368         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
2370 2017-11-23  Florian Weimer  <fweimer@redhat.com>
2372         * malloc/malloc.c (tcache_thread_shutdown): Rename from
2373         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
2374         alike.  Remove freeres marker.
2375         * malloc/arena.c (arena_thread_freeres): Call
2376         tcache_thread_shutdown.
2378 2017-11-23  Florian Weimer  <fweimer@redhat.com>
2380         [BZ #22459]
2381         Export nscd hash function as __nss_hash.
2382         * include/nss.h (__nss_hash): Declare.
2383         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
2384         symbol.
2385         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
2386         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
2387         of __nscd_hash.
2388         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
2389         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
2390         * nss/Makefiles (routines): Add nss_hash.
2391         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
2392         * nss/nss_hash.c: Rename from nis/nis_hash.c.
2393         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
2394         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
2396 2017-11-23  Florian Weimer  <fweimer@redhat.com>
2398         [BZ #22478]
2399         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
2400         Return error code, not -1.
2401         * signal/tst-sigwait-eintr.c: New file.
2402         * signal/Makefile (tests): Add tst-sigwait-eintr.
2404 2017-11-23  Florian Weimer  <fweimer@redhat.com>
2406         Linux: Add memfd_create system call wrapper
2407         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
2408         tst-memfd_create.
2409         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
2410         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
2411         [__USE_GNU] (memfd_create): Declare.
2412         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
2413         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
2414         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
2415         * sysdeps/unix/sysv/linux/**.abilist: Update.
2416         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
2418 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
2420         * localedata/gen-locale.sh: Fix typo in variable name.
2422         * resolv/res_debug.c (p_secstodate): Condition definition on
2423         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
2424         directly as __p_secstodate, and as a compat symbol.  Do not use
2425         libresolv_hidden_def.
2426         * resolv/resolv.h (p_secstodate): Remove macro and function
2427         declaration.
2428         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
2429         using p_secstodate.
2430         * include/resolv.h (__p_secstodate): Do not use
2431         libresolv_hidden_proto.
2432         * resolv/Makefile (tests): Move tst-p_secstodate to ....
2433         (tests-internal): ... here.
2434         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
2435         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
2436         and declare and use __p_secstodate and use compat_symbol_reference
2437         in that case.
2438         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
2439         implementation returning 77.
2441         [BZ #22463]
2442         * resolv/res_debug.c: Include <libc-diag.h>.
2443         (p_secstodate): Assert time_t at least as wide as u_long.  On
2444         overflow, use integer seconds since the epoch as output, or use
2445         "<overflow>" as output and set errno to EOVERFLOW if integer
2446         seconds since the epoch would be 14 or more characters.
2447         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
2448         for sprintf call.
2449         * resolv/tst-p_secstodate.c: New file.
2450         * resolv/Makefile (tests): Add tst-p_secstodate.
2451         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
2453         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
2454         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
2455         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
2457 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2459         * posix/regcomp.c (init_word_char): Add comments.
2461 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
2463         [BZ #22447]
2464         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
2465         strlen to compute length of ut_user and set trailing NUL byte of
2466         result explicitly.
2468 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
2470         [BZ #15537]
2471         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
2472         using “copy "iso14651_t1"” and then implementing the
2473         collation rules for lv from CLDR on top of that.
2474         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
2475         of locales to be built for testing.
2476         * lv_LV.UTF-8.in: New file with test data to test the Latvian
2477         sorting.
2479 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
2481         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
2482         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
2483         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
2484         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
2485         [__USE_MISC] (MADV_HWPOISON): New macro.
2486         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
2488 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2490         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
2491         -Wmissing-braces on GCC 4.9.
2493 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
2495         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
2496         * sysdeps/s390/s390-32/start.S (_start): Likewise
2497         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
2498         (thread_start): Likewise.
2499         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
2500         (thread_start): Likewise.
2501         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
2502         (__makecontext_ret): Likewise.
2503         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
2504         (__makecontext_ret): Likewise.
2506 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
2508         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
2509         __wcschrnul): Remove attribute_hidden.
2511 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2513         regex: don't assume uint64_t or uint32_t
2514         This avoids -Werror=overflow errors for 32-bit systems in
2515         the 64-bit case.  Problem reported by Joseph Myers in:
2516         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
2517         Also, when this code is used in Gnulib it ports to platforms
2518         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
2519         them, and on some 32-bit compilers there is no uint64_t.
2520         Problem reported by Gianluigi Tiesi in:
2521         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
2522         * posix/regcomp.c (init_word_char): Don't assume that the types
2523         uint64_t and uint32_t exist.  Adapted from Gnulib patch
2524         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
2525         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
2527 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2529         * sysdeps/aarch64/memset-reg.h: New file.
2530         * sysdeps/aarch64/memset.S: Use it.
2531         (__memset): Rename to MEMSET macro.
2532         [ZVA_MACRO]: Use zva_macro.
2533         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2534         Add memset_generic and memset_falkor.
2535         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2536         (__libc_ifunc_impl_list): Add memset ifuncs.
2537         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
2538         local variable zva_size.
2539         * sysdeps/aarch64/multiarch/memset.c: New file.
2540         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
2541         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
2542         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
2543         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
2544         (DCZID_DZP_MASK): New macro.
2545         (DCZID_BS_MASK): Likewise.
2546         (init_cpu_features): Read and set zva_size.
2547         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
2548         (struct cpu_features): New member zva_size.
2550         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
2551         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
2552         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
2554         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
2555         backwards.  Fix timing computation.
2556         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
2557         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
2558         on memset by N at a time.  Fix timing computation.
2560 2017-11-20  Florian Weimer  <fweimer@redhat.com>
2562         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
2563         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
2565 2017-11-19  Florian Weimer  <fweimer@redhat.com>
2567         manual: Document mprotect
2568         * manual/memory.texi (Memory Protection): New section.
2569         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
2570         documentation of PROT_* flags and reference the Memory Protection
2571         section instead.
2573 2017-11-19  Florian Weimer  <fweimer@redhat.com>
2575         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
2576         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
2577         (Scatter-Gather): ... to here.  Remove misleading comment.
2579 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
2581         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
2582         style.
2584         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
2585         when /proc/<pid>/setgroups does not exist.
2587 2017-11-18  Florian Weimer  <fweimer@redhat.com>
2589         * sysdeps/unix/sysv/linux/tst-ttyname.c
2590         (become_root_in_mount_ns): Remove.
2591         (do_in_chroot_1): Call support_enter_mount_namespace.
2592         (do_in_chroot_2): Likewise.
2593         (do_test): Call support_become_root early.
2595 2017-11-18  Florian Weimer  <fweimer@redhat.com>
2597         * support/namespace.h (support_enter_mount_namespace): Declare.
2598         * support/support_enter_mount_namespace.c: New file.
2599         * support/Makefile (libsupport-routines): Add
2600         support_enter_mount_namespace.
2602 2017-11-18  Florian Weimer  <fweimer@redhat.com>
2604         * support/temp_file.c (support_create_temp_directory): Use
2605         test_dir and do not rely on the presence of the XXXXXX suffix.
2606         * support/temp_file.h (support_create_temp_directory): Update
2607         comment.
2608         * support/tst-xreadlink.c (do_test): Adjust.
2609         * support/support_chroot.c (support_chroot_create): Likewise.
2611 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2613         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
2614         macro.
2615         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
2616         htm-no-suspend.
2618 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
2620         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
2621         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
2622         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
2623         (ceill): Define using libm_alias_ldouble.
2624         * sysdeps/x86_64/fpu/s_copysignl.S: Include
2625         <libm-alias-ldouble.h>.
2626         (copysignl): Define using libm_alias_ldouble.
2627         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
2628         (fabsl): Define using libm_alias_ldouble.
2629         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
2630         (floorl): Define using libm_alias_ldouble.
2631         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
2632         (fmaxl): Define using libm_alias_ldouble.
2633         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
2634         (fminl): Define using libm_alias_ldouble.
2635         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
2636         (llrintl): Define using libm_alias_ldouble.
2637         (lrintl): Likewise.
2638         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
2639         <libm-alias-ldouble.h>.
2640         (nearbyintl): Define using libm_alias_ldouble.
2641         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
2642         (truncl): Define using libm_alias_ldouble.
2643         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
2644         <libm-alias-ldouble.h>.
2645         (lrintl): Define using libm_alias_ldouble.
2647         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
2648         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
2649         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
2650         (asinhl): Define using libm_alias_ldouble.
2651         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
2652         (atanl): Define using libm_alias_ldouble.
2653         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
2654         (cbrtl): Define using libm_alias_ldouble.
2655         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
2656         (ceill): Define using libm_alias_ldouble.
2657         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
2658         (copysignl): Define using libm_alias_ldouble.
2659         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
2660         (fabsl): Define using libm_alias_ldouble.
2661         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
2662         (floorl): Define using libm_alias_ldouble.
2663         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
2664         (fmaxl): Define using libm_alias_ldouble.
2665         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
2666         (fminl): Define using libm_alias_ldouble.
2667         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
2668         (frexpl): Define using libm_alias_ldouble.
2669         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
2670         (llrintl): Define using libm_alias_ldouble.
2671         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
2672         (logbl): Define using libm_alias_ldouble.
2673         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
2674         (lrintl): Define using libm_alias_ldouble.
2675         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
2676         (nearbyintl): Define using libm_alias_ldouble.
2677         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
2678         (nextafterl): Define using libm_alias_ldouble.
2679         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
2680         (remquol): Define using libm_alias_ldouble.
2681         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
2682         (rintl): Define using libm_alias_ldouble.
2683         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
2684         (truncl): Define using libm_alias_ldouble.
2685         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
2686         (fmaxl): Define using libm_alias_ldouble.
2687         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
2688         (fminl): Define using libm_alias_ldouble.
2690         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
2691         to C syntax instead of availability and properties of types.
2692         * bits/floatn.h [!__ASSEMBLER]: Likewise.
2693         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
2694         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
2695         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
2696         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
2697         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
2699 2017-11-17  Florian Weimer  <fweimer@redhat.com>
2701         support_become_root: Enable file creation in namespaces.
2702         * support/support_become_root.c (setup_mapping): New function.
2703         (support_become_root): Call it.
2705 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
2707         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
2708         macro.
2710 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2712         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
2713         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
2715 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
2717         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
2719         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2720         version to 4.14.
2722 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2724         * INSTALL: Fix botched up regeneration.
2726         * NEWS: Update sourceare link to https.
2727         * configure.ac: Likewise.
2728         * crypt/md5test-giant.c: Likewise.
2729         * dlfcn/bug-atexit1.c: Likewise.
2730         * dlfcn/bug-atexit2.c: Likewise.
2731         * localedata/README: Likewise.
2732         * malloc/tst-mallocfork.c: Likewise.
2733         * manual/install.texi: Likewise.
2734         * nptl/tst-pthread-getattr.c: Likewise.
2735         * stdio-common/tst-fgets.c: Likewise.
2736         * stdio-common/tst-fwrite.c: Likewise.
2737         * sunrpc/Makefile: Likewise.
2738         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
2739         * wcsmbs/tst-mbrtowc2.c: Likewise.
2740         * configure: Regenerate.
2741         * INSTALL: Regenerate.
2743 2017-11-15  Martin Sebor  <msebor@redhat.com>
2745         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
2746         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
2747         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
2749 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
2751         [BZ #22145]
2752         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
2753         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
2755         [BZ #22145]
2756         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
2757         Defer is_pty check until end of the function.
2758         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
2760         [BZ #22145]
2761         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
2762         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
2763         (ttyname): Likewise.
2764         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
2765         (__ttyname_r): Likewise.
2767         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
2768         int to bool.
2770         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
2772         * manual/terminal.texi (Is It a Terminal):
2773         Mention ENODEV for ttyname and ttyname_r.
2775 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
2777         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
2778         constant and macro.
2780         * sysdeps/unix/sysv/linux/bits/mman-linux.h
2781         [__USE_MISC] (MADV_WIPEONFORK): New macro.
2782         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
2783         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
2784         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
2785         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
2787 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2789         * signal/sigrelse.c (sigrelse): Optimize implementation.
2791         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
2792         (__sigpause): Rely on __sigsuspend to implement single thread
2793         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
2795 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
2797         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2798         kernel version to 4.14.
2800 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
2802         [BZ #22442]
2803         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
2804         Check if ifname is too long.
2806 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
2808         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
2810 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
2812         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
2813         was accidentally lost.
2815 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
2817         * localedata/locales/az_IR: Add standard copyright header.
2819 2017-11-15  Florian Weimer  <fweimer@redhat.com>
2821         [BZ #22439]
2822         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
2823         not just the top one.  Output a new "subheaps" statistic.
2825 2017-11-15  Florian Weimer  <fweimer@redhat.com>
2827         [BZ #22408]
2828         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
2829         under the per-arena lock.
2830         * malloc/Makefile (tests): Add tst-malloc_info.
2831         (tst-malloc_info): Link with libpthread.
2832         * malloc/tst-malloc_info.c: New file.
2834 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
2836         [BZ #21660]
2837         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
2838         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
2839         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
2840         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
2841         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
2842         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
2843         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
2844         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
2845         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
2846         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
2847         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
2848         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
2849         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
2850         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
2851         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
2852         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
2853         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
2854         (__floating_type): Likewise.
2855         (__real_integer_type): Likewise.
2856         (__complex_integer_type): Likewise.
2857         (__expr_is_real): Likewise.
2858         (__tgmath_real_type_sub): Likewise.
2859         (__tgmath_real_type): Likewise.
2860         (__tgmath_complex_type_sub): Likewise.
2861         (__tgmath_complex_type): Likewise.
2862         (__TGMATH_F128): Likewise.
2863         (__TGMATH_CF128): Likewise.
2864         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
2865         new macros.
2866         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
2867         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
2868         Likewise.
2869         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
2870         Likewise.
2871         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
2872         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
2873         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
2874         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
2875         Likewise.
2876         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
2877         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
2878         Likewise.
2879         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
2880         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
2881         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
2882         Likewise.
2883         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
2884         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
2885         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
2886         (cimag): Likewise.
2887         (creal): Likewise.
2889 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
2891         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
2892         for stpncpy calls for GCC 8.
2893         (test_strncat): Disable -Wstringop-truncation warning for strncat
2894         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
2895         strncat call for GCC 7.
2896         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
2897         calls for GCC 8.
2898         (test_memcmp): Use memcpy instead of strncpy for calls not copying
2899         trailing NUL.
2901         * string/bug-strncat1.c: Include <libc-diag.h>.
2902         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
2904 2017-11-13  Claude Paroz <claude@2xlibre.net>
2906         [BZ #22387]
2907         * localedata/locales/aa_DJ: Improved readibility by replacing
2908         <Uxxxx> sequences in the ASCII printable range by their ASCII
2909         character equivalents.
2910         * localedata/locales/aa_ER: Likewise.
2911         * localedata/locales/aa_ER@saaho: Likewise.
2912         * localedata/locales/aa_ET: Likewise.
2913         * localedata/locales/af_ZA: Likewise.
2914         * localedata/locales/agr_PE: Likewise.
2915         * localedata/locales/ak_GH: Likewise.
2916         * localedata/locales/am_ET: Likewise.
2917         * localedata/locales/anp_IN: Likewise.
2918         * localedata/locales/ar_AE: Likewise.
2919         * localedata/locales/ar_BH: Likewise.
2920         * localedata/locales/ar_DZ: Likewise.
2921         * localedata/locales/ar_EG: Likewise.
2922         * localedata/locales/ar_IN: Likewise.
2923         * localedata/locales/ar_IQ: Likewise.
2924         * localedata/locales/ar_JO: Likewise.
2925         * localedata/locales/ar_KW: Likewise.
2926         * localedata/locales/ar_LB: Likewise.
2927         * localedata/locales/ar_LY: Likewise.
2928         * localedata/locales/ar_MA: Likewise.
2929         * localedata/locales/ar_OM: Likewise.
2930         * localedata/locales/ar_QA: Likewise.
2931         * localedata/locales/ar_SA: Likewise.
2932         * localedata/locales/ar_SD: Likewise.
2933         * localedata/locales/ar_SS: Likewise.
2934         * localedata/locales/ar_SY: Likewise.
2935         * localedata/locales/ar_TN: Likewise.
2936         * localedata/locales/ar_YE: Likewise.
2937         * localedata/locales/as_IN: Likewise.
2938         * localedata/locales/ast_ES: Likewise.
2939         * localedata/locales/ayc_PE: Likewise.
2940         * localedata/locales/az_AZ: Likewise.
2941         * localedata/locales/az_IR: Likewise.
2942         * localedata/locales/be_BY: Likewise.
2943         * localedata/locales/be_BY@latin: Likewise.
2944         * localedata/locales/bem_ZM: Likewise.
2945         * localedata/locales/ber_DZ: Likewise.
2946         * localedata/locales/ber_MA: Likewise.
2947         * localedata/locales/bg_BG: Likewise.
2948         * localedata/locales/bhb_IN: Likewise.
2949         * localedata/locales/bho_IN: Likewise.
2950         * localedata/locales/bi_VU: Likewise.
2951         * localedata/locales/bn_BD: Likewise.
2952         * localedata/locales/bn_IN: Likewise.
2953         * localedata/locales/bo_CN: Likewise.
2954         * localedata/locales/bo_IN: Likewise.
2955         * localedata/locales/br_FR: Likewise.
2956         * localedata/locales/brx_IN: Likewise.
2957         * localedata/locales/bs_BA: Likewise.
2958         * localedata/locales/byn_ER: Likewise.
2959         * localedata/locales/ca_AD: Likewise.
2960         * localedata/locales/ca_ES: Likewise.
2961         * localedata/locales/ca_FR: Likewise.
2962         * localedata/locales/ca_IT: Likewise.
2963         * localedata/locales/ce_RU: Likewise.
2964         * localedata/locales/chr_US: Likewise.
2965         * localedata/locales/cmn_TW: Likewise.
2966         * localedata/locales/crh_UA: Likewise.
2967         * localedata/locales/cs_CZ: Likewise.
2968         * localedata/locales/csb_PL: Likewise.
2969         * localedata/locales/cv_RU: Likewise.
2970         * localedata/locales/cy_GB: Likewise.
2971         * localedata/locales/da_DK: Likewise.
2972         * localedata/locales/de_AT: Likewise.
2973         * localedata/locales/de_BE: Likewise.
2974         * localedata/locales/de_CH: Likewise.
2975         * localedata/locales/de_DE: Likewise.
2976         * localedata/locales/de_IT: Likewise.
2977         * localedata/locales/de_LI: Likewise.
2978         * localedata/locales/de_LU: Likewise.
2979         * localedata/locales/doi_IN: Likewise.
2980         * localedata/locales/dv_MV: Likewise.
2981         * localedata/locales/dz_BT: Likewise.
2982         * localedata/locales/el_CY: Likewise.
2983         * localedata/locales/el_GR: Likewise.
2984         * localedata/locales/en_AG: Likewise.
2985         * localedata/locales/en_AU: Likewise.
2986         * localedata/locales/en_BW: Likewise.
2987         * localedata/locales/en_CA: Likewise.
2988         * localedata/locales/en_DK: Likewise.
2989         * localedata/locales/en_GB: Likewise.
2990         * localedata/locales/en_HK: Likewise.
2991         * localedata/locales/en_IE: Likewise.
2992         * localedata/locales/en_IL: Likewise.
2993         * localedata/locales/en_IN: Likewise.
2994         * localedata/locales/en_NG: Likewise.
2995         * localedata/locales/en_NZ: Likewise.
2996         * localedata/locales/en_PH: Likewise.
2997         * localedata/locales/en_SG: Likewise.
2998         * localedata/locales/en_US: Likewise.
2999         * localedata/locales/en_ZA: Likewise.
3000         * localedata/locales/en_ZM: Likewise.
3001         * localedata/locales/en_ZW: Likewise.
3002         * localedata/locales/eo: Likewise.
3003         * localedata/locales/es_AR: Likewise.
3004         * localedata/locales/es_BO: Likewise.
3005         * localedata/locales/es_CL: Likewise.
3006         * localedata/locales/es_CO: Likewise.
3007         * localedata/locales/es_CR: Likewise.
3008         * localedata/locales/es_CU: Likewise.
3009         * localedata/locales/es_DO: Likewise.
3010         * localedata/locales/es_EC: Likewise.
3011         * localedata/locales/es_ES: Likewise.
3012         * localedata/locales/es_GT: Likewise.
3013         * localedata/locales/es_HN: Likewise.
3014         * localedata/locales/es_MX: Likewise.
3015         * localedata/locales/es_NI: Likewise.
3016         * localedata/locales/es_PA: Likewise.
3017         * localedata/locales/es_PE: Likewise.
3018         * localedata/locales/es_PR: Likewise.
3019         * localedata/locales/es_PY: Likewise.
3020         * localedata/locales/es_SV: Likewise.
3021         * localedata/locales/es_US: Likewise.
3022         * localedata/locales/es_UY: Likewise.
3023         * localedata/locales/es_VE: Likewise.
3024         * localedata/locales/et_EE: Likewise.
3025         * localedata/locales/eu_ES: Likewise.
3026         * localedata/locales/eu_ES@euro: Likewise.
3027         * localedata/locales/fa_IR: Likewise.
3028         * localedata/locales/ff_SN: Likewise.
3029         * localedata/locales/fi_FI: Likewise.
3030         * localedata/locales/fil_PH: Likewise.
3031         * localedata/locales/fo_FO: Likewise.
3032         * localedata/locales/fr_BE: Likewise.
3033         * localedata/locales/fr_CA: Likewise.
3034         * localedata/locales/fr_CH: Likewise.
3035         * localedata/locales/fr_FR: Likewise.
3036         * localedata/locales/fr_LU: Likewise.
3037         * localedata/locales/fur_IT: Likewise.
3038         * localedata/locales/fy_DE: Likewise.
3039         * localedata/locales/fy_NL: Likewise.
3040         * localedata/locales/ga_IE: Likewise.
3041         * localedata/locales/gd_GB: Likewise.
3042         * localedata/locales/gez_ER: Likewise.
3043         * localedata/locales/gez_ET: Likewise.
3044         * localedata/locales/gl_ES: Likewise.
3045         * localedata/locales/gu_IN: Likewise.
3046         * localedata/locales/gv_GB: Likewise.
3047         * localedata/locales/ha_NG: Likewise.
3048         * localedata/locales/hak_TW: Likewise.
3049         * localedata/locales/he_IL: Likewise.
3050         * localedata/locales/hi_IN: Likewise.
3051         * localedata/locales/hif_FJ: Likewise.
3052         * localedata/locales/hne_IN: Likewise.
3053         * localedata/locales/hr_HR: Likewise.
3054         * localedata/locales/hsb_DE: Likewise.
3055         * localedata/locales/ht_HT: Likewise.
3056         * localedata/locales/hu_HU: Likewise.
3057         * localedata/locales/hy_AM: Likewise.
3058         * localedata/locales/i18n: Likewise.
3059         * localedata/locales/ia_FR: Likewise.
3060         * localedata/locales/id_ID: Likewise.
3061         * localedata/locales/ig_NG: Likewise.
3062         * localedata/locales/ik_CA: Likewise.
3063         * localedata/locales/is_IS: Likewise.
3064         * localedata/locales/it_CH: Likewise.
3065         * localedata/locales/it_IT: Likewise.
3066         * localedata/locales/iu_CA: Likewise.
3067         * localedata/locales/ja_JP: Likewise.
3068         * localedata/locales/ka_GE: Likewise.
3069         * localedata/locales/kk_KZ: Likewise.
3070         * localedata/locales/kl_GL: Likewise.
3071         * localedata/locales/kn_IN: Likewise.
3072         * localedata/locales/ko_KR: Likewise.
3073         * localedata/locales/kok_IN: Likewise.
3074         * localedata/locales/ks_IN: Likewise.
3075         * localedata/locales/ks_IN@devanagari: Likewise.
3076         * localedata/locales/ku_TR: Likewise.
3077         * localedata/locales/kw_GB: Likewise.
3078         * localedata/locales/ky_KG: Likewise.
3079         * localedata/locales/lb_LU: Likewise.
3080         * localedata/locales/lg_UG: Likewise.
3081         * localedata/locales/li_BE: Likewise.
3082         * localedata/locales/li_NL: Likewise.
3083         * localedata/locales/lij_IT: Likewise.
3084         * localedata/locales/ln_CD: Likewise.
3085         * localedata/locales/lo_LA: Likewise.
3086         * localedata/locales/lt_LT: Likewise.
3087         * localedata/locales/lv_LV: Likewise.
3088         * localedata/locales/lzh_TW: Likewise.
3089         * localedata/locales/mag_IN: Likewise.
3090         * localedata/locales/mai_IN: Likewise.
3091         * localedata/locales/mg_MG: Likewise.
3092         * localedata/locales/mhr_RU: Likewise.
3093         * localedata/locales/mi_NZ: Likewise.
3094         * localedata/locales/mk_MK: Likewise.
3095         * localedata/locales/ml_IN: Likewise.
3096         * localedata/locales/mn_MN: Likewise.
3097         * localedata/locales/mni_IN: Likewise.
3098         * localedata/locales/mr_IN: Likewise.
3099         * localedata/locales/ms_MY: Likewise.
3100         * localedata/locales/mt_MT: Likewise.
3101         * localedata/locales/my_MM: Likewise.
3102         * localedata/locales/nan_TW: Likewise.
3103         * localedata/locales/nan_TW@latin: Likewise.
3104         * localedata/locales/nb_NO: Likewise.
3105         * localedata/locales/nds_DE: Likewise.
3106         * localedata/locales/nds_NL: Likewise.
3107         * localedata/locales/ne_NP: Likewise.
3108         * localedata/locales/nhn_MX: Likewise.
3109         * localedata/locales/niu_NU: Likewise.
3110         * localedata/locales/niu_NZ: Likewise.
3111         * localedata/locales/nl_AW: Likewise.
3112         * localedata/locales/nl_BE: Likewise.
3113         * localedata/locales/nl_NL: Likewise.
3114         * localedata/locales/nn_NO: Likewise.
3115         * localedata/locales/nr_ZA: Likewise.
3116         * localedata/locales/nso_ZA: Likewise.
3117         * localedata/locales/oc_FR: Likewise.
3118         * localedata/locales/om_ET: Likewise.
3119         * localedata/locales/om_KE: Likewise.
3120         * localedata/locales/or_IN: Likewise.
3121         * localedata/locales/os_RU: Likewise.
3122         * localedata/locales/pa_IN: Likewise.
3123         * localedata/locales/pa_PK: Likewise.
3124         * localedata/locales/pap_AW: Likewise.
3125         * localedata/locales/pap_CW: Likewise.
3126         * localedata/locales/pl_PL: Likewise.
3127         * localedata/locales/ps_AF: Likewise.
3128         * localedata/locales/pt_BR: Likewise.
3129         * localedata/locales/pt_PT: Likewise.
3130         * localedata/locales/quz_PE: Likewise.
3131         * localedata/locales/raj_IN: Likewise.
3132         * localedata/locales/ro_RO: Likewise.
3133         * localedata/locales/ru_RU: Likewise.
3134         * localedata/locales/ru_UA: Likewise.
3135         * localedata/locales/rw_RW: Likewise.
3136         * localedata/locales/sa_IN: Likewise.
3137         * localedata/locales/sat_IN: Likewise.
3138         * localedata/locales/sc_IT: Likewise.
3139         * localedata/locales/sd_IN: Likewise.
3140         * localedata/locales/sd_IN@devanagari: Likewise.
3141         * localedata/locales/se_NO: Likewise.
3142         * localedata/locales/sgs_LT: Likewise.
3143         * localedata/locales/shs_CA: Likewise.
3144         * localedata/locales/si_LK: Likewise.
3145         * localedata/locales/sid_ET: Likewise.
3146         * localedata/locales/sk_SK: Likewise.
3147         * localedata/locales/sl_SI: Likewise.
3148         * localedata/locales/sm_WS: Likewise.
3149         * localedata/locales/so_DJ: Likewise.
3150         * localedata/locales/so_ET: Likewise.
3151         * localedata/locales/so_KE: Likewise.
3152         * localedata/locales/so_SO: Likewise.
3153         * localedata/locales/sq_AL: Likewise.
3154         * localedata/locales/sq_MK: Likewise.
3155         * localedata/locales/sr_ME: Likewise.
3156         * localedata/locales/sr_RS: Likewise.
3157         * localedata/locales/sr_RS@latin: Likewise.
3158         * localedata/locales/ss_ZA: Likewise.
3159         * localedata/locales/st_ZA: Likewise.
3160         * localedata/locales/sv_FI: Likewise.
3161         * localedata/locales/sv_SE: Likewise.
3162         * localedata/locales/sw_KE: Likewise.
3163         * localedata/locales/sw_TZ: Likewise.
3164         * localedata/locales/szl_PL: Likewise.
3165         * localedata/locales/ta_IN: Likewise.
3166         * localedata/locales/ta_LK: Likewise.
3167         * localedata/locales/tcy_IN: Likewise.
3168         * localedata/locales/te_IN: Likewise.
3169         * localedata/locales/tg_TJ: Likewise.
3170         * localedata/locales/th_TH: Likewise.
3171         * localedata/locales/the_NP: Likewise.
3172         * localedata/locales/ti_ER: Likewise.
3173         * localedata/locales/ti_ET: Likewise.
3174         * localedata/locales/tig_ER: Likewise.
3175         * localedata/locales/tk_TM: Likewise.
3176         * localedata/locales/tl_PH: Likewise.
3177         * localedata/locales/tn_ZA: Likewise.
3178         * localedata/locales/to_TO: Likewise.
3179         * localedata/locales/tpi_PG: Likewise.
3180         * localedata/locales/tr_CY: Likewise.
3181         * localedata/locales/tr_TR: Likewise.
3182         * localedata/locales/ts_ZA: Likewise.
3183         * localedata/locales/tt_RU: Likewise.
3184         * localedata/locales/tt_RU@iqtelif: Likewise.
3185         * localedata/locales/ug_CN: Likewise.
3186         * localedata/locales/uk_UA: Likewise.
3187         * localedata/locales/unm_US: Likewise.
3188         * localedata/locales/ur_IN: Likewise.
3189         * localedata/locales/ur_PK: Likewise.
3190         * localedata/locales/uz_UZ: Likewise.
3191         * localedata/locales/uz_UZ@cyrillic: Likewise.
3192         * localedata/locales/ve_ZA: Likewise.
3193         * localedata/locales/vi_VN: Likewise.
3194         * localedata/locales/wa_BE: Likewise.
3195         * localedata/locales/wae_CH: Likewise.
3196         * localedata/locales/wal_ET: Likewise.
3197         * localedata/locales/wo_SN: Likewise.
3198         * localedata/locales/xh_ZA: Likewise.
3199         * localedata/locales/yi_US: Likewise.
3200         * localedata/locales/yo_NG: Likewise.
3201         * localedata/locales/yue_HK: Likewise.
3202         * localedata/locales/yuw_PG: Likewise.
3203         * localedata/locales/zh_CN: Likewise.
3204         * localedata/locales/zh_HK: Likewise.
3205         * localedata/locales/zh_SG: Likewise.
3206         * localedata/locales/zh_TW: Likewise.
3207         * localedata/locales/zu_ZA: Likewise.
3209 2017-11-13  Florian Weimer  <fweimer@redhat.com>
3211         * support/next_to_fault.h, support/next_to_fault.c: New files.
3212         * support/Makefile (libsupport-routines): Add next_to_fault.
3213         * resolv/tst-inet_pton.c (struct next_to_fault)
3214         (next_to_fault_allocate, next_to_fault_free): Remove.
3215         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
3217 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
3219         * elf/dl-support.c: Include <dl-procruntime.c>.
3220         * include/link.h: Include <link_map.h>.
3221         * sysdeps/generic/dl-procruntime.c: New file.
3222         * sysdeps/generic/link_map.h: Likewise.
3223         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
3224         the writable ld.so namespace.
3226 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
3228         timezone: pacify GCC -Wstringop-truncation
3229         Problem reported by Martin Sebor in:
3230         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
3231         * timezone/zic.c (writezone): Use memcpy, not strncpy.
3233 2017-11-12  Florian Weimer  <fweimer@redhat.com>
3235         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
3236         tst-xreadlink.
3237         (tests): Add tst-xreadlink.
3238         * support/support.h (xstrndup): Declare.
3239         * support/xunistd.h (xunlink, xreadlink): Declare.
3240         * support/temp_file.h (support_create_temp_directory): Declare.
3241         * support/temp_file.c (support_create_temp_directory): New function.
3242         * support/support_chroot.c (support_chroot_create): Use it.
3243         * support/xreadlink.c: New file.
3244         * support/xstrndup.c: Likewise.
3245         * support/xunlink.c: Likewise.
3246         * support/tst-xreadlink.c: Likewise.
3248 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
3250         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
3252 2017-11-11  Florian Weimer  <fweimer@redhat.com>
3254         [BZ #22409]
3255         [BZ #22412]
3256         * resolv/res_comp.c (printable_string, binary_hnok)
3257         (binary_leading_dash): New functions.
3258         (res_hnok): Reimplement using these functions and ns_name_pton.
3259         (res_ownok): Likewise.
3260         (res_mailok): Reimplement using printable_string, ns_name_pton and
3261         binary_hnok.
3262         (res_dnok): Reimplement using printable_string and ns_name_pton.
3263         * resolv/tst-res_hnok.c (tests): Add additional tests.
3264         (LETTERDIGITS, PRINTABLE): Define.
3265         (do_test): Adjust one_char results.
3267 2017-11-11  Florian Weimer  <fweimer@redhat.com>
3269         [BZ #22413]
3270         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
3271         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
3273 2017-11-11  Florian Weimer  <fweimer@redhat.com>
3275         * resolv/tst-ns_name_pton.c: New file.
3276         * resolv/Makefile (tests): Add tst-ns_name_pton.
3277         (tst-ns_name_pton): Link against libresolv.
3279 2017-11-11  Florian Weimer  <fweimer@redhat.com>
3281         * resolv/tst-res_hnok.c: New file.
3282         * resolv/Makefile (tests): Add tst-res_hnok.
3283         (tst-res_hnok): Link against libresolv.
3285 2017-11-11  Florian Weimer  <fweimer@redhat.com>
3287         * resolv/tst-resolv-network.c: Use test framework instead explicit
3288         main function.
3290 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
3292         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
3293         <jmp_buf-macros.h>.
3294         [!_ISOMAC] (STR_HELPER): New.
3295         [!_ISOMAC] (STR): Likewise.
3296         [!_ISOMAC] (TEST_SIZE): Likewise.
3297         [!_ISOMAC] (TEST_ALIGN): Likewise.
3298         [!_ISOMAC] (TEST_OFFSET): Likewise.
3299         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
3300         field offsets of jmp_buf as well as sigjmp_buf.
3301         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
3302         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
3303         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
3304         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
3305         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
3306         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
3307         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
3308         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
3309         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
3310         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
3311         Likewise.
3312         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
3313         Likewise.
3314         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
3315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
3316         Likewise.
3317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
3318         Likewise.
3319         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
3320         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
3321         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
3322         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
3323         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
3324         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
3325         Likewise.
3326         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
3327         Likewise.
3328         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
3329         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
3330         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
3332 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
3334         * include/float.h
3335         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3336         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
3337         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3338         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
3339         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3340         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
3341         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3342         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
3343         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3344         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
3345         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3346         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
3347         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3348         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
3349         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3350         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
3351         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3352         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
3353         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3354         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
3355         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3356         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
3357         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3358         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
3359         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3360         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
3361         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3362         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
3363         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3364         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
3365         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3366         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
3367         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3368         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
3369         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3370         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
3371         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3372         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
3373         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3374         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
3375         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3376         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
3377         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3378         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
3379         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3380         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
3381         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3382         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
3383         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3384         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
3385         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3386         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
3387         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3388         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
3389         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3390         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
3391         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3392         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
3393         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3394         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
3395         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3396         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
3397         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3398         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
3399         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3400         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
3401         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3402         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
3403         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3404         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
3405         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3406         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
3407         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3408         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
3409         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3410         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
3411         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3412         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
3413         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3414         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
3415         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3416         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
3417         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3418         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
3419         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3420         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
3421         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3422         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
3424         * stdlib/tst-strtod.h (F16): New macro.
3425         (F32): Likewise.
3426         (F64): Likewise.
3427         (F32X): Likewise.
3428         (F64X): Likewise.
3429         (F128X): Likewise.
3430         (IF_FLOAT16): Likewise.
3431         (IF_FLOAT32): Likewise.
3432         (IF_FLOAT64): Likewise.
3433         (IF_FLOAT32X): Likewise.
3434         (IF_FLOAT64X): Likewise.
3435         (IF_FLOAT128X): Likewise.
3436         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
3437         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
3438         (STRTOD_TEST_FOREACH): Likewise.
3439         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
3440         (CHOOSE_f64): Likewise.
3441         (CHOOSE_f32x): Likewise.
3442         (CHOOSE_f64x): Likewise.
3444 2017-11-07  Andreas Schwab  <schwab@suse.de>
3446         * nptl/Makefile (tests-internal): Remove tst-typesizes.
3448 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
3450         [BZ #22403]
3451         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
3452         to be escaped.
3453         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
3454         to be escaped.
3456 2017-11-07  Claude Paroz <claude@2xlibre.net>
3458         [BZ #22403]
3459         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
3460         to be escaped.
3461         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
3462         to be escaped.
3463         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
3464         to be escaped.
3466 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3468         [BZ #22298]
3469         * nptl/allocatestack.c (allocate_stack): Check if
3470         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
3471         __PTHREAD_MUTEX_HAVE_PREV is defined.
3472         * nptl/descr.h (pthread): Likewise.
3473         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
3474         Likewise.
3475         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
3476         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
3477         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
3478         * sysdeps/nptl/bits/thread-shared-types.h
3479         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
3480         defines.
3481         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
3482         of __WORDSIZE for internal layout.
3483         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
3484         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
3485         instead of __WORDSIZE whether to use an union for __spins and __list
3486         fields.
3487         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
3488         case.
3489         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
3490         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
3491         defines.
3492         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
3493         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3494         Likewise.
3495         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
3496         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3497         Likewise.
3498         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
3499         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3500         Likewise.
3501         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
3502         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3503         Likewise.
3504         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
3505         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3506         Likewise.
3507         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
3508         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3509         Likewise.
3510         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
3511         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3512         Likewise.
3513         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
3514         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3515         Likewise.
3516         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
3517         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3518         Likewise.
3519         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
3520         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3521         Likewise.
3522         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
3523         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3524         Likewise.
3525         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
3526         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3527         Likewise.
3528         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
3529         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3530         Likewise.
3531         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
3532         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3533         Likewise.
3535         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
3536         New macros.
3537         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
3538         checks for expected input type size.
3539         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
3540         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
3541         Likewise.
3542         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
3543         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
3544         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
3545         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
3546         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
3547         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
3548         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
3549         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
3550         superflous runtime assert check.
3551         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
3552         Likewise.
3553         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
3554         Likewise.
3555         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
3556         Likewise.
3557         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
3558         Likewise.
3559         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
3560         Likewise.
3561         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
3562         Likewise.
3563         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
3564         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
3565         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
3566         Likewise.
3567         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
3568         Likewise.
3569         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
3570         Likewise.
3571         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
3572         Likewise.
3573         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
3574         Likewise.
3575         * nptl/pthread_attr_setinheritsched.c
3576         (__pthread_attr_setinheritsched): Likewise.
3577         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
3578         Likewise.
3579         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
3580         Likewise.
3581         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
3582         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
3583         __old_pthread_attr_setstack): Likewise.
3584         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
3585         Likewise.
3586         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
3587         Likewise.
3588         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
3589         Likewise.
3590         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
3591         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
3592         Likewise.
3593         * nptl/tst-typesizes.c: Remove file.
3595         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
3596         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
3597         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
3598         checks for internal pthread_mutex_t offsets.
3599         * sysdeps/aarch64/nptl/pthread-offsets.h
3600         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
3601         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
3602         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
3603         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
3604         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
3605         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
3606         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
3607         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
3608         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
3609         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
3610         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
3611         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
3612         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
3613         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
3614         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
3615         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
3616         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
3617         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
3619 2017-11-07  Florian Weimer  <fweimer@redhat.com>
3621         * bits/mman-linux.h: Move ...
3622         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
3623         comment.
3624         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
3625         outdated comment.
3627 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3629         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
3630         Redefine STRNLEN as __strnlen_power8.
3632 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3634         * signal/sighold.c (sighold): Optimize implementation.
3636         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
3637         __NR_rt_sigqueueinfo.
3639         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
3640         __sigtimedwait.
3641         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
3642         assume __NR_rt_sigtimedwait.
3643         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
3644         and add LIBC_CANCEL_HANDLED for cancellation marking.
3645         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
3647         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
3648         (sysdeps_routines): Add memchr_noneon.
3649         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
3650         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
3651         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
3652         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
3653         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
3654         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
3655         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
3657         * sysdeps/arm/arm-ifunc.h: New file.
3658         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
3659         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
3660         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
3661         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
3662         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
3663         (__memcpy_neon): Avoid create hidden alias.
3664         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
3665         (__memcpy_vfp): Likewise.
3666         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
3667         (sysdep_routines): Add memcpy_arm.
3668         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
3670 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
3672         [BZ #22362]
3673         * Makerules (make-link-multidir): New.
3674         * config.make.in (multidir): New.
3675         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
3676         * configure: Regenerated.
3677         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
3678         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
3679         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
3680         New target.
3682 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
3684         [BZ #22402]
3685         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
3686         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
3688 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
3690         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
3691         to be escaped.
3693 2017-11-04  Florian Weimer  <fweimer@redhat.com>
3695         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
3697 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
3699         * math/math.h [__HAVE_DISTINCT_FLOAT16
3700         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
3701         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
3702         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
3703         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
3704         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
3705         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
3706         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
3707         (__MATH_TG_F32): New macro.
3708         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
3709         (__MATH_TG_F64X): Likewise.
3710         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
3711         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
3713 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
3715         * po/de.po: Update translations.
3716         * po/ru.po: Likewise.
3718 2017-11-03  Florian Weimer  <fweimer@redhat.com>
3720         * manual/filesys.texi (Hard Links): Document linkat.
3722 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
3724         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
3725         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
3726         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
3727         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
3728         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
3729         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
3730         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
3731         the same as _Float128.
3732         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
3733         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
3734         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
3736         * stdlib/stdlib.h
3737         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
3738         Declare.
3739         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
3740         Likewise.
3741         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
3742         Likewise.
3743         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3744         (strtof32x): Likewise.
3745         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3746         (strtof64x): Likewise.
3747         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3748         (strtof128x): Likewise.
3749         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3750         (strfromf16): Likewise.
3751         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3752         (strfromf32): Likewise.
3753         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3754         (strfromf64): Likewise.
3755         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3756         (strfromf32x): Likewise.
3757         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3758         (strfromf64x): Likewise.
3759         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3760         (strfromf128x): Likewise.
3761         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
3762         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
3763         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
3764         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
3765         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
3766         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
3768 2017-11-03  Richard Henderson  <rth@twiddle.net>
3770         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
3772 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3774         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
3776 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3778         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
3779         DT_TLSDESC_GOT initialization.
3780         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
3781         (_dl_tlsdesc_resolve_hold): Likewise.
3782         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
3783         (_dl_tlsdesc_resolve_hold): Likewise.
3784         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
3785         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
3787 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3789         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
3791 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3793         [BZ #18572]
3794         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
3795         non-lazily for R_ARM_TLS_DESC.
3797 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3799         [BZ #17078]
3800         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
3801         R_ARM_TLS_DESC case.
3802         (elf_machine_lazy_rel): Remove the prelink check.
3804 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3806         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
3807         DT_TLSDESC_GOT initialization.
3808         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
3809         (_dl_tlsdesc_resolve_rela): Likewise.
3810         (_dl_tlsdesc_resolve_hold): Likewise.
3811         (_dl_tlsdesc_undefweak): Remove ldar.
3812         (_dl_tlsdesc_dynamic): Likewise.
3813         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
3814         (_dl_tlsdesc_resolve_rela): Likewise.
3815         (_dl_tlsdesc_resolve_hold): Likewise.
3816         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
3817         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
3818         (_dl_tlsdesc_resolve_rela): Likewise.
3819         (_dl_tlsdesc_resolve_hold): Likewise.
3821 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3823         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
3824         binding and initialization non-lazily for R_AARCH64_TLSDESC.
3826 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3828         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
3829         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
3831 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
3833         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
3834         Declare.
3835         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
3836         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
3837         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
3838         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
3839         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
3840         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
3841         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
3842         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
3843         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
3844         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
3845         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
3847 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
3849         [BZ #22382]
3850         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
3851         * localedata/locales/tpi_PG: Add standard header.
3853 2017-11-02  Florian Weimer  <fweimer@redhat.com>
3855         test-errno-linux: quotactl can fail with EPERM in containers.
3856         * sysdeps/unix/sysv/linux/test-errno-linux.c
3857         (LIST, LIST_FORWARD): New macros.
3858         (check_error_in_list): New function.
3859         (test_wrp_rv): Accept list of permitted error codes.
3860         (test_wrp_rv2): Remove.
3861         (test_wrp): Call test_wrp_rv with list of error codes.
3862         (test_wrp2): Accept list of error codes.
3863         (do_test): Adjust.  Allow EPERM for quotactl.
3865 2017-11-02  Florian Weimer  <fweimer@redhat.com>
3867         * stdio-common/bug16.c (do_test): Use array_length.
3868         * stdio-common/errlist.c (_sys_nerr): Likewise.
3869         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
3870         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
3871         * stdio-common/psiginfo.c (psiginfo): Use array_length.
3872         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
3873         (do_test): Use array_length.
3874         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
3875         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
3876         * stdio-common/tst-printf-round.c (do_test): Likewise.
3877         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
3878         (CHECK): Use array_length.
3879         * stdio-common/tstdiomisc.c (t3, F): Likewise.
3880         * stdio-common/tstscanf.c (main): Likewise.
3881         * stdio-common/vfprintf.c (process_string_arg): Likewise.
3883 2017-11-02  Florian Weimer  <fweimer@redhat.com>
3885         Add array_length and array_end macros.
3886         * include/array_length.h: New file.
3888 2017-11-02  Florian Weimer  <fweimer@redhat.com>
3890         [BZ #22332]
3891         * posix/tst-glob-tilde.c (do_noescape): New variable.
3892         (one_test): Process it.
3893         (do_test): Set do_noescape.  Add unescaping test case.
3895 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
3897         * math/complex.h
3898         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
3899         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
3900         with appropriate macros defined and undefined.
3901         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
3902         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
3903         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
3904         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
3905         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
3906         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
3907         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
3908         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
3909         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
3910         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
3912         * math/complex.h
3913         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
3914         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
3915         that for long double.  Do not condition define and undefine of
3916         _Mdouble_complex_ on [__CFLOAT128].
3918 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
3920         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
3921         of <sysdeps/generic/sysdep.h>.
3922         (ALIGNARG): Removed.
3923         (ASM_SIZE_DIRECTIVE): Likewise.
3924         (ENTRY): Likewise.
3925         (END): Likewise.
3926         (ENTRY_CHK): Likewise.
3927         (END_CHK): Likewise.
3928         (syscall_error): Likewise.
3929         (mcount): Likewise.
3930         (PSEUDO_END): Likewise.
3931         (L): Likewise.
3932         (atom_text_section): Likewise.
3933         * sysdeps/x86/sysdep.h: New file.
3934         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
3935         of <sysdeps/generic/sysdep.h>.
3936         (ALIGNARG): Removed.
3937         (ASM_SIZE_DIRECTIVE): Likewise.
3938         (ENTRY): Likewise.
3939         (END): Likewise.
3940         (ENTRY_CHK): Likewise.
3941         (END_CHK): Likewise.
3942         (syscall_error): Likewise.
3943         (mcount): Likewise.
3944         (PSEUDO_END): Likewise.
3945         (L): Likewise.
3946         (atom_text_section): Likewise.
3948 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
3950         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
3951         category of LC_CTYPE set to "i18n:2012".
3952         * localedata/locales/i18n_ctype: Regenerate.
3954 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
3956         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
3957         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3958         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3959         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3961         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
3962         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
3963         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
3964         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
3966 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
3968         * math/complex.h
3969         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
3970         New macro.
3971         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
3972         Likewise.
3973         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
3974         Likewise.
3975         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3976         (CMPLXF32X): Likewise.
3977         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3978         (CMPLXF64X): Likewise.
3979         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3980         (CMPLXF128X): Likewise.
3982         * math/math.h
3983         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
3984         (__MATH_EVAL_FMT2): Define to add 0.0f.
3986 2017-10-31  Alan Modra  <amodra@gmail.com>
3988         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
3989         include sysdep.h.
3990         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
3991         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
3992         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
3993         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
3994         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
3995         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3996         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
3997         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
3998         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
3999         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
4001         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
4002         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
4003         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4004         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
4005         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
4006         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
4007         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
4008         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
4009         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
4010         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
4011         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
4012         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
4013         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
4014         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
4015         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
4016         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
4017         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
4018         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
4019         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
4020         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
4021         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
4022         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
4023         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
4024         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
4025         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
4026         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
4027         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
4028         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
4029         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
4030         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
4031         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
4032         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
4033         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
4034         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
4035         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
4036         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
4037         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
4038         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
4039         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
4040         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
4041         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
4042         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
4043         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
4044         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
4045         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
4046         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
4047         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
4048         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
4049         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
4050         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
4051         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
4052         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
4053         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
4054         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
4055         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
4056         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
4057         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
4058         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
4060         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
4061         include sysdep.h and math_ldbl_opt.h.
4063         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
4064         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
4065         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4066         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
4067         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
4068         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
4069         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
4070         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
4071         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
4072         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
4073         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
4074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
4075         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
4076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
4077         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
4078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
4079         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
4080         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
4081         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
4082         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
4083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
4084         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
4085         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
4086         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4087         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
4088         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4090 2017-10-31  Alan Modra  <amodra@gmail.com>
4092         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
4093         string/strncase_l.c, not string/strncase.c.
4094         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
4095         (libc_hidden_def): Redefine.
4097 2017-10-31  Alan Modra  <amodra@gmail.com>
4099         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
4100         (__STRCMP, STRCMP, __strcasecmp_l): Define.
4101         (__strcasecmp): Don't define.
4103 2017-10-31  Alan Modra  <amodra@gmail.com>
4105         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
4106         IS_IN (libc).
4107         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
4108         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
4109         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
4111 2017-10-31  Alan Modra  <amodra@gmail.com>
4113         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
4114         USE_AS_STPNCPY.
4116 2017-10-31  Alan Modra  <amodra@gmail.com>
4118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
4119         Redefine only when SHARED.
4121 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
4123         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
4124         Include <bits/math-finite.h> with appropriate macros defined and
4125         undefined.
4126         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
4127         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
4128         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
4129         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
4130         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
4132         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
4133         [!_Mlong_double_] (_Mlong_double_): Likewise.
4134         [!_Mfloat16_] (_Mfloat16_): Likewise.
4135         [!_Mfloat32_] (_Mfloat32_): Likewise.
4136         [!_Mfloat64_] (_Mfloat64_): Likewise.
4137         [!_Mfloat128_] (_Mfloat128_): Likewise.
4138         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
4139         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
4140         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
4141         (_Mdouble_): Define without indirection through those macros.
4142         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
4143         [!_Mfloat128_] (_Mfloat128_): Likewise.
4144         [_Mlong_double_] (_Mlong_double_): Likewise.
4145         (_Mdouble_): Define without indirection through those macros.
4146         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
4147         not add -D_Mlong_double_=double.
4148         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
4149         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
4151 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
4153         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
4155 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
4157         * sysdeps/x86/libc-start.c: Reformat.
4159 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
4161         [BZ #22353]
4162         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
4163         (1): Renamed to ...
4164         (L(Src0)): This.
4165         (L(Src1)): New.
4166         (L(Src2)): Likewise.
4167         (L(1)): Renamed to ...
4168         (L(Src3)): This.
4170 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
4172         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
4173         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
4174         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
4175         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
4176         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
4177         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
4178         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
4179         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
4180         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
4181         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
4182         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
4183         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
4184         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
4185         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
4186         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
4187         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
4188         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
4189         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
4190         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
4191         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
4192         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
4193         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
4194         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
4195         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
4196         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
4197         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
4198         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
4199         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
4200         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
4201         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
4202         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
4203         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
4204         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
4205         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
4206         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
4207         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
4208         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
4209         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
4210         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
4211         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
4212         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
4213         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
4214         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
4215         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
4216         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
4217         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
4218         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
4219         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
4220         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
4221         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
4222         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
4223         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
4224         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
4225         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
4226         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
4227         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
4228         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
4229         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
4230         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
4231         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
4232         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
4233         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
4234         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
4235         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
4236         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
4237         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
4239 2017-10-30  Florian Weimer  <fweimer@redhat.com>
4241         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
4242         always defined.
4243         * io/tst-mkdirat.c (do_test): Likewise.
4244         * io/tst-mkfifoat.c (do_test): Likewise.
4245         * io/tst-mknodat.c (do_test): Likewise.
4246         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
4247         * locale/programs/locale.c (select_dirs): Likewise.
4248         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
4249         * posix/bug-glob2.c (my_readdir): Likewise.
4250         * posix/tst-dir.c (main): Likewise.
4251         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
4252         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
4254 2017-10-30  Florian Weimer  <fweimer@redhat.com>
4256         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
4257         just __USE_GNU.
4259 2017-10-30  Florian Weimer  <fweimer@redhat.com>
4261         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
4262         Convert to support/test-driver.c.
4263         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
4264         New macro parameters.
4265         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
4266         * posix/tst-gnuglob.c: New file.
4267         * posix/tst-gnuglob64.c: Likewise.
4268         * posix/Makefile (tests): Add tst-gnuglob64.
4270 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
4272         [BZ #19485]
4273         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
4274         and use a better translation for March in “mon”.
4275         * localedata/locales/csb_PL: Use more ASCII to improve the
4276         readability of the source.
4278 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
4280         [BZ #13953]
4281         * localedata/locales/km_KH: Use ASCII as much
4282         as possible for better readability of the source and
4283         remove useless comments.
4284         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
4285         was commented out and apparently wrong anyway because it was
4286         using Lao characters. If Buddhist era should be used
4287         for km_KH, a native speaker should write the correct formaat
4288         for Khmer.
4289         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
4290         (According to CLDR, the first weekday for Cambodia is Sunday).
4291         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
4292         (These were using Lao characters which must be wrong. If we get
4293         the correct data from a native speaker, we could add it back, until
4294         then it is better not to have name_mr and name_mrs at all than
4295         having it wrong).
4297 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
4299         * locale/loadlocale.c: Correct size of
4300         _nl_value_type_LC_<category> arrays.
4302 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
4304         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
4305         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
4306         with appropriate macros defined and undefined.
4307         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
4308         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
4309         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
4310         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
4311         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
4313 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
4315         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
4316         "-O2 -march=i586".
4318 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
4320         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
4321         with lowercase letters to make it agree with CLDR.
4323 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
4325         [BZ #15260]
4326         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
4327         first letters of yesstr and nostr in yesexpr and noexpr,
4328         not for the full words.
4329         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
4330         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
4331         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
4332         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
4333         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
4334         first letters of yesstr and nostr in yesexpr and noexpr,
4335         until now only English was matched in yesexpr and noexpr.
4336         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
4337         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
4338         fil but not for tl. As tl and fil are very similar, using fil
4339         is probably better than using English.
4341 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
4343         [BZ #21706]
4344         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
4345         in yesstr and nostr.
4347 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
4349         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
4350         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
4351         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
4352         Likewise.
4353         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
4354         Likewise.
4355         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
4356         Likewise.
4357         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
4358         Likewise.
4359         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4360         (SNANF128X): Likewise.
4362         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
4363         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
4364         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4365         (HUGE_VAL_F32): Likewise.
4366         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4367         (HUGE_VAL_F64): Likewise.
4368         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4369         (HUGE_VAL_F32X): Likewise.
4370         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4371         (HUGE_VAL_F64X): Likewise.
4372         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4373         (HUGE_VAL_F128X): Likewise.
4375 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
4377         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
4378         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
4379         for the br_FR locale.
4381 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
4383         [BZ #21706]
4384         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
4386 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
4388         * locale/programs/record-status.h: Define globals, and function
4389         prototypes. Move function bodies...
4390         * locale/programs/record-status.c: ... to here. New file.
4391         * iconv/Makefile (iconv_prog-modules): Add record-status.
4392         * locale/Makefile (lib-modules): Likewise.
4393         * iconv/iconv_prog.c: Remove verbose.
4394         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
4395         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
4396         record a warning about ASCII compatibility.
4397         * locale/programs/ld-monetary.c (monetary_finish): If
4398         warn_int_curr_symbol is true then record a warning about the symbol
4399         not being in our ISO 4217 list.
4400         * locale/programs/locale.c: Include record-status.h. Remove verbose.
4401         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
4402         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
4403         (OPT_NO_WARN): Define.
4404         (OPT_WARN): Define.
4405         (options): Add entry for --no-warnings, and --warnings.
4406         (set_warnings): New function to enable/disable warnings.
4407         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
4408         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
4409         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
4410         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
4411         Pass flags to generate_locale.
4412         (generate_locale): Accept new flag argument and pass it to localedef
4413         invocation.
4414         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
4415         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
4417         * localedata/Makefile (test-input-data): Use full file name.
4418         * localedata/da_DK.in: Rename to...
4419         * localedata/da_DK.ISO-8859-1.in: ...this.
4420         * localedata/de_DE.in: Rename to...
4421         * localedata/de_DE.ISO-8859-1.in: ...this.
4422         * localedata/en_US.in: Rename to...
4423         * localedata/en_US.ISO-8859-1.in: ...this.
4424         * localedata/fr_FR.in: Rename to...
4425         * localedata/fr_FR.UTF-8.in: ... this.
4426         * localedata/hr_HR.in: Rename to...
4427         * localedata/hr_HR.ISO-8859-2.in: ...this.
4428         * localedata/hu_HU.in: Rename to...
4429         * localedata/hu_HU.UTF-8.in: ...this.
4430         * localedata/si_LK.in: Rename to...
4431         * localedata/si_LK.UTF-8.in: ...this.
4432         * localedata/sv_SE.in: Rename to...
4433         * localedata/sv_SE.ISO-8859-1.in: ...this.
4434         * localedata/tr_TR.in: Rename to...
4435         * localedata/tr_TR.UTF-8.in: ...this.
4436         * localedata/uk_UA.in: Rename to...
4437         * localedata/uk_UA.UTF-8.in: ...this.
4438         * localedata/sort-test.sh: Test file is locale name with the
4439         suffix.
4441         * localedata/unicode-gen/Makefile (check_i18n): Rename to
4442         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
4443         file.
4444         * localedata/locales/i18n_ctype: Regenerate.
4445         * localedata/locales/tr_TR: Likewise.
4446         * localedata/locales/translit_circle: Likewise.
4447         * localedata/locales/translit_cjk_compat: Likewise.
4448         * localedata/locales/translit_combining: Likewise.
4449         * localedata/locales/translit_compat: Likewise.
4450         * localedata/locales/translit_font: Likewise.
4451         * localedata/locales/translit_fraction: Likewise.
4453 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4455         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
4456         lxvd2x/stxvd2x with lvx/stvx.
4457         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
4459 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
4461         * include/alloc_buffer.h: Replace "if if " with "if " in
4462         comments.
4463         * sysdeps/mips/memcpy.S: Likkewise.
4464         * sysdeps/mips/memset.S: Likewise.
4465         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
4466         Likewise.
4467         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
4468         Likewise.
4469         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
4470         Likewise.
4472 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4474         [BZ #15261]
4475         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
4476         yesexpr and noexpr.
4477         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
4478         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
4479         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
4480         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
4481         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
4482         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
4483         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
4485 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4487         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
4488         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
4489         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
4490         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
4491         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
4492         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
4493         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
4494         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
4495         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
4496         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
4497         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
4498         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
4500 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4502         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
4503         as possible for better readability of the source.
4504         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
4505         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
4506         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
4507         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
4508         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
4509         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
4510         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
4511         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
4512         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
4513         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
4514         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
4515         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
4516         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
4517         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
4518         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
4519         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
4520         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
4521         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
4522         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
4523         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
4524         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
4525         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
4526         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
4527         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
4528         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
4529         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
4530         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
4531         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
4532         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
4533         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
4534         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
4535         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
4536         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
4537         * localedata/locales/en_US (LC_MESSAGES): Likewise.
4538         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
4539         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
4540         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
4541         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
4542         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
4543         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
4544         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
4545         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
4546         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
4547         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
4548         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
4549         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
4550         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
4551         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
4552         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
4553         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
4554         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
4555         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
4556         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
4557         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
4558         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
4559         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
4560         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
4561         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
4562         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
4563         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
4564         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
4565         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
4566         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
4567         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
4568         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
4569         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
4570         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
4571         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
4572         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
4573         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
4574         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
4575         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
4576         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
4577         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
4578         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
4579         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
4580         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
4581         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
4582         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
4583         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
4584         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
4585         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
4586         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
4587         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
4588         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
4589         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
4590         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
4591         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
4592         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
4593         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
4594         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
4595         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
4596         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
4597         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
4598         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
4599         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
4600         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
4601         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
4602         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
4603         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
4604         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
4605         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
4606         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
4607         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
4608         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
4609         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
4610         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
4611         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
4612         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
4613         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
4614         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
4615         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
4616         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
4617         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
4618         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
4619         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
4620         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
4621         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
4622         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
4623         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
4624         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
4625         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
4626         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
4627         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
4628         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
4629         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
4630         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
4631         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
4632         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
4633         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
4634         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
4635         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
4636         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
4637         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
4638         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
4639         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
4640         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
4641         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
4642         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
4643         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
4644         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
4645         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
4646         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
4647         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
4648         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
4649         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
4650         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
4651         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
4652         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
4653         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
4654         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
4655         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
4656         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
4657         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
4658         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
4659         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
4660         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
4661         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
4662         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
4663         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
4664         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
4665         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
4666         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
4667         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
4668         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
4669         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
4670         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
4671         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
4672         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
4673         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
4674         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
4675         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
4676         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
4677         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
4679 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4681         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
4682         (Use first letters of yesstr and nostr correctly instead of using
4683         full words).
4685 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4687         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
4688         (Use first letters of yesstr and nostr correctly).
4690 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4692         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
4693         also check for the first characters of yesstr and nostr.
4694         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
4695         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
4697 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4699         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
4700         also check for Chinese characters.
4702 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4704         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
4705         match also for the contents of yesstr and nostr. As the first letter
4706         of yesstr and nostr is equal, checking only for the first letter
4707         is not enough.
4709 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4711         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
4712         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
4714 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4716         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
4717         of main contributor.
4719 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4721         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
4722         instead of using English.
4724 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4726         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
4727         by including the first letters of nostr and yesexpr in the regexp.
4728         Also make it more readable by using ASCII where possible.
4730 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4732         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
4733         the first letter of nostr in the regexp. It agrees with CLDR now.
4734         Also make it more readable by using ASCII where possible.
4736 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4738         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
4739         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
4740         these strings contain a U+17D6 (which somewhat looks like a colon)
4741         instead of a real colon to separate the full words for “yes”
4742         and “no” from the single letter responses.
4744 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4746         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
4747         it agree with CLDR (include the first letter of yesstr).
4748         Also make it more readable by using ASCII where possible.
4750 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4752         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
4753         and improve yesexpr and noexpr. The yesstr and nostr apparently
4754         came from CLDR. And CLDR has a bug there: these strings contain
4755         a U+0903 (which looks like a colon) instead of a real colon
4756         to separate the full words for “yes” and “no” from the single
4757         letter responses.
4759 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4761         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
4762         letters of the full yesstr and nostr in yesexpr and noexpr.
4764 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4766         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
4767         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
4768         * localedata/locales/an_ES: Make source more readable by using ASCII
4769         where possible.
4771 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4773         [BZ #20952]
4774         * localedata/locales/yuw_PG: New file.
4775         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
4776         * locale/iso-639.def: Add Yau (Uruwa).
4778 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
4780         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
4782 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
4784         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
4785         (__libc_realloc): Likewise.
4786         (_mid_memalign): Likewise.
4787         (__libc_calloc): Likewise.
4789 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
4791         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
4792         by adding the generic +1 and -0 as in all other locales.
4793         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
4794         day names and make it more readable by using ASCII where possible.
4796 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
4798         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
4799         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
4801 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4803         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
4804         WNOHANG in waitpid call.
4806 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4808         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
4809         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
4811         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
4812         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
4813         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
4814         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
4815         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
4816         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
4817         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
4818         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
4819         variables.
4821 2017-10-23  Michael Collison  <michael.collison@arm.com>
4823         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
4824         with __builtin_sqrt.
4825         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
4826         with __builtin_sqrtf.
4827         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
4828         with __builtin_ceil.
4829         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
4830         with __builtin_ceilf.
4831         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
4832         with __builtin_floor.
4833         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
4834         with __builtin_floorf.
4835         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
4836         with __builtin_fma.
4837         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
4838         with __builtin_fmaf.
4839         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
4840         with __builtin_fmax.
4841         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
4842         with __builtin_fmaxf.
4843         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
4844         with __builtin_fmin.
4845         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
4846         with __builtin_fminf.
4847         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
4848         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
4849         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
4850         with builtin_rint and conversion to int.
4851         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
4852         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
4853         with builtin_llround.
4854         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
4855         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
4856         with builtin_rint and conversion to long int.
4857         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
4858         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
4859         with builtin_lround.
4860         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
4861         with builtin_lroundf.
4862         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
4863         statements with __builtin_nearbyint.
4864         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
4865         statements with __builtin_nearbyintf.
4866         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
4867         with __builtin_rint.
4868         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
4869         with __builtin_rintf.
4870         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
4871         with __builtin_round.
4872         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
4873         with __builtin_roundf.
4874         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
4875         with __builtin_trunc.
4876         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
4877         with __builtin_truncf.
4878         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
4879         and s_l[l]round[f].c too.
4881 2017-10-23  Alan Modra  <amodra@gmail.com>
4883         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
4884         Adjust stack after restoring regs.  Add missing LR cfi_restore.
4886 2017-10-23  Alan Modra  <amodra@gmail.com>
4888         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
4889         Move LR save and frame setup/teardown and LR restore to
4890         immediately around memset call.  Provide cfi.
4892 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4894         * sysdeps/i386/fpu/e_powf.S: Removed.
4895         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
4896         * sysdeps/i386/fpu/w_powf.c: Likewise.
4897         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
4898         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4899         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
4900         Add e_powf-sse2.
4901         (CFLAGS-e_powf-sse2.c): New.
4902         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
4903         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
4905 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4907         * sysdeps/i386/fpu/e_log2f.S: Removed.
4908         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
4909         * sysdeps/i386/fpu/w_log2f.c: Likewise.
4910         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
4911         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4912         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
4913         Add e_log2f-sse2.
4914         (CFLAGS-e_log2f-sse2.c): New.
4915         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
4916         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
4918 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4920         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4921         Add e_powf-fma.
4922         (CFLAGS-e_powf-fma.c): New.
4923         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
4924         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
4926 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4928         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4929         Add e_log2f-fma.
4930         (CFLAGS-e_log2f-fma.c): New.
4931         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
4932         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
4934 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4936         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4937         Add e_logf-fma.
4938         (CFLAGS-e_logf-fma.c): New.
4939         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
4940         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
4942 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4944         * sysdeps/i386/fpu/e_logf.S: Removed.
4945         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
4946         * sysdeps/i386/fpu/w_logf.c: Likewise.
4947         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
4948         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
4949         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4950         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
4951         Add e_logf-sse2.
4952         (CFLAGS-e_logf-sse2.c): New.
4953         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
4954         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
4956 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4958         * sysdeps/i386/fpu/e_exp2f.S: Removed.
4959         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
4960         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
4961         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4962         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
4963         Add e_exp2f-sse2.
4964         (CFLAGS-e_exp2f-sse2.c): New.
4965         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
4966         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
4968 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4970         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4971         Add e_exp2f-fma.
4972         (CFLAGS-e_exp2f-fma.c): New.
4973         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
4974         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
4976 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4978         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
4979         * sysdeps/i386/fpu/e_expf.S: Likewise.
4980         * sysdeps/i386/fpu/math_errf.c: Likewise.
4981         * sysdeps/i386/fpu/w_expf.c: Likewise.
4982         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
4983         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4984         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
4985         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
4986         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4987         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
4988         Remove e_expf-ia32.
4989         (CFLAGS-e_expf-sse2.c): New.
4990         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
4991         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
4993 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4995         * sysdeps/x86_64/fpu/e_expf.S: Removed.
4996         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
4997         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
4998         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
4999         e_expf.c.
5000         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
5001         New.
5002         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
5003         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
5004         Renamed to ...
5005         (__redirect_expf): This.
5006         (SYMBOL_NAME): Changed to expf.
5007         (__ieee754_expf): Renamed to ...
5008         (__expf): This.
5009         (__GI___expf): This.
5010         (__ieee754_expf): Add strong_alias.
5011         (__expf_finite): Likewise.
5012         (__expf): New.
5013         Include <sysdeps/ieee754/flt-32/e_expf.c>.
5015 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
5017         [BZ #22332]
5018         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
5019         unescaping.
5021 2017-10-21  Florian Weimer  <fweimer@redhat.com>
5023         * posix/Makefile (tests): Add tst-glob-tilde.
5024         (tests-special): Add tst-glob-tilde-mem.out
5025         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
5026         (tst-glob-tilde-mem.out): Add mtrace check.
5027         * posix/tst-glob-tilde.c: New file.
5029 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
5031         * bits/floatn-common.h: New file.
5032         * math/Makefile (headers): Add bits/floatn-common.h.
5033         * bits/floatn.h: Include <bits/floatn-common.h>.
5034         * sysdeps/ia64/bits/floatn.h: Likewise.
5035         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
5036         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
5037         * sysdeps/powerpc/bits/floatn.h: Likewise.
5038         * sysdeps/x86/bits/floatn.h: Likewise.
5040 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5042         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
5043         indicates whether compiler emits an warning for alias for
5044         functions with incompatible types.
5046         [BZ #22273]
5047         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
5048         the auxiliary process is terminated by a signal before calling _exit
5049         or execve.
5051 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5053         [BZ #21265]
5054         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
5055         New.
5056         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
5057         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
5058         and bit_arch_XSAVEC_Usable if needed.
5059         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
5060         and bit_arch_Use_dl_runtime_resolve_opt.
5061         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
5062         Removed.
5063         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
5064         (bit_arch_Prefer_No_AVX512): Updated.
5065         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
5066         (bit_arch_XSAVEC_Usable): New.
5067         (STATE_SAVE_OFFSET): Likewise.
5068         (STATE_SAVE_MASK): Likewise.
5069         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
5070         (cpu_features): Add xsave_state_size and xsave_state_full_size.
5071         (index_arch_Use_dl_runtime_resolve_opt): Removed.
5072         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
5073         (index_arch_XSAVEC_Usable): New.
5074         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
5075         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
5076         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
5077         is enabled.
5078         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5079         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
5080         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
5081         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
5082         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
5083         _dl_runtime_resolve_xsavec.
5084         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
5085         Removed.
5086         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
5087         instead of VEC_SIZE.
5088         (REGISTER_SAVE_BND0): Removed.
5089         (REGISTER_SAVE_BND1): Likewise.
5090         (REGISTER_SAVE_BND3): Likewise.
5091         (REGISTER_SAVE_RAX): Always defined to 0.
5092         (VMOV): Removed.
5093         (_dl_runtime_resolve_avx): Likewise.
5094         (_dl_runtime_resolve_avx_slow): Likewise.
5095         (_dl_runtime_resolve_avx_opt): Likewise.
5096         (_dl_runtime_resolve_avx512): Likewise.
5097         (_dl_runtime_resolve_avx512_opt): Likewise.
5098         (_dl_runtime_resolve_sse): Likewise.
5099         (_dl_runtime_resolve_sse_vex): Likewise.
5100         (USE_FXSAVE): New.
5101         (_dl_runtime_resolve_fxsave): Likewise.
5102         (USE_XSAVE): Likewise.
5103         (_dl_runtime_resolve_xsave): Likewise.
5104         (USE_XSAVEC): Likewise.
5105         (_dl_runtime_resolve_xsavec): Likewise.
5106         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
5107         Removed.
5108         (_dl_runtime_resolve_avx512_opt): Likewise.
5109         (_dl_runtime_resolve_avx): Likewise.
5110         (_dl_runtime_resolve_avx_opt): Likewise.
5111         (_dl_runtime_resolve_sse): Likewise.
5112         (_dl_runtime_resolve_sse_vex): Likewise.
5113         (_dl_runtime_resolve_fxsave): New.
5114         (_dl_runtime_resolve_xsave): Likewise.
5115         (_dl_runtime_resolve_xsavec): Likewise.
5117 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
5119         [BZ #22320]
5120         CVE-2017-15670
5121         * posix/glob.c (__glob): Fix one-byte overflow.
5123 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
5125         * malloc/malloc.c (sysdep-cancel.h): Add include.
5127 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
5129         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
5131 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
5133         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
5134         (tests): Remove $(objpfx)ga_test depdendency.
5135         * resolv/ga_test.c: Remove file.
5137 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
5139         [BZ #18812]
5140         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
5141         * localedata/locales/kab_DZ: New file.
5143 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5145         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
5146         _dl_relocate_static_pie instead of _dl_start to compute load
5147         address in static PIE.
5149 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5151         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
5153 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
5155         [BZ #13605]
5156         * localedata/SUPPORTED: Add shn_MM/UTF-8.
5157         * localedata/locales/shn_MM: New file.
5159 2017-10-20  Florian Weimer  <fweimer@redhat.com>
5161         [BZ #22321]
5162         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
5163         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
5164         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
5165         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
5166         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
5167         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
5169 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
5171         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5173 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
5175         * sysdeps/mips/ieee754/bits/floatn.h: New file.
5177         [BZ #22322]
5178         * sysdeps/mips/bits/long-double.h: Move to ....
5179         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
5181 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
5183         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
5185 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
5186             H.J. Lu  <hongjiu.lu@intel.com>
5188         [BZ #22299]
5189         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
5190         GLRO(dl_platform) to NULL.
5191         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
5192         (modules-names): Add tst-platformmod-1 and
5193         x86_64/tst-platformmod-2.
5194         (CFLAGS-tst-platform-1.c): New.
5195         (CFLAGS-tst-platformmod-1.c): Likewise.
5196         (CFLAGS-tst-platformmod-2.c): Likewise.
5197         (LDFLAGS-tst-platformmod-2.so): Likewise.
5198         ($(objpfx)tst-platform-1): Likewise.
5199         ($(objpfx)tst-platform-1.out): Likewise.
5200         (tst-platform-1-ENV): Likewise.
5201         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
5202         * sysdeps/x86_64/tst-platform-1.c: New file.
5203         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
5204         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
5206 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
5208         [BZ #13994]
5209         * locale/iso-639.def: Add Karbi.
5210         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
5211         * localedata/locales/mjw_IN: New file.
5213 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
5215         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
5216         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
5217         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
5218         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
5219         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
5220         (libm_alias_ldouble_other_r): Also create _Float128 alias.
5221         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
5222         <bits/floatn.h>.
5223         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
5224         (libm_alias_ldouble_other_r): Also create _Float128 alias.
5225         * manual/math.texi (Mathematics): Document additional architecture
5226         support for _Float128.
5227         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
5228         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5229         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5230         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5231         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5232         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5233         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5234         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5235         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5236         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5237         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5238         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5239         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5240         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5241         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5243 2017-10-18  Renlin Li  <renlin.li@arm.com>
5245         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
5246         _DYNAMIC symbol to calculate load address.
5248 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
5250         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
5251         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
5252         summary bits.
5253         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
5254         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
5256 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
5258         [BZ #16777]
5259         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
5260         and improve readability by using more ASCII.
5261         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
5262         and improve readability by using more ASCII.
5264 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
5266         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
5267         not all targets support atomics on bool.
5269 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
5271         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
5272         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
5273         __f128.
5274         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
5275         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
5276         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
5277         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
5278         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
5279         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
5281 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5283         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
5284         defines.
5286 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
5288         [BZ #22159]
5289         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
5290         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
5291         (do_check_remalloced_chunk): Fix build bug.
5292         (do_check_malloc_state): Add assert that checks arena->top.
5293         (malloc_consolidate): Remove initialization.
5294         (int_mallinfo): Remove call to malloc_consolidate.
5295          (__libc_mallopt): Clarify why malloc_consolidate is needed.
5297 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
5299         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
5300         (have_fastchunks): Remove.
5301         (clear_fastchunks): Remove.
5302         (set_fastchunks): Remove.
5303         (malloc_state): Add have_fastchunks.
5304         (malloc_init_state): Use have_fastchunks.
5305         (do_check_malloc_state): Remove incorrect invariant checks.
5306         (_int_malloc): Use have_fastchunks.
5307         (_int_free): Likewise.
5308         (malloc_consolidate): Likewise.
5310 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
5312         * malloc/malloc.c (tcache_put): Inline.
5313         (tcache_get): Inline.
5315 2017-10-17  Jordi Mallach  <jordi@gnu.org>
5317         Aurelien Jarno  <aurelien@aurel32.net>
5318         [BZ #2522]
5319         * localedata/locales/ca_ES@valencia: New file.
5320         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
5322 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
5324         [BZ #22296]
5325         * math/math.h: Let signbit use the builtin in C++ mode with gcc
5326         < 6.x
5328 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5330         * scripts/build-many-glibcs.py (Context.add_all_configs):
5331         Add arm-linux-gnueabihf multiarch extra_glibcs.
5333         * sysdeps/generic/ifunc-init.h: New file.
5334         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
5336 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
5338         [BZ #22019]
5339         * localedata/locales/el_GR: Set n_cs_precedes to 0.
5340         * localedata/locales/el_CY: copy "el_GR" because it is identical.
5341         * stdlib/tst-strfmon_l.c: adapt test case.
5343 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
5345         * sysdeps/generic/float128-abi.h: New file.
5346         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
5347         non-__prefixed symbols to ....
5348         * math/Versions: ... here.  Include <float128-abi.h>.
5349         * stdlib/Versions ... and here.  Include <float128-abi.h>
5351 2017-10-16  Florian Weimer  <fweimer@redhat.com>
5353         * version.h (VERSION): Switch to ".9000" as the development
5354         version suffix.
5356 2017-10-16  Florian Weimer  <fweimer@redhat.com>
5358         [BZ #22050]
5359         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
5360         compat_symbol_reference to access non-default version.
5362 2017-10-16  Florian Weimer  <fweimer@redhat.com>
5364         * malloc/Makefile (others-extras): Set to mcheck-init.o.
5366 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
5368         * include/shlib-compat.h (compat_symbol_reference): Update
5369         comment.
5371 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
5373         * math/Makefile (test-types): Add
5374         $(type-float128-$(float128-alias-fcts)).
5375         * math/test-float128.h (TYPE_STR): Define conditional on
5376         [FLT128_MANT_DIG == LDBL_MANT_DIG].
5377         (ULP_IDX): Likewise.
5378         (ULP_I_IDX): Likewise.
5380         * stdlib/strtold.c: Include <bits/floatn.h>
5381         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
5382         and later undefine as macro.  Define as weak alias if
5383         [!USE_WIDE_CHAR].
5384         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
5385         and later undefine as macro.  Define as weak alias if
5386         [USE_WIDE_CHAR].
5387         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
5388         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
5389         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
5390         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
5391         Define and later undefine as macro.  Define as weak alias if
5392         [USE_WIDE_CHAR].
5393         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
5394         <bits/floatn.h>.
5395         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
5396         Define and later undefine as macro.  Define as weak alias if
5397         [!USE_WIDE_CHAR].
5398         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
5399         Define and later undefine as macro.  Define as weak alias if
5400         [USE_WIDE_CHAR].
5402 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
5404         * localedata/collate-test.c (allocate_arrays): Don't use \n in
5405         record_verbose messages.
5407 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5409         [BZ #22052]
5410         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
5411         to silence -O3 -Wall warning with GCC 7.
5413 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
5415         * Makeconfig (+link-static-before-libc): Use the first of
5416         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
5417         * gmon/Makefile (tests): Add tst-gmon-static.
5418         (tests-static): Likewise.
5419         (CFLAGS-tst-gmon-static.c): New.
5420         (CRT-tst-gmon-static): Likewise.
5421         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
5422         (tst-gmon-static-ENV): Likewise.
5423         (tests-special): Likewise.
5424         ($(objpfx)tst-gmon-static.out): Likewise.
5425         (clean-tst-gmon-static-data): Likewise.
5426         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
5427         * gmon/tst-gmon-static-gprof.sh: New file.
5428         * gmon/tst-gmon-static.c: Likewise.
5430 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
5432         [BZ #22295]
5433         * locale/programs/linereader.c (get_string): Don't warn on
5434         non-symbolic character.
5436         [BZ #22294]
5437         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
5438         int_curr_symbol.
5440         [BZ #22292]
5441         * locale/programs/record-status.h: New file
5442         * locale/programs/locale.c: Add comment.
5443         * locale/programs/charmap-dir.c: Don't include error.h.
5444         (charmap_opendir): Use record_error.
5445         * locale/programs/charmap.c: Don't include error.h.
5446         (charmap_read): Use record_error, and record_warning.
5447         (parse_charmap): Likewise.
5448         * locale/programs/ld-address.c: Don't include error.h.
5449         (address_finish): Use record_error, and record_warning.
5450         * locale/programs/ld-collate.c: Don't include error.h.
5451         (collate_finish): Use record_error, and record_error_at_line.
5452         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
5453         (ctype_class_new): Likewise.
5454         (ctype_map_new): Likewise.
5455         (set_one_default): Likewise.
5456         (set_class_defaults): Likewise.
5457         (translit_flatten): Likewise.
5458         (allocate_arrays): Use record_error, and record_verbose.
5459         * locale/programs/ld-identification.c: Don't include error.h.
5460         (indentation_finish): Use record_error and record_warning.
5461         * locale/programs/ld-measurement.c: Don't include error.h.
5462         (measurement_finish): Use record_error.
5463         * locale/programs/ld-messages.c
5464         (message_finish): Likewise.
5465         * locale/programs/ld-monetary.c
5466         (monetary_finish): Likewise.
5467         * locale/programs/ld-name.c (name_finish): Use record_error
5468         and record_warning.
5469         * locale/programs/ld-numeric.c
5470         (numeric_finish): Use record_error.
5471         * locale/programs/ld-paper.c: Don't include error.h.
5472         (paper_finish): Use record_error.
5473         * locale/programs/ld-telephone.c: Don't include error.h.
5474         (telephone_finish): Use record_error.
5475         * locale/programs/ld-time.c (time_finish): Likewise.
5476         * locale/programs/linereader.h (lr_error): Make inline func.
5477         * locale/programs/localedef.c: Define recorded_warning_count,
5478         and recorded_error_count.
5479         (main): Use record_error. Use recorded_error_count and
5480         recorded_warning_count to issue correct error returns.
5481         (add_to_readlist): Use record_error.
5482         (find_locale): Likewise.
5483         (load_locale): Likewise.
5484         * locale/programs/localedef.h: Remove be_quiet
5485         and WITH_CUR_LOCALE.
5486         * locale/programs/locarchive.c (compare_from_file): Use
5487         record_error.
5488         * locale/programs/locfile.c (write_locale_data): Use
5489         record_error.
5490         * locale/programs/repertoire.c: Dont include error.h.
5491         (repertoire_complain): Use record_error.
5492         * localedata/tst-fmon.sh: Expect failures from localedef.
5493         * localedata/tst-locale.sh: Likewise.
5494         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
5496         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
5497         (REPORTS): Likewise.
5498         (check): Likewise.
5499         (i18n): Rename to...
5500         (i18n_ctype): ...this.
5501         (i18n-report): Rename to...
5502         (i18n_ctype-report): ...this.
5503         * localedata/locales/i18n_ctype: Regenerate.
5504         * localedata/locales/i18n: copy i18n_ctype.
5506 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
5508         * stdlib/strfroml.c: Include <bits/floatn.h>.
5509         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
5510         Define before include of <stdlib.h> and undefine afterwards, then
5511         define as weak alias.
5513         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
5514         Undefine and restore default definition.  Use
5515         libm_alias_ldouble_other.
5517 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
5519         [BZ #22153]
5520         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
5521         in coredumps.
5523 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
5525         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
5526         Assign sym_map to be map for local symbols, as TLS relocations
5527         use sym_map to determine whether the symbol is defined and to
5528         extract the TLS information.
5529         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
5530         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5532 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5534         [BZ #22189]
5535         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
5536         (math_force_eval): Add powerpc version.
5538         [BZ #22142]
5539         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
5540         -DBL_MAX.
5541         (do_test): Likewise.
5542         * stdio-common/tst-printf.sh: Likewise.
5543         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
5544         ifdef clause in order to set the carry bit right.  Replace r0 by
5545         0 without changing the behavior.
5547 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
5549         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
5550         <libm-alias-ldouble.h>.
5551         (fabsl): Define using libm_alias_ldouble.
5552         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
5553         <libm-alias-ldouble.h>.
5554         (fabsl): Define using libm_alias_ldouble.
5556         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
5557         Remove conditional code.
5559         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
5560         Rename to __clog10_internal_l.
5561         (__clog10_internal_l): Define aliases using
5562         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
5563         with __clog10.
5565 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5567         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
5568         * benchtests/sincosf-inputs: New file.
5569         * benchtests/cosf-inputs: New file.
5570         * benchtests/sinf-inputs: New file.
5572 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5574         * posix/tst-spawn.c (do_test): Wait for both children.
5576 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
5578         [BZ #22284]
5579         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
5580         tests-pie): Add tst-gmon-pie.
5581         (CFLAGS-tst-gmon-pie.c): New.
5582         (CRT-tst-gmon-pie): Likewise.
5583         (tst-gmon-pie-ENV): Likewise.
5584         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
5585         ($(objpfx)tst-gmon-pie.out): Likewise.
5586         (clean-tst-gmon-pie-data): Likewise.
5587         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
5588         * gmon/gmon.c [PIC]: Include <link.h>.
5589         [PIC] (callback): New function.
5590         (write_hist): Add an argument for load address.  Subtract load
5591         address from PCs.
5592         (write_call_graph): Likewise.
5593         (write_gmon): Call __dl_iterate_phdr to get load address, pass
5594         it to write_hist and write_call_graph.
5595         * gmon/tst-gmon-pie.c: New file.
5597 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
5599         * math/Makefile (test-types-basic): New variable.
5600         (test-types): Likewise.
5601         (libm-test-support): Use $(test-types) instead of $(types).
5602         (libm-tests-base-normal): Likewise.
5603         (libm-tests-base-finite): Likewise.
5604         (libm-tests-base-inline): Likewise.
5605         (generated): Likewise.
5606         ($(objpfx)libm-test-support-$(t).c): Likewise.
5607         (libm-tests-for-type iterator): Likewise.
5608         (libm-test-support iterator): Likewise.
5609         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
5610         (ulp_idx): Use ULP_IDX.
5611         * math/test-ldouble.h: Include <float.h>.
5612         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
5613         (ULP_IDX): New macro.
5614         (ULP_I_IDX): Likewise.
5615         * math/test-double.h (ULP_IDX): Likewise.
5616         (ULP_I_IDX): Likewise.
5617         * math/test-float.h (ULP_IDX): Likewise.
5618         (ULP_I_IDX): Likewise.
5619         * math/test-float128.h (ULP_IDX): Likewise.
5620         (ULP_I_IDX): Likewise.
5622 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5624         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
5625         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
5626         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
5627         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
5628         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
5629         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
5630         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
5631         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
5632         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
5633         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
5634         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
5635         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
5636         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
5637         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5638         (SINGLE_THREAD_BY_GLOBAL): Define.
5639         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
5640         Likewise.
5641         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
5642         Likewise.
5643         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
5644         Likewise.
5645         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
5646         Likewise.
5647         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
5648         (SINGLE_THREAD_BY_GLOBAL): Likewise.
5649         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
5650         Likewise.
5652 2017-10-11  Andreas Schwab  <schwab@suse.de>
5654         * nis/Makefile (aux): Remove.
5655         * nscd/Makefile (aux): Add nscd_hash.
5656         (nscd-modules): Likewise.
5657         ($(objpfx)nscd): Don't depend on libnsl.
5658         * nscd/nscd_hash.c: New file.
5659         * nscd/nscd_hash.h: Likewise.
5660         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
5661         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
5662         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
5663         instead of <nis/rpcsvc/nis.h>.
5664         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
5666 2017-10-11  Florian Weimer  <fweimer@redhat.com>
5668         [BZ #22078]
5669         Avoid large NSS buffers with many addresses, aliases.
5670         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
5671         using dynarrays and struct alloc_buffer.
5672         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
5673         (tst-nss-files-hosts-multi): Link with -ldl.
5674         * nss/tst-nss-files-hosts-multi.c: New file.
5676 2017-10-11  Florian Weimer  <fweimer@redhat.com>
5678         [BZ #18023]
5679         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
5680         scratch_buffer.  Eliminate gotos.
5682 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
5684         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
5685         libm_alias_ldouble_other.
5686         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
5687         undefine and redefine.
5688         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
5689         (exp10l): Do not define here.
5690         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
5691         (weak_alias): Undefine and redefine.
5692         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
5693         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
5694         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
5695         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
5697         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
5698         [!__fma] (fma): Define using libm_alias_double.
5699         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
5700         [!__fmaf] (fmaf): Define using libm_alias_float.
5701         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
5702         (fmal): Define using libm_alias_ldouble.
5704 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
5706         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
5707         New macro.
5708         (libm_alias_double_other): Likewise.
5709         (libm_alias_double_r): Use libm_alias_double_other_r.
5710         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
5711         New macro.
5712         (libm_alias_float_other): Likewise.
5713         (libm_alias_float_r): Use libm_alias_float_other_r.
5714         * sysdeps/generic/libm-alias-float128.h
5715         (libm_alias_float128_other_r): New macro.
5716         (libm_alias_float128_other): Likewise.
5717         (libm_alias_float128_r): Use libm_alias_float128_other_r.
5718         * sysdeps/generic/libm-alias-ldouble.h
5719         (libm_alias_ldouble_other_r): New macro.
5720         (libm_alias_ldouble_other): Likewise.
5721         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
5722         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
5723         (libm_alias_double_other_r): New macro.
5724         (libm_alias_double_other): Likewise.
5725         (libm_alias_double_r): Use libm_alias_double_other_r.
5726         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
5727         (libm_alias_ldouble_other_r): New macro.
5728         (libm_alias_ldouble_other): Likewise.
5729         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
5730         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
5731         [!USE_AS_COMPAT]: Use libm_alias_double_other.
5732         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
5733         [!USE_AS_COMPAT]: Use libm_alias_float_other.
5734         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
5735         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
5736         * math/w_exp2f.c: Use libm_alias_float_other.
5737         * math/w_expf.c: Likewise.
5738         * math/w_log2f.c: Likewise.
5739         * math/w_logf.c: Likewise.
5740         * math/w_powf.c: Likewise.
5741         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
5742         [!__exp2f]: Use libm_alias_float_other.
5743         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
5744         [!__expf]: Use libm_alias_float_other.
5745         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
5746         [!__log2f]: Use libm_alias_float_other.
5747         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
5748         [!__logf]: Use libm_alias_float_other.
5749         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
5750         [!__powf]: Use libm_alias_float_other.
5752 2017-10-10  Florian Weimer  <fweimer@redhat.com>
5754         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
5755         function.
5756         (_nss_files_gethostbyname3_r): Call it.
5758 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
5760         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
5761         error.  Remove default definition of declare_mgen_alias.
5762         [!declare_mgen_alias_r]: Likewise.
5763         * sysdeps/generic/math-type-macros-double.h
5764         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
5765         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
5766         (declare_mgen_alias_r): Likewise.
5767         * sysdeps/generic/math-type-macros-float128.h
5768         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
5769         * sysdeps/generic/math-type-macros-ldouble.h
5770         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
5771         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
5772         macro.
5773         (declare_mgen_alias_r_s): Likewise.
5774         (declare_mgen_alias_r): Likewise.
5775         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
5776         (lgamma_r): Define using libm_alias_double_r.
5777         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
5778         (lgammaf_r): Define using libm_alias_float_r.
5779         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
5780         (lgammal_r): Define using libm_alias_ldouble_r.
5781         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
5782         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
5784 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5786         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5787         extern declaration.
5789 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
5791         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
5793 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
5795         [BZ #21326]
5796         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
5797         [__cplusplus >= 201103] (__USE_ISOC99): Define.
5798         * math/Makefile (test-math-cxx11): New test.
5799         * math/test-math-cxx11.cc: New file.
5801 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
5803         * login/openpty.c (openpty): Close slave pty file descriptor on error.
5805         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
5806         call to allocate the slave pty file descriptor.
5808 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
5810         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
5811         [!__fma] (fma): Define using libm_alias_double.
5812         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
5813         [!__fma] (fma): Define using libm_alias_double.
5815         * sysdeps/ieee754/float128/float128_private.h: Include
5816         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
5817         (libm_alias_ldouble_r): Undefine and redefine.
5818         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
5819         <libm-alias-ldouble.h>.
5820         (asinhl): Define using libm_alias_ldouble.
5821         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
5822         <libm-alias-ldouble.h>.
5823         (atanl): Define using libm_alias_ldouble.
5824         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
5825         <libm-alias-ldouble.h>.
5826         (cbrtl): Define using libm_alias_ldouble.
5827         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
5828         <libm-alias-ldouble.h>.
5829         (ceill): Define using libm_alias_ldouble.
5830         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
5831         <libm-alias-ldouble.h>.
5832         (copysignl): Define using libm_alias_ldouble.
5833         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
5834         <libm-alias-ldouble.h>.
5835         (cosl): Define using libm_alias_ldouble.
5836         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
5837         <libm-alias-ldouble.h>.
5838         (erfl): Define using libm_alias_ldouble.
5839         (erfcl): Likewise.
5840         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
5841         <libm-alias-ldouble.h>.
5842         (expm1l): Define using libm_alias_ldouble.
5843         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
5844         <libm-alias-ldouble.h>.
5845         (fabsl): Define using libm_alias_ldouble.
5846         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
5847         <libm-alias-ldouble.h>.
5848         (floorl): Define using libm_alias_ldouble.
5849         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
5850         <libm-alias-ldouble.h>.
5851         (fmal): Define using libm_alias_ldouble.
5852         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
5853         <libm-alias-ldouble.h>.
5854         (frexpl): Define using libm_alias_ldouble.
5855         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
5856         libm_alias_ldouble.
5857         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
5858         <libm-alias-ldouble.h>.
5859         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
5860         libm_alias_ldouble.
5861         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
5862         <libm-alias-ldouble.h>.
5863         (getpayloadl): Define using libm_alias_ldouble.
5864         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
5865         <libm-alias-ldouble.h>.
5866         (llrintl): Define using libm_alias_ldouble.
5867         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
5868         <libm-alias-ldouble.h>.
5869         (llroundl): Define using libm_alias_ldouble.
5870         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
5871         <libm-alias-ldouble.h>.
5872         (logbl): Define using libm_alias_ldouble.
5873         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
5874         <libm-alias-ldouble.h>.
5875         (lrintl): Define using libm_alias_ldouble.
5876         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
5877         <libm-alias-ldouble.h>.
5878         (lroundl): Define using libm_alias_ldouble.
5879         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
5880         <libm-alias-ldouble.h>.
5881         (modfl): Define using libm_alias_ldouble.
5882         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
5883         <libm-alias-ldouble.h>.
5884         (nearbyintl): Define using libm_alias_ldouble.
5885         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
5886         <libm-alias-ldouble.h>.
5887         (nextafterl): Define using libm_alias_ldouble.
5888         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
5889         <libm-alias-ldouble.h>.
5890         (nextupl): Define using libm_alias_ldouble.
5891         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
5892         <libm-alias-ldouble.h>.
5893         (remquol): Define using libm_alias_ldouble.
5894         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
5895         <libm-alias-ldouble.h>.
5896         (rintl): Define using libm_alias_ldouble.
5897         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
5898         <libm-alias-ldouble.h>.
5899         (roundevenl): Define using libm_alias_ldouble.
5900         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
5901         <libm-alias-ldouble.h>.
5902         (roundl): Define using libm_alias_ldouble.
5903         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
5904         using libm_alias_ldouble.
5905         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
5906         <libm-alias-ldouble.h>.
5907         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
5908         Define using libm_alias_ldouble.
5909         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
5910         <libm-alias-ldouble.h>.
5911         (sincosl): Define using libm_alias_ldouble.
5912         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
5913         <libm-alias-ldouble.h>.
5914         (sinl): Define using libm_alias_ldouble.
5915         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
5916         <libm-alias-ldouble.h>.
5917         (tanhl): Define using libm_alias_ldouble.
5918         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
5919         <libm-alias-ldouble.h>.
5920         (tanl): Define using libm_alias_ldouble.
5921         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
5922         <libm-alias-ldouble.h>.
5923         (totalorderl): Define using libm_alias_ldouble.
5924         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
5925         <libm-alias-ldouble.h>.
5926         (totalordermagl): Define using libm_alias_ldouble.
5927         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
5928         <libm-alias-ldouble.h>.
5929         (truncl): Define using libm_alias_ldouble.
5930         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
5931         libm_alias_ldouble.
5932         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
5933         libm_alias_ldouble.
5934         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
5935         <libm-alias-ldouble.h>.
5936         (weak_alias): Do not undefine and redefine.
5937         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
5938         (copysignl): Define with long_double_symbol only if [IS_IN
5939         (libc)].
5940         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
5941         <libm-alias-ldouble.h>.
5942         (weak_alias): Do not undefine and redefine.
5943         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
5944         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
5945         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
5946         <libm-alias-ldouble.h>.
5947         (weak_alias): Do not undefine and redefine.
5948         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
5949         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
5950         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
5951         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
5952         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
5953         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
5954         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
5955         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
5956         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
5957         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
5958         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
5959         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
5960         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
5961         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
5962         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
5963         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
5964         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
5965         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
5966         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
5967         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
5968         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
5969         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
5970         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
5971         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
5972         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
5973         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
5975 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
5977         [BZ #22111]
5978         * malloc/malloc.c (tcache_shutting_down): Use bool type.
5979         (tcache_thread_freeres): Set tcache_shutting_down before
5980         freeing the tcache.
5981         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
5982         * malloc/tst-malloc-tcache-leak.c: New file.
5984 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5986         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
5987         back to powerpc32 file.
5988         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
5989         (memrchr): Add __memrchr_power8 to ifunc list.
5990         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
5991         extra bytes for unaligned inputs.
5993 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
5995         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
5996         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
5997         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
5998         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
5999         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
6001 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
6003         * sysdeps/arm/libm-test-ulps: Update.
6005         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
6006         <libm-alias-ldouble.h>.
6007         (asinhl): Define using libm_alias_ldouble.
6008         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
6009         <libm-alias-ldouble.h>.
6010         (cbrtl): Define using libm_alias_ldouble.
6011         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
6012         <libm-alias-ldouble.h>.
6013         (copysignl): Define using libm_alias_ldouble.
6014         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
6015         <libm-alias-ldouble.h>.
6016         (cosl): Define using libm_alias_ldouble.
6017         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
6018         <libm-alias-ldouble.h>.
6019         (erfl): Define using libm_alias_ldouble.
6020         (erfcl): Likewise.
6021         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
6022         <libm-alias-ldouble.h>.
6023         (fmal): Define using libm_alias_ldouble.
6024         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
6025         <libm-alias-ldouble.h>.
6026         (frexpl): Define using libm_alias_ldouble.
6027         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
6028         libm_alias_ldouble.
6029         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
6030         <libm-alias-ldouble.h>.
6031         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
6032         libm_alias_ldouble.
6033         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
6034         <libm-alias-ldouble.h>.
6035         (getpayloadl): Define using libm_alias_ldouble.
6036         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
6037         <libm-alias-ldouble.h>.
6038         (llrintl): Define using libm_alias_ldouble.
6039         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
6040         <libm-alias-ldouble.h>.
6041         (llroundl): Define using libm_alias_ldouble.
6042         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
6043         <libm-alias-ldouble.h>.
6044         (lrintl): Define using libm_alias_ldouble.
6045         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
6046         <libm-alias-ldouble.h>.
6047         (lroundl): Define using libm_alias_ldouble.
6048         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
6049         <libm-alias-ldouble.h>.
6050         (modfl): Define using libm_alias_ldouble.
6051         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
6052         <libm-alias-ldouble.h>.
6053         (nextupl): Define using libm_alias_ldouble.
6054         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
6055         <libm-alias-ldouble.h>.
6056         (remquol): Define using libm_alias_ldouble.
6057         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
6058         <libm-alias-ldouble.h>.
6059         (roundevenl): Define using libm_alias_ldouble.
6060         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
6061         <libm-alias-ldouble.h>.
6062         (roundl): Define using libm_alias_ldouble.
6063         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
6064         using libm_alias_ldouble.
6065         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
6066         <libm-alias-ldouble.h>.
6067         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
6068         <libm-alias-ldouble.h>.
6069         (setpayloadsigl): Define using libm_alias_ldouble.
6070         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
6071         <libm-alias-ldouble.h>.
6072         (sincosl): Define using libm_alias_ldouble.
6073         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
6074         <libm-alias-ldouble.h>.
6075         (sinl): Define using libm_alias_ldouble.
6076         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
6077         <libm-alias-ldouble.h>.
6078         (tanhl): Define using libm_alias_ldouble.
6079         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
6080         <libm-alias-ldouble.h>.
6081         (tanl): Define using libm_alias_ldouble.
6082         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
6083         <libm-alias-ldouble.h>.
6084         (totalorderl): Define using libm_alias_ldouble.
6085         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
6086         <libm-alias-ldouble.h>.
6087         (totalordermagl): Define using libm_alias_ldouble.
6088         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
6089         libm_alias_ldouble.
6090         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
6091         libm_alias_ldouble.
6093 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6095         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
6096         memmove_falkor.
6097         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6098         (__libc_ifunc_impl_list): Likewise.
6099         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
6100         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
6102         * benchtests/bench-memmove-walk.c: New file.
6103         * benchtests/Makefile (string-benchset): Add it.
6105         * benchtests/bench-memset-walk.c: New file.
6106         * benchtests/Makefile (string-benchset): Add it.
6108         * benchtests/bench-memcpy-walk.c: New file.
6109         * benchtests/Makefile (string-benchset): Add it.
6111 2017-10-05  Florian Weimer  <fweimer@redhat.com>
6113         nscd: Eliminate compilation time dependency in the build output.
6114         * nscd/nscd_stat.c (STATDATA_VERSION)
6115         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
6116         (STATDATA_VERSION_FULL): New macro definitions.
6117         (compilation): Remove.
6118         (struct statdata): Adjust version member.
6119         (send_stats): Set version from STATDATA_VERSION_FULL.
6120         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
6122 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
6124         * configure.ac (--enable-add-ons): Remove option.
6125         (machine): Do not mention add-ons in comment.
6126         (LIBC_PRECONFIGURE): Likewise.
6127         (add_ons): Remove variable and sanity checks and logic to locate
6128         add-ons.
6129         (add_ons_automatic): Remove variable.
6130         (configured_add_ons): Likewise.
6131         (add_ons_sfx): Likewise.
6132         (add_ons_pfx): Likewise.
6133         (add_on_subdirs): Likewise.
6134         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
6135         consideration of add-ons in Implies handling.
6136         (sysdeps_add_ons): Likewise.
6137         * configure: Regenerated.
6138         * libidn/configure.ac: Remove.
6139         * libidn/configure: Likewise.
6140         * sysdeps/unix/inet/configure.ac: New file.
6141         * sysdeps/unix/inet/configure: New generated file.
6142         * sysdeps/unix/inet/Subdirs: Add libidn.
6143         * Makeconfig (sysdeps-srcdirs): Remove variable.
6144         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
6145         ($(common-objpfx)config.status): Do not depend on add-on files.
6146         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
6147         comment.
6148         (all-subdirs): Do not include $(add-on-subdirs).
6149         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
6150         * config.make.in (add-ons): Remove variable.
6151         (add-on-subdirs): Likewise.
6152         (sysdeps-add-ons): Likewise.
6153         * manual/Makefile (add-chapters): Remove.
6154         ($(objpfx)texis): Do not depend on $(add-chapters).
6155         (nonexamples): Do not handle $(add-chapters).
6156         (examples): Do not handle $(add-ons).
6157         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
6158         libc-texinfo.sh.
6159         * manual/install.texi (Installation): Do not mention add-ons.
6160         (--enable-add-ons): Do not document configure option.
6161         * INSTALL: Regenerated.
6162         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
6163         * manual/maint.texi (Hierarchy Conventions): Do not mention
6164         add-ons.
6165         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
6166         --enable-add-ons.
6167         * scripts/gen-sorted.awk: Do not handle Subdirs files from
6168         add-ons.
6169         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
6170         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
6172 2017-10-05  Andreas Schwab  <schwab@suse.de>
6174         [BZ #15142]
6175         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
6176         (_IO_flush_all_lockp): Always lock list_all_lock.
6177         (_IO_flush_all_linebuffered): Likewise.
6178         (_IO_unbuffer_all): Likewise.
6180 2017-10-05  Florian Weimer  <fweimer@redhat.com>
6182         [BZ #15436]
6183         Do not flush stdio streams on abort.
6184         * stdlib/abort.c (fflush): Remove macro definition.
6185         (abort): Remove stages related to stdio flushing.
6187 2017-10-05  Florian Weimer  <fweimer@redhat.com>
6189         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
6191 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
6193         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6195 2017-10-05  Florian Weimer  <fweimer@redhat.com>
6197         * support/support_format_hostent.c (support_format_hostent): Add
6198         more error information for NETDB_INTERNAL.
6200 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
6202         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
6203         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
6204         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
6205         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
6206         AC_DEFINE if multi-arch is enabled.
6207         * sysdeps/i386/configure: Regenerated.
6209 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
6211         * Makeconfig (+link-static-before-libc): Use
6212         $(DEFAULT-LDFLAGS-$(@F)).
6213         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
6214         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
6215         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
6217 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
6219         * elf/Makefile (tests): Add tst-main1.
6220         (modules-names): Add tst-main1mod.
6221         ($(objpfx)tst-main1): New.
6222         (CRT-tst-main1): Likewise.
6223         (LDFLAGS-tst-main1): Likewise.
6224         (LDLIBS-tst-main1): Likewise.
6225         (tst-main1mod.so-no-z-defs): Likewise.
6226         * elf/tst-main1.c: New file.
6227         * elf/tst-main1mod.c: Likewise.
6229 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
6231         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
6233 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
6235         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
6236         (fma): Define using libm_alias_double.
6237         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
6238         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
6239         <math_ldbl_opt.h>.
6240         (fmal): Do not define as compat symbol here.
6241         * sysdeps/alpha/fpu/s_fma.c: New file.
6243 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6245         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
6247 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
6249         [BZ #22229]
6250         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
6251         <math_ldbl_opt.h>
6252         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
6253         and libc.
6254         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
6255         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
6256         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
6257         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
6258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
6259         Include <math_ldbl_opt.h>
6260         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
6261         and libc.
6262         (compat_symbol): Undefine and redefine.
6263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
6264         <math_ldbl_opt.h>
6265         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
6266         (compat_symbol): Undefine and redefine.
6267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
6268         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
6269         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
6270         GLIBC_2_1 for libm.
6271         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
6272         GLIBC_2.0 copysignl symbol.
6273         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
6274         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
6276         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
6278 2017-10-04  Florian Weimer  <fweimer@redhat.com>
6280         * scripts/check-local-headers.sh: Ignore nspr4 header file
6281         directory in addition to nspr.
6283 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
6285         [BZ #17956]
6286         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
6287         * configure: Regenerate.
6288         * crypt/Makefile (nss-cpp-flags): New variable.
6289         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
6290         (CPPFLAGS-md5-crypt.c): Use it.
6291         * scripts/check-local-headers.sh: Ignore nspr header file
6292         directory.
6294 2017-10-04  Andreas Schwab  <schwab@suse.de>
6296         * nis/Makefile (services): Remove compat.
6297         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
6298         ($(objpfx)libnss_compat.so): Remove rule.
6299         * nis/Versions (libnss_compat): Remove.
6300         * nss/Makefile (services): Add compat.
6301         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
6302         * nss/Versions (libnss_compat): Define.
6303         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
6304         Don't include <rpc/types.h>.  Replace bool_t by bool.
6305         * nss/nss_compat/compat-initgroups.c: Likewise.
6306         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
6307         instead of <rpcsrv/ypclnt.h>.
6308         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
6309         yp_get_default_domain.
6310         * nss/nss_compat/compat-pwd.c: Likewise.
6311         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
6312         yp_get_default_domain.
6313         * nss/nss_compat/nisdomain.c: New file.
6314         * nss/nss_compat/nisdomain.h: Likewise.
6316 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6318         [BZ #22244]
6319         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
6320         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
6322 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6324         [BZ #22243]
6325         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
6326         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
6328 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6330         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
6331         "movl main@GOTOFF(%ebx), %eax".
6333 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6335         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
6336         allow undefined _DYNAMIC in PIE libc.a.
6337         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
6338         Likewse.
6340 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6342         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
6343         check _DYNAMIC.
6345 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6347         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
6348         check _DYNAMIC.
6350 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6352         * math/test-math-iscanonical.cc (error): Replace bool with int.
6354 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
6356         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
6357         (modf): Define using libm_alias_double, only if [!__modf].
6358         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
6359         <libm-alias-double.h>.
6360         (modf): Define using libm_alias_double, only if [!__modf].
6361         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
6362         compat symbol here.
6363         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
6364         (weak_alias): Do not undefine and redefine.
6365         (strong_alias): Likewise.
6366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
6367         (weak_alias): Likewise.
6368         (strong_alias): Likewise.
6370         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
6371         (logb): Define using libm_alias_double, only if [!__logb].
6372         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
6373         <libm-alias-double.h>.
6374         (logb): Define using libm_alias_double, only if [!__logb].
6375         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
6376         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
6377         (weak_alias): Do not undefine and redefine.
6378         (strong_alias): Likewise.
6379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
6380         (weak_alias): Likewise.
6381         (strong_alias): Likewise.
6383 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6385         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
6386         Check SHARED instead PIC.
6388 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
6390         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
6391         [!__fmaf] (fmaf): Define using libm_alias_float.
6393         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
6394         (frexp): Define using libm_alias_double.
6395         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
6396         <libm-alias-double.h>.
6397         (frexp): Define using libm_alias_double.
6398         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
6399         compat symbol here.
6401 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6403         [BZ #22235]
6404         * math/math.h: Trivial fix for unbalanced parentheses in comment.
6405         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
6406         (CFLAGS-test-math-iscanonical.cc): New variable.
6407         * math/test-math-iscanonical.cc: New file.
6408         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
6409         Provide a C++ implementation based on function overloading,
6410         rather than using __MATH_TG, which uses C-only builtins.
6411         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
6412         Likewise.
6413         * sysdeps/powerpc/powerpc64le/Makefile
6414         (CFLAGS-test-math-iscanonical.cc): New variable.
6416 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
6418         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
6419         (ceil): Define using libm_alias_double.
6420         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
6421         (floor): Define using libm_alias_double.
6422         * sysdeps/ieee754/dbl-64/s_llround.c: Include
6423         <libm-alias-double.h>.
6424         (llround): Define using libm_alias_double.
6425         * sysdeps/ieee754/dbl-64/s_lround.c: Include
6426         <libm-alias-double.h>.
6427         (lround): Define using libm_alias_double.
6428         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
6429         <libm-alias-double.h>.
6430         (nearbyint): Define using libm_alias_double.
6431         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
6432         <libm-alias-double.h>.
6433         (remquo): Define using libm_alias_double.
6434         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
6435         (rint): Define using libm_alias_double.
6436         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
6437         (round): Define using libm_alias_double.
6438         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
6439         (trunc): Define using libm_alias_double.
6440         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
6441         <libm-alias-double.h>.
6442         (ceil): Define using libm_alias_double.
6443         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
6444         <libm-alias-double.h>.
6445         (floor): Define using libm_alias_double.
6446         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
6447         <libm-alias-double.h>.
6448         (llround): Define using libm_alias_double.
6449         [_LP64] (lround): Likewise.
6450         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
6451         <libm-alias-double.h>.
6452         [!_LP64] (lround): Define using libm_alias_double.
6453         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
6454         <libm-alias-double.h>.
6455         (nearbyint): Define using libm_alias_double.
6456         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
6457         <libm-alias-double.h>.
6458         (remquo): Define using libm_alias_double.
6459         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
6460         <libm-alias-double.h>.
6461         (rint): Define using libm_alias_double.
6462         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
6463         <libm-alias-double.h>.
6464         (round): Define using libm_alias_double.
6465         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
6466         <libm-alias-double.h>.
6467         (trunc): Define using libm_alias_double.
6468         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
6469         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
6470         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
6471         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
6472         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
6473         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
6474         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
6475         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
6476         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
6478 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6480         * math/w_remainder.c: New file.
6481         * math/w_remainderf.c: New file.
6482         * math/w_remainderl.c: New file.
6484 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6486         * elf/rtld.c (BOOTSTRAP_MAP): New.
6487         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
6488         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6489         Likewise.
6490         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6491         Likewise.
6492         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6493         Likewise.
6495 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6497         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
6498         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
6499         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
6500         rtld_hidden_data_ver): Define to empty.
6501         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
6502         __assert_perror_fail): Likewise.
6503         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
6504         (__rewinddir): Likewise.
6505         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
6506         (__profile_frequency): Likewise.
6507         * include/setjmp.h (__sigsetjmp): Likewise.
6508         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
6509         __libc_sigaction): Likewise.
6510         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
6511         not set hidden attribute.
6512         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
6513         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
6514         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
6515         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
6516         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
6517         __fxstatat64): Likewise.
6518         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
6519         (__uname): Likewise.
6520         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
6521         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
6522         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
6523         (NO_RTLD_HIDDEN): Set.
6524         * sysdeps/mach/hurd/configure: Refresh.
6525         * config.h.in: Refresh.
6527 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
6529         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
6530         (atan): Define using libm_alias_double.
6531         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
6532         (tan): Define using libm_alias_double.
6533         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
6534         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
6536         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
6537         define as weak alias of __atan.  Do not define any aliases if
6538         [__atan].
6539         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
6540         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
6541         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
6542         as weak alias of __tan.  Do not define any aliases if [__tan].
6543         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
6544         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
6545         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
6546         __atan.
6547         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
6548         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
6549         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
6550         and define as weak alias of __atan.
6551         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
6552         __atan.
6553         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
6554         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
6555         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
6556         define as weak alias of __tan.
6558 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6560         * math/w_lgamma.c: New file.
6561         * math/w_lgammaf.c: New file.
6562         * math/w_lgammal.c: New file.
6564 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6566         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
6567         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
6568         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
6569         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
6570         * sysdeps/ieee754/flt-32/w_logf.c: New file.
6571         * sysdeps/ieee754/flt-32/w_powf.c: New file.
6572         * sysdeps/i386/fpu/w_log2f.c: New file.
6573         * sysdeps/i386/fpu/w_logf.c: New file.
6574         * sysdeps/i386/fpu/w_powf.c: New file.
6575         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
6576         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
6577         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
6579 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6580             H.J. Lu  <hongjiu.lu@intel.com>
6582         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
6583         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
6584         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
6585         * sysdeps/ieee754/flt-32/w_expf.c: New file.
6586         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
6587         the new expf code.
6588         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
6589         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
6590         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
6591         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
6592         * sysdeps/i386/fpu/w_exp2f.c: New file.
6593         * sysdeps/i386/fpu/w_expf.c: New file.
6594         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
6595         * sysdeps/x86_64/fpu/w_expf.c: New file.
6597 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6599         * math/Versions (logf): New libm symbol at GLIBC_2.27.
6600         (log2f): Likewise.
6601         (powf): Likewise.
6602         * math/w_log2f.c: New file.
6603         * math/w_logf.c: New file.
6604         * math/w_powf.c: New file.
6605         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
6606         * math/w_logf_compat.c (__logf_compat): Likewise.
6607         * math/w_powf_compat.c (__powf_compat): Likewise.
6608         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
6609         * sysdeps/ia64/fpu/e_logf.S: Likewise.
6610         * sysdeps/ia64/fpu/e_powf.S: Likewise.
6611         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6612         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6613         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6614         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6615         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6616         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6617         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6618         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6619         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6620         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6621         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6622         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6624         Likewise.
6625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6626         Likewise.
6627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6628         Likewise.
6629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6630         Likewise.
6631         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6632         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6633         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6634         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6635         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6636         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6637         Likewise.
6638         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6639         Likewise.
6640         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6641         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6642         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6644 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6646         * sysdeps/powerpc/powerpc64/multiarch/Makefile
6647         (sysdep_routines): Add memrchr_power8.
6648         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
6649         (memrchr): Add __memrchr_power8 to list of memrchr functions.
6650         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
6651         New file.
6652         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
6653         (memrchr): Add __memrchr_power8 to ifunc list.
6654         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
6656 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6658         [BZ #18822]
6659         * sysdeps/unix/sysv/linux/posix_fadvise64.c
6660         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
6661         libc_hidden_def.
6662         * sysdeps/unix/sysv/linux/posix_fallocate64.c
6663         (__posix_fallocate64_l64): Likewise.
6665 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6667         [BZ #18822]
6668         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6669         (__sched_setaffinity_new): Add libc_hidden_proto and
6670         libc_hidden_def.
6672 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6674         [BZ #18822]
6675         * include/glob.h (__glob64): Add libc_hidden_proto.
6676         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
6677         libc_hidden_def.
6679 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6681         [BZ #18822]
6682         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
6683         attribute_hidden.
6685 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6687         [BZ #18822]
6688         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
6690 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6692         [BZ #18822]
6693         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
6694         libc_hidden_def.
6696 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6698         [BZ #18822]
6699         * csu/version.c (__libc_print_version): Add attribute_hidden.
6701 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6703         [BZ #18822]
6704         * include/libc-internal.h (__init_misc): Add attribute_hidden.
6706 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6708         [BZ #18822]
6709         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
6711 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6713         [BZ #18822]
6714         * nscd/nscd_helper.c (__nis_hash): New prototype.
6716 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6718         [BZ #18822]
6719         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
6720         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
6721         libc_hidden_def.
6722         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
6723         * termios/tcgetattr.c (__tcgetattr): Likewise.
6725 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6727         [BZ #18822]
6728         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
6729         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
6730         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
6731         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
6732         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
6734 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6736         [BZ #18822]
6737         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
6739 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6741         [BZ #18822]
6742         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
6743         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
6745 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6747         [BZ #18822]
6748         * intl/hash-string.h (__hash_string): Add attribute_hidden.
6750 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6752         [BZ #18822]
6753         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
6754         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
6756 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6758         [BZ #18822]
6759         * include/ifreq.h: New file.
6760         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
6761         (__ifreq): Likewise.
6762         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
6763         (__ifreq): Likewise.
6765 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6767         [BZ #18822]
6768         * include/idna.h: New file.
6769         * inet/getnameinfo.c: Include <idna.h> instead of
6770         <libidn/idna.h>.
6771         (__idna_to_unicode_lzlz): Removed.
6772         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
6773         <libidn/idna.h>.
6774         (__idna_to_ascii_lz): Removed.
6775         (__idna_to_unicode_lzlz): Likewise.
6777 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6779         [BZ #18822]
6780         * include/plural-exp.h: New file.
6781         * intl/plural-exp.c: Include <plural-exp.h> instead of
6782         "plural-exp.h".
6784 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6786         [BZ #18822]
6787         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
6788         "getsourcefilter.h".
6789         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
6790         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
6791         "getsourcefilter.h".
6792         (__get_sol): Removed.
6794 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6796         [BZ #18822]
6797         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
6798         to ...
6799         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
6801 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6803         [BZ #18822]
6804         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
6805         attribute_hidden.
6807 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6809         [BZ #18822]
6810         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
6812 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6814         [BZ #18822]
6815         * include/search.h (__tdestroy): Add libc_hidden_proto.
6816         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
6818 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6820         [BZ #18822]
6821         * include/assert.h (__assert_fail_base): Add attribute_hidden.
6823 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6825         [BZ #18822]
6826         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
6827         attribute_hidden.
6829 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6831         [BZ #18822]
6832         * include/signal.h (__kill): Add libc_hidden_proto.
6833         (__sigblock): Likewise.
6834         (__sigprocmask): Likewise.
6835         (__sigaltstack): Likewise.
6836         * signal/kill.c (__kill): Add libc_hidden_def.
6837         * signal/sigblock.c (__sigblock): Likewise.
6838         * signal/sigprocmask.c (__sigprocmask): Likewise.
6839         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
6840         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
6841         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
6842         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
6843         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
6844         Likewise.
6845         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
6846         Likewise.
6847         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
6848         (__sigprocmask): Likewise.
6849         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
6850         Likewise.
6851         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
6852         (__sigprocmask): Likewise.
6853         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
6854         Likewise.
6856 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6858         [BZ #18822]
6859         * include/string.h (__strsep): Add libc_hidden_proto.
6860         * string/strsep.c (__strsep): Add libc_hidden_def.
6862 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6864         [BZ #18822]
6865         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
6866         attribute_hidden.
6867         (__spawni): Likewise.
6869 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6871         [BZ #18822]
6872         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
6873         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
6874         libc_hidden_def.
6876 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6878         [BZ #18822]
6879         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
6881 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6883         [BZ #18822]
6884         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
6885         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
6886         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6887         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
6888         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
6889         Likewise.
6890         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
6891         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
6893 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6895         [BZ #18822]
6896         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
6897         (__dcigettext): Likewise.
6899 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6901         [BZ #18822]
6902         * include/sys/sysinfo.h (__get_nprocs_conf): Add
6903         libc_hidden_proto.
6904         (__get_nprocs): Likewise.
6905         (__get_phys_pages): Likewise.
6906         (__get_avphys_pages): Likewise.
6907         (__get_child_max): Add attribute_hidden.
6908         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
6909         (__get_nprocs): Likewise.
6910         (__get_phys_pages): Likewise.
6911         (__get_avphys_pages): Likewise.
6912         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
6913         libc_hidden_def.
6914         (__get_nprocs): Likewise.
6915         (__get_phys_pages): Likewise.
6916         (__get_avphys_pages): Likewise.
6917         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
6918         libc_hidden_def.
6919         (__get_nprocs_conf): Likewise.
6920         (__get_phys_pages): Likewise.
6921         (__get_avphys_pages): Likewise.
6923 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6925         [BZ #18822]
6926         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
6927         attribute_hidden.
6928         (__netlink_close): Likewise.
6929         (__netlink_free_handle): Likewise.
6930         (__netlink_request): Likewise.
6932 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6934         [BZ #18822]
6935         * include/rpc/rpc.h (__rpc_thread_variables): Add
6936         attribute_hidden.
6937         (__rpc_thread_svc_cleanup): Likewise.
6938         (__rpc_thread_clnt_cleanup): Likewise.
6939         (__rpc_thread_key_cleanup): Likewise.
6941 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6943         [BZ #18822]
6944         * include/sys/uio.h (__readv): Add libc_hidden_proto.
6945         (__writev): Likewise.
6946         * misc/readv.c (__readv): Add libc_hidden_def.
6947         * misc/writev.c (__writev): Likewise.
6948         * sysdeps/posix/readv.c (__readv): Likewise.
6949         * sysdeps/posix/writev.c (__writev): Likewise.
6950         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
6951         (__readv): Likewise.
6952         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
6953         (__writev): Likewise.
6955 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6957         [BZ #18822]
6958         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
6959         (__regcomp): Add libc_hidden_proto.
6960         (__regexec): Likewise.
6961         (__regfree): Likewise.
6962         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
6963         (__regfree): Likewise.
6964         * posix/regexec.c (__regexec): Likewise.
6966 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6968         [BZ #18822]
6969         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
6970         (__getutent): Likewise.
6971         (__getutid): Likewise.
6972         (__getutline): Likewise.
6973         (__pututline): Likewise.
6974         (__getutent_r): Likewise.
6975         (__getutid_r): Likewise.
6976         (__getutline_r): Likewise.
6977         (__utmpname): Add attribute_hidden.
6978         (__setutent): Likewise.
6979         (__endutent): Likewise.
6980         * login/getutent.c (__getutent): Add libc_hidden_def.
6981         * login/getutent_r.c (__getutent_r): Likewise.
6982         (__pututline): Likewise.
6983         * login/getutid.c (__getutid): Likewise.
6984         * login/getutid_r.c (__getutid_r): Likewise.
6985         * login/getutline.c (__getutline): Likewise.
6986         * login/getutline_r.c (__getutline_r): Likewise.
6987         * login/updwtmp.c (__updwtmp): Likewise.
6989 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6991         [BZ #18822]
6992         * include/dirent.h (__opendir): Always add attribute_hidden.
6993         (__fdopendir): Likewise.
6994         (__closedir): Likewise.
6995         (__readdir): Likewise.
6996         (__readdir64): Add libc_hidden_proto.
6997         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
6998         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
6999         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
7000         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
7001         New alias.
7003 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7005         [BZ #18822]
7006         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
7007         * include/netdb.h (__gethostbyaddr_r): Likewise.
7008         (__gethostbyname_r): Likewise.
7009         (__gethostbyname2_r): Likewise.
7010         (__getnetbyaddr_r): Likewise.
7011         (__getnetbyname_r): Likewise.
7012         (__getservbyname_r): Likewise.
7013         (__getservbyport_r): Likewise.
7014         (__getprotobyname_r): Likewise.
7015         (__getprotobynumber_r): Likewise.
7016         (__getnetgrent_r): Likewise.
7017         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
7018         (__getrpcbynumber_r): Likewise.
7019         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
7021 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7023         [BZ #18822]
7024         * include/stdio.h (__fcloseall): Add attribute_hidden.
7025         (__getline): Likewise.
7026         (__path_search): Likewise.
7027         (__gen_tempname): Likewise.
7028         (__libc_message): Likewise.
7029         (__flockfile): Likewise.
7030         (__funlockfile): Likewise.
7031         (__fxprintf): Likewise.
7032         (__fxprintf_nocancel): Likewise.
7034 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7036         [BZ #18822]
7037         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
7038         (__sgetsgent_r): Likewise.
7040 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7042         [BZ #18822]
7043         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
7044         (__statfs64): Likewise.
7045         (__fstatfs64): Likewise.
7046         * include/sys/statvfs.h (__statvfs64): Likewise.
7047         (__fstatvfs64): Likewise.
7048         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
7049         (__statfs_filesize_max): Likewise.
7050         (__statfs_symlinks): Likewise.
7051         (__statfs_chown_restricted): Likewise.
7053 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7055         [BZ #18822]
7056         * include/time.h (__tzstring): Add attribute_hidden.
7057         (__tzfile_read): Likewise.
7058         (__tzfile_compute): Likewise.
7059         (__tzfile_default): Likewise.
7060         (__tzset_parse_tz): Likewise.
7061         (__offtime): Likewise.
7062         (__asctime_r): Likewise.
7063         (__tzset): Likewise.
7064         (__tz_convert): Likewise.
7065         (__getdate_r): Likewise.
7066         (__getclktck): Likewise.
7068 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7070         [BZ #18822]
7071         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
7072         (__nscd_unmap): Likewise.
7073         (__nscd_cache_search): Likewise.
7074         (__nscd_get_nl_timestamp): Likewise.
7075         (__nscd_getpwnam_r): Likewise.
7076         (__nscd_getpwuid_r): Likewise.
7077         (__nscd_getgrnam_r): Likewise.
7078         (__nscd_getgrgid_r): Likewise.
7079         (__nscd_gethostbyname_r): Likewise.
7080         (__nscd_gethostbyname2_r): Likewise.
7081         (__nscd_gethostbyaddr_r): Likewise.
7082         (__nscd_getai): Likewise.
7083         (__nscd_getgrouplist): Likewise.
7084         (__nscd_getservbyname_r): Likewise.
7085         (__nscd_getservbyport_r): Likewise.
7086         (__nscd_innetgr): Likewise.
7087         (__nscd_setnetgrent): Likewise.
7089 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7091         [BZ #18822]
7092         * include/gmp.h: Declare internal functions only if _ISOMAC is
7093         undefined.
7094         (__mpn_extract_double): Add attribute_hidden.
7095         (__mpn_extract_long_double): Likewise.
7096         (__mpn_extract_float128): Likewise.
7097         (__mpn_construct_float): Likewise.
7098         (__mpn_construct_double): Likewise.
7099         (__mpn_construct_long_double): Likewise.
7100         (__mpn_construct_float128): Likewise.
7101         (mpn_add_1): Likewise.
7102         (mpn_addmul_1): Likewise.
7103         (mpn_add_n): Likewise.
7104         (mpn_cmp): Likewise.
7105         (mpn_divrem): Likewise.
7106         (mpn_lshift): Likewise.
7107         (mpn_mul): Likewise.
7108         (mpn_mul_1): Likewise.
7109         (mpn_rshift): Likewise.
7110         (mpn_sub_1): Likewise.
7111         (mpn_submul_1): Likewise.
7112         (mpn_sub_n): Likewise.
7114 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7116         [BZ #18822]
7117         * include/wchar.h (__wcsnlen): Add attribute_hidden.
7118         (__wcscat): Likewise.
7119         (__btowc): Likewise.
7120         (__wcrtomb): Likewise.
7121         (__mbsrtowcs): Likewise.
7122         (__wcsrtombs): Likewise.
7123         (__mbsnrtowcs): Likewise.
7124         (__wcsnrtombs): Likewise.
7125         (__wcsncpy): Likewise.
7126         (__wcpncpy): Likewise.
7127         (__wmemcpy): Likewise.
7128         (__wmempcpy): Likewise.
7129         (__wmemmove): Likewise.
7130         (__wcschrnul): Likewise.
7131         (__vfwscanf): Likewise.
7132         (__vswprintf): Likewise.
7133         (__fwprintf): Likewise.
7134         (__vfwprintf): Likewise.
7136 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7138         [BZ #18822]
7139         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
7140         (__getgrgid_r): Likewise.
7141         (__getgrnam_r): Likewise.
7142         * include/pwd.h (__getpwuid_r): Likewise.
7143         (__getpwnam_r): Likewise.
7144         (__fgetpwent_r): Likewise.
7145         * include/shadow.h (__getspnam_r): Likewise.
7146         (__sgetspent_r): Likewise.
7147         (__fgetspent_r): Likewise.
7149 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7151         [BZ #18822]
7152         * include/unistd.h (__access): Add attribute_hidden.
7153         (__lseek64): Likewise.
7154         (__libc_pread64): Likewise.
7155         (__pipe2): Likewise.
7156         (__sleep): Likewise.
7157         (__chdir): Likewise.
7158         (__fchdir): Likewise.
7159         (__getcwd): Likewise.
7160         (__rmdir): Likewise.
7161         (__execvpe): Likewise.
7162         (__execve): Likewise.
7163         (__setsid): Likewise.
7164         (__getuid): Likewise.
7165         (__geteuid): Likewise.
7166         (__getgid): Likewise.
7167         (__getegid): Likewise.
7168         (__getgroups): Likewise.
7169         (__group_member): Likewise.
7170         (__ttyname_r): Likewise.
7171         (__isatty): Likewise.
7172         (__readlink): Likewise.
7173         (__unlink): Likewise.
7174         (__gethostname): Likewise.
7175         (__profil): Likewise.
7176         (__getdtablesize): Likewise.
7177         (__brk): Likewise.
7178         (__ftruncate): Likewise.
7179         (__ftruncate64): Likewise.
7181 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7183         [BZ #18822]
7184         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
7185         * argp/argp-fs-xinl.c: Likewise.
7186         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
7187         * argp/argp-parse.c: Include <argp.h>.
7188         * argp/argp-xinl.c: Likewise.
7189         * include/argp-fmtstream.h: New file.
7190         * include/argp.h (__argp_error): Add attribute_hidden.
7191         (__argp_failure): Likewise.
7192         (__argp_input): Likewise.
7193         (__argp_state_help): Likewise.
7195 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7197         [BZ #18822]
7198         * include/wchar.h (____wcstof_l_internal): New prototype.
7199         (____wcstod_l_internal): Likewise.
7200         (____wcstold_l_internal): Likewise.
7201         (____wcstol_l_internal): Likewise.
7202         (____wcstoul_l_internal): Likewise.
7203         (____wcstoll_l_internal): Likewise.
7204         (____wcstoull_l_internal): Likewise.
7205         (____wcstof128_l_internal): Likewise.
7206         * sysdeps/ieee754/float128/wcstof128.c
7207         (____wcstof128_l_internal): Removed.
7208         * sysdeps/ieee754/float128/wcstof128_l.c
7209         (____wcstof128_l_internal): Likewise.
7210         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
7211         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
7212         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
7213         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
7214         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
7215         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
7216         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
7217         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
7218         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
7219         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
7221 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7223         [BZ #18822]
7224         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
7225         instead of <sys/statvfs.h>.
7226         (__internal_statvfs): Removed.
7227         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
7228         instead of <sys/statvfs.h>.
7229         (__internal_statvfs64): Removed.
7230         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
7231         "internal_statvfs.h" instead of <sys/statvfs.h>.
7232         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
7233         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
7234         instead of <sys/statvfs.h>.
7235         (__internal_statvfs): Removed.
7236         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
7237         instead of <sys/statvfs.h>.
7238         (__internal_statvfs64): Removed.
7240 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7242         [BZ #18822]
7243         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
7244         (__gconv_close): Likewise.
7245         (__gconv): Likewise.
7246         (__gconv_find_transform): Likewise.
7247         (__gconv_lookup_cache): Likewise.
7248         (__gconv_compare_alias_cache): Likewise.
7249         (__gconv_load_cache): Likewise.
7250         (__gconv_get_path): Likewise.
7251         (__gconv_close_transform): Likewise.
7252         (__gconv_release_cache): Likewise.
7253         (__gconv_find_shlib): Likewise.
7254         (__gconv_release_shlib): Likewise.
7255         (__gconv_get_builtin_trans): Likewise.
7256         (__gconv_compare_alias): Likewise.
7257         * include/dlfcn.h (_dlerror_run): Likewise.
7258         * include/stdio.h (__fortify_fail_abort): Likewise.
7259         * include/time.h (__tz_compute): Likewise.
7260         (__strptime_internal): Likewise.
7261         * intl/gettextP.h (_nl_find_domain): Likewise.
7262         (_nl_load_domain): Likewise.
7263         (_nl_find_msg): Likewise.
7264         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
7265         (EXTRACT_PLURAL_EXPRESSION): Likewise.
7266         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
7267         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
7268         (__gai_find_request): Likewise.
7269         (__gai_remove_request): Likewise.
7270         (__gai_notify): Likewise.
7271         (__gai_notify_only): Likewise.
7272         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7273         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
7274         (_dl_non_dynamic_init): Likewise.
7275         (_dl_aux_init): Likewise.
7276         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
7277         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7278         Likewise.
7279         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
7280         (__wcsmbs_clone_conv): Likewise.
7281         (__wcsmbs_named_conv): Likewise.
7283 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7285         [BZ #18822]
7286         * include/stdlib.h (__random): Add attribute_hidden.
7287         (__random_r): Likewise.
7288         (__srandom_r): Likewise.
7289         (__initstate_r): Likewise.
7290         (__setstate_r): Likewise.
7291         (__erand48_r): Likewise.
7292         (__nrand48_r): Likewise.
7293         (__jrand48_r): Likewise.
7294         (__srand48_r): Likewise.
7295         (__seed48_r): Likewise.
7296         (__lcong48_r): Likewise.
7297         (__drand48_iterate): Likewise.
7298         (__setenv): Likewise.
7299         (__unsetenv): Likewise.
7300         (__clearenv): Likewise.
7301         (__ptsname_r): Likewise.
7302         (__posix_openpt): Likewise.
7303         (__add_to_environ): Likewise.
7304         (__realpath): Add libc_hidden_proto.
7305         (__ecvt_r): Likewise.
7306         (__fcvt_r): Likewise.
7307         (__qecvt_r): Likewise.
7308         (__qfcvt_r): Likewise.
7309         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
7310         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
7312 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7314         [BZ #18822]
7315         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
7316         * include/time.h (__mktime_internal): Likewise.
7317         * libio/iolibio.h (__fopen_internal): Likewise.
7319 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
7321         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
7322         pointer in frame.
7323         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
7324         Correct offset used to restore PIC register.
7326 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
7328         [BZ libc/22165]
7329         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
7330         code to load address of __getcontext_ret when generating PIC code.
7332 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
7334         * elf/Makefile (tests-static-internal): Add
7335         tst-tls1-static-non-pie.
7336         (LDFLAGS-tst-tls1-static-non-pie): New.
7337         * elf/tst-tls1-static-non-pie.c: New file.
7339 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
7341         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
7342         (asinh): Define using libm_alias_double.
7343         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
7344         (cbrt): Define using libm_alias_double.
7345         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
7346         <libm-alias-double.h>.
7347         (copysign): Define using libm_alias_double.
7348         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
7349         (erf): Define using libm_alias_double.
7350         (erfc): Likewise.
7351         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
7352         (expm1): Define using libm_alias_double.
7353         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
7354         (fabs): Define using libm_alias_double.
7355         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
7356         libm_alias_double.
7357         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
7358         <libm-alias-double.h>.
7359         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
7360         libm_alias_double.
7361         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
7362         <libm-alias-double.h>.
7363         (getpayload): Define using libm_alias_double.
7364         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
7365         <libm-alias-double.h>.
7366         (llrint): Define using libm_alias_double.
7367         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
7368         (lrint): Define using libm_alias_double.
7369         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
7370         <libm-alias-double.h>.
7371         (nextup): Define using libm_alias_double.
7372         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
7373         <libm-alias-double.h>.
7374         (roundeven): Define using libm_alias_double.
7375         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
7376         libm_alias_double.
7377         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
7378         <libm-alias-double.h>.
7379         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
7380         using libm_alias_double.
7381         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
7382         (cos): Define using libm_alias_double.
7383         (sin): Likewise.
7384         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
7385         <libm-alias-double.h>.
7386         (sincos): Define using libm_alias_double.
7387         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
7388         (tanh): Define using libm_alias_double.
7389         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
7390         <libm-alias-double.h>.
7391         (totalorder): Define using libm_alias_double.
7392         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
7393         <libm-alias-double.h>.
7394         (totalordermag): Define using libm_alias_double.
7395         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
7396         libm_alias_double.
7397         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
7398         libm_alias_double.
7399         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
7400         <libm-alias-double.h>.
7401         (getpayload): Define using libm_alias_double.
7402         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
7403         <libm-alias-double.h>.
7404         (roundeven): Define using libm_alias_double.
7405         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
7406         <libm-alias-double.h>.
7407         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
7408         <libm-alias-double.h>.
7409         (totalorder): Define using libm_alias_double.
7410         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
7411         <libm-alias-double.h>.
7412         (totalordermag): Define using libm_alias_double.
7413         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
7414         libc compat symbol here.
7415         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
7416         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
7417         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
7418         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
7419         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
7420         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
7421         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
7422         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
7423         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
7424         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
7426 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
7428         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
7429         _dl_relocate_static_pie instead of _dl_start to compute load
7430         address in static PIE.  Return 0 if _DYNAMIC is undefined for
7431         static executable.
7433 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
7435         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
7436         _DYNAMIC is undefined for static executable.
7438 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
7440         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
7442 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
7444         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7446 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
7448         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7449         (__ieee754_lgamma_r): Use fabs rather than __fabs.
7450         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
7451         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
7452         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7453         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
7454         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
7455         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
7456         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
7457         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
7458         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
7459         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
7460         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
7461         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
7462         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
7463         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
7464         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
7466 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
7468         * math/bits/cmathcalls.h (cimag): Remove inline.
7469         (creal): Remove inline.
7470         (conj): Remove inline.
7472 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7474         * math/Makefile (type-float-routines): Add e_powf_log2_data.
7475         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
7476         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
7477         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
7478         (issignalingf_inline): Likewise.
7479         (POWF_LOG2_TABLE_BITS): Likewise.
7480         (POWF_LOG2_POLY_ORDER): Likewise.
7481         (POWF_SCALE_BITS): Likewise.
7482         (POWF_SCALE): Likewise.
7483         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
7484         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
7485         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
7487 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7489         * math/Makefile (type-float-routines): Add e_log2f_data.
7490         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
7491         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
7492         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
7493         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
7494         * sysdeps/i386/fpu/e_log2f_data.c: New file.
7495         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
7496         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
7498 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7500         * math/Makefile (type-float-routines): Add e_logf_data.
7501         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
7502         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
7503         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
7504         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
7505         * sysdeps/i386/fpu/e_logf_data.c: New file.
7506         * sysdeps/ia64/fpu/e_logf_data.c: New file.
7507         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
7509 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
7511         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
7512         undefined _DYNAMIC in PIE libc.a.
7513         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
7514         Likewse.
7516 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
7518         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
7519         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
7520         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
7521         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
7522         (__signbit): Remove.
7523         (__signbitl): Remove.
7524         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
7525         (__signbit): Remove.
7526         (__signbitl): Remove.
7527         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
7528         (__signbit): Remove.
7529         (__signbitl): Remove.
7530         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
7531         (__signbit): Remove.
7532         (__signbitl): Remove.
7533         * sysdeps/tile/bits/mathinline.h: Delete file.
7534         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
7535         (__signbit): Remove.
7536         (__signbitl): Remove.
7538 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
7540         * math/math.h: Improve handling of C99 isgreater macros.
7541         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
7542         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
7543         * sysdeps/powerpc/bits/mathinline.h: Likewise.
7544         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7545         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
7547 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7549         * sysdeps/aarch64/libm-test-ulps: Update.
7551 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
7553         [BZ #22225]
7554         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
7555         math_opt_barrier on argument when doing arithmetic on it.
7556         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7557         Likewise.  Use math_force_eval not math_opt_barrier after
7558         arithmetic.
7559         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
7560         math_opt_barrier on argument when doing arithmetic on it.
7561         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
7562         Likewise.
7564 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
7566         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
7567         libc_hidden_def.
7568         (__freeifaddrs): Likewise.
7570 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7572         * include/dirent.h (__dirfd): New declaration.
7573         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
7574         alias.
7575         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
7576         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
7577         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
7578         * include/unistd.h (__revoke): New declaration.
7579         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
7580         alias.
7581         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
7582         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
7583         revoke.
7584         * include/dirent.h (__seekdir): New declaration.
7585         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
7586         redefine as weak alias.
7587         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
7588         of seekdir.
7589         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
7590         and use libc_hidden_def on them.
7591         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
7592         them.
7593         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
7594         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
7595         instead of getifaddrs and freeifaddrs.
7597 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
7599         [BZ #18822]
7600         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
7601         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
7602         (__dso_handle): Remove declaration.
7603         * dlfcn/tstatexit.c (__dso_handle): Removed.
7604         (main): Don't check __dso_handle.
7605         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
7606         (main): Don't check __dso_handle.
7607         * include/dso_handle.h: New file.
7608         * malloc/mtrace.c: Include <dso_handle.h>.
7609         (mtrace): Pass __dso_handle directly.
7610         * nptl/pthread_atfork.c: Include <dso_handle.h>.
7611         (__dso_handle): Remove declaration.
7612         (__pthread_atfork): Pass __dso_handle directly.
7613         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
7614         (__dso_handle): Removed.
7615         * posix/wordexp-test.c: Include <dso_handle.h>.
7616         (__dso_handle): Remove declaration.
7617         (__app_register_atfork): Pass __dso_handle directly.
7618         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
7619         (__dso_handle): Remove declaration.
7620         (at_quick_exit): Pass __dso_handle directly.
7621         * stdlib/atexit.c: Include <dso_handle.h>.
7622         (__dso_handle): Remove declaration.
7623         (atexit): Pass __dso_handle directly.
7624         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
7625         (__dso_handle): Removed.
7627 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
7629         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
7630         using VDSO.
7632 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
7634         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
7635         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
7636         values to correct default value for given type.
7638 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
7640         [BZ #22101]
7641         * elf/Makefile (tests): Add tst-debug1.
7642         ($(objpfx)tst-debug1): New.
7643         ($(objpfx)tst-debug1.out): Likewise.
7644         ($(objpfx)tst-debug1mod1.so): Likewise.
7645         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
7646         with p_filesz == 0.
7647         * elf/tst-debug1.c: New file.
7649 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
7651         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
7652         Define using __ifunc.
7654 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7656         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
7657         exp2f() values.
7659 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
7661         [BZ #22156]
7662         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
7664 2017-09-26  Florian Weimer  <fweimer@redhat.com>
7666         * resolv/Makefile (tests-internal): Fix typo in comment.
7668 2017-09-26  Florian Weimer  <fweimer@redhat.com>
7670         * resolv/nss_dns/dns-host.c: Fix typo in comment.
7672 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7674         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
7675         Use an union instead of a max_align_t array for __space,
7676         so that __space is the same size on all platforms.
7677         * malloc/scratch_buffer_grow_preserve.c
7678         (__libc_scratch_buffer_grow_preserve): Likewise.
7680         [BZ #22183]
7681         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
7682         version to 2.
7683         * posix/Makefile (routines): Add glob-lstat-compat and
7684         glob64-lstat-compat.
7685         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
7686         * posix/glob-lstat-compat.c: New file.
7687         * posix/glob64-lstat-compat.c: Likewise.
7688         * posix/tst-glob_lstat_compat.c: Likewise.
7689         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
7690         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
7691         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
7692         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
7693         Likewise.
7694         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
7695         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
7696         * posix/glob.c (glob_lstat): New function.
7697         (glob): Rename to __glob and add versioned symbol to 2.27.
7698         (glob_in_dir): Use glob_lstat.
7699         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
7700         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7701         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
7702         2.27.
7703         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
7704         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
7705         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
7706         gl_lstat on glob call.
7707         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
7708         and glob64 symbols.
7709         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7710         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7711         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7712         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7713         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7714         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7715         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7716         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7717         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7718         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7719         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7720         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7722         Likewise.
7723         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
7724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7725         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7726         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7727         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7728         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7729         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7730         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7731         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7732         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7733         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7734         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7736 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
7738         * configure.ac (AS): Require binutils 2.25 or later.
7739         * configure: Regenerated.
7741 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
7743         [BZ #22207]
7744         * stdlib/test-atexit-race-common.c (do_test): Minimize required
7745         VM size.
7747 2017-09-25  DJ Delorie  <dj@redhat.com>
7749         [BZ #22161]
7750         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
7751         resetting timeout.
7753 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
7755         * sysdeps/ieee754/dbl-64/sincos32.h
7756         [SINCCOS32_H]: Remove define.
7757         [SINCOS32_H]: Define.
7759 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7761         * math/Versions (expf): New libm symbol at GLIBC_2.27.
7762         (exp2f): Likewise.
7763         * math/w_exp2f.c: New file.
7764         * math/w_expf.c: New file.
7765         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
7766         * math/w_expf_compat.c (__expf_compat): Likewise.
7767         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
7768         * sysdeps/ia64/fpu/e_expf.S: Likewise.
7769         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7770         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7771         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7772         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7773         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7774         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7775         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7776         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7777         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7778         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7779         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7780         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7782         Likewise.
7783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7784         Likewise.
7785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7786         Likewise.
7787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7788         Likewise.
7789         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7790         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7791         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7792         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7793         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7794         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7795         Likewise.
7796         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7797         Likewise.
7798         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7799         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7800         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7802 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7804         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
7805         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
7806         (roundtoint, converttoint): Likewise.
7807         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
7808         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
7809         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
7810         * sysdeps/ieee754/flt-32/math_config.h: New file.
7811         * sysdeps/ieee754/flt-32/math_errf.c: New file.
7812         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
7813         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
7814         * sysdeps/i386/fpu/math_errf.c: New file.
7815         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
7816         * sysdeps/ia64/fpu/math_errf.c: New file.
7817         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
7818         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
7820 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7822         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
7823         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
7824         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
7825         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
7826         to make sure that these symbols are defined.
7827         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
7828         of <limits.h>
7829         (__need_NULL): Do not define.
7830         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
7831         alignment.
7832         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
7833         CMGROUP_MAX, cmsgcred): Do not define.
7834         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
7835         NULL.
7836         * bits/socket.h: Likewise.
7837         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
7838         __gettimeofday instead of gettimeofday.
7839         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
7840         instead of settimeofday.
7842 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
7844         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
7845         (asinhf): Define using libm_alias_float.
7846         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
7847         (atanf): Define using libm_alias_float.
7848         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
7849         (cbrtf): Define using libm_alias_float.
7850         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
7851         (ceilf): Define using libm_alias_float.
7852         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
7853         <libm-alias-float.h>.
7854         (copysignf): Define using libm_alias_float.
7855         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
7856         (cosf): Define using libm_alias_float.
7857         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
7858         (erff): Define using libm_alias_float.
7859         (erfcf): Likewise.
7860         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
7861         (expm1f): Define using libm_alias_float.
7862         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
7863         (fabsf): Define using libm_alias_float.
7864         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
7865         (floorf): Define using libm_alias_float.
7866         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
7867         (frexpf): Define using libm_alias_float.
7868         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
7869         libm_alias_float.
7870         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
7871         <libm-alias-float.h>.
7872         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
7873         libm_alias_float.
7874         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
7875         <libm-alias-float.h>.
7876         (getpayloadf): Define using libm_alias_float.
7877         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
7878         <libm-alias-float.h>.
7879         (llrintf): Define using libm_alias_float.
7880         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
7881         <libm-alias-float.h>.
7882         (llroundf): Define using libm_alias_float.
7883         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
7884         (logbf): Define using libm_alias_float.
7885         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
7886         (lrintf): Define using libm_alias_float.
7887         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
7888         (lroundf): Define using libm_alias_float.
7889         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
7890         (modff): Define using libm_alias_float.
7891         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
7892         <libm-alias-float.h>.
7893         (nearbyintf): Define using libm_alias_float.
7894         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
7895         <libm-alias-float.h>.
7896         (nextafterf): Define using libm_alias_float.
7897         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
7898         <libm-alias-float.h>.
7899         (nextupf): Define using libm_alias_float.
7900         * sysdeps/ieee754/flt-32/s_remquof.c: Include
7901         <libm-alias-float.h>.
7902         (remquof): Define using libm_alias_float.
7903         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
7904         (rintf): Define using libm_alias_float.
7905         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
7906         <libm-alias-float.h>.
7907         (roundevenf): Define using libm_alias_float.
7908         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
7909         (roundf): Define using libm_alias_float.
7910         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
7911         using libm_alias_float.
7912         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
7913         <libm-alias-float.h>.
7914         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
7915         Define using libm_alias_float.
7916         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
7917         <libm-alias-float.h>.
7918         (sincosf): Define using libm_alias_float.
7919         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
7920         (sinf): Define using libm_alias_float.
7921         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
7922         (tanf): Define using libm_alias_float.
7923         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
7924         (tanhf): Define using libm_alias_float.
7925         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
7926         <libm-alias-float.h>.
7927         (totalorderf): Define using libm_alias_float.
7928         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
7929         <libm-alias-float.h>.
7930         (totalordermagf): Define using libm_alias_float.
7931         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
7932         (truncf): Define using libm_alias_float.
7933         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
7934         libm_alias_float.
7935         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
7936         libm_alias_float.
7938 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7940         [BZ #22146]
7941         math/math.h: Let fpclassify use the builtin in C++ mode, even
7942         when optimazing for size.
7944 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
7946         * csu/Makefile (generated): Do not add version-info.h.
7947         (before-compile): Likewise.
7948         (all-Banner-files): Remove variable.
7949         ($(objpfx)version-info.h): Remove rule.
7950         * csu/version.c (banner): Do not include "version-info.h".
7951         * libidn/Banner: Remove.
7952         * manual/contrib.texi (Simon Josefsson): New entry.
7954 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7956         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7957         Remove conditionals on LDBL_MANT_DIG.
7958         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
7959         (__ieee754_lgammal_r): Likewise.
7961 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7963         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
7964         _Float128 and L().
7965         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
7966         _Float128 and L(). Replace _Float128 with long double and L(x)
7967         with xL, throughout the file.
7968         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7969         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
7970         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
7971         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
7973 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7975         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
7976         sysdeps/ieee754/ldbl-128ibm.
7977         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
7978         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
7979         of including it.  Keep _Float128 and L() intact.  These will be
7980         reviewed by a separate patch.
7981         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7982         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
7983         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
7984         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
7986 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7988         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
7989         (__finitef128): Define to __redirect___finitef128.
7990         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
7991         (__isinff128): Define to __redirect___isinff128.
7992         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
7993         (__isnanf128): Define to __redirect___isnanf128.
7995 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7997         * sysdeps/powerpc/powerpc64le/Makefile
7998         (CFLAGS-tst-strtod-nan-locale.c): New variable.
7999         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
8001 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
8002             Carlos O'Donell  <carlos@redhat.com>
8004         [BZ #22180]
8005         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
8006         * stdlib/test-dlclose-exit-race.c: New file.
8007         * stdlib/test-dlclose-exit-race-helper.c: New file.
8008         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
8010 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
8012         * crypt/Banner: Remove file.
8013         * nptl/Banner: Likewise.
8014         * resolv/Banner: Likewise.
8015         * soft-fp/Banner: Likewise.
8016         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
8017         ($(objpfx)version.d): Remove dependency on banner.h.
8018         ($(objpfx)version.os): Likewise.
8019         * nptl/version.c (banner): Do not include banner.h.
8020         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
8021         Jelinek and BIND code.
8023 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
8024             Carlos O'Donell  <carlos@redhat.com>
8026         * support/xdlfcn.h: New file.
8027         * support/xdlfcn.c: New file.
8028         * support/Makefile (libsupport-routines): Add xdlfcn.
8029         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
8031 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
8033         [BZ #20142]
8034         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8035         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
8036         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
8037         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
8038         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8039         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
8040         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
8041         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8043 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
8044             Ricky Zhou  <rickyz@google.com>
8045             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
8047         [BZ #14333]
8048         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
8049         Remove atomics.
8050         (__new_exitfn): Fail registration when we finished at_exit processing.
8051         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
8052         * stdlib/on_exit.c (__on_exit): Likewise.
8053         * stdlib/exit.c (__exit_funcs_done): New variable.
8054         (__run_exit_handlers): Use __exit_funcs_lock.
8055         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
8056         declarations.
8057         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
8058         (test-cxa_atexit-race, test-on_exit-race): New tests.
8059         * stdlib/test-atexit-race-common.c: New file.
8060         * stdlib/test-atexit-race.c: New file.
8061         * stdlib/test-at_quick_exit-race.c: New file.
8062         * stdlib/test-cxa_atexit-race.c: New file.
8063         * stdlib/test-on_exit-race.c: New file.
8065 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8067         * benchtests/Makefile: Add exp2f and log2f benchmarks.
8068         * benchtests/exp2f-inputs: Copy of expf-inputs.
8069         * benchtests/log2f-inputs: Copy of logf-inputs.
8071 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
8073         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
8074         Explicitly take address of first element of array arguments in
8075         call to INLINE_SYSCALL.
8077 2017-09-19  Andreas Schwab  <schwab@suse.de>
8079         [BZ #22134]
8080         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
8081         execveat first.
8082         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
8083         unimplemented.
8084         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
8085         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
8086         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8087         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
8088         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
8089         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
8090         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8091         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
8092         * posix/Makefile (tests): Add tst-fexecve.
8093         * posix/tst-fexecve.c: New file.
8095 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
8097         * benchtests/Makefile: Add logf benchmark.
8098         * benchtests/logf-inputs: Add reduced trace from wrf_r.
8100 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
8102         * benchtests/Makefile: Add expf benchmark.
8103         * benchtests/expf-inputs: Add reduced trace from wrf_r.
8105 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
8107         * csu/Makefile: Add -funwind-tables to libc-start.c.
8108         * debug/Makefile: Add -funwind-tables to backtrace.c.
8109         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
8110         * sysdeps/arm/Makefile: Likewise.
8111         * sysdeps/i386/Makefile: Likewise.
8112         * sysdeps/m68k/Makefile: Likewise.
8113         * sysdeps/mips/Makefile: Likewise.
8114         * sysdeps/nios2/Makefile: Likewise.
8115         * sysdeps/sh/Makefile: Likewise.
8116         * sysdeps/sparc/Makefile: Likewise.
8118 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
8120         * benchtests/Makefile (bench-math): Add trunc and truncf.
8121         (CFLAGS-bench-trunc.c): New variable.
8122         (CFLAGS-bench-truncf.c): Likewise.
8123         * benchtests/trunc-inputs: New file.
8124         * benchtests/truncf-inputs: Likewise.
8126 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8128         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
8130 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
8132         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
8133         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
8134         redefine.
8135         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
8136         (exp10l): Define as weak alias.
8137         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
8138         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
8139         and redefine.
8140         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
8141         (remainderl): Define as weak alias.
8143         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
8144         (fmal): Define using libm_alias_ldouble.
8145         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
8146         (acoshl): Define using libm_alias_ldouble.
8147         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
8148         (acosl): Define using libm_alias_ldouble.
8149         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
8150         (asinl): Define using libm_alias_ldouble.
8151         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
8152         (atan2l): Define using libm_alias_ldouble.
8153         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
8154         (atanhl): Define using libm_alias_ldouble.
8155         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
8156         (coshl): Define using libm_alias_ldouble.
8157         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
8158         (exp10l): Define using libm_alias_ldouble.
8159         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
8160         (exp2l): Define using libm_alias_ldouble.
8161         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
8162         (expl): Define using libm_alias_ldouble.
8163         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
8164         (fmodl): Define using libm_alias_ldouble.
8165         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
8166         (hypotl): Define using libm_alias_ldouble.
8167         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
8168         (j0l): Define using libm_alias_ldouble.
8169         (y0l): Likewise.
8170         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
8171         (j1l): Define using libm_alias_ldouble.
8172         (y1l): Likewise.
8173         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
8174         (jnl): Define using libm_alias_ldouble.
8175         (ynl): Likewise.
8176         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
8177         (log10l): Define using libm_alias_ldouble.
8178         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
8179         (log2l): Define using libm_alias_ldouble.
8180         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
8181         (logl): Define using libm_alias_ldouble.
8182         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
8183         (powl): Define using libm_alias_ldouble.
8184         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
8185         (remainderl): Define using libm_alias_ldouble.
8186         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
8187         (sinhl): Define using libm_alias_ldouble.
8188         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
8189         (sqrtl): Define using libm_alias_ldouble.
8190         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
8191         (tgammal): Define using libm_alias_ldouble.
8192         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
8193         (exp10l): Do not use long_double_symbol here.
8194         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
8195         [LIBM_SVID_COMPAT] (remainderl): Likewise.
8196         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
8197         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
8198         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
8199         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
8200         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
8201         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
8202         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
8203         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
8204         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
8205         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
8206         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
8207         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
8208         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
8209         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
8210         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
8211         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
8212         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
8213         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
8214         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
8215         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
8217 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
8219         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
8220         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
8222 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8224         * io/read.c (read): Add libc_hidden_weak.
8225         * sysdeps/mach/hurd/read.c (read): Likewise.
8226         * io/write.c (write): Likewise.
8227         * sysdeps/mach/hurd/write.c (write): Likewise.
8228         * io/pread64.c (__pread64): Likewise.
8229         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
8230         * posix/pread64.c (__pread64): Add libc_hidden_def.
8232 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8234         * benchtests/scripts/compare_strings.py: New option -g.
8235         (draw_graph): Print a message that a graph is being generated.
8236         (process_results): Generate graph only if -g is passed.
8237         (main): Process option -g.
8239         * benchtests/scripts/compare_strings.py (process_results):
8240         Better spacing for output.
8242         * benchtests/scripts/compare_strings.py: Use argparse.
8243         * benchtests/README: Document existence of compare_strings.py.
8245 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
8247         * math/s_fma.c: Include <libm-alias-double.h>.
8248         (fma): Define using libm_alias_double.
8249         * math/s_nextafter.c: Include <libm-alias-double.h>.
8250         (nextafter): Define using libm_alias_double.
8251         * math/w_acos_compat.c: Include <libm-alias-double.h>.
8252         (acos): Define using libm_alias_double.
8253         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
8254         (aocsh): Define using libm_alias_double.
8255         * math/w_asin_compat.c: Include <libm-alias-double.h>.
8256         (asin): Define using libm_alias_double.
8257         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
8258         (atan2): Define using libm_alias_double.
8259         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
8260         (atanh): Define using libm_alias_double.
8261         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
8262         (cosh): Define using libm_alias_double.
8263         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
8264         (exp10): Define using libm_alias_double.
8265         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
8266         (exp2): Define using libm_alias_double.
8267         * math/w_exp_compat.c: Include <libm-alias-double.h>.
8268         (exp): Define using libm_alias_double.
8269         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
8270         (fmod): Define using libm_alias_double.
8271         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
8272         (hypot): Define using libm_alias_double.
8273         * math/w_j0_compat.c: Include <libm-alias-double.h>.
8274         (j0): Define using libm_alias_double.
8275         (y0): Likewise.
8276         * math/w_j1_compat.c: Include <libm-alias-double.h>.
8277         (j1): Define using libm_alias_double.
8278         (y1): Likewise.
8279         * math/w_jn_compat.c: Include <libm-alias-double.h>.
8280         (jn): Define using libm_alias_double.
8281         (yn): Likewise.
8282         * math/w_log10_compat.c: Include <libm-alias-double.h>.
8283         (log10): Define using libm_alias_double.
8284         * math/w_log2_compat.c: Include <libm-alias-double.h>.
8285         (log2): Define using libm_alias_double.
8286         * math/w_log_compat.c: Include <libm-alias-double.h>.
8287         (log): Define using libm_alias_double.
8288         * math/w_pow_compat.c: Include <libm-alias-double.h>.
8289         (pow): Define using libm_alias_double.
8290         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
8291         (remainder): Define using libm_alias_double.
8292         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
8293         (sinh): Define using libm_alias_double.
8294         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
8295         (sqrt): Define using libm_alias_double.
8296         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
8297         (tgamma): Define using libm_alias_double.
8298         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
8299         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
8300         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
8301         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
8302         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
8303         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
8304         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
8305         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
8306         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
8307         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
8308         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
8309         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
8310         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
8311         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
8312         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
8313         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
8314         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
8315         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
8316         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
8317         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
8318         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
8319         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
8320         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
8321         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
8322         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
8324         * math/e_acoshl.c: Remove.
8325         * math/e_acosl.c: Likewise.
8326         * math/e_asinl.c: Likewise.
8327         * math/e_atan2l.c: Likewise.
8328         * math/e_atanhl.c: Likewise.
8329         * math/e_coshl.c: Likewise.
8330         * math/e_expl.c: Likewise.
8331         * math/e_fmodl.c: Likewise.
8332         * math/e_gammal_r.c: Likewise.
8333         * math/e_hypotl.c: Likewise.
8334         * math/e_j0l.c: Likewise.
8335         * math/e_j1l.c: Likewise.
8336         * math/e_jnl.c: Likewise.
8337         * math/e_lgammal_r.c: Likewise.
8338         * math/e_log10l.c: Likewise.
8339         * math/e_log2l.c: Likewise.
8340         * math/e_logl.c: Likewise.
8341         * math/e_powl.c: Likewise.
8342         * math/e_rem_pio2l.c: Likewise.
8343         * math/e_sinhl.c: Likewise.
8344         * math/e_sqrtf128.c: Likewise.
8345         * math/e_sqrtl.c: Likewise.
8346         * math/k_cosl.c: Likewise.
8347         * math/k_sinl.c: Likewise.
8348         * math/k_tanl.c: Likewise.
8349         * math/s_asinhl.c: Likewise.
8350         * math/s_atanl.c: Likewise.
8351         * math/s_cbrtl.c: Likewise.
8352         * math/s_erfl.c: Likewise.
8353         * math/s_expm1l.c: Likewise.
8354         * math/s_log1pl.c: Likewise.
8355         * math/s_tanhl.c: Likewise.
8357 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8359         [BZ #21745]
8360         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
8361         [$(subdir) = math] (sysdep_calls): New variable.  Has the
8362         previous contents of sysdep_routines, but re-sorted..
8363         [$(subdir) = math] (sysdep_routines): Re-use the contents from
8364         sysdep_calls.
8365         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
8366         defined in sysdep_calls and replace by the respective m_* names.
8367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
8368         (compat_symbol): Undefine to avoid duplicated compat symbols in
8369         libc.
8371 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
8373         * math/s_fmaf.c: Include <libm-alias-float.h>.
8374         (fmaf): Define using libm_alias_float.
8375         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
8376         (acosf): Define using libm_alias_float.
8377         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
8378         (acoshf): Define using libm_alias_float.
8379         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
8380         (asinf): Define using libm_alias_float.
8381         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
8382         (atan2f): Define using libm_alias_float.
8383         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
8384         (atanhf): Define using libm_alias_float.
8385         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
8386         (coshf): Define using libm_alias_float.
8387         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
8388         (exp10f): Define using libm_alias_float.
8389         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
8390         (fmodf): Define using libm_alias_float.
8391         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
8392         (hypotf): Define using libm_alias_float.
8393         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
8394         (j0f): Define using libm_alias_float.
8395         (y0f): Likewise.
8396         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
8397         (j1f): Define using libm_alias_float.
8398         (y1f): Likewise.
8399         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
8400         (jnf): Define using libm_alias_float.
8401         (ynf): Likewise.
8402         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
8403         (log10f): Define using libm_alias_float.
8404         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
8405         (log2f): Define using libm_alias_float.
8406         * math/w_logf_compat.c: Include <libm-alias-float.h>.
8407         (logf): Define using libm_alias_float.
8408         * math/w_powf_compat.c: Include <libm-alias-float.h>.
8409         (powf): Define using libm_alias_float.
8410         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
8411         (remainderf): Define using libm_alias_float.
8412         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
8413         (sinhf): Define using libm_alias_float.
8414         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
8415         (sqrtf): Define using libm_alias_float.
8416         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
8417         (tgammaf): Define using libm_alias_float.
8419 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
8421         * include/math.h (roundeven): Change hidden_proto call to
8422         __roundeven.
8423         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
8424         alias.
8425         [NO_LONG_DOUBLE] (__j0l): New strong alias.
8426         (y0): Rename to __y0 and define as weak alias.
8427         [NO_LONG_DOUBLE] (__y0l): New strong alias.
8428         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
8429         alias.
8430         (y0f): Rename to __y0f and define as weak alias.
8431         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
8432         alias.
8433         [NO_LONG_DOUBLE] (__j1l): New strong alias.
8434         (y1): Rename to __y1 and define as weak alias.
8435         [NO_LONG_DOUBLE] (__y1l): New strong alias.
8436         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
8437         alias.
8438         (y1f): Rename to __y1f and define as weak alias.
8439         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
8440         alias.
8441         [NO_LONG_DOUBLE] (__jnl): New strong alias.
8442         (yn): Rename to __yn and define as weak alias.
8443         [NO_LONG_DOUBLE] (__ynl): New strong alias.
8444         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
8445         alias.
8446         (ynf): Rename to __ynf and define as weak alias.
8447         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
8448         (fromfp): Define as weak alias.
8449         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
8450         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
8451         (fromfpx): Define as weak alias.
8452         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
8453         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
8454         __getpayload and define as weak alias.
8455         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
8456         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
8457         __roundeven and define as weak alias.
8458         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
8459         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
8460         __setpayload.
8461         (setpayload): Define as weak alias.
8462         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
8463         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
8464         __setpayloadsig.
8465         (setpayloadsig): Define as weak alias.
8466         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
8467         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
8468         __totalorder and define as weak alias.
8469         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
8470         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
8471         to __totalordermag and define as weak alias.
8472         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
8473         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
8474         (ufromfp): Define as weak alias.
8475         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
8476         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
8477         __ufromfpx.
8478         (ufromfpx): Define as weak alias.
8479         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
8480         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
8481         Rename to __getpayload and define as weak alias.
8482         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
8483         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
8484         Rename to __roundeven and define as weak alias.
8485         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
8486         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
8487         Rename to __totalorder and define as weak alias.
8488         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
8489         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
8490         (totalordermag): Rename to __totalordermag and define as weak
8491         alias.
8492         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
8493         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
8494         macro.
8495         (__roundevenl): Likewise.
8496         (__totalorderl): Likewise.
8497         (__totalordermagl): Likewise
8498         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
8499         __fromfpf128.
8500         (fromfpf128): Define as weak alias.
8501         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
8502         __fromfpxf128.
8503         (fromfpxf128): Define as weak alias.
8504         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
8505         __setpayloadf128.
8506         (setpayloadf128): Define as weak alias.
8507         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
8508         __setpayloadsigf128.
8509         (setpayloadsigf128): Define as weak alias.
8510         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
8511         __ufromfpf128.
8512         (ufromfpf128): Define as weak alias.
8513         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
8514         __ufromfpxf128.
8515         (ufromfpxf128): Define as weak alias.
8516         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
8517         (fromfpf): Define as weak alias.
8518         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
8519         __fromfpxf.
8520         (fromfpxf): Define as weak alias.
8521         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
8522         __getpayloadf and define as weak alias.
8523         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
8524         __roundevenf and define as weak alias.
8525         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
8526         __setpayloadf.
8527         (setpayloadf): Define as weak alias.
8528         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
8529         __setpayloadsigf.
8530         (setpayloadsigf): Define as weak alias.
8531         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
8532         __totalorderf and define as weak alias.
8533         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
8534         Rename to __totalordermagf and define as weak alias.
8535         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
8536         __ufromfpf.
8537         (ufromfpf): Define as weak alias.
8538         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
8539         __ufromfpxf.
8540         (ufromfpxf): Define as weak alias.
8541         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
8542         __fromfpl.
8543         (fromfpl): Define as weak alias.
8544         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
8545         __fromfpxl.
8546         (fromfpxl): Define as weak alias.
8547         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
8548         to __getpayloadl and define as weak alias.
8549         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
8550         __roundevenl and define as weak alias.
8551         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
8552         __setpayloadl.
8553         (setpayloadl): Define as weak alias.
8554         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
8555         __setpayloadsigl.
8556         (setpayloadsigl): Define as weak alias.
8557         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
8558         to __totalorderl and define as weak alias.
8559         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
8560         Rename to __totalordermagl and define as weak alias.
8561         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
8562         __ufromfpl.
8563         (ufromfpl): Define as weak alias.
8564         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
8565         __ufromfpxl.
8566         (ufromfpxl): Define as weak alias.
8567         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
8568         __fromfpl.
8569         (fromfpl): Define as weak alias.
8570         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
8571         __fromfpxl.
8572         (fromfpxl): Define as weak alias.
8573         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
8574         Rename to __getpayloadl and define as weak alias.
8575         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
8576         to __roundevenl and define as weak alias.  Call __roundeven
8577         instead of roundeven.
8578         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
8579         __setpayloadl.
8580         (setpayloadl): Define as weak alias.
8581         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
8582         __setpayloadsigl.
8583         (setpayloadsigl): Define as weak alias.
8584         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
8585         Rename to __totalorderl and define as weak alias.
8586         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
8587         Rename to __totalordermagl and define as weak alias.
8588         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
8589         __ufromfpl.
8590         (ufromfpl): Define as weak alias.
8591         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
8592         __ufromfpxl.
8593         (ufromfpxl): Define as weak alias.
8594         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
8595         __fromfpl.
8596         (fromfpl): Define as weak alias.
8597         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
8598         __fromfpxl.
8599         (fromfpxl): Define as weak alias.
8600         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
8601         __getpayloadl and define as weak alias.
8602         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
8603         __roundevenl and define as weak alias.
8604         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
8605         __setpayloadl.
8606         (setpayloadl): Define as weak alias.
8607         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
8608         __setpayloadsigl.
8609         (setpayloadsigl): Define as weak alias.
8610         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
8611         __totalorderl and define as weak alias.
8612         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
8613         Rename to __totalordermagl and define as weak alias.
8614         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
8615         __ufromfpl.
8616         (ufromfpl): Define as weak alias.
8617         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
8618         __ufromfpxl.
8619         (ufromfpxl): Define as weak alias.
8621 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8623         * benchtests/bench-string.h (realloc_bufs): New function.
8624         (test_init): Call it.
8625         * benchtests/bench-memset-large.c (do_test): Likewise.
8626         * benchtests/bench-memset.c (do_test): Likewise.
8628         * benchtests/bench-memset-large.c: Print output in JSON
8629         format.
8630         * benchtests/bench-memset.c: Likewise.
8632 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
8634         [BZ #21084]
8635         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
8636         * iconvdata/Makefile: Add IBM858.
8637         * iconvdata/gconv-modules: Likewise.
8638         * iconvdata/tst-tables.sh: Likewise.
8639         * iconvdata/ibm858.c: New file.
8640         * localedata/charmaps/IBM858: Likewise.
8642 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
8644         [BZ #22023]
8645         * locales/niu_NZ (LC_TIME): copy "niu_NU".
8646         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
8648 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
8650         [BZ #22112]
8651         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
8652         and add tel_int_fmt.
8654 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
8656         * sysdeps/generic/libm-alias-float128.h: New file.
8657         * sysdeps/generic/math-type-macros-float128.h: Include
8658         <libm-alias-float128.h>.
8659         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
8661 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
8663         * sysdeps/generic/libm-alias-ldouble.h: New file.
8664         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
8665         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
8666         * sysdeps/generic/math-type-macros-ldouble.h: Include
8667         <libm-alias-ldouble.h>.
8668         [!declare_mgen_alias] (declare_mgen_alias): Define to use
8669         libm_alias_ldouble.
8671 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8673         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
8674         * math/w_exp_compat.c: ... here.
8675         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
8676         * math/w_expf_compat.c: ... here.
8677         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
8678         * math/w_expl_compat.c: ... here.
8679         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
8680         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
8681         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
8682         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
8684 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
8686         * math/w_scalbln_template.c (strong_alias): Do not undefine and
8687         redefine.
8688         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
8689         macro.
8690         (ldexpl): Only define as compat symbol for libc, not libm.
8691         (scalbnl): Define as compat symbol for libc here.
8692         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
8693         define for [IS_IN (libc)].
8694         (__ldexpl_2): Remove alias.
8695         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
8696         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
8697         name in long_double_symbol call.
8698         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
8699         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
8700         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
8701         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
8702         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
8703         Remove macro.
8704         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
8705         Define as compat symbol.
8707 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8709         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
8710         * sysdeps/unix/sysv/linux/alpha/Makefile
8711         [$(subdir) = csu] (sysdep_routines): Remove rule.
8713 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
8715         * sysdeps/generic/libm-alias-double.h: New file.
8716         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
8717         * sysdeps/generic/math-type-macros-double.h: Include
8718         <libm-alias-double.h>.
8719         [declare_mgen_alias] (declare_mgen_alias): Define to use
8720         libm_alias_double.
8721         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
8722         (M_LIBM_NEED_COMPAT): Remove macro.
8723         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
8724         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
8725         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
8726         code.
8727         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8728         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8729         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8730         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8731         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8732         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8733         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8734         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8735         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8736         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8737         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8738         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8739         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8740         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8741         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8742         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8743         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8744         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8745         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8746         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8747         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8748         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8749         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8750         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8751         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8752         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8753         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8754         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
8755         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
8756         macro.
8757         (declare_mgen_alias): New macro.
8758         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
8759         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
8760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
8761         (M_LIBM_NEED_COMPAT): Remove macro.
8762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
8763         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
8764         <first-versions.h>.
8765         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
8766         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
8768 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
8770         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
8771         (declare_mgen_alias_2): Remove.
8772         * sysdeps/generic/math-type-macros-double.h
8773         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
8774         Likewise.
8775         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
8776         alias.
8777         (ldexp): Define with declare_mgen_alias.
8778         (scalbn): Likewise.
8780 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
8782         * grp/initgroups.c: Include config.h.
8783         (DEFAULT_CONFIG): New macro.
8784         (internal_getgrouplist): Use DEFAULT_CONFIG.
8785         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8786         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
8787         (DEFAULT_DEFCONFIG): New macro.
8788         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
8789         * nss/grp-lookup.c: Include config.h
8790         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
8791         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
8792         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
8793         * manual/nss.texi: Update default values section.
8795 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
8797         [BZ #21967]
8798         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
8799         New.
8800         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
8801         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
8802         Handle MathVec_Prefer_No_AVX512.
8803         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
8804         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
8805         is set.
8807 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8809         * posix/sched_primax.c (__sched_get_priority_max): Add
8810         libc_hidden_def.
8811         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
8812         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
8813         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
8814         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
8815         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
8816         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
8817         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
8818         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
8819         Add aliases.
8821 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
8823         * sysdeps/generic/libm-alias-float.h: New file.
8824         * sysdeps/generic/math-type-macros-float.h: Include
8825         <libm-alias-float.h>.
8826         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
8828 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
8830         [BZ #22093]
8831         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
8832         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
8833         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
8834         (HWCAP_IMPORTANT): Likewise.
8835         (HWCAP_X86_64): New enum.
8836         (HWCAP_X86_AVX512_1): Updated.
8837         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
8838         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
8839         (modules-names): Add x86_64/tst-x86_64mod-1.
8840         (LDFLAGS-tst-x86_64mod-1.so): New.
8841         ($(objpfx)tst-x86_64-1): Likewise.
8842         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
8843         (tst-x86_64-1-clean): Likewise.
8844         * sysdeps/x86_64/tst-x86_64-1.c: New file.
8845         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
8847 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8849         * po/sv.po: Update translations.
8850         * po/fr.po: Likewise.
8852 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8854         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
8855         seconds.
8856         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
8857         seconds.
8858         * elf/rtld-Rules: Fix $(error) use.
8860 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
8862         [BZ #14925]
8863         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
8864         * locale/iso-639.def: Change “Bengali” to “Bangla”.
8865         * localedata/locales/bn_BD: “Bengali” was still used in some
8866         comments. Change it to “Bangla”.
8868 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
8870         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
8872 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
8874         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
8875         thunderx2t99p1 to list of cpu names.
8876         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
8877         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
8879 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
8881         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
8882         Use strcmp instead of tunable_is_name.
8884 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
8886         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
8887         (F_GET_RW_HINT): New macro.
8888         [__USE_GNU] (F_SET_RW_HINT): Likewise.
8889         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
8890         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
8891         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
8892         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
8893         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
8894         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
8895         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
8896         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
8898         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
8899         (F_ADD_SEALS): New macro.
8900         [__USE_GNU] (F_GET_SEALS): Likewise.
8901         [__USE_GNU] (F_SEAL_SEAL): Likewise.
8902         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
8903         [__USE_GNU] (F_SEAL_GROW): Likewise.
8904         [__USE_GNU] (F_SEAL_WRITE): Likewise.
8906 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8908         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
8909         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
8910         * posix/glob_internal.h (__glob_pattern_type):
8911         * posix/glob.c (glob):
8912         * posix/glob_pattern_p.c (__glob_pattern_p):
8913         Use them.
8915         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
8916         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
8917         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
8918         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
8919         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
8920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
8921         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
8922         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
8923         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
8924         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
8925         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
8926         * sysdeps/wordsize-64/glob.c: Likewise.
8927         * sysdeps/wordsize-64/glob64.c: Likewise.
8928         * sysdeps/wordsize-64/globfree.c: Likewise.
8929         * sysdeps/wordsize-64/globfree64.c: Likewise.
8930         * sysdeps/unix/sysv/linux/glob.c: New file.
8931         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
8932         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
8933         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
8934         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
8935         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
8936         adds !GLOB_NO_OLD_VERSION as an extra condition.
8937         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
8938         using relative path instead of absolute one.
8939         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
8940         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
8941         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
8942         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
8943         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
8944         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
8946         [BZ #1062]
8947         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
8948         (glob): Use the same scratch buffer for both getlogin_r and
8949         getpwnam_r.  Don’t require preallocation of the login name.  This
8950         simplifies storage allocation, and corrects the handling of
8951         long login names.
8953         [BZ #1062]
8954         * posix/glob.c (glob): Port recent patches to platforms
8955         lacking getpwnam_r.
8956         (glob): Fix longstanding misuse of errno after getpwnam_r, which
8957         returns an error number rather than setting errno.
8959         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
8960         instead of GCC extension.
8961         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
8962         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
8963         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
8965         [BZ #866]
8966         [BZ #1062]
8967         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
8968         * posix/bug-glob1.c: Remove file.
8969         * posix/tst-glob_symlinks.c: New file.
8970         * posix/glob.c (__lstat64): New macro.
8971         (is_dir): New function.
8972         (glob, glob_in_dir): Match symlinks even if they are dangling.
8973         (link_stat, link_exists_p): Remove.  All uses removed.
8975         [BZ #1062]
8976         [BZ #19971]
8977         * posix/glob.c (struct readdir_result): Remove skip_entry member.
8978         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
8979         All uses removed.
8981         [BZ #1062]
8982         CVE-2017-15671
8983         * posix/Makefile (routines): Add globfree, globfree64, and
8984         glob_pattern_p.
8985         * posix/flexmember.h: New file.
8986         * posix/glob_internal.h: Likewise.
8987         * posix/glob_pattern_p.c: Likewise.
8988         * posix/globfree.c: Likewise.
8989         * posix/globfree64.c: Likewise.
8990         * sysdeps/gnu/globfree64.c: Likewise.
8991         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
8992         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
8993         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
8994         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
8995         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
8996         * sysdeps/wordsize-64/globfree.c: Likewise.
8997         * sysdeps/wordsize-64/globfree64.c: Likewise.
8998         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
8999         [NDEBUG): Remove comments.
9000         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
9001         (dirent_type): New type.  Use uint_fast8_t not
9002         uint8_t, as C99 does not require uint8_t.
9003         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
9004         (struct readdir_result): Use dirent_type.  Do not define skip_entry
9005         unless it is needed; this saves a byte on platforms lacking d_ino.
9006         (readdir_result_type, readdir_result_skip_entry):
9007         New functions, replacing ...
9008         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
9009          these functions, which were removed.  This makes the callers
9010         easier to read.  All callers changed.
9011         (D_INO_TO_RESULT): Now empty if there is no d_ino.
9012         (size_add_wrapv, glob_use_alloca): New static functions.
9013         (glob, glob_in_dir): Check for size_t overflow in several places,
9014         and fix some size_t checks that were not quite right.
9015         Remove old code using SHELL since Bash no longer
9016         uses this.
9017         (glob, prefix_array): Separate MS code better.
9018         (glob_in_dir): Remove old Amiga and VMS code.
9019         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
9020         separate files.
9021         (glob_in_dir): Do not rely on undefined behavior in accessing
9022         struct members beyond their bounds.  Use a flexible array member
9023         instead
9024         (link_stat): Rename from link_exists2_p and return -1/0 instead of
9025         0/1.  Caller changed.
9026         (glob): Fix memory leaks.
9027         * posix/glob64 (globfree64): Move to separate file.
9028         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
9029         (globfree64): Remove hidden alias.
9030         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
9031         oldglob.
9032         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
9033         separate file.
9034         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
9035         define.
9036         Move compat code to separate file.
9037         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
9038         separate file.
9040 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9042         * resolv/tst-resolv-qtypes.c (domain): Changed to
9043         "const char domain[] =".
9045 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
9047         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
9048         version to 3.1.6.
9050         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
9051         (TCP_MD5SIG_EXT): Likewise.
9052         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
9053         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
9054         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
9056         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
9058 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
9060         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
9062 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
9064         [BZ #22100]
9065         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
9067 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9069         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
9070         before assuming that the file is empty.  Avoid testing buffer content
9071         when nread == 0.
9073 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9075         [BZ #18858]
9076         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
9077         Remove define.
9078         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
9079         Likewise.
9080         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
9081         Likewise.
9082         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
9083         Likewise.
9084         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
9085         Likewise.
9086         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
9087         Likewise.
9088         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
9089         Likewise.
9091 2017-09-06  Florian Weimer  <fweimer@redhat.com>
9093         * malloc/dynarray_emplace_enlarge.c
9094         (__libc_dynarray_emplace_enlarge): Add missing else.
9096 2017-09-06  Florian Weimer  <fweimer@redhat.com>
9098         [BZ #22096]
9099         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
9100         case of failure to obtain the global conf object.
9102 2017-09-06  Florian Weimer  <fweimer@redhat.com>
9104         [BZ #22095]
9105         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
9106         dynarray allocation failure.
9108 2017-09-06  Florian Weimer  <fweimer@redhat.com>
9110         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
9111         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
9112         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
9113         New functions.
9114         (response): Call them.  Add 'p', '6' flag processing.
9115         (test_reverse): New function.
9116         (test_get2_any): Call it.
9117         (test_no_inet6): Add 'p' test.
9118         (test_inet6): Likewise.
9120 2017-09-06  Florian Weimer  <fweimer@redhat.com>
9122         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
9123         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
9124         the QNAME.
9125         (test_gai): Adjust query names.  Add additional tests.
9126         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
9127         test_get2.  Adjust query names.  Add additional tests.
9128         (test_no_inet6): New function, extracted from threadfunc.
9129         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
9130         Add additional tests.
9132 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
9134         [BZ #22070]
9135         * localedata/unicode-gen/utf8_gen.py: Set the width for
9136         characters with Prepended_Concatenation_Mark property to 1
9137         * localedata/charmaps/UTF-8: Updated using the improved script.
9139 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
9141         [BZ #21750]
9142         * localedata/unicode-gen/utf8_gen.py: Improve the script to
9143         use the range notation for all ranges of neighbouring characters
9144         with the same width.
9146 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
9148         * sysdeps/generic/math-type-macros-double.h: Include
9149         <math-svid-compat.h>.
9150         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
9151         * sysdeps/generic/math-type-macros-float.h: Include
9152         <math-svid-compat.h>.
9153         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
9154         * sysdeps/generic/math-type-macros-ldouble.h: Include
9155         <math-svid-compat.h>.
9156         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
9157         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
9158         condition.
9159         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
9160         * math/w_acosf_compat.c: Likewise.
9161         * math/w_acosh_compat.c: Likewise.
9162         * math/w_acoshf_compat.c: Likewise.
9163         * math/w_acoshl_compat.c: Likewise.
9164         * math/w_acosl_compat.c: Likewise.
9165         * math/w_asin_compat.c: Likewise.
9166         * math/w_asinf_compat.c: Likewise.
9167         * math/w_asinl_compat.c: Likewise.
9168         * math/w_atan2_compat.c: Likewise.
9169         * math/w_atan2f_compat.c: Likewise.
9170         * math/w_atan2l_compat.c: Likewise.
9171         * math/w_atanh_compat.c: Likewise.
9172         * math/w_atanhf_compat.c: Likewise.
9173         * math/w_atanhl_compat.c: Likewise.
9174         * math/w_cosh_compat.c: Likewise.
9175         * math/w_coshf_compat.c: Likewise.
9176         * math/w_coshl_compat.c: Likewise.
9177         * math/w_exp10_compat.c: Likewise.
9178         * math/w_exp10f_compat.c: Likewise.
9179         * math/w_exp10l_compat.c: Likewise.
9180         * math/w_exp2_compat.c: Likewise.
9181         * math/w_exp2f_compat.c: Likewise.
9182         * math/w_exp2l_compat.c: Likewise.
9183         * math/w_fmod_compat.c: Likewise.
9184         * math/w_fmodf_compat.c: Likewise.
9185         * math/w_fmodl_compat.c: Likewise.
9186         * math/w_hypot_compat.c: Likewise.
9187         * math/w_hypotf_compat.c: Likewise.
9188         * math/w_hypotl_compat.c: Likewise.
9189         * math/w_j0_compat.c: Likewise.
9190         * math/w_j0f_compat.c: Likewise.
9191         * math/w_j0l_compat.c: Likewise.
9192         * math/w_j1_compat.c: Likewise.
9193         * math/w_j1f_compat.c: Likewise.
9194         * math/w_j1l_compat.c: Likewise.
9195         * math/w_jn_compat.c: Likewise.
9196         * math/w_jnf_compat.c: Likewise.
9197         * math/w_jnl_compat.c: Likewise.
9198         * math/w_lgamma_r_compat.c: Likewise.
9199         * math/w_lgammaf_r_compat.c: Likewise.
9200         * math/w_lgammal_r_compat.c: Likewise.
9201         * math/w_log10_compat.c: Likewise.
9202         * math/w_log10f_compat.c: Likewise.
9203         * math/w_log10l_compat.c: Likewise.
9204         * math/w_log2_compat.c: Likewise.
9205         * math/w_log2f_compat.c: Likewise.
9206         * math/w_log2l_compat.c: Likewise.
9207         * math/w_log_compat.c: Likewise.
9208         * math/w_logf_compat.c: Likewise.
9209         * math/w_logl_compat.c: Likewise.
9210         * math/w_pow_compat.c: Likewise.
9211         * math/w_powf_compat.c: Likewise.
9212         * math/w_powl_compat.c: Likewise.
9213         * math/w_remainder_compat.c: Likewise.
9214         * math/w_remainderf_compat.c: Likewise.
9215         * math/w_remainderl_compat.c: Likewise.
9216         * math/w_sinh_compat.c: Likewise.
9217         * math/w_sinhf_compat.c: Likewise.
9218         * math/w_sinhl_compat.c: Likewise.
9219         * math/w_sqrt_compat.c: Likewise.
9220         * math/w_sqrtf_compat.c: Likewise.
9221         * math/w_sqrtl_compat.c: Likewise.
9222         * math/w_tgamma_compat.c: Likewise.
9223         * math/w_tgammaf_compat.c: Likewise.
9224         * math/w_tgammal_compat.c: Likewise.
9225         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
9226         [LIBM_SVID_COMPAT].
9227         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
9228         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
9229         [LIBM_SVID_COMPAT].
9230         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
9231         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
9232         [LIBM_SVID_COMPAT].
9233         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
9234         * sysdeps/i386/fpu/w_sqrt.c: New file.
9235         * sysdeps/ia64/fpu/w_acos.c: Likewise.
9236         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
9237         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
9238         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
9239         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
9240         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
9241         * sysdeps/ia64/fpu/w_asin.c: Likewise.
9242         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
9243         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
9244         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
9245         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
9246         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
9247         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
9248         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
9249         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
9250         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
9251         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
9252         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
9253         * sysdeps/ia64/fpu/w_exp.c: Likewise.
9254         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
9255         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
9256         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
9257         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
9258         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
9259         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
9260         * sysdeps/ia64/fpu/w_expf.c: Likewise.
9261         * sysdeps/ia64/fpu/w_expl.c: Likewise.
9262         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
9263         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
9264         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
9265         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
9266         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
9267         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
9268         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
9269         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
9270         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
9271         * sysdeps/ia64/fpu/w_log.c: Likewise.
9272         * sysdeps/ia64/fpu/w_log10.c: Likewise.
9273         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
9274         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
9275         * sysdeps/ia64/fpu/w_log2.c: Likewise.
9276         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
9277         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
9278         * sysdeps/ia64/fpu/w_logf.c: Likewise.
9279         * sysdeps/ia64/fpu/w_logl.c: Likewise.
9280         * sysdeps/ia64/fpu/w_pow.c: Likewise.
9281         * sysdeps/ia64/fpu/w_powf.c: Likewise.
9282         * sysdeps/ia64/fpu/w_powl.c: Likewise.
9283         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
9284         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
9285         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
9286         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
9287         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
9288         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
9289         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
9290         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
9291         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
9292         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
9293         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
9294         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
9295         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
9296         [LIBM_SVID_COMPAT].
9297         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
9298         * sysdeps/ieee754/k_standard.c: Likewise.
9299         * sysdeps/ieee754/k_standardf.c: Likewise.
9300         * sysdeps/ieee754/k_standardl.c: Likewise.
9301         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
9302         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
9303         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
9304         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
9305         long_double_symbol call on [LIBM_SVID_COMPAT].
9306         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
9307         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
9308         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
9309         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
9310         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
9311         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
9312         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
9313         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
9314         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
9315         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
9316         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
9317         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
9318         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
9319         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
9320         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
9321         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
9322         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
9323         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
9324         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
9325         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
9326         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
9327         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
9329 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
9331         * include/shlib-compat.h (TEST_COMPAT): New Macro.
9332         * malloc/tst-mallocstate.c: Convert from test-skeleton
9333         to test-driver.  Ifdef code using TEST_COMPAT macro.
9334         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
9335         * math/test-matherr.c: Likewise.
9337 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
9339         [BZ #22086]
9340         * debug/pcprofiledump.c (main): Use byte-swapped mask when
9341         comparing word with byte-swapped constant.
9343 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
9345         [BZ #20498]
9346         * locale/iso-639.def: add Miskito.
9347         * localedata/SUPPORTED: Add miq_NI/UTF-8.
9348         * localedata/locales/miq_NI: New file.
9350 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
9352         [BZ #18822]
9353         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
9354         (__mkdir): Likewise.
9355         * io/chmod.c (__chmod): Add libc_hidden_def.
9356         * io/mkdir.c (__mkdir): Likewise.
9357         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
9358         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
9359         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
9360         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
9362 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
9364         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9365         version to 4.13.
9367         [BZ #22082]
9368         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
9369         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
9371 2017-09-04  Florian Weimer  <fweimer@redhat.com>
9373         * math/math.h: Issue warning if log is defined.
9375 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
9377         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9378         kernel version to 4.13.
9380 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9382         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
9383         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
9384         parameter.
9385         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
9386         just <bits/types.h>.
9387         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
9388         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
9389         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
9390         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
9391         * misc/preadv2.c: Include <errno.h>.
9392         * misc/preadv64v2.c: Include <errno.h>.
9393         * misc/pwritev2.c: Include <errno.h>.
9394         * misc/pwritev64v2.c: Include <errno.h>.
9395         * sysdeps/posix/preadv2.c: Include <errno.h>.
9396         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
9397         Fix <unistd.h> inclusion.
9398         * sysdeps/posix/pwritev2.c: Include <errno.h>.
9399         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
9400         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
9401         __strtoul_internal): New functions.
9402         * sysdeps/posix/pause.c: Include <sigsetops.h>.
9403         * sysdeps/posix/system.c: Include <sigsetops.h>.
9404         * sysdeps/mach/hurd/i386/Makefile
9405         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
9406         [$(subdir) = csu] (sysdep-only-routines): Likewise.
9407         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
9408         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
9409         __feraiseexcept_renamed to feraiseexcept instead of
9410         __GI_feraiseexcept.
9411         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
9412         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
9413         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
9414         RWF_NOWAIT): Define to 0 if undefined already.
9415         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
9416         boils down to 0.
9417         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
9418         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
9420 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
9422         * manual/math.texi (pow10): Do not document.
9423         (pow10f): Likewise.
9424         (pow10l): Likewise.
9425         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
9426         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
9427         * math/libm-test-exp10.inc (pow10_test): Remove.
9428         (do_test): Do not call pow10.
9429         * math/w_exp10_compat.c (pow10): Make into compat symbol.
9430         [NO_LONG_DOUBLE] (pow10l): Likewise.
9431         * math/w_exp10f_compat.c (pow10f): Likewise.
9432         * math/w_exp10l_compat.c (pow10l): Likewise.
9433         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
9434         (pow10): Make into compat symbol.
9435         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
9436         (pow10f): Make into compat symbol.
9437         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
9438         (pow10l): Make into compat symbol.
9439         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
9440         pow10.
9441         (CFLAGS-nldbl-pow10.c): Remove variable..
9442         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
9443         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
9444         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
9445         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
9446         Undefine and redefine.
9447         (pow10l): Make into compat symbol.
9448         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
9449         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
9450         * sysdeps/arm/libm-test-ulps: Likewise.
9451         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
9452         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
9453         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
9454         * sysdeps/microblaze/libm-test-ulps: Likewise.
9455         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
9456         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
9457         * sysdeps/nios2/libm-test-ulps: Likewise.
9458         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9459         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
9460         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
9461         * sysdeps/sh/libm-test-ulps: Likewise.
9462         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
9463         * sysdeps/tile/libm-test-ulps: Likewise.
9464         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9466 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
9468         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
9470 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
9472         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
9473         "../ChangeLog.old/ChangeLog.8".
9474         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
9475         "../ChangeLog.old/ChangeLog.14".
9477 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
9479         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
9480         Threads Library.
9482 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
9484         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
9486 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
9488         * csu/version.c (banner): Remove "by Roland McGrath et al.".
9489         * nptl/Banner: Remove "by Ulrich Drepper et al.".
9491 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
9493         * stdlib/tst-atexit-common.c (do_test): Test support for at least
9494         32 atexit handlers.
9496 2017-09-01  Zack Weinberg  <zackw@panix.com>
9498         * math/math.h (HUGE_VAL): Improve commentary.
9500 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9501             Andreas Schwab  <schwab@suse.de>
9503         [BZ #21530]
9504         * include/stdio.h (__gen_tempfd): New function.
9505         * stdio-common/Makefile (routines): Add gentempfd.
9506         * stdio-common/gentempfd.c: New file.
9507         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
9508         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
9509         unnamed file first.
9511 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9513         [BZ #21915]
9514         [BZ #21922]
9515         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
9516         result to determine success or failure, not the errno value.
9517         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
9518         (tst-nss-files-hosts-erange): Link with -ldl.
9519         * nss/tst-nss-files-hosts-erange.c: New file.
9520         * nss/tst-resolv-basic.c (response): Handle nodata.example.
9521         (do_test): Add NO_DATA tests.
9522         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
9523         (do_test): Call it.
9525 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9527         [BZ #21922]
9528         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
9529         coming from gethostbyname2_r.
9531 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9533         * support/namespace.h (struct support_chroot_configuration): Add
9534         hosts, host_conf.
9535         (struct support_chroot): Add path_hosts, path_host_conf.
9536         * support/support_chroot.c (write_file): New function.
9537         (support_chroot_create): Call it to process /etc/resolv.conf,
9538         /etc/hosts, /etc/host.conf.
9539         (support_chroot_free): Update.
9541 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9543         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
9544         status indicates it is set.
9546 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9548         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
9549         function lookup failures more reliable.
9551 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9553         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
9554         (getcanonname): Likewise.
9555         (gaih_inet): Likewise.
9557 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9559         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
9560         (getcanonname): Likewise.
9561         (gaih_inet): Likewise.
9563 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
9564             Richard Henderson <rth@twiddle.net>
9566         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
9567         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
9568         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
9569         (IREG_SIZE, OREG_SIZE): New macros.
9570         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
9571         (IREG_SIZE, OREG_SIZE): New macros.
9572         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
9573         (IREG_SIZE): New macro.
9574         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
9575         (IREG_SIZE): New macro.
9576         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
9577         New includes.
9578         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
9579         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
9580         (__CONCATX): Handle exceptions correctly on large values that may
9581         set FE_INVALID.
9582         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
9583         Initialize if not already set.
9584         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
9586 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9588         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
9589         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
9590         Likewise.
9591         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
9592         Likewise.
9593         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
9594         Likewise.
9595         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
9596         Likewise.
9597         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
9598         Likewise.
9599         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
9600         Likewise.
9601         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
9602         Likewise.
9603         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
9604         (NO_CANCELLATION): Likewise.
9605         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
9606         Likewise.
9607         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
9608         Likewise.
9609         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
9610         Likewise.
9611         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
9612         (NO_CANCELLATION): Likewise.
9613         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
9614         (NO_CANCELLATION): Likewise.
9615         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
9616         Likewise
9617         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
9618         Likewise.
9619         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
9620         Likewise.
9621         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
9622         Likewise.
9623         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
9624         hidden prototype.
9625         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
9626         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
9628 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
9630         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
9631         in resolver call.
9633 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9635         * include/libc-symbols.h (internal_function): Remove.
9637 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9639         * stdlib/fmtmsg.c (internal_addseverity): Remove
9640         internal_function.
9642 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9644         * stdio-common/printf_fp.c (group_number): Remove
9645         internal_function.
9646         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
9648 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9650         * posix/fnmatch.c (internal_function): Remove definition.
9651         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
9652         * posix/regcomp.c (peek_token, init_word_char)
9653         (duplicate_node_closure, fetch_token, peek_token)
9654         (peek_token_bracket, build_range_exp, build_collating_symbol):
9655         Likewise.
9656         * posix/regex_internal.c (re_string_construct_common)
9657         (create_ci_newstate, create_cd_newstate, re_string_allocate)
9658         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
9659         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
9660         (re_string_translate_buffer, re_string_reconstruct)
9661         (re_string_peek_byte_case, re_string_fetch_byte_case)
9662         (re_string_destruct, re_string_context_at, re_node_set_alloc)
9663         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
9664         (re_node_set_add_intersect, re_node_set_init_union)
9665         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
9666         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
9667         (re_dfa_add_node, calc_state_hash, re_acquire_state)
9668         (re_acquire_state_context): Likewise.
9669         * posix/regex_internal.h (internal_function): Remove definition.
9670         (re_string_realloc_buffers, build_wcs_buffer)
9671         (build_wcs_upper_buffer, build_upper_buffer)
9672         (re_string_translate_buffer, re_string_context_at)
9673         (re_string_char_size_at, re_string_wchar_at)
9674         (re_string_elem_size_at): Likewise.
9675         * posix/regexec.c (match_ctx_init, match_ctx_clean)
9676         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
9677         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
9678         (re_search_internal, re_search_2_stub, re_search_stub)
9679         (re_copy_regs, prune_impossible_nodes, check_matching)
9680         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
9681         (free_fail_stack_return, sift_states_iter_mb)
9682         (sift_states_backward, build_sifted_states)
9683         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
9684         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
9685         (check_subexp_limits, sift_states_bkref, merge_state_array)
9686         (find_recover_state, transit_state, merge_state_with_log)
9687         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
9688         (transit_state_mb, transit_state_bkref, get_subexp)
9689         (get_subexp_sub, find_subexp_node, check_arrival)
9690         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
9691         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
9692         (check_node_accept_bytes, find_collation_sequence_value)
9693         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
9694         (acquire_init_state_context, check_halt_node_context)
9695         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
9696         (sub_epsilon_src_nodes): Likewise.
9697         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
9698         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
9699         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
9700         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
9701         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
9702         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
9703         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
9704         * sysdeps/posix/ttyname.c (getttyname): Likewise.
9705         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
9706         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
9707         (PREADV): Likewise.
9708         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
9709         (PREADV): Likewise.
9710         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
9711         (PWRITEV): Likewise.
9712         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
9713         (PWRITEV): Likewise.
9714         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
9715         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
9717 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9719         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
9720         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
9721         Remove internal_function.
9722         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
9723         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
9724         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
9725         (__deallocate_stack, __libc_pthread_init)
9726         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
9727         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
9728         (__libc_disable_asynccancel, __librt_disable_asynccancel):
9729         Likewise.
9730         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
9731         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
9732         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
9733         Likewise.
9734         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
9735         (__pthread_mutex_unlock_usercnt): Likewise.
9737 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9739         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
9740         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
9741         (fts_safe_changedir): Remove internal_function.
9742         * io/ftw.c (internal_function): Remove definition.
9743         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
9745 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9747         * inet/deadline.c (__deadline_current_time)
9748         (__deadline_from_timeval, __deadline_to_ms): Remove
9749         internal_function.
9750         * inet/getnameinfo.c (nrl_domainname): Likewise.
9751         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
9752         * inet/inet6_option.c (add_pad): Likewise.
9753         * inet/net-internal.h (__deadline_current_time)
9754         (__deadline_from_timeval, __deadline_to_ms): Likewise.
9755         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
9756         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
9757         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
9759 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
9761         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
9762         include <bits/nan.h>.
9763         * math/Makefile (headers): Remove bits/nan.h.
9764         * bits/nan.h: Remove.
9765         * sysdeps/ieee754/bits/nan.h: Likewise.
9766         * sysdeps/mips/bits/nan.h: Likewise.
9768         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
9769         not include <bits/inf.h>.
9770         * math/Makefile (headers): Remove bits/inf.h.
9771         * bits/inf.h: Remove.
9772         * sysdeps/ieee754/bits/inf.h: Likewise.
9774         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
9775         bits/huge_vall.h or bits/huge_val_flt128.h.
9776         (HUGE_VAL): Define directly here.
9777         [__USE_ISOC99] (HUGE_VALF): Likewise.
9778         [__USE_ISOC99] (HUGE_VALL): Likewise.
9779         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9780         (HUGE_VAL_F128): Likewise.
9781         * math/Makefile (headers): Remove bits/huge_val.h,
9782         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
9783         * bits/huge_val.h: Remove.
9784         * bits/huge_val_flt128.h: Likewise.
9785         * bits/huge_valf.h: Likewise.
9786         * bits/huge_vall.h: Likewise.
9787         * sysdeps/ia64/bits/huge_vall.h: Likewise.
9788         * sysdeps/ieee754/bits/huge_val.h: Likewise.
9789         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
9790         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
9791         * sysdeps/sh/bits/huge_val.h: Likewise.
9792         * sysdeps/sparc/bits/huge_vall.h: Likewise.
9793         * sysdeps/x86/bits/huge_vall.h: Likewise.
9795 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9797         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
9798         internal_function.
9799         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
9800         Likewise.
9801         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
9802         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
9803         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
9804         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
9805         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9806         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
9807         * elf/dl-libc.c (dlerror_run): Likewise.
9808         * elf/dl-load.c (add_name_to_object, decompose_rpath)
9809         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
9810         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
9811         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
9812         Likewise.
9813         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
9814         (_dl_higher_prime_number, _dl_strtoul): Likewise.
9815         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
9816         * elf/dl-profile.c (_dl_start_profile): Likewise.
9817         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
9818         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
9819         Likewise.
9820         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
9821         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
9822         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
9823         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
9824         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
9825         (_dl_allocate_tls_storage): Likewise.
9826         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
9827         (_dl_check_all_versions): Likewise.
9828         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9829         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
9830         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
9831         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
9832         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
9833         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
9834         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
9835         internal_function from __dl_start.
9836         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
9837         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9838         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
9839         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
9840         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
9841         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
9842         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
9843         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
9844         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
9845         (_dl_next_ld_env_entry, _dl_important_hwcaps)
9846         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
9847         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
9848         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
9849         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
9850         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
9851         Likewise.
9852         (struct rtld_global_ro): Remove internal_function from the
9853         _dl_lookup_symbol_x member.
9854         (_dl_symbol_value): Remove.  No longer defined anywhere.
9855         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
9856         internal_function.
9857         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
9858         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
9859         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
9860         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
9861         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
9862         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
9863         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
9864         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
9865         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
9866         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9867         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
9868         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
9870 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9872         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
9873         Remove internal_function.
9874         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
9875         Likewise.
9876         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
9877         Likewise.
9879 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9881         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
9882         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
9883         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
9885 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9887         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
9888         (__gai_enqueue_request): Remove internal_function.
9889         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
9890         (__gai_remove_request, __gai_notify, __gai_notify_only)
9891         (__gai_sigqueue): Likewise.
9892         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
9893         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9894         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
9895         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9896         Likewise.
9898 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9900         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
9901         * include/dirent.h (__opendirat, __getdents, __getdents64)
9902         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
9903         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
9904         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9905         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
9906         Likewise.
9907         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
9909 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9911         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
9912         internal_function.
9913         (GETCWD_RETURN_TYPE): Likewise.
9915 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9917         * include/time.h (__tz_compute, __strptime_internal): Remove
9918         internal_function.
9919         * time/strptime_l.c (__strptime_internal): Likewise.
9920         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
9922 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9924         * iconv/gconv.c (__gconv): Remove internal_function.
9925         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
9926         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
9927         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
9928         (__gconv_release_cache): Likewise.
9929         * iconv/gconv_close.c (__gconv_close): Likewise.
9930         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
9931         (read_conf_file, __gconv_get_path): Likewise.
9932         * iconv/gconv_db.c (derivation_lookup, add_derivation)
9933         (__gconv_release_step, gen_steps, increment_counter)
9934         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
9935         (__gconv_close_transform, free_modules_db): Likewise.
9936         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
9937         Likewise.
9938         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
9939         (__gconv_find_transform, __gconv_lookup_cache)
9940         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
9941         (__gconv_close_transform, __gconv_release_cache)
9942         (__gconv_loaded_object, __gconv_release_shlib)
9943         (__gconv_compare_alias): Likewise.
9944         * iconv/gconv_open.c (__gconv_open): Likewise.
9945         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
9946         * iconv/iconvconfig.c (add_module): Likewise.
9947         * intl/dcigettext.c (plural_lookup, guess_category_value)
9948         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
9949         * intl/eval-plural.h (plural_eval): Likewise.
9950         * intl/finddomain.c (_nl_find_domain): Likewise.
9951         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
9952         (_nl_load_domain, _nl_find_msg): Likewise.
9953         (internal_function): Remove definition.
9954         * intl/loadinfo.h (internal_function): Likewise.
9955         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
9956         internal_function.
9957         * intl/localealias.c (internal_function): Remove definition.
9958         (read_alias_file): Remove internal_function.
9959         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
9960         * intl/plural-exp.h (internal_function): Remove definition.
9961         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
9962         internal_function.
9963         * intl/plural.c: Regenerate.
9964         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
9965         * locale/coll-lookup.c (__collidx_table_lookup)
9966         (__collseq_table_lookup): Likewise.
9967         * locale/coll-lookup.h (__collidx_table_lookup)
9968         (__collseq_table_lookup): Likewise.
9969         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
9970         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9971         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
9972         (_nl_unload_locale): Likewise.
9973         * locale/localeinfo.h (struct __locale_data): Remove
9974         internal_function from cleanup member.
9975         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
9976         (_nl_remove_locale, _nl_load_locale_from_archive)
9977         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
9978         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
9979         (_nl_cleanup_time): Remove internal_function.
9980         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
9981         (_nl_parse_alt_digit): Likewise.
9982         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
9983         (_nl_select_era_entry): Likewise.
9984         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
9985         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
9986         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
9987         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
9988         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
9990 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9992         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
9993         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
9994         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
9995         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
9996         Likewise.
9997         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
9998         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
9999         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
10000         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
10001         Likewise.
10002         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
10004 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10006         * misc/getttyent.c (skip, value): Remove internal_function.
10007         * misc/syslog.c (openlog_internal): Likewise.
10008         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
10010 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10012         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
10013         (__nss_rewrite_field): Remove internal_function.
10014         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10015         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10016         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
10017         * nss/nsswitch.c (nss_parse_file, nss_getline)
10018         (nss_parse_service_list, nss_new_service): Likewise.
10019         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
10020         * nss/valid_field.c (__nss_valid_field): Likewise.
10021         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10023 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10025         * malloc/arena.c (__malloc_fork_lock_parent)
10026         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
10027         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
10028         internal_function from defintions.
10029         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
10030         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
10031         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
10032         internal_function from declarations.
10033         * malloc/malloc.c (internal_function): Do not define.
10034         (mem2mem_check): Remove internal_function from declaration.
10035         (munmap_chunk, mremap_chunk): Remove internal_function.
10036         * malloc/mtrace.c (tr_where): Likewise.
10038 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10040         * include/rpc/pmap_clnt.h (__get_socket): Remove
10041         internal_function.
10042         * sunrpc/auth_des.c (synchronize): Likewise.
10043         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
10044         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
10045         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
10046         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
10047         (key_call): Likewise.
10048         * sunrpc/pm_getport.c (__get_socket): Likewise.
10049         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
10050         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
10051         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
10052         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
10053         (invalidate): Likewise.
10054         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
10055         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
10056         (set_input_fragment, get_input_bytes): Likewise.
10058 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10060         * malloc/malloc.c (_int_free): Remove locked variable and related
10061         asserts.
10063 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
10065         [BZ #22051]
10066         * Makerules (build-module-helper-objlist): Filter out
10067         $(elf-objpfx)sofini.os.
10068         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
10069         needed.
10071 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10073         * libio/fcloseall.c: Assume weak_alias is defined.
10074         * libio/feof.c: Likewise.
10075         * libio/fileno.c: Likewise.
10076         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
10077         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
10078         definitions.
10079         (_IO_file_open): Call __open directly.
10080         (_IO_new_file_sync): Assume ESPIPE is defined.
10081         (_IO_file_seekoff_maybe_mmap): Call __read directly.
10082         (_IO_new_file_write): Call __write directly.
10083         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
10084         * libio/ftello64.c (__ftello64): Assume EIO is defined.
10085         * libio/genops.c: Assume _LIBC is defined.
10086         (save_for_backup): Remove internal_function.
10087         * libio/getc.c: Assume weak_alias is defined.
10088         * libio/getwc.c: Likewise.
10089         * libio/iofclose.c: Assume _LIBC is defined.
10090         * libio/iofdopen.c: Likewise.
10091         (_IO_fcntl): Remove macro definition.
10092         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
10093         Call __fcntl directly.
10094         * libio/iofflush.c: Assume weak_alias is defined.
10095         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
10096         defined.
10097         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
10098         * libio/iofgets.c: Likewise.
10099         * libio/iofopen.c: Assume _LIBC is defined.
10100         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
10101         * libio/iofputs.c: Assume weak_alias is defined.
10102         * libio/iofread.c: Likewise.
10103         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
10104         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
10105         * libio/ioftell.c: Assume weak_alias is defined.
10106         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
10107         * libio/iofwide.c: Assume _LIBC is defined.
10108         (_IO_fwide): Drop SHARED conditional because it is implied by
10109         SHLIB_COMPAT.
10110         * libio/iofwrite.c: Assume weak_alias is defined.
10111         * libio/iogetdelim.c: Likewise.
10112         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
10113         * libio/iogetwline.c (wmemcpy): Remove macro definition.
10114         (_IO_getwline): Call __wmemcpy directly.
10115         * libio/iopopen.c: Assume _LIBC is defined.
10116         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
10117         (_IO_close): Remove macro definitions.
10118         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
10119         _exit directly.
10120         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
10121         directly.
10122         * libio/ioputs.c: Assume weak_alias is defined.
10123         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
10124         * libio/iosetbuffer.c: Assume weak_alias is defined.
10125         * libio/iosetvbuf.c: Likewise.
10126         * libio/ioungetc.c: Likewise.
10127         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
10128         libc_hidden_def, libc_hidden_weak, NULL are defined.
10129         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
10130         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
10131         defined.
10132         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
10133         definitions.
10134         (_IO_old_file_init_internal): Drop SHARED conditional because it
10135         is implied by SHLIB_COMPAT.
10136         (_IO_old_file_fopen): Call __open directly.
10137         (_IO_old_file_sync): Assume ESPIPE is defined.
10138         (_IO_old_file_write): Call __write directly.
10139         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
10140         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
10141         Call __fcntl directly.
10142         * libio/oldiofgetpos.c: Assume weak_alias is defined.
10143         (_IO_old_fgetpos): Assume EIO is defined.
10144         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
10145         (_IO_old_fgetpos64): Assume EIO is defined.
10146         * libio/oldiofsetpos.c: Assume weak_alias is defined.
10147         (_IO_old_fsetpos): Assume EIO is defined.
10148         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
10149         (_IO_old_fsetpos64): Assume EIO is defined.
10150         * libio/oldiopopen.c:  Assume _LIBC is defined.
10151         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
10152         (_IO_close): Remove macro definitions.
10153         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
10154         directly.
10155         (_IO_old_proc_close): Call __close, __waitpid directly.
10156         * libio/put.c: Assume weak_alias is defined.
10157         * libio/stdfiles.c: Assume _LIBC is defined.
10158         * libio/stdio.c: Likewise.
10159         * libio/wfileops.c: Likewise.
10160         (_IO_wfile_sync): Assume ESPIPE is defined.
10161         * libio/wgenops.c: Assume _LIBC is defined.
10162         (save_for_wbackup): Remove internal_function.
10164 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10166         * malloc/malloc.c (top_check): Change return type to void.  Remove
10167         internal_function.
10168         * malloc/hooks.c (top_check): Likewise.
10169         (malloc_check, realloc_check, memalign_check): Adjust.
10171 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
10173         [BZ #21457]
10174         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
10175         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
10176         sigcontext and namespace requirements.
10177         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
10178         * sysdeps/m68k/sys/ucontext.h: Likewise.
10179         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
10180         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
10181         <bits/sigcontext.h>.
10182         (__ctx): Define earlier.
10183         (mcontext_t): Define structure contents rather than using struct
10184         sigcontext.
10185         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
10186         __glibc_reserved1 instead of __reserved.
10187         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
10188         <bits/sigcontext.h>.
10189         (__ctx): Define earlier.
10190         (mcontext_t): Define structure contents rather than using struct
10191         sigcontext.
10192         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
10193         mcontext_t instead of struct sigcontext.
10194         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
10195         <bits/sigcontext.h>.
10196         (__ctx): Define earlier.
10197         (mcontext_t): Define structure contents rather than using struct
10198         sigcontext.
10199         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
10200         <bits/sigcontext.h>.
10201         (__ctx): Define earlier.
10202         (mcontext_t): Define structure contents rather than using struct
10203         sigcontext.
10204         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
10205         mcontext_t instead of struct sigcontext.
10206         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
10207         mcontext_t instead of struct sigcontext.
10208         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
10209         <bits/sigcontext.h>.
10210         (__ctx): New macro.
10211         (struct __ia64_fpreg_mcontext): New type.
10212         (mcontext_t): Define structure contents rather than using struct
10213         sigcontext.
10214         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
10215         (uc_sigmask): Define using __ctx.
10216         (uc_stack): Likewise.
10217         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
10218         <bits/sigcontext.h>.
10219         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10220         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
10221         <bits/sigcontext.h>.
10222         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
10223         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
10224         <bits/sigcontext.h>.
10225         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
10226         <bits/sigcontext.h>.
10227         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
10228         <bits/sigcontext.h>.
10229         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
10230         <bits/sigcontext.h>.
10231         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
10232         <bits/sigcontext.h>.
10233         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
10234         <bits/sigcontext.h>.
10235         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
10236         <bits/sigcontext.h>.
10237         (__ctx): Define earlier.
10238         (mcontext_t): Define structure contents rather than using struct
10239         sigcontext.
10240         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
10241         <bits/sigcontext.h>.  Include <bits/types.h>.
10242         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
10243         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
10244         (test-xfail-XPG42/ucontext.h/conform): Likewise.
10245         (test-xfail-UNIX98/signal.h/conform): Likewise.
10246         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
10247         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
10248         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
10249         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
10250         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
10251         (test-xfail-POSIX2008/signal.h/conform): Likewise.
10252         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
10253         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
10254         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
10256 2017-08-30  Florian Weimer  <fweimer@redhat.com>
10258         * malloc/dynarray_emplace_enlarge.c
10259         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
10260         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
10261         * malloc/tst-dynarray.c (test_long_overflow): New function.
10262         (do_test): Call it.
10264 2017-08-30  Florian Weimer  <fweimer@redhat.com>
10266         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
10267         (set_arena_corrupt): Remove definitions.
10268         (mtrim): Do not check for corrupt arena.
10269         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
10270         Likewise.
10272 2017-08-30  Florian Weimer  <fweimer@redhat.com>
10274         [BZ #21754]
10275         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
10276         check_action.
10277         (ptmalloc_init): Do not set or use check_action.
10278         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
10279         call to malloc_printerr.  Remove return statement.
10280         (free_check): Likewise.  Remove arena unlock.
10281         (top_check): Update comment.  Adjust call to malloc_printerr.
10282         Remove heap repair code.
10283         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
10284         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
10285         (sysmalloc): Adjust call to malloc_printerr.
10286         (munmap_chunk, __libc_realloc): Likewise.  Remove return
10287         statement.
10288         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
10289         Remove errout label and corresponding gotos.
10290         (_int_free): Likewise.  Remove arena unlock.
10291         (do_set_mallopt_check): Do not set check_action.
10292         (malloc_printerr): Adjust parameter list.  Do not mark arena as
10293         corrupt.
10294         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
10295         comment.
10296         * manual/probes.texi (Memory Allocation Probes): Remove
10297         memory_mallopt_check_action.
10299 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
10301         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
10302         Use pointer to uint64_t instead of long int for sp.
10304 2017-08-30  Florian Weimer  <fweimer@redhat.com>
10306         [BZ #21754]
10307         * malloc/malloc.c (malloc_printerr): Always terminate the process,
10308         without printing a backtrace.  Do not leak any information in the
10309         error message.
10310         * manual/memory.texi (Heap Consistency Checking): Update.
10311         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
10313 2017-08-30  Florian Weimer  <fweimer@redhat.com>
10315         Do not scale NPTL tests with available number of CPUs.
10316         * nptl/tst-cond16.c (count): Set to constant value of 8.
10317         * nptl/tst-cond18.c (count): Likewise.
10319 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
10321         [BZ #22035]
10322         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
10323         Define to take a second argument that is a macro that
10324         concatentates a suffix, not the suffix itself.
10325         (__CONCAT_d): New macro.
10326         (__CONCAT_f): Likewise.
10327         (__CONCAT_l): Likewise.
10329 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
10331         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
10332         by child.
10334 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10335             Aurelien Jarno  <aurelien@aurel32.net>
10336             Maciej W. Rozycki  <macro@imgtec.com>
10338         [BZ #21956]
10339         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
10340         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
10341         `mips16-syscall6' and `mips16-syscall7'.
10342         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
10343         (CFLAGS-mips16-syscall7.c): Remove.
10344         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
10345         Remove `__mips16_syscall5', `__mips16_syscall6' and
10346         `__mips16_syscall7'.
10347         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
10348         (__mips16_syscall0): Rename `__mips16_syscall_return' to
10349         `__mips_syscall_return'.
10350         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
10351         (__mips16_syscall1): Likewise.
10352         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
10353         (__mips16_syscall2): Likewise.
10354         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
10355         (__mips16_syscall3): Likewise.
10356         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
10357         (__mips16_syscall4): Likewise.
10358         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
10359         Remove.
10360         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
10361         Remove.
10362         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
10363         Remove.
10364         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
10365         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
10366         `__mips16_syscall5'.  Remove prototype.
10367         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
10368         `__mips16_syscall6'.  Remove prototype.
10369         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
10370         `__mips16_syscall7'.  Remove prototype.
10371         (__nomips16, __mips16_syscall_return): Move to...
10372         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
10373         (__nomips16, __mips_syscall_return): ... here.
10374         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
10375         `__mips16_syscall_return' to `__mips_syscall_return'.
10376         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
10377         `internal_syscall##nr'.
10378         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
10379         `internal_syscall##nr'.
10380         (FORCE_FRAME_POINTER): Remove.
10381         (__mips_syscall5): New prototype.
10382         (internal_syscall5): Rewrite to call `__mips_syscall5'.
10383         (__mips_syscall6): New prototype.
10384         (internal_syscall6): Rewrite to call `__mips_syscall6'.
10385         (__mips_syscall7): New prototype.
10386         (internal_syscall7): Rewrite to call `__mips_syscall7'.
10387         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
10388         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
10389         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
10390         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
10391         (sysdep_routines): Add libc-do-syscall.
10392         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
10393         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
10395 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10397         [BZ #21672]
10398         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
10399         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
10400         (advise_stack_range): New function.
10401         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
10402         stack non required to advise_stack_range at allocatestack.c
10404 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10406         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
10408 2017-08-29  Florian Weimer  <fweimer@redhat.com>
10410         [BZ #22026]
10411         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
10412         __end_fct.  Mangle __end_fct after setting it to NULL.
10413         * iconv/Makefile (tests): Add tst-gconv-init-failure.
10414         (modules-names, modules-names-tests): Add
10415         tst-gconv-init-failure-mod.
10416         (gconv-modules): New target.
10417         (tst-gconv-init-failure-mod.so): Link against libsupport.
10418         (tst-gconv-init-failure): Depend on gconv-modules,
10419         tst-gconv-init-failure-mod.so.
10420         * iconv/tst-gconv-init-failure-mod.c: New file.
10421         * iconv/tst-gconv-init-failure.c: Likewise.
10422         * iconv/test-gconv-modules: Likewise.
10424 2017-08-29  Florian Weimer  <fweimer@redhat.com>
10426         [BZ #22025]
10427         * iconv/gconv_db.c (free_derivation): Remove redundant
10428         parentheses.
10429         (gen_steps): Unconditionally mangle __btowc_fct after
10430         initialization.
10431         (increment_counter): Likewise.  Do not call init_fct for internal
10432         modules.
10434 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
10436         [BZ #22028]
10437         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
10438         (_MSUF_): Remove macro.
10439         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
10440         Likewise.
10441         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
10442         (__REDIRFROM_X): New macro.
10443         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
10444         Likewise.
10445         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
10446         (__REDIRTO_X): Likewise.
10447         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
10448         arguments.
10449         (__MATH_REDIRCALL_2): Likewise.
10450         (__MATH_REDIRCALL_INTERNAL): Likewise.
10451         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
10452         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
10453         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
10454         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
10455         * math/test-finite-macros.c: New file.
10456         * math/Makefile (tests): Add test-finite-macros.
10457         (CFLAGS-test-finite-macros.c): New variable.
10459 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
10460             Jeff Law  <law@redhat.com>
10462         [BZ #22025]
10463         Mangle NULL pointers in iconv/gconv.
10464         * iconv/gconv_cache.c (find_module): Demangle init_fct before
10465         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
10466         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
10467         is non-NULL before demangling the end_fct.  Check for NULL
10468         end_fct after demangling.
10469         (__gconv_release_step): Demangle the end_fct before checking
10470         it for NULL.   Remove assert on __shlibc_handle != NULL.
10471         (gen_steps): Don't check btowc_fct for NULL before mangling.
10472         Demangle init_fct before checking for NULL.
10473         (increment_counter): Likewise.
10474         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
10475         end_fct for NULL before mangling.
10476         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
10477         for NULL.
10479 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
10481         [BZ #21971]
10482         * locale/iso-639.def: add Morisyen.
10484 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10486         [BZ #21930]
10487         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
10488         (iszero): New C++ implementation that does not use
10489         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
10490         signaling nans are enabled, since __builtin_types_compatible_p
10491         is a C-only feature.
10492         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
10493         defined, include ieee754_float128.h for access to the union and
10494         member ieee854_float128.ieee.
10495         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
10496         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
10497         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
10498         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
10499         options of test-math-zero on powerpc64le.
10501 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
10503         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
10504         Change double to float.
10506 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
10508         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
10509         unconditional.
10510         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
10511         conditional code; define contents only for [LIBM_SVID_COMPAT].
10513 2017-08-28  Florian Weimer  <fweimer@redhat.com>
10515         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
10516         (abi-lp64_be-options): Remove.
10517         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
10518         (abi-hard-options): Likewise.
10519         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
10520         (abi-o32_hard-options, abi-o32_soft_2008-options)
10521         (abi-o32_hard_2008-options, abi-n32_soft-options)
10522         (abi-n32_hard-options, abi-n32_soft_2008-options)
10523         (abi-n32_hard_2008-options, abi-n64_soft-options)
10524         (abi-n64_hard-options, abi-n64_soft_2008-options)
10525         (abi-n64_hard_2008-options): Likewise.
10526         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
10527         (abi-64-v1-options, abi-64-v2-options): Likewise.
10528         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
10529         (abi-64-options): Likewise.
10530         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
10531         (abi-64-options): Likewise.
10532         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
10533         (abi-64-options): Likewise.
10534         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
10535         (abi-64-options, abi-x32-options): Likewise.
10537 2017-08-28  Florian Weimer  <fweimer@redhat.com>
10539         Store supported list of SYS_* system calls in the source tree.
10540         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10541         (bits/syscall.h): Generate from list file.
10542         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
10543         [$(subdir) = misc] (tests): Add tst-syscall-list.
10544         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
10545         [$(subdir) = misc] (tst-syscall-list-macros.list)
10546         [$(subdir) = misc] (tst-syscall-list-nr.list)
10547         (tst-syscall-list-sys.list): Helper targets for new
10548         tst-syscall-list test.
10549         [$(subdir) = misc] (tst-syscall-list.out): Run test script
10550         tst-syscall-list.sh.
10551         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
10552         target. Do not include bits/syscall.d.
10553         [$(subdir) = misc] (generated): Do not update.
10554         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
10555         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
10556         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
10557         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
10559 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
10561         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
10562         (tst-cxa_atexit, tst-on_exit): Likewise.
10563         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
10564         tst-cxa_atexit, and tst-on_exit.
10565         * stdlib/tst-atexit-common.c: New file.
10566         * stdlib/tst-atexit.c: New file.
10567         * stdlib/tst-at_quick_exit.c: New file.
10568         * stdlib/tst-cxa_atexit.c: New file.
10569         * stdlib/tst-on_exit.c: New file.
10571 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10573         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
10574         * mach/stack_chk_fail_local.c: New file.
10575         * hurd/stack_chk_fail_local.c: New file.
10576         * mach/Machrules ($(interface-library)-routines): Add
10577         stack_chk_fail_local.
10578         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
10579         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
10580         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
10581         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
10582         * hurd/Makefile (CFLAGS-hurdstartup.o,
10583         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
10585 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
10587         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
10588         (index_cpu_*, index_arch_*): Removed.
10590 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10592         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
10593         Use uint64_t instead of unsigned long.
10595 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
10597         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
10598         [__HAVE_DISTINCT_FLOAT128].
10600         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
10601         of <bits/math-finite.h>.
10602         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
10603         inclusion of <bits/math-finite.h>.
10604         * math/bits/math-finite.h (__REDIRTO_X): Do not define
10605         conditionally on [__MATH_DECLARING_LDOUBLE && defined
10606         __NO_LONG_DOUBLE_MATH].
10607         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
10608         (__MATH_REDIRCALL_2): Likewise.
10609         (__MATH_REDIRCALL_INTERNAL): Likewise.
10610         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
10611         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
10612         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
10614         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
10615         Remove file.
10616         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
10617         Likewise.
10618         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
10619         Likewise.
10620         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
10621         Likewise.
10622         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
10623         Likewise.
10624         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
10625         Likewise.
10626         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
10627         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
10628         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
10629         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
10630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
10631         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
10632         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
10633         w_sqrtf_compat-ppc32.
10635 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10637         * math/math.h [defined __cplusplus] (issignaling): In the long
10638         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
10639         is not defined.  Call __issignaling, otherwise.
10641 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10643         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
10644         syscall definitions and replace __builtin_expect with __glibc_likely.
10645         * sysdeps/unix/syscall-template.S: Update comment about cancellable
10646         syscall.
10647          (SYSCALL_CANCELLABLE): Removedefinition
10648         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
10649         definition.
10650         (PSEUDO_END): Likewise.
10651         [IS_IN (libpthread)] (CENABLE): Likewise.
10652         [IS_IN (libpthread)] (CDISABLE): Likewise.
10653         [IS_IN (libc)] (CENABLE): Likewise.
10654         [IS_IN (libc)] (CENABLE): Likewise.
10655         [IS_IN (librt)] (CDISABLE): Likewise.
10656         [IS_IN (librt)] (CDISABLE): Likewise.
10657         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10658         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
10659         definition.
10660         (PSEUDO_END): Likewise.
10661         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
10662         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
10663         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
10664         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
10665         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
10666         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
10667         (CENABLE): Likewise.
10668         (CDISABLE): Likewise.
10669         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10670         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
10671         defintion.
10672         (PSEUDO_END): Likewise.
10673         [IS_IN (libpthread)] (CENABLE): Likewise.
10674         [IS_IN (libpthread)] (CDISABLE): Likewise.
10675         [IS_IN (libc)] (CENABLE): Likewise.
10676         [IS_IN (libc)] (CENABLE): Likewise.
10677         [IS_IN (librt)] (CDISABLE): Likewise.
10678         [IS_IN (librt)] (CDISABLE): Likewise.
10679         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10680         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
10681         definition.
10682         (PSEUDO_END): Likewise.
10683         [IS_IN (libpthread)] (CENABLE): Likewise.
10684         [IS_IN (libpthread)] (CDISABLE): Likewise.
10685         [IS_IN (libc)] (CENABLE): Likewise.
10686         [IS_IN (libc)] (CENABLE): Likewise.
10687         [IS_IN (librt)] (CDISABLE): Likewise.
10688         [IS_IN (librt)] (CDISABLE): Likewise.
10689         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10690         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
10691         definition.
10692         (PSEUDO_END): Likewise.
10693         [IS_IN (libpthread)] (CENABLE): Likewise.
10694         [IS_IN (libpthread)] (CDISABLE): Likewise.
10695         [IS_IN (libc)] (CENABLE): Likewise.
10696         [IS_IN (libc)] (CENABLE): Likewise.
10697         [IS_IN (librt)] (CDISABLE): Likewise.
10698         [IS_IN (librt)] (CDISABLE): Likewise.
10699         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10700         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
10701         definition.
10702         (PSEUDO_END): Likewise.
10703         [IS_IN (libpthread)] (CENABLE): Likewise.
10704         [IS_IN (libpthread)] (CDISABLE): Likewise.
10705         [IS_IN (libc)] (CENABLE): Likewise.
10706         [IS_IN (libc)] (CENABLE): Likewise.
10707         [IS_IN (librt)] (CDISABLE): Likewise.
10708         [IS_IN (librt)] (CDISABLE): Likewise.
10709         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10710         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
10711         definition.
10712         (PSEUDO_END): Likewise.
10713         [IS_IN (libpthread)] (CENABLE): Likewise.
10714         [IS_IN (libpthread)] (CDISABLE): Likewise.
10715         [IS_IN (libc)] (CENABLE): Likewise.
10716         [IS_IN (libc)] (CENABLE): Likewise.
10717         [IS_IN (librt)] (CDISABLE): Likewise.
10718         [IS_IN (librt)] (CDISABLE): Likewise.
10719         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10720         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
10721         definition.
10722         (PSEUDO_END): Likewise.
10723         [IS_IN (libpthread)] (CENABLE): Likewise.
10724         [IS_IN (libpthread)] (CDISABLE): Likewise.
10725         [IS_IN (libc)] (CENABLE): Likewise.
10726         [IS_IN (libc)] (CENABLE): Likewise.
10727         [IS_IN (librt)] (CDISABLE): Likewise.
10728         [IS_IN (librt)] (CDISABLE): Likewise.
10729         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10730         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
10731         Remove definition.
10732         (PSEUDO_END): Likewise.
10733         [IS_IN (libpthread)] (CENABLE): Likewise.
10734         [IS_IN (libpthread)] (CDISABLE): Likewise.
10735         [IS_IN (libc)] (CENABLE): Likewise.
10736         [IS_IN (libc)] (CENABLE): Likewise.
10737         [IS_IN (librt)] (CDISABLE): Likewise.
10738         [IS_IN (librt)] (CDISABLE): Likewise.
10739         (SINGLE_THREAD_P): Likewise.
10740         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
10741         definition.
10742         (PSEUDO_END): Likewise.
10743         [IS_IN (libpthread)] (CENABLE): Likewise.
10744         [IS_IN (libpthread)] (CDISABLE): Likewise.
10745         [IS_IN (libc)] (CENABLE): Likewise.
10746         [IS_IN (libc)] (CENABLE): Likewise.
10747         [IS_IN (librt)] (CDISABLE): Likewise.
10748         [IS_IN (librt)] (CDISABLE): Likewise.
10749         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10750         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
10751         definition.
10752         (PSEUDO_END): Likewise.
10753         [IS_IN (libpthread)] (CENABLE): Likewise.
10754         [IS_IN (libpthread)] (CDISABLE): Likewise.
10755         [IS_IN (libc)] (CENABLE): Likewise.
10756         [IS_IN (libc)] (CENABLE): Likewise.
10757         [IS_IN (librt)] (CDISABLE): Likewise.
10758         [IS_IN (librt)] (CDISABLE): Likewise.
10759         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10760         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
10761         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
10762         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
10763         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
10764         definition.
10765         (PSEUDO_END): Likewise.
10766         [IS_IN (libpthread)] (CENABLE): Likewise.
10767         [IS_IN (libpthread)] (CDISABLE): Likewise.
10768         [IS_IN (libc)] (CENABLE): Likewise.
10769         [IS_IN (libc)] (CENABLE): Likewise.
10770         [IS_IN (librt)] (CDISABLE): Likewise.
10771         [IS_IN (librt)] (CDISABLE): Likewise.
10772         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10773         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
10774         definition.
10775         (PSEUDO_END): Likewise.
10776         [IS_IN (libpthread)] (CENABLE): Likewise.
10777         [IS_IN (libpthread)] (CDISABLE): Likewise.
10778         [IS_IN (libc)] (CENABLE): Likewise.
10779         [IS_IN (libc)] (CENABLE): Likewise.
10780         [IS_IN (librt)] (CDISABLE): Likewise.
10781         [IS_IN (librt)] (CDISABLE): Likewise.
10782         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10783         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
10784         definition.
10785         (PSEUDO_END): Likewise.
10786         [IS_IN (libpthread)] (CENABLE): Likewise.
10787         [IS_IN (libpthread)] (CDISABLE): Likewise.
10788         [IS_IN (libc)] (CENABLE): Likewise.
10789         [IS_IN (libc)] (CENABLE): Likewise.
10790         [IS_IN (librt)] (CDISABLE): Likewise.
10791         [IS_IN (librt)] (CDISABLE): Likewise.
10792         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10793         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
10794         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
10795         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
10796         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
10797         definition.
10798         (PSEUDO_END): Likewise.
10799         [IS_IN (libpthread)] (CENABLE): Likewise.
10800         [IS_IN (libpthread)] (CDISABLE): Likewise.
10801         [IS_IN (libc)] (CENABLE): Likewise.
10802         [IS_IN (libc)] (CENABLE): Likewise.
10803         [IS_IN (librt)] (CDISABLE): Likewise.
10804         [IS_IN (librt)] (CDISABLE): Likewise.
10805         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10806         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
10807         definition.
10808         (PSEUDO_END): Likewise.
10809         [IS_IN (libpthread)] (CENABLE): Likewise.
10810         [IS_IN (libpthread)] (CDISABLE): Likewise.
10811         [IS_IN (libc)] (CENABLE): Likewise.
10812         [IS_IN (libc)] (CENABLE): Likewise.
10813         [IS_IN (librt)] (CDISABLE): Likewise.
10814         [IS_IN (librt)] (CDISABLE): Likewise.
10815         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10817 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10819         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
10821 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
10823         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10825 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
10827         [BZ #21982]
10828         * string/stratcliff.c (do_test): Declare size, nchars, inner,
10829         middle and outer with size_t instead of int.  Repleace %d and
10830         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
10831         "MAX (outer, nchars - 64)" to support unsigned outer and
10832         nchars.  Also exit loop when outer == 0.
10834 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10836         * include/fcntl.h (__fcntl_nocancel): Remove definition.
10837         * include/signal.h (__sigsuspend_nocancel): Likewise.
10838         * include/time.h (__nanosleep_nocancel): Likewise.
10839         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
10840         * login/utmp_file.c: Include non cancellable syscall header.
10841         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
10842         prototype.
10844 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
10846         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
10847         .byte sequences with AVX512F instructions.
10848         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
10849         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
10850         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
10851         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
10852         Likewise.
10853         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
10854         Likewise.
10856 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10857             Steve Ellcey  <sellcey@cavium.com>
10859         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
10860         Use PTR_REG macro in cmp instruction.
10862 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10864         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
10865         Change the return type of the ifunc resolver to match the return
10866         type of the target function.
10868 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10870         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
10871         (preadv64): Likewise.
10872         (pwrite64(: Likewise.
10873         (pwritev64): Likewise.
10875         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10876         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
10877         (LOAD_ARGS_0): Likewise.
10878         (LOAD_ARGS_1): Likewise.
10879         (LOAD_ARGS_2): Likewise.
10880         (LOAD_ARGS_3): Likewise.
10881         (LOAD_ARGS_4): Likewise.
10882         (LOAD_ARGS_5): Likewise.
10883         (LOAD_ARGS_6): Likewise.
10884         (LOAD_REGS_0): Likewise.
10885         (LOAD_REGS_1): Likewise.
10886         (LOAD_REGS_2): Likewise.
10887         (LOAD_REGS_3): Likewise.
10888         (LOAD_REGS_4): Likewise.
10889         (LOAD_REGS_5): Likewise.
10890         (LOAD_REGS_6): Likewise.
10891         (ASM_ARGS_0): Likewise.
10892         (ASM_ARGS_1): Likewise.
10893         (ASM_ARGS_2): Likewise.
10894         (ASM_ARGS_3): Likewise.
10895         (ASM_ARGS_4): Likewise.
10896         (ASM_ARGS_5): Likewise.
10897         (ASM_ARGS_6): Likewise.
10898         (LOAD_ARGS_TYPES_1): Likewise.
10899         (LOAD_ARGS_TYPES_2): Likewise.
10900         (LOAD_ARGS_TYPES_3): Likewise.
10901         (LOAD_ARGS_TYPES_4): Likewise.
10902         (LOAD_ARGS_TYPES_5): Likewise.
10903         (LOAD_ARGS_TYPES_6): Likewise.
10904         (LOAD_REGS_TYPES_1): Likewise.
10905         (LOAD_REGS_TYPES_2): Likewise.
10906         (LOAD_REGS_TYPES_3): Likewise.
10907         (LOAD_REGS_TYPES_4): Likewise.
10908         (LOAD_REGS_TYPES_5): Likewise.
10909         (LOAD_REGS_TYPES_6): Likewise.
10910         (TYPEFY): New define.
10911         (ARGIFY): Likewise.
10912         (internal_syscall0): Likewise.
10913         (internal_syscall1): Likewise.
10914         (internal_syscall2): Likewise.
10915         (internal_syscall3): Likewise.
10916         (internal_syscall4): Likewise.
10917         (internal_syscall5): Likewise.
10918         (internal_syscall6): Likewise.
10919         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
10920         (INTERNAL_SYSCALL_NCS): Remove define.
10921         (internal_syscall1): Add define.
10923 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10925         * math/w_remainder_compat.c: Remove duplicate inclusion of
10926         math-svid-compat.h.
10927         * math/w_remainderf_compat.c: Likewise.
10928         * math/w_remainderl_compat.c: Likewise.
10930 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10932         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10934 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
10936         [BZ #21684]
10937         * math/tgmath.h (__floating_type): Simplify definitions.
10938         (__real_integer_type): New macro.
10939         (__complex_integer_type): Likewise.
10940         (__expr_is_real): Likewise.
10941         (__tgmath_real_type_sub): Update comment to describe handling of
10942         complex types.
10943         (__tgmath_complex_type_sub): New macro.
10944         (__tgmath_complex_type): Likewise.
10945         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10946         (__TGMATH_CF128): Use __expr_is_real.
10947         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
10948         __expr_is_real.
10949         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10950         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
10951         * math/gen-tgmath-tests.py (Type.create_type): Create complex
10952         integer types.
10954 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10956         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
10957         macro.
10958         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
10959         alias.
10960         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
10961         Likewise.
10963         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
10964         nanosleep_not_cancel with __nanosleep_nocancel.
10965         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
10966         (__nanosleep_nocancel): New macro.
10967         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
10968         function.
10969         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
10970         macro.
10971         (__nanosleep_nocancel): New prototype.
10973         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
10974         pause_not_cancel with __pause_nocancel.
10975         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
10976         (__pause_nocancel): New macro.
10977         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
10978         macro.
10979         (__pause_nocancel): New prototype.
10980         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
10982 2017-08-22  Martin Sebor  <msebor@redhat.com>
10984         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
10985         to return a pointer to the same type as the target function.
10987 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
10989         [BZ #18822]
10990         [BZ #21986]
10991         * include/printf.h (__printf_fphex): Add attribute_hidden.
10992         (__guess_grouping): New prototype.
10993         * stdio-common/printf_fp.c (__guess_grouping): Removed.
10994         * stdio-common/reg-printf.c (__register_printf_specifier): Add
10995         libc_hidden_proto and libc_hidden_def.
10996         * stdlib/strfmon_l.c (__guess_grouping): Removed.
10997         (__vstrfmon_l): Remove the third argument passed to
10998         __guess_grouping.
11000 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11002         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
11003         definition for issignaling that does not rely on __MATH_TG,
11004         since __MATH_TG uses __builtin_types_compatible_p, which is only
11005         available in C mode.
11006         (CFLAGS-test-math-issignaling.cc): New variable.
11007         * math/Makefile [CXX] (tests): Add test-math-issignaling.
11008         * math/test-math-issignaling.cc: New test for C++ implementation
11009         of type-generic issignaling.
11010         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
11011         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
11012         options of test-math-issignaling on powerpc64le.
11014 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
11016         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
11017         building libc.a.
11018         (hidden_proto): Likewise.
11019         (hidden_tls_proto): Likewise.
11020         (__hidden_proto): Likewise.
11022 2017-08-22  Florian Weimer  <fweimer@redhat.com>
11024         math: Statically link tests of internal functionality.
11025         * math/Makefile (tests): Remove atest-exp, atest-sincos,
11026         atest-exp2.
11027         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
11028         (gmp-objs): Remove assignment.
11029         (atest-exp, atest-sincos, atest-exp2): Remove targets.
11031 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
11033         [BZ #21987]
11034         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
11035         and copy to ...
11036         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
11037         ... here.
11038         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
11039         ... and here.
11041         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
11042         variable definitions above inclusion of ../Rules.
11044 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
11046         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
11047         case calling __builtin_unreachable.
11049 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11051         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
11052         __waitpid_nocancel.
11053         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
11054         (__waitpid_nocancel): New macro.
11055         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
11056         macro.
11057         (__waitpid_nocancel): Replace macro with a function.
11058         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
11059         function.
11061         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
11062         __fcntl_nocancel.
11063         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
11064         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
11066         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
11067         __writev_nocancel_nostatus.
11068         (write_call_graph): Likewise.
11069         (write_bb_counts): Likewise.
11070         * resolv/herror.c (herror): Likewise.
11071         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
11072         macro.
11073         (__writev_nocancel_nostatus): New macro.
11074         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
11075         Remove macro.
11076         (__writev_nocancel_nostatus): New function.
11078 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
11080         Revert:
11081         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11083         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
11084         building libc.a.
11085         (hidden_proto): Likewise.
11086         (hidden_tls_proto): Likewise.
11087         (__hidden_proto): Likewise.
11089         [BZ #21973]
11090         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
11091         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
11092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
11093         Likewise.
11094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
11095         Likewise.
11096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
11097         Likewise.
11098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
11099         Likewise.
11100         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
11101         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
11102         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
11103         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
11104         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
11105         GLIBC_2.0 sqrtl symbol.
11107         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
11108         [__USE_MISC] (_LIB_VERSION): Likewise.
11109         [__USE_MISC] (struct exception): Likewise.
11110         [__USE_MISC] (matherr): Likewise.
11111         [__USE_MISC] (DOMAIN): Likewise.
11112         [__USE_MISC] (SING): Likewise.
11113         [__USE_MISC] (OVERFLOW): Likewise.
11114         [__USE_MISC] (UNDERFLOW): Likewise.
11115         [__USE_MISC] (TLOSS): Likewise.
11116         [__USE_MISC] (PLOSS): Likewise.
11117         [__USE_MISC] (HUGE): Likewise.
11118         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
11119         * math/math-svid-compat.h: New file.
11120         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
11121         and matherrl.
11122         * include/math.h [!_ISOMAC] (__matherr): Remove.
11123         * manual/arith.texi (FP Exceptions): Do not document matherr.
11124         * math/Makefile (tests): Change test-matherr to test-matherr-3.
11125         (tests-internal): New variable.
11126         (install-lib): Do not add libieee.a.
11127         (non-lib.a): Likewise.
11128         (extra-objs): Do not add libieee.a and ieee-math.o.
11129         (CPPFLAGS-s_lib_version.c): Remove variable.
11130         ($(objpfx)libieee.a): Remove rule.
11131         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
11132         * math/ieee-math.c: Remove.
11133         * math/libm-test-support.c (matherr): Remove.
11134         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
11135         and license notices.  Include <math-svid-compat.h> and
11136         <shlib-compat.h>.
11137         (matherr): Undefine as macro.  Use compat_symbol_reference.
11138         (_LIB_VERSION): Likewise.
11139         * math/test-matherr-2.c: New file.
11140         * math/test-matherr-3.c: Likewise.
11141         * sysdeps/generic/math_private.h (__kernel_standard): Remove
11142         declaration.
11143         (__kernel_standard_f): Likewise.
11144         (__kernel_standard_l): Likewise.
11145         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
11146         <math_private.h>.  Include <math-svid-compat.h>.
11147         (_LIB_VERSION): Undefine as macro.
11148         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
11149         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
11150         [LIBM_SVID_COMPAT], use compat_symbol.
11151         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
11152         <math_private.h>.  Include <math-svid-compat.h>.
11153         (matherr): Undefine as macro.
11154         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
11155         compat_symbol.
11156         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
11157         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
11158         compat_symbol_reference.
11159         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
11160         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
11161         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
11162         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
11163         (MATHERR_D): Remove declaration.
11164         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
11165         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
11166         [LIBM_BUILD] (pmatherrf): Likewise.
11167         [LIBM_BUILD] (pmatherr): Likewise.
11168         [LIBM_BUILD] (pmatherrl): Likewise.
11169         (DOMAIN): Likewise.
11170         (SING): Likewise.
11171         (OVERFLOW): Likewise.
11172         (UNDERFLOW): Likewise.
11173         (TLOSS): Likewise.
11174         (PLOSS): Likewise.
11175         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
11176         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
11177         compat_symbol.
11178         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
11179         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
11180         compat_symbol.
11181         * math/lgamma-compat.h: Include <math-svid-compat.h>.
11182         * math/w_acos_compat.c: Likewise.
11183         * math/w_acosf_compat.c: Likewise.
11184         * math/w_acosh_compat.c: Likewise.
11185         * math/w_acoshf_compat.c: Likewise.
11186         * math/w_acoshl_compat.c: Likewise.
11187         * math/w_acosl_compat.c: Likewise.
11188         * math/w_asin_compat.c: Likewise.
11189         * math/w_asinf_compat.c: Likewise.
11190         * math/w_asinl_compat.c: Likewise.
11191         * math/w_atan2_compat.c: Likewise.
11192         * math/w_atan2f_compat.c: Likewise.
11193         * math/w_atan2l_compat.c: Likewise.
11194         * math/w_atanh_compat.c: Likewise.
11195         * math/w_atanhf_compat.c: Likewise.
11196         * math/w_atanhl_compat.c: Likewise.
11197         * math/w_cosh_compat.c: Likewise.
11198         * math/w_coshf_compat.c: Likewise.
11199         * math/w_coshl_compat.c: Likewise.
11200         * math/w_exp10_compat.c: Likewise.
11201         * math/w_exp10f_compat.c: Likewise.
11202         * math/w_exp10l_compat.c: Likewise.
11203         * math/w_exp2_compat.c: Likewise.
11204         * math/w_exp2f_compat.c: Likewise.
11205         * math/w_exp2l_compat.c: Likewise.
11206         * math/w_fmod_compat.c: Likewise.
11207         * math/w_fmodf_compat.c: Likewise.
11208         * math/w_fmodl_compat.c: Likewise.
11209         * math/w_hypot_compat.c: Likewise.
11210         * math/w_hypotf_compat.c: Likewise.
11211         * math/w_hypotl_compat.c: Likewise.
11212         * math/w_j0_compat.c: Likewise.
11213         * math/w_j0f_compat.c: Likewise.
11214         * math/w_j0l_compat.c: Likewise.
11215         * math/w_j1_compat.c: Likewise.
11216         * math/w_j1f_compat.c: Likewise.
11217         * math/w_j1l_compat.c: Likewise.
11218         * math/w_jn_compat.c: Likewise.
11219         * math/w_jnf_compat.c: Likewise.
11220         * math/w_jnl_compat.c: Likewise.
11221         * math/w_lgamma_main.c: Likewise.
11222         * math/w_lgamma_r_compat.c: Likewise.
11223         * math/w_lgammaf_main.c: Likewise.
11224         * math/w_lgammaf_r_compat.c: Likewise.
11225         * math/w_lgammal_main.c: Likewise.
11226         * math/w_lgammal_r_compat.c: Likewise.
11227         * math/w_log10_compat.c: Likewise.
11228         * math/w_log10f_compat.c: Likewise.
11229         * math/w_log10l_compat.c: Likewise.
11230         * math/w_log2_compat.c: Likewise.
11231         * math/w_log2f_compat.c: Likewise.
11232         * math/w_log2l_compat.c: Likewise.
11233         * math/w_log_compat.c: Likewise.
11234         * math/w_logf_compat.c: Likewise.
11235         * math/w_logl_compat.c: Likewise.
11236         * math/w_pow_compat.c: Likewise.
11237         * math/w_powf_compat.c: Likewise.
11238         * math/w_powl_compat.c: Likewise.
11239         * math/w_remainder_compat.c: Likewise.
11240         * math/w_remainderf_compat.c: Likewise.
11241         * math/w_remainderl_compat.c: Likewise.
11242         * math/w_scalb_compat.c: Likewise.
11243         * math/w_scalbf_compat.c: Likewise.
11244         * math/w_scalbl_compat.c: Likewise.
11245         * math/w_sinh_compat.c: Likewise.
11246         * math/w_sinhf_compat.c: Likewise.
11247         * math/w_sinhl_compat.c: Likewise.
11248         * math/w_sqrt_compat.c: Likewise.
11249         * math/w_sqrtf_compat.c: Likewise.
11250         * math/w_sqrtl_compat.c: Likewise.
11251         * math/w_tgamma_compat.c: Likewise.
11252         * math/w_tgammaf_compat.c: Likewise.
11253         * math/w_tgammal_compat.c: Likewise.
11254         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
11255         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
11256         * sysdeps/ieee754/k_standard.c: Likewise.
11257         * sysdeps/ieee754/k_standardf.c: Likewise.
11258         * sysdeps/ieee754/k_standardl.c: Likewise.
11259         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
11260         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
11261         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
11262         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
11263         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
11264         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
11265         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
11266         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
11267         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
11268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
11269         Likewise.
11270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
11271         Likewise.
11272         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
11273         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
11274         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
11275         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
11277 2017-08-21  Florian Weimer  <fweimer@redhat.com>
11279         [BZ #21864]
11280         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
11281         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
11282         Move before inclusion of ../Rules.
11284 2017-08-21  Florian Weimer  <fweimer@redhat.com>
11286         [BZ #21972]
11287         * assert/assert.h (assert): Use static_cast (bool) for C++.
11288         Use the ternary operator in the warning branch for GNU C.
11289         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
11290         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
11291         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
11292         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
11293         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
11295 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11297         [BZ #18822]
11298         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11299         (__syscall_clock_gettime): Add attribute_hidden.
11300         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
11301         (__start_context): Likewise.
11303 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11305         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
11306         building libc.a.
11307         (hidden_proto): Likewise.
11308         (hidden_tls_proto): Likewise.
11309         (__hidden_proto): Likewise.
11311 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11313         * include/libc-symbols.h (attribute_hidden): Enable hidden
11314         visibility in libc.a compiled with PIE.
11316 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11318         [BZ #18822]
11319         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
11320         Add attribute_hidden.
11322 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11324         [BZ #21864]
11325         * Makerules (all-nonlib): Add $(others-extras).
11326         * catgets/Makefile (others-extras): New.
11327         * elf/Makefile (others-extras): Likewise.
11328         * nss/Makefile (others-extras): Likewise.
11330 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11332         [BZ #18822]
11333         * csu/libc-start.c (__libc_multiple_libcs): Removed.
11334         * elf/dl-open.c: Include <libc-internal.h>.
11335         (__libc_multiple_libcs): Removed.
11336         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
11337         <hp-timing.h>.
11338         * include/libc-internal.h (__libc_multiple_libcs): New.
11339         * misc/sbrk.c: Include <libc-internal.h>.
11340         (__libc_multiple_libcs): Removed.
11342 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11344         [BZ #18822]
11345         * grp/initgroups.c (__nss_group_database): Removed.
11346         (__nss_initgroups_database): Likewise.
11347         * nscd/gai.c (__nss_hosts_database): Likewise.
11348         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
11349         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
11350         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
11351         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
11352         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
11353         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
11354         attribute_hidden.
11355         * nss/nsswitch.c (__nss_database_custom): Define only if
11356         USE_NSCD is defined.
11357         (__nss_configure_lookup): Use __nss_database_custom only if
11358         USE_NSCD is defined.
11359         * nss/nsswitch.h (__nss_database_custom): Declare only if
11360         USE_NSCD is defined.  Add attribute_hidden.
11361         (__nss_setent): Add attribute_hidden.
11362         (__nss_endent): Likewise.
11363         (__nss_getent_r): Likewise.
11364         (__nss_getent): Likewise.
11365         (DEFINE_DATABASE): Declare __nss_##arg##_database.
11367 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11369         [BZ #18822]
11370         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
11371         libc_hidden_proto and libc_hidden_def.
11373 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11375         [BZ #18822]
11376         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
11377         Add libc_hidden_proto.
11378         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
11379         Add libc_hidden_def.
11381 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11383         [BZ #21974]
11384         * gmon/Makefile (routines): Remove bb_init_func and
11385         bb_exit_func.
11386         (elide-routines.os): Removed.
11387         * gmon/bb_exit_func.c: Likewise.
11388         * gmon/bb_init_func.c: Likewise.
11389         * include/sys/gmon.h (__bb): Likewise.
11390         (__bb_init_func): Likewise.
11391         (__bb_exit_func): Likewise.
11392         * sysdeps/alpha/bb_init_func.S: Likewise.
11394 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11396         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
11397         * include/setjmp.h (____longjmp_chk): Here.  Add
11398         attribute_hidden.
11400 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11402         [BZ #18822]
11403         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
11404         attribute_hidden.
11405         (__strspn_sse2): Likewise.
11407 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11409         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
11410         (close_not_cancel_no_status): Likewise.
11411         (__close_nocancel): New macro.
11412         (__close_nocancel_nostatus): Likewise.
11413         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
11414         macro.
11415         (close_not_cancel): Likewise.
11416         (close_not_cancel_no_status): Likewise.
11417         (__close_nocancel): New prototype.
11418         (__close_nocancel_nostatus): New function.
11419         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
11420         * catgets/open_catalog.c (__open_catalog): Replace
11421         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
11422         * gmon/gmon.c (write_gmon): Likewise.
11423         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
11424         * intl/loadmsgcat.c (close): Likewise.
11425         * io/ftw.c (open_dir_stream): Likewise.
11426         (ftw_startup): Likewise.
11427         * libio/fileops.c (_IO_file_open): Likewise.
11428         (_IO_file_close_mmap): Likewise.
11429         (_IO_file_close): Likewise.
11430         * libio/iopopen.c (_IO_dup2): Likewise.
11431         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
11432         * locale/loadlocale.c (_nl_load_locale): Likewise.
11433         * login/utmp_file.c (pututline_file): Likewise.
11434         (endutent_file): Likewise.
11435         * misc/daemon.c (daemon): Likewise.
11436         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11437         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11438         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11439         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
11440         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11441         * nscd/nscd_helper.c (open_socket): Likewise.
11442         (__nscd_open_socket): Likewise.
11443         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11444         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
11445         (__nscd_innetgr): Likewise.
11446         * nss/nss_db/db-open.c (internal_setent): Likewise.
11447         * resolv/res-close.c (__res_iclose): Likewise.
11448         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
11449         * sysdeps/posix/closedir.c (__closedir): Likewise.
11450         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
11451         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
11452         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
11453         (opendir_tail): Likewise.
11454         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
11455         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
11456         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
11457         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
11458         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
11459         (gethostid): Likewise.
11460         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
11461         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11462         Likewise.
11463         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
11464         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
11465         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
11466         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
11467         Likewise.
11468         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
11469         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
11470         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
11471         Likewise.
11472         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
11473         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
11474         Likewise.
11475         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
11476         Likewise.
11477         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11478         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
11479         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
11480         __close_nocancel.
11482         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
11483         (openat_not_cancel_3): Likewise.
11484         (openat64_not_cancel_3): Likewise).
11485         (openat_not_cancel_3): Likewise).
11486         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
11487         macro.
11488         (openat_not_cancel_3): Likewise.
11489         (openat64_not_cancel): Likewise.
11490         (openat64_not_cancel_3): Likewise.
11491         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
11492         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
11493         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
11494         __open{64}_nocancel.
11495         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
11496         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
11497         * sysdeps/posix/opendir.c (__opendirat): Likewise.
11499 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11501         [BZ #18822]
11502         * include/argz.h (__argz_create_sep): New function prototype.
11503         (__argz_append): Likewise.
11504         (__argz_add): Likewise.
11505         (__argz_add_sep): Likewise.
11506         (__argz_delete): Likewise.
11507         (__argz_insert): Likewise.
11508         (__argz_replace): Likewise.
11509         * string/argz.h (__argz_create_sep): Removed.
11510         (__argz_append): Likewise.
11511         (__argz_add): Likewise.
11512         (__argz_add_sep): Likewise.
11513         (__argz_delete): Likewise.
11514         (__argz_insert): Likewise.
11515         (__argz_replace): Likewise.
11517 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11519         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
11520         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
11521         (GNU_PROPERTY_STACK_SIZE): Likewie.
11522         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
11523         (GNU_PROPERTY_LOPROC): Likewise.
11524         (GNU_PROPERTY_HIPROC): Likewise.
11525         (GNU_PROPERTY_LOUSER): Likewise.
11526         (GNU_PROPERTY_HIUSER): Likewise.
11527         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
11528         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
11529         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
11530         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
11531         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
11532         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
11533         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
11534         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
11535         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
11536         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
11537         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
11538         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
11539         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
11540         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
11541         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
11542         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
11543         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
11544         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
11545         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
11546         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
11547         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
11548         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
11549         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
11551 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11553         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
11554         in C++ mode.
11556 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11558         [BZ #21930]
11559         * math/math.h (isinf): Check if in C or C++ mode before using
11560         __builtin_types_compatible_p, since this is a C mode feature.
11562 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11564         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
11565         (__write_nocancel): New macro.
11566         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
11567         Rewrite as a function prototype.
11568         (write_not_cancel): Remove macro.
11569         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
11570         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
11571         (write_gmon): Likewise.
11572         * libio/fileops.c (_IO_new_file_write): Likewise.
11573         * login/utmp_file.c (pututline_file): Likewise.
11574         (updwtmp_file): Likewise.
11575         * stdio-common/psiginfo.c (psiginfo): Likewise.
11576         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
11577         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
11578         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
11579         Likewise.
11580         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
11581         Likewise.
11583         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
11584         (__read_nocancel): New macro.
11585         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
11586         __read_nocancel.
11587         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
11588         macro.
11589         (__read_nocancel): New prototype.
11590         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
11591         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
11592         with __read_nocancel.
11593         * intl/loadmsgcat.c (read): Likewise.
11594         * libio/fileops.c (_IO_file_read): Likewise.
11595         * locale/loadlocale.c (_nl_load_locale): Likewise.
11596         * login/utmp_file.c (getutent_r_file): Likewise.
11597         (internal_getut_r): Likewise.
11598         (getutline_r_file): Likewise.
11599         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
11600         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
11601         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
11602         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11603         Likewise.
11604         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
11605         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
11606         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
11607         Likewise.
11608         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
11609         Likewise.
11610         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
11611         Likewise.
11612         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
11613         Likewise.
11614         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
11616 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11618         [BZ #21966]
11619         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
11620         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
11621         usable.
11623 2017-08-17  DJ Delorie  <dj@redhat.com>
11625         * bug17079.c: Update to new test harness.
11626         * test-digits-dots.c: Likewise.
11627         * test-netdb.c: Likewise.
11628         * tst-field.c: Likewise.
11629         * tst-nss-getpwent.c: Likewise.
11630         * tst-nss-static.c: Likewise.
11631         * tst-nss-test1.c: Likewise.
11632         * tst-nss-test2.c: Likewise.
11633         * tst-nss-test3.c: Likewise.
11634         * tst-nss-test4.c: Likewise.
11635         * tst-nss-test5.c: Likewise.
11637 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11639         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
11640         (open_not_cancel_2): Likewise.
11641         (open_nocancel): New macro.
11642         (open64_nocancel): Likewise.
11643         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
11644         (open_not_cancel_2): Likewise.
11645         (__open_nocancel): New prototype.
11646         (__open64_nocancel): Likewise.
11647         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
11648         __open_nocancel.
11649         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
11650         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
11651         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
11652         with __open_nocancel.
11653         * csu/check_fds.c (check_one_fd): Likewise.
11654         * gmon/gmon.c (write_gmon): Likewise.
11655         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
11656         * intl/loadmsgcat.c (open): Likewise.
11657         * libio/fileops.c (_IO_file_open): Likewise.
11658         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
11659         * locale/loadlocale.c (_nl_load_locale): Likewise.
11660         * login/utmp_file.c (setutent_file): Likewise.
11661         * misc/daemon.c (daemon): Likewise.
11662         * nss/nss_db/db-open.c (internal_setent): Likewise.
11663         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
11664         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
11665         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
11666         (__opendir): Likewise.
11667         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
11668         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
11669         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
11670         (gethostid): Likewise.
11671         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
11672         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11673         Likewise.
11674         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
11675         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
11676         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
11677         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
11678         Likewise.
11679         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
11680         Likewise.
11681         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
11682         Likewise.
11683         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
11684         Likewise.
11685         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
11686         Likewise.
11687         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
11688         Likewise.
11689         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11690         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
11692 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
11694         * benchtests/bench-skeleton.c (main): Add support for
11695         latency benchmarking.
11696         * benchtests/scripts/bench.py: Add support for latency benchmarking.
11698 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
11700         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
11701         the startup object.
11703 2017-08-17  Florian Weimer  <fweimer@redhat.com>
11705         * include/sys/socket.h (__opensock): Remove internal_function.
11706         * socket/opensock.c (__opensock): Likewise.
11707         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
11709 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
11711         [BZ #21944]
11712         * signal/bits/types/__sigval_t.h: New file.
11713         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
11714         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
11715         and define sigval_t using __sigval_t.
11716         * include/bits/types/__sigval_t.h: New file.
11717         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
11718         instead of <bits/types/__sigval_t.h>.
11719         (struct sigevent): Use __sigval_t instead of sigval_t.
11720         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
11721         instead of <bits/types/__sigval_t.h>.
11722         (siginfo_t): Use __sigval_t instead of sigval_t.
11723         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
11724         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
11725         (struct sigevent): Use __sigval_t instead of sigval_t.
11726         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
11727         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
11728         (siginfo_t): Use __sigval_t instead of sigval_t.
11729         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
11731 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
11733         * NEWS: Remove "[Add new features here]" for 2.27.
11735 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
11737         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
11738         libc.so.
11740 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
11742         * NEWS: Mention x86-64 FMA optimization.
11744 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
11746         [BZ #21912]
11747         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11748         Add e_expf-fma.
11749         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
11750         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
11751         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
11753 2017-08-16  Andreas Schwab  <schwab@suse.de>
11755         [BZ #16750]
11756         CVE-2009-5064
11757         * elf/ldd.bash.in: Never run file directly.
11759 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
11761         [BZ #21955]
11762         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
11763         (L(SP_INF_0)): Likewise.
11765 2017-08-15  Florian Weimer  <fweimer@redhat.com>
11767         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
11768         run-built-tests.
11770 2017-08-15  Florian Weimer  <fweimer@redhat.com>
11772         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
11773         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
11774         BROKEN_THREAD_SIGNALS code.
11775         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
11776         request_list): Remove caller_pid member used for
11777         BROKEN_THREAD_SIGNALS.
11778         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
11779         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
11780         Remove BROKEN_THREAD_SIGNALS support.
11781         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
11782         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
11784 2017-08-15  Florian Weimer  <fweimer@redhat.com>
11786         * gmon/Makefile (tests): Add tst-gmon.
11787         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
11788         Set.
11789         (tests-special): Add tst-gmon-prof.out.
11790         (tst-gmon.out): Depend on clean-tst-gmon-data.
11791         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
11792         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
11793         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
11794         startup object.
11795         * aclocal.m4 (GPROF): Set and substitute.
11796         * config.amke.in (GPROF): Set.
11797         * configure: Regenerate.
11799 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
11801         * elf/elf.h A (NT_PPC_TAR): New macro.
11802         (NT_PPC_PPR): Likewise.
11803         (NT_PPC_DSCR): Likewise.
11804         (NT_PPC_EBB): Likewise.
11805         (NT_PPC_PMU): Likewise.
11806         (NT_PPC_TM_CGPR): Likewise.
11807         (NT_PPC_TM_CFPR): Likewise.
11808         (NT_PPC_TM_CVMX): Likewise.
11809         (NT_PPC_TM_CVSX): Likewise.
11810         (NT_PPC_TM_SPR): Likewise.
11811         (NT_PPC_TM_CTAR): Likewise.
11812         (NT_PPC_TM_CPPR): Likewise.
11813         (NT_PPC_TM_CDSCR): Likewise.
11815 2017-08-15  Florian Weimer  <fweimer@redhat.com>
11817         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
11818         regparm (2) instead of internal_function.
11819         (_MCOUNT_DECL): Adjust.
11821 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
11823         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
11824         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
11826 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
11828         * conform/data/sys/wait.h-data (si_value): Do not expect for
11829         XPG42.
11831 2017-08-14  Florian Weimer  <fweimer@redhat.com>
11833         [BZ #21962]
11834         NSS: Create stubs for accidentally exported lookup functions.
11835         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
11836         Remove declaration.
11837         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
11838         (ether_hostton): Call __nss_ethers_lookup2 instead.
11839         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
11840         (ether_ntohost): Call __nss_ethers_lookup2 instead.
11841         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
11842         (setup): Call __nss_netgroup_lookup2 instead.
11843         * nss/Makefile (routines): Add compat-lookup.
11844         * nss/Versions (GLIBC_2.27): Add symbol version.
11845         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
11846         (DB_COMPAT_FCT): Remove.
11847         * nss/compat-lookup.c: New file.
11848         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
11849         from databases.def.
11850         * nss/service-lookup.c (NO_COMPAT): Remove definition.
11851         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
11852         (netname2user): Call __nss_publickey_lookup2 instead.
11853         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
11854         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
11855         instead.
11857 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11858             Sergei Trofimovich  <slyfox@inbox.ru>
11860         [BZ #21908]
11861         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
11862         Rename to MMAP2_PAGE_UNIT.
11863         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
11864         __OFF_T_MATCHES_OFF64_T is not defined.
11865         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
11866         uint64_t.
11867         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
11868         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
11870 2017-08-14  Florian Weimer  <fweimer@redhat.com>
11872         i386: Do not set internal_function.
11873         * config.h.in (USE_REGPARMS, internal_function): Remove.
11874         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
11875         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
11877 2017-08-14  Florian Weimer  <fweimer@redhat.com>
11879         * elf/dl-init.c (_dl_init): Remove internal_function.
11880         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
11881         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
11883 2017-08-14  Florian Weimer  <fweimer@redhat.com>
11885         * elf/rtld.c (_dl_start): Remove internal_function.
11886         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
11887         _dl_start.
11889 2017-08-14  Florian Weimer  <fweimer@redhat.com>
11891         * elf/dl-fini.c (_dl_fini): Remove internal_function
11892         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
11894 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
11896         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
11897         (bit_cpu_SHSTK): Likewise.
11898         (index_cpu_IBT): Likewise.
11899         (index_cpu_SHSTK): Likewise.
11900         (reg_IBT): Likewise.
11901         (reg_SHSTK): Likewise.
11902         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11903         Handle index_cpu_IBT and index_cpu_SHSTK.
11905 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
11907         [BZ #19982]
11908         * po/fr.po: Fix spelling mistake.
11910 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11912         * elf/dl-addr.c (_dl_addr): Remove internal_function.
11913         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
11914         (_dl_catch_error, _dl_receive_error): Likewise.
11915         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
11916         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
11917         (_dl_deallocate_tls): Likewise.
11918         * include/dlfcn.h (_dl_addr): Likewise.
11919         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
11920         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
11921         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
11922         Likewise.
11924 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11926         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
11927         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
11928         internal_function.
11929         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
11931 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11933         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
11934         internal_function.
11935         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
11936         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
11937         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
11938         internal_function from _dl_make_stack_executable_hook member.
11939         (_dl_make_stack_executable): Remove internal_function.
11940         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
11941         Likewise.
11942         * sysdeps/unix/sysv/linux/dl-execstack.c
11943         (_dl_make_stack_executable): Likewise.
11945 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11947         * sysdeps/unix/sysv/linux/netlinkaccess.h
11948         (__netlink_assert_response): Remove internal_function.
11949         * sysdeps/unix/sysv/linux/netlink_assert_response.c
11950         (__netlink_assert_response): Likewise.
11952 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11954         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
11955         internal_function.
11956         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
11958 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11960         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
11961         internal_function.
11962         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
11963         * inet/netgroup.h (__internal_setnetgrent)
11964         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
11965         * inet/getnetgrent_r.c (__internal_setnetgrent)
11966         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
11967         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
11968         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
11969         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
11970         * nss/nsswitch.h (db_lookup_function): Likewise.
11972 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11974         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
11975         Remove internal_function.
11976         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
11977         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
11978         message argument on the stack.
11979         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
11980         Likeweise.
11982 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
11984         Adapt test case data to the changes in the thousands
11985         separators.
11987         [BZ #20756]
11988         * localedata/tst-langinfo.sh: Adapt test case data.
11989         * stdlib/tst-strfmon_l.c: Likewise.
11990         * stdlib/tst-strtod4.c: Likewise.
11991         * stdlib/tst-strtod5i.c: Likewise.
11993 2017-08-11  Florian Weimer  <fweimer@redhat.com>
11995         [BZ #21242]
11996         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
11997         Suppress pedantic warning resulting from statement expression.
11998         (__ASSERT_FUNCTION): Add missing __extension__.
12000 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12002         * benchtests/bench-memmove-large.c: Print output in JSON
12003         format.
12004         * benchtests/bench-memmove.c: Likewise.
12006         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
12007         * benchtests/bench-memchr.c (do_one_test): Likewise.
12008         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
12009         * benchtests/bench-memcpy.c (do_one_test): Likewise.
12010         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
12011         * benchtests/bench-memmove.c (do_one_test): Likewise.
12012         * benchtests/bench-memset-large.c (do_one_test): Likewise.
12013         * benchtests/bench-memset.c (do_one_test): Likewise.
12014         * benchtests/bench-string.h (test_init): Remove memsets.
12016 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
12018         * manual/lang.texi
12019         (Computing the Width of an Integer Data Type): Rename section to
12020         "Width of an Integer Type".  Remove inaccurate statement regarding
12021         lack of C language facilities for determining width of integer
12022         types, and reorder content to improve flow and context of
12023         discussion.
12025 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
12027         * lang.texi (va_copy): Change standard from ISO to C99.
12028         (__va_copy): Add standard and header annotation.
12029         Update description for clarity of origins and current use.
12031 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12033         [BZ #21941]
12034         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
12035         xssqrtqp requires operands to be in Vector Registers
12036         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
12037         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
12038         (__ieee754_sqrtf128): Likewise.
12040 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
12042         * sysdeps/aarch64/memcmp.S (memcmp):
12043         Rewrite of optimized memcmp.
12045 2017-08-10  Florian Weimer  <fweimer@redhat.com>
12047         Introduce ld.so exceptions.
12048         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
12049         (_dl_exception_create, _dl_exception_create_format)
12050         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
12051         (_dl_catch_exception): Declare.
12052         (_dl_catch_error): Update comment.
12053         * elf/dl-error-skeleton.c (struct catch): Replace objname,
12054         errstring, malloced members with exception member.
12055         (_dl_out_of_memory): Remove.
12056         (fatal_error): New function, extracted from _dl_signal_error.
12057         (_dl_signal_exception, _dl_signal_cexception): New functions.
12058         (_dl_signal_error): Call _dl_exception_create to allocate an
12059         exception object.
12060         (_dl_catch_exception): New function, based on _dl_catch_error.
12061         (_dl_catch_error): Implement using _dl_catch_exception.
12062         * elf/dl-exception.c: New file.
12063         * elf/Makefile (dl-routines): Add dl-exception.
12064         (elide-routines.os): Likewise.
12065         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
12066         _dl_exception_create_format, _dl_exception_free.
12067         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
12068         _dl_signal_exception.
12069         * elf/dl-lookup.c (make_string): Remove.
12070         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
12071         _dl_signal_cexception, _dl_exception_free.
12072         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
12073         _dl_signal_exception.
12074         * elf/dl-sym.c (do_sym): Likewise.
12075         * elf/dl-version.c (make_string): Remove.
12076         (match_symbol): Use _dl_exception_create_format,
12077         _dl_signal_cexception, _dl_exception_free.
12078         (_dl_check_map_versions): Likewise.
12079         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
12080         _dl_catch_exception.
12081         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
12082         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
12083         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
12084         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
12085         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
12086         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
12087         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
12088         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
12089         Likewise.
12090         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
12091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
12092         (ld.so): Likewise.
12093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
12094         (ld.so): Likewise.
12095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
12096         Likewise.
12097         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
12098         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
12099         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
12100         Likewise.
12101         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
12102         Likewise.
12103         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
12105 2017-08-10  Florian Weimer  <fweimer@redhat.com>
12107         * inet/net-internal.h (__inet6_scopeid_pton): Remove
12108         attribute_hidden, internal_function.
12109         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
12110         internal_function.
12112 2017-08-10  Florian Weimer  <fweimer@redhat.com>
12114         * malloc/malloc.c (get_max_fast): Reimplement as an inline
12115         function which calls __builtin_unreachable.
12117 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
12119         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
12120         Indian monetary formatting
12121         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
12122         test cases.
12124 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
12126         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
12127         Fix typo in comment.
12129         [BZ #21928]
12130         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
12131         PTRACE_SEIZE_DEVEL): Remove.
12132         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
12133         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
12134         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12135         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12136         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12138 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
12140         * posix/bits/types.h (__qaddr_t): Remove.
12142         [BZ #21457]
12143         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
12144         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
12145         __glibc_reserved1.
12146         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
12147         (ucontext_t): Use __ctx with uc_flags.
12148         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
12149         (__ctxt): Likewise.
12150         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
12151         __glibc_reserved1.
12152         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
12153         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
12154         __glibc_reserved1.
12155         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
12156         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
12157         __glibc_reserved1.
12158         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
12159         macro.
12160         (ucontext_t): Use __ctx with uc_flags.
12161         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
12162         (ucontext_t): Use __ctx with uc_flags.
12163         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
12164         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
12165         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
12166         (ucontext_t): Use __ctx with uc_flags.
12167         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
12168         undefine further down.
12169         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
12170         __glibc_reserved1.
12171         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
12172         undefine further down.
12173         (ucontext_t): Use __ctx with uc_flags.
12174         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
12175         undefine further down.
12176         (ucontext_t): Use __ctx with uc_flags.
12177         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
12178         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
12179         Rename uc_pad to __glibc_reserved1.
12180         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
12181         undefine further down.
12182         (ucontext_t): Use __ctx with uc_flags.
12183         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
12184         further down.
12185         (ucontext_t): Use __ctx with uc_flags.
12186         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
12187         __ctx with uc_flags.
12188         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
12189         (ucontext_t): Use __ctx with uc_flags.
12190         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
12191         __ctx with uc_flags.
12193 2017-08-09  Florian Weimer  <fweimer@redhat.com>
12195         [BZ #21932]
12196         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
12197         before early return.
12199 2017-08-09  Andreas Schwab  <schwab@suse.de>
12201         [BZ #21041]
12202         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
12203         renamed alias.
12205         [BZ #21041]
12206         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
12207         tst-compat-forwarder.
12208         (modules-names): Add tst-compat-forwarder-mod.
12209         ($(objpfx)tst-compat-forwarder): Depend on
12210         $(objpfx)tst-compat-forwarder-mod.so.
12211         * nptl/tst-compat-forwarder.c: New file.
12212         * nptl/tst-compat-forwarder-mod.c: New file.
12214 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12216         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
12217         comments.
12219         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
12220         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
12221         memcpy_falkor.
12222         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
12223         Bump.
12224         (__libc_ifunc_impl_list): Add __memcpy_falkor.
12225         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
12226         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
12227         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
12228         Add falkor.
12229         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
12230         New macro.
12232 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12234         [BZ #759]
12235         * manual/setjmp.texi (getcontex): Document uc_stack value
12236         compatibility differences.
12238 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
12240         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
12241         (old_malloc_hook): Likewise.
12242         (old_memalign_hook): Likewise.
12243         (old_realloc_hook): Likewise.
12244         (struct hdr): Likewise.
12245         (flood): Likewise.
12246         (freehook): Likewise.
12247         (mallochook): Likewise.
12248         (memalignhook): Likewise.
12249         (reallochook): Likewise.
12250         (mprobe): Likewise.
12251         * malloc/mtrace.c (mallwatch): Likewise.
12252         (tr_old_free_hook): Likewise.
12253         (tr_old_malloc_hook): Likewise.
12254         (tr_old_realloc_hook): Likewise.
12255         (tr_old_memalign_hook): Likewise.
12256         (tr_where): Likewise.
12257         (lock_and_info): Likewise.
12258         (tr_freehook): Likewise.
12259         (tr_mallochook): Likewise.
12260         (tr_reallochook): Likewise.
12261         (tr_memalignhook): Likewise.
12262         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
12263         * misc/mmap.c (__mmap): Likewise.
12264         * misc/mmap64.c (__mmap64): Likewise.
12265         * misc/mprotect.c (__mprotect): Likewise.
12266         * misc/msync.c (msync): Likewise.
12267         * misc/munmap.c (__munmap): Likewise.
12268         * posix/posix_madvise.c (posix_madvise): Likewise.
12269         * socket/send.c (__send): Likewise.
12270         * socket/sendto.c (__sendto): Likewise.
12271         * socket/setsockopt.c (__setsockopt): Likewise.
12272         * string/memcmp.c (__ptr_t): Remove macro.
12273         (MEMCMP): Use void * instead of ptr_t.
12274         * string/memrchr.c (__ptr_t): Remove macro.
12275         (__memrchr): Use void * instead of ptr_t.
12276         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
12277         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
12278         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
12279         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
12280         * sysdeps/mach/msync.c (msync): Likewise.
12281         * sysdeps/mach/munmap.c (__munmap): Likewise.
12282         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
12283         Likewise.
12284         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
12285         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
12286         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
12287         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
12288         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
12289         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
12290         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
12291         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
12292         Likewise.
12293         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
12294         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
12295         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
12296         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
12297         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
12298         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
12299         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
12300         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
12301         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
12302         Likewise.
12303         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
12304         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
12305         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
12306         (MEMCMP): Use void * instead of ptr_t.
12307         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
12308         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
12310 2017-08-08  Florian Weimer  <fweimer@redhat.com>
12312         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
12313         return statement.
12315 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
12317         [BZ #21913]
12318         * csu/libc-tls.c: Include <startup.h> first.
12319         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
12320         * elf/dl-tunables.c: Include <startup.h> first.
12321         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
12322         * sysdeps/generic/startup.h: New file.
12323         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
12324         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
12325         (I386_USE_SYSENTER): New.  Defined to 0.
12327 2017-08-08  Andreas Schwab  <schwab@suse.de>
12329         [BZ #21041]
12330         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
12331         * nptl/pt-system.c (system): Likewise.
12333 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12335         [BZ #21780]
12336         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
12337         EOPNOTSUPP.
12338         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
12339         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
12340         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
12341         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
12342         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12343         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12344         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12346 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
12348         [BZ #21899]
12349         * bits/sigaction.h (struct sigaction): Define sa_handler and
12350         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
12351         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12352         [__USE_XOPEN_EXTENDED].
12353         (SA_RESTART): Likewise.
12354         (SA_NODEFER): Likewise.
12355         (SA_RESETHAND): Likewise.
12356         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
12357         (struct sigaction): Define sa_handler and sa_sigaction using union
12358         also for [__USE_XOPEN_EXTENDED].
12359         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12360         [__USE_XOPEN_EXTENDED].
12361         (SA_RESTART): Likewise.
12362         (SA_NODEFER): Likewise.
12363         (SA_RESETHAND): Likewise.
12364         * sysdeps/unix/sysv/linux/bits/sigaction.h
12365         (struct sigaction): Define sa_handler and sa_sigaction using union
12366         also for [__USE_XOPEN_EXTENDED].
12367         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12368         [__USE_XOPEN_EXTENDED].
12369         (SA_RESTART): Likewise.
12370         (SA_NODEFER): Likewise.
12371         (SA_RESETHAND): Likewise.
12372         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
12373         (struct sigaction): Define sa_handler and sa_sigaction using union
12374         also for [__USE_XOPEN_EXTENDED].
12375         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12376         [__USE_XOPEN_EXTENDED].
12377         (SA_RESTART): Likewise.
12378         (SA_NODEFER): Likewise.
12379         (SA_RESETHAND): Likewise.
12380         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
12381         (struct sigaction): Define sa_handler and sa_sigaction using union
12382         also for [__USE_XOPEN_EXTENDED].
12383         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12384         [__USE_XOPEN_EXTENDED].
12385         (SA_RESTART): Likewise.
12386         (SA_NODEFER): Likewise.
12387         (SA_RESETHAND): Likewise.
12388         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
12389         (struct sigaction): Define sa_handler and sa_sigaction using union
12390         also for [__USE_XOPEN_EXTENDED].
12391         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12392         [__USE_XOPEN_EXTENDED].
12393         (SA_RESTART): Likewise.
12394         (SA_NODEFER): Likewise.
12395         (SA_RESETHAND): Likewise.
12396         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
12397         (struct sigaction): Define sa_handler and sa_sigaction using union
12398         also for [__USE_XOPEN_EXTENDED].
12399         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12400         [__USE_XOPEN_EXTENDED].
12401         (SA_RESTART): Likewise.
12402         (SA_NODEFER): Likewise.
12403         (SA_RESETHAND): Likewise.
12404         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
12405         (struct sigaction): Define sa_handler and sa_sigaction using union
12406         also for [__USE_XOPEN_EXTENDED].
12407         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12408         [__USE_XOPEN_EXTENDED].
12409         (SA_RESTART): Likewise.
12410         (SA_NODEFER): Likewise.  Define directly rather than as alias.
12411         (SA_RESETHAND): Likewise.
12412         (SA_INTERRUPT): Define only for [__USE_MISC].
12413         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
12414         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
12415         [__USE_MISC].
12416         (SA_STACK): Define only for [__USE_MISC].
12417         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
12418         (struct sigaction): Define sa_handler and sa_sigaction using union
12419         also for [__USE_XOPEN_EXTENDED].
12420         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12421         [__USE_XOPEN_EXTENDED].
12422         (SA_RESTART): Likewise.
12423         (SA_NODEFER): Likewise.
12424         (SA_RESETHAND): Likewise.
12425         (SA_NOPTRACE): Define only for [__USE_MISC].
12427         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
12428         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
12429         (struct catalog_info): Likewise.
12430         * inet/htontest.c (lo): Likewise.
12431         (foo): Likewise.
12432         * inet/inet_lnaof.c (inet_lnaof): Likewise.
12433         * inet/inet_net.c (inet_network): Likewise.
12434         * inet/inet_netof.c (inet_netof): Likewise.
12435         * inet/rcmd.c (__ivaliduser): Likewise.
12436         (iruserok): Likewise.
12437         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
12438         * locale/programs/locale-spec.c (locale_special): Likewise.
12439         * nis/nis_findserv.c (struct findserv_req): Likewise.
12440         (__nis_findfastest_with_timeout): Likewise.
12441         * nss/test-netdb.c (test_network): Likewise.
12442         * resolv/inet_neta.c (inet_neta): Likewise.
12443         * resolv/ns_date.c (ns_datetosecs): Likewise.
12444         (SECS_PER_DAY): Likewise.
12445         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
12446         Likewise.
12447         * resolv/res_comp.c (__putlong): Likewise.
12448         (__putshort): Likewise.
12449         (_getlong): Likewise.
12450         (_getshort): Likewise.
12451         * resolv/res_debug.c (p_time): Likewise.
12452         (precsize_ntoa): Likewise.
12453         (precsize_aton): Likewise.
12454         (latlon2ul): Likewise.
12455         (loc_aton): Likewise.
12456         (loc_ntoa): Likewise.
12457         * resolv/res_hconf.c (struct netaddr): Likewise.
12458         (_res_hconf_reorder_addrs): Likewise.
12459         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
12460         (clnttcp_control): Likewise.
12461         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12462         (clntudp_control): Likewise.
12463         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
12464         (clntunix_control): Likewise.
12465         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
12466         * sunrpc/rpc/auth.h (union des_block): Likewise.
12467         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
12468         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
12469         (xdrrec_create): Likewise.
12470         (xdrrec_endofrecord): Likewise.
12471         (flush_out): Likewise.
12472         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
12473         (xdrstdio_putlong): Likewise.
12474         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
12475         Likewise.
12477         * misc/sys/cdefs.h (__long_double_t): Remove.
12478         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
12479         instead of __long_double_t,
12480         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
12482 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12484         * benchtests/scripts/compare_strings.py: Avoid display error when
12485         running on a text terminal.
12487         * benchtests/scripts/compare_strings.py (main): Add an
12488         optional -base option.
12489         (process_results): New argument base_func.
12491         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
12492         hardcoding memcpy.
12493         * benchtests/bench-memcpy-large.c (test_name): Likewise.
12494         * benchtests/bench-memcpy-random.c (test_name): Likewise.
12496 2017-08-07  Andreas Schwab  <schwab@suse.de>
12498         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
12499         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
12500         * intl/Makefile ($(objpfx)tst-gettext.out)
12501         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
12502         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
12503         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
12504         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
12505         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
12506         * posix/Makefile ($(objpfx)globtest.out)
12507         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
12508         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
12509         ($(objpfx)tst-printf.out): Likewise.
12510         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
12511         ($(objpfx)tst-setcontext3.out): Likewise.
12513 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
12515         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12516         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
12517         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
12518         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
12519         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
12520         and mptan-fma.
12521         (CFLAGS-doasin-fma.c): New.
12522         (CFLAGS-dosincos-fma.c): Likewise.
12523         (CFLAGS-e_asin-fma.c): Likewise.
12524         (CFLAGS-e_atan2-fma.c): Likewise.
12525         (CFLAGS-e_exp-fma.c): Likewise.
12526         (CFLAGS-e_log-fma.c): Likewise.
12527         (CFLAGS-e_pow-fma.c): Likewise.
12528         (CFLAGS-halfulp-fma.c): Likewise.
12529         (CFLAGS-mpa-fma.c): Likewise.
12530         (CFLAGS-mpatan-fma.c): Likewise.
12531         (CFLAGS-mpatan2-fma.c): Likewise.
12532         (CFLAGS-mpexp-fma.c): Likewise.
12533         (CFLAGS-mplog-fma.c): Likewise.
12534         (CFLAGS-mpsqrt-fma.c): Likewise.
12535         (CFLAGS-mptan-fma.c): Likewise.
12536         (CFLAGS-s_atan-fma.c): Likewise.
12537         (CFLAGS-sincos32-fma.c): Likewise.
12538         (CFLAGS-slowexp-fma.c): Likewise.
12539         (CFLAGS-slowpow-fma.c): Likewise.
12540         (CFLAGS-s_sin-fma.c): Likewise.
12541         (CFLAGS-s_tan-fma.c): Likewise.
12542         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
12543         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
12544         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
12545         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
12546         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
12547         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
12548         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
12549         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
12550         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
12551         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
12552         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
12553         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
12554         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
12555         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
12556         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
12557         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
12558         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
12559         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
12560         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
12561         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
12562         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
12563         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
12564         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
12565         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
12566         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
12567         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12568         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12569         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
12570         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12571         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12572         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12574 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
12576         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
12577         (min_of_type_f): New macro.
12578         (min_of_type_): Likewise.
12579         (min_of_type_l): Likewise.
12580         (min_of_type_f128): Likewise.
12581         (min_of_type): Define using __MATH_TG and taking an expression
12582         argument.
12583         (math_check_force_underflow): Pass expression instead of type to
12584         min_of_type.
12585         (math_check_force_underflow_nonneg): Likewise.
12587 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12589         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
12590         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
12591         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
12593 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12595         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12596         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
12597         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
12598         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
12599         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
12600         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
12601         memcpy_chk-nonshared, mempcpy_chk-nonshared,
12602         memmove_chk-nonshared and memset_chk-nonshared
12603         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
12604         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
12605         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
12606         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
12607         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
12608         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
12609         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
12610         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
12611         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
12612         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
12613         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
12614         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
12615         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
12616         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
12617         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
12618         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
12619         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
12620         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
12621         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
12622         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
12623         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
12624         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
12625         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
12626         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
12627         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
12628         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
12629         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
12630         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
12631         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
12632         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
12633         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
12634         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
12635         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
12636         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
12637         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
12638         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
12639         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
12640         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
12641         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
12642         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
12643         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
12644         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
12645         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
12646         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
12647         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
12648         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
12649         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
12650         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
12651         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
12652         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
12653         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
12654         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
12655         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
12656         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
12657         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
12658         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
12659         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
12660         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
12661         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
12662         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
12663         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
12664         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
12665         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
12666         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
12667         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
12668         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
12669         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
12670         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
12671         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
12672         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
12673         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
12674         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12675         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12676         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12677         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12678         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12679         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12680         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12681         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12682         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12683         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12684         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12685         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12686         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12687         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
12688         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
12689         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12690         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
12691         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12692         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12693         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12694         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12695         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12696         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12697         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
12698         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
12699         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
12700         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
12701         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12702         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
12703         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12704         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12705         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12706         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12707         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12708         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12709         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12710         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12712 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12714         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
12715         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
12716         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
12717         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
12718         svml_d_log2_core-sse2, svml_d_log4_core-sse,
12719         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
12720         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
12721         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
12722         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
12723         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
12724         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
12725         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
12726         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
12727         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
12728         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
12729         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
12730         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
12731         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
12732         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
12733         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
12734         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
12735         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
12736         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
12737         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
12738         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
12739         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
12740         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
12741         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
12742         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
12743         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
12744         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
12745         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
12746         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
12747         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
12748         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
12749         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
12750         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
12751         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
12752         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
12753         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
12754         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
12755         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
12756         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
12757         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
12758         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
12759         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
12760         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
12761         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
12762         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
12763         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
12764         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
12765         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
12766         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
12767         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
12768         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
12769         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
12770         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
12771         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
12772         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
12773         ...
12774         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
12775         Don't include <sysdep.h> nor <init-arch.h>.
12776         (_ZGVbN2v_cos): Removed.
12777         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
12778         ...
12779         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
12780         Don't include <sysdep.h> nor <init-arch.h>.
12781         (_ZGVdN4v_cos): Removed.
12782         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
12783         ...
12784         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
12785         Don't include <sysdep.h> nor <init-arch.h>.
12786         (_ZGVeN8v_cos): Removed.
12787         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
12788         ...
12789         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
12790         Don't include <sysdep.h> nor <init-arch.h>.
12791         (_ZGVbN2v_exp): Removed.
12792         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
12793         ...
12794         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
12795         Don't include <sysdep.h> nor <init-arch.h>.
12796         (_ZGVdN4v_exp): Removed.
12797         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
12798         ...
12799         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
12800         Don't include <sysdep.h> nor <init-arch.h>.
12801         (_ZGVeN8v_exp): Removed.
12802         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
12803         ...
12804         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
12805         Don't include <sysdep.h> nor <init-arch.h>.
12806         (_ZGVbN2v_log): Removed.
12807         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
12808         ...
12809         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
12810         Don't include <sysdep.h> nor <init-arch.h>.
12811         (_ZGVdN4v_log): Removed.
12812         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
12813         ...
12814         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
12815         Don't include <sysdep.h> nor <init-arch.h>.
12816         (_ZGVeN8v_log): Removed.
12817         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
12818         ...
12819         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
12820         Don't include <sysdep.h> nor <init-arch.h>.
12821         (_ZGVbN2vv_pow): Removed.
12822         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
12823         ...
12824         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
12825         Don't include <sysdep.h> nor <init-arch.h>.
12826         (_ZGVdN4vv_pow): Removed.
12827         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
12828         ...
12829         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
12830         Don't include <sysdep.h> nor <init-arch.h>.
12831         (_ZGVeN8vv_pow): Removed.
12832         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
12833         ...
12834         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
12835         Don't include <sysdep.h> nor <init-arch.h>.
12836         (_ZGVbN2v_sin): Removed.
12837         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
12838         ...
12839         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
12840         Don't include <sysdep.h> nor <init-arch.h>.
12841         (_ZGVbN4v_sin): Removed.
12842         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
12843         ...
12844         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
12845         Don't include <sysdep.h> nor <init-arch.h>.
12846         (_ZGVbN8v_sin): Removed.
12847         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
12848         ...
12849         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
12850         Don't include <sysdep.h> nor <init-arch.h>.
12851         (_ZGVbN2vvv_sincos): Removed.
12852         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
12853         ...
12854         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
12855         Don't include <sysdep.h> nor <init-arch.h>.
12856         (_ZGVdN4vvv_sincos): Removed.
12857         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
12858         ...
12859         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
12860         Don't include <sysdep.h> nor <init-arch.h>.
12861         (_ZGVeN8vvv_sincos): Removed.
12862         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
12863         ...
12864         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
12865         Don't include <sysdep.h> nor <init-arch.h>.
12866         (_ZGVeN16v_cosf): Removed.
12867         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
12868         ...
12869         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
12870         Don't include <sysdep.h> nor <init-arch.h>.
12871         (_ZGVbN4v_cosf): Removed.
12872         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
12873         ...
12874         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
12875         Don't include <sysdep.h> nor <init-arch.h>.
12876         (_ZGVdN8v_cosf): Removed.
12877         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
12878         ...
12879         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
12880         Don't include <sysdep.h> nor <init-arch.h>.
12881         (_ZGVeN16v_expf): Removed.
12882         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
12883         ...
12884         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
12885         Don't include <sysdep.h> nor <init-arch.h>.
12886         (_ZGVbN4v_expf): Removed.
12887         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
12888         ...
12889         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
12890         Don't include <sysdep.h> nor <init-arch.h>.
12891         (_ZGVdN8v_expf): Removed.
12892         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
12893         ...
12894         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
12895         Don't include <sysdep.h> nor <init-arch.h>.
12896         (_ZGVeN16v_logf): Removed.
12897         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
12898         ...
12899         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
12900         Don't include <sysdep.h> nor <init-arch.h>.
12901         (_ZGVbN4v_logf): Removed.
12902         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
12903         ...
12904         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
12905         Don't include <sysdep.h> nor <init-arch.h>.
12906         (_ZGVdN8v_logf): Removed.
12907         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
12908         ...
12909         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
12910         Don't include <sysdep.h> nor <init-arch.h>.
12911         (_ZGVeN16vv_powf): Removed.
12912         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
12913         ...
12914         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
12915         Don't include <sysdep.h> nor <init-arch.h>.
12916         (_ZGVbN4vv_powf): Removed.
12917         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
12918         ...
12919         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
12920         Don't include <sysdep.h> nor <init-arch.h>.
12921         (_ZGVdN8vv_powf): Removed.
12922         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
12923         ...
12924         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
12925         Don't include <sysdep.h> nor <init-arch.h>.
12926         (_ZGVeN16vvv_sincosf): Removed.
12927         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
12928         ...
12929         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
12930         Don't include <sysdep.h> nor <init-arch.h>.
12931         (_ZGVbN4vvv_sincosf): Removed.
12932         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
12933         ...
12934         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
12935         Don't include <sysdep.h> nor <init-arch.h>.
12936         (_ZGVdN8vvv_sincosf): Removed.
12937         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
12938         ...
12939         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
12940         Don't include <sysdep.h> nor <init-arch.h>.
12941         (_ZGVeN16v_sinf): Removed.
12942         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
12943         ...
12944         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
12945         Don't include <sysdep.h> nor <init-arch.h>.
12946         (_ZGVbN4v_sinf): Removed.
12947         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
12948         ...
12949         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
12950         Don't include <sysdep.h> nor <init-arch.h>.
12951         (_ZGVdN8v_sinf): Removed.
12953 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12955         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12956         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
12957         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
12958         s_rint-sse4_1 and s_rintf-sse4_1.
12959         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
12960         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12961         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12962         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12963         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12964         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
12965         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
12966         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12967         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12968         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
12969         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
12970         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12971         (__ceil): Removed.
12972         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
12973         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
12974         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12975         (__ceilf): Removed.
12976         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
12977         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
12978         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12979         (__floor): Removed.
12980         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
12981         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
12982         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12983         (__floorf): Removed.
12984         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
12985         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
12986         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12987         (__nearbyint): Removed.
12988         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
12989         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
12990         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12991         (__nearbyintf): Removed.
12992         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
12993         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
12994         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12995         (__rint): Removed.
12996         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
12997         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
12998         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12999         (__rintf): Removed.
13001 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13003         * sysdeps/i386/start.S (_start): Check Check PIC instead of
13004         SHARED.  Avoid dynamic relocation against main in static PIE.
13006 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13008         [BZ #21815]
13009         * elf/Makefile (CFLAGS-tst-prelink.c): New.
13010         (LDFLAGS-tst-prelink): Likewise.
13012 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13014         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
13015         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
13016         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
13017         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
13018         (INTERNAL_SYSCALL_NCS): Likewise.
13019         (LOADARGS_1): Likewise.
13020         (LOADARGS_5): Likewise.
13021         (RESTOREARGS_1): Likewise.
13022         (RESTOREARGS_5): Likewise.
13024 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13026         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
13027         (MEMPCPY_SYMBOL): Likewise.
13028         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13029         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
13030         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
13031         in libc.a.
13032         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13033         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
13034         Likewise.
13035         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
13036         (__hidden_ver1): Don't use in libc.a.
13037         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
13038         (__mempcpy): Don't create a weak alias in libc.a.
13039         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
13040         libc.a.
13041         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
13042         (__hidden_ver1): Don't use in libc.a.
13044 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13046         * config.make.in (have-insert): New.
13047         * configure.ac (libc_cv_insert): New.  Set to yes if linker
13048         supports INSERT in linker script.
13049         (AC_SUBST(libc_cv_insert): New.
13050         * configure: Regenerated.
13051         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
13052         if $(have-insert) == yes.
13054 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13056         * elf/Makefile (tests): Add vismain only if
13057         $(have-protected-data) == yes.
13058         (tests-pie): Likewise.
13060 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13062         [BZ #21871]
13063         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
13064         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
13066 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13068         [BZ #21790]
13069         * sysdeps/i386/i586/memset.S
13070         (__memset_zero_constant_len_parameter): Removed.
13071         * sysdeps/i386/i686/memset.S
13072         (__memset_zero_constant_len_parameter): Likewise.
13073         * sysdeps/i386/i686/multiarch/memset_chk.S
13074         (__memset_zero_constant_len_parameter): Likewise.
13075         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
13076         Likewise.
13078 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
13080         * stdlib/getentropy.c (getentropy): Change return type to int.
13082 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
13084         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13086 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
13088         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
13089         u_intN_t.
13090         * math/s_nexttowardf.c (__nexttowardf): Likewise.
13091         * sysdeps/generic/math_private.h (ieee_double_shape_type):
13092         Likewise.
13093         (ieee_float_shape_type): Likewise.
13094         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
13095         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
13096         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
13097         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
13098         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
13099         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
13100         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
13101         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
13102         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
13103         Likewise.
13104         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13105         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13106         (__ieee754_yn): Likewise.
13107         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
13108         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
13109         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
13110         Likewise.
13111         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
13112         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
13113         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
13114         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
13115         (__erfc): Likewise.
13116         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
13117         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
13118         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
13119         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
13120         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
13121         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
13122         Likewise.
13123         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
13124         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
13125         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13126         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
13127         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
13128         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
13129         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
13130         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
13131         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
13132         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
13133         (__issignaling): Likewise.
13134         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
13135         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
13136         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
13137         Likewise.
13138         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
13139         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
13140         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13141         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
13142         Likewise.
13143         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
13144         Likewise.
13145         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
13146         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
13147         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
13148         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
13149         (__erfcf): Likewise.
13150         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
13151         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
13152         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
13153         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
13154         Likewise.
13155         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
13156         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
13157         Likewise.
13158         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13159         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
13160         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13161         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
13162         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
13163         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
13164         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
13165         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
13166         Likewise.
13167         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
13168         Likewise.
13169         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
13170         Likewise.
13171         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
13172         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
13173         Likewise.
13174         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
13175         Likewise.
13176         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13177         (__ieee754_ynl): Likewise.
13178         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13179         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
13180         Likewise.
13181         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
13182         Likewise.
13183         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
13184         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
13185         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
13186         Likewise.
13187         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
13188         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
13189         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
13190         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
13191         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
13192         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
13193         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
13194         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
13195         Likewise.
13196         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
13197         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
13198         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
13199         Likewise.
13200         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13201         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
13202         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13203         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
13204         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
13205         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
13206         Likewise.
13207         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
13208         Likewise.
13209         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
13210         Likewise.
13211         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
13212         Likewise.
13213         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
13214         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
13215         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13216         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
13217         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
13218         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
13219         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
13220         Likewise.
13221         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13222         Likewise.
13223         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13224         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
13225         Likewise.
13226         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
13227         (__ieee754_remainderl): Likewise.
13228         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13229         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13230         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
13231         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
13232         Likewise.
13233         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
13234         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13235         Likewise.
13236         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
13237         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
13238         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13239         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
13240         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
13241         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
13242         Likewise.
13243         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13244         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13245         (__ieee754_y0l): Likewise.
13246         (pzero): Likewise.
13247         (qzero): Likewise.
13248         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13249         (__ieee754_y1l): Likewise.
13250         (pone): Likewise.
13251         (qone): Likewise.
13252         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13253         (__ieee754_ynl): Likewise.
13254         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
13255         (__ieee754_lgammal_r): Likewise.
13256         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
13257         Likewise.
13258         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
13259         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
13260         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
13261         (__erfcl): Likewise.
13262         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
13263         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
13264         Likewise.
13265         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13266         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
13267         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13268         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
13269         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
13270         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
13271         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
13272         Likewise.
13273         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
13274         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
13275         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
13276         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
13277         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
13278         Likewise.
13279         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
13280         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
13281         Likewise.
13282         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
13283         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
13284         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
13285         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
13286         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
13288 2017-08-03  Florian Weimer  <fweimer@redhat.com>
13290         [BZ #21885]
13291         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
13292         on memory allocation failure.
13294 2017-08-03  Alan Modra  <amodra@gmail.com>
13296         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
13297         tst-tlsopt-powerpc.c with function name change and no test harness.
13298         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
13299         Call tls_get_addr_opt_test.
13300         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
13301         (modules-names): Add mod-tlsopt-powerpc.
13302         (mod-tlsopt-powerpc.so-no-z-defs): Define.
13303         (tst-tlsopt-powerpc): Depend on .so.
13304         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
13305         define.  Expand use in TLS_GD and TLS_LD.
13307 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13309         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
13310         function.
13311         * sysdeps/posix/shm_open.c: Include <pthread.h>.
13313 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
13315         [BZ #21686]
13316         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
13317         comparing size with that of double.
13318         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
13319         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
13320         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
13321         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
13322         (__TGMATH_BINARY_REAL_IMAG): Likewise.
13323         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
13324         unsigned __int128 types.
13326 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
13328         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
13329         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
13330         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
13331         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
13332         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
13334 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13336         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
13338 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13340         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
13341         of SHARED.
13342         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
13343         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13344         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13345         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13346         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13347         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13348         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13350 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
13352         [BZ #21685]
13353         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
13354         bit-field expressions passed to sizeof or typeof.
13355         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13356         (__TGMATH_F128): Likewise.
13357         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13358         (__TGMATH_CF128): Likewise.
13359         (__TGMATH_UNARY_REAL_ONLY): Likewise.
13360         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
13361         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
13362         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
13363         (__TGMATH_BINARY_REAL_ONLY): Likewise.
13364         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
13365         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
13366         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
13367         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
13368         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
13369         (__TGMATH_UNARY_REAL_IMAG): Likewise.
13370         (__TGMATH_UNARY_IMAG): Likewise.
13371         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
13372         (__TGMATH_BINARY_REAL_IMAG): Likewise.
13373         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
13374         type.
13375         (define_vars_for_type): Handle bit_field type specially.
13376         (Tests.__init__): Declare structure with bit-field element.
13378 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13380         [BZ #21791]
13381         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
13382         (MEMCPY_CHK): Define only if SHARED is defined.
13383         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
13384         Likewise.
13385         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
13386         Likewise.
13388 See ChangeLog.18 for earlier changes.