resolv: More precise checks in res_hnok, res_dnok [BZ #22409] [BZ #22412]
[glibc.git] / ChangeLog
blobc53ff98ce83c81073518bf92b5f07cb92eb9c294
1 2017-11-11  Florian Weimer  <fweimer@redhat.com>
3         [BZ #22409]
4         [BZ #22412]
5         * resolv/res_comp.c (printable_string, binary_hnok)
6         (binary_leading_dash): New functions.
7         (res_hnok): Reimplement using these functions and ns_name_pton.
8         (res_ownok): Likewise.
9         (res_mailok): Reimplement using printable_string, ns_name_pton and
10         binary_hnok.
11         (res_dnok): Reimplement using printable_string and ns_name_pton.
12         * resolv/tst-res_hnok.c (tests): Add additional tests.
13         (LETTERDIGITS, PRINTABLE): Define.
14         (do_test): Adjust one_char results.
16 2017-11-11  Florian Weimer  <fweimer@redhat.com>
18         [BZ #22413]
19         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
20         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22 2017-11-11  Florian Weimer  <fweimer@redhat.com>
24         * resolv/tst-ns_name_pton.c: New file.
25         * resolv/Makefile (tests): Add tst-ns_name_pton.
26         (tst-ns_name_pton): Link against libresolv.
28 2017-11-11  Florian Weimer  <fweimer@redhat.com>
30         * resolv/tst-res_hnok.c: New file.
31         * resolv/Makefile (tests): Add tst-res_hnok.
32         (tst-res_hnok): Link against libresolv.
34 2017-11-11  Florian Weimer  <fweimer@redhat.com>
36         * resolv/tst-resolv-network.c: Use test framework instead explicit
37         main function.
39 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
41         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
42         <jmp_buf-macros.h>.
43         [!_ISOMAC] (STR_HELPER): New.
44         [!_ISOMAC] (STR): Likewise.
45         [!_ISOMAC] (TEST_SIZE): Likewise.
46         [!_ISOMAC] (TEST_ALIGN): Likewise.
47         [!_ISOMAC] (TEST_OFFSET): Likewise.
48         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
49         field offsets of jmp_buf as well as sigjmp_buf.
50         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
51         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
52         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
53         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
54         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
55         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
56         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
57         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
58         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
59         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
60         Likewise.
61         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
62         Likewise.
63         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
64         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
65         Likewise.
66         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
67         Likewise.
68         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
69         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
70         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
71         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
72         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
73         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
74         Likewise.
75         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
76         Likewise.
77         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
78         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
79         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
81 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
83         * include/float.h
84         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
85         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
86         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
87         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
88         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
89         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
90         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
91         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
92         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
93         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
94         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
95         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
96         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
97         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
98         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
99         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
100         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
101         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
102         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
103         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
104         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
105         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
106         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
107         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
108         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
109         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
110         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
111         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
112         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
113         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
114         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
115         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
116         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
117         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
118         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
119         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
120         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
121         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
122         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
123         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
124         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
125         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
126         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
127         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
128         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
129         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
130         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
131         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
132         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
133         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
134         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
135         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
136         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
137         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
138         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
139         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
140         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
141         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
142         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
143         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
144         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
145         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
146         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
147         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
148         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
149         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
150         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
151         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
152         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
153         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
154         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
155         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
156         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
157         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
158         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
159         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
160         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
161         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
162         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
163         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
164         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
165         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
166         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
167         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
168         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
169         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
170         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
171         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
173         * stdlib/tst-strtod.h (F16): New macro.
174         (F32): Likewise.
175         (F64): Likewise.
176         (F32X): Likewise.
177         (F64X): Likewise.
178         (F128X): Likewise.
179         (IF_FLOAT16): Likewise.
180         (IF_FLOAT32): Likewise.
181         (IF_FLOAT64): Likewise.
182         (IF_FLOAT32X): Likewise.
183         (IF_FLOAT64X): Likewise.
184         (IF_FLOAT128X): Likewise.
185         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
186         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
187         (STRTOD_TEST_FOREACH): Likewise.
188         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
189         (CHOOSE_f64): Likewise.
190         (CHOOSE_f32x): Likewise.
191         (CHOOSE_f64x): Likewise.
193 2017-11-07  Andreas Schwab  <schwab@suse.de>
195         * nptl/Makefile (tests-internal): Remove tst-typesizes.
197 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
199         [BZ #22403]
200         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
201         to be escaped.
202         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
203         to be escaped.
205 2017-11-07  Claude Paroz <claude@2xlibre.net>
207         [BZ #22403]
208         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
209         to be escaped.
210         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
211         to be escaped.
212         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
213         to be escaped.
215 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
217         [BZ #22298]
218         * nptl/allocatestack.c (allocate_stack): Check if
219         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
220         __PTHREAD_MUTEX_HAVE_PREV is defined.
221         * nptl/descr.h (pthread): Likewise.
222         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
223         Likewise.
224         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
225         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
226         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
227         * sysdeps/nptl/bits/thread-shared-types.h
228         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
229         defines.
230         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
231         of __WORDSIZE for internal layout.
232         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
233         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
234         instead of __WORDSIZE whether to use an union for __spins and __list
235         fields.
236         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
237         case.
238         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
239         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
240         defines.
241         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
242         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
243         Likewise.
244         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
245         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
246         Likewise.
247         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
248         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
249         Likewise.
250         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
251         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
252         Likewise.
253         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
254         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
255         Likewise.
256         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
257         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
258         Likewise.
259         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
260         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
261         Likewise.
262         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
263         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
264         Likewise.
265         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
266         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
267         Likewise.
268         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
269         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
270         Likewise.
271         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
272         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
273         Likewise.
274         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
275         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
276         Likewise.
277         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
278         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
279         Likewise.
280         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
281         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
282         Likewise.
284         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
285         New macros.
286         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
287         checks for expected input type size.
288         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
289         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
290         Likewise.
291         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
292         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
293         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
294         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
295         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
296         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
297         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
298         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
299         superflous runtime assert check.
300         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
301         Likewise.
302         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
303         Likewise.
304         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
305         Likewise.
306         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
307         Likewise.
308         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
309         Likewise.
310         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
311         Likewise.
312         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
313         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
314         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
315         Likewise.
316         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
317         Likewise.
318         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
319         Likewise.
320         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
321         Likewise.
322         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
323         Likewise.
324         * nptl/pthread_attr_setinheritsched.c
325         (__pthread_attr_setinheritsched): Likewise.
326         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
327         Likewise.
328         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
329         Likewise.
330         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
331         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
332         __old_pthread_attr_setstack): Likewise.
333         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
334         Likewise.
335         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
336         Likewise.
337         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
338         Likewise.
339         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
340         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
341         Likewise.
342         * nptl/tst-typesizes.c: Remove file.
344         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
345         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
346         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
347         checks for internal pthread_mutex_t offsets.
348         * sysdeps/aarch64/nptl/pthread-offsets.h
349         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
350         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
351         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
352         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
353         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
354         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
355         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
356         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
357         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
358         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
359         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
360         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
361         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
362         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
363         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
364         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
365         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
366         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
368 2017-11-07  Florian Weimer  <fweimer@redhat.com>
370         * bits/mman-linux.h: Move ...
371         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
372         comment.
373         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
374         outdated comment.
376 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
378         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
379         Redefine STRNLEN as __strnlen_power8.
381 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
383         * signal/sighold.c (sighold): Optimize implementation.
385         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
386         __NR_rt_sigqueueinfo.
388         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
389         __sigtimedwait.
390         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
391         assume __NR_rt_sigtimedwait.
392         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
393         and add LIBC_CANCEL_HANDLED for cancellation marking.
394         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
396         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
397         (sysdeps_routines): Add memchr_noneon.
398         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
399         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
400         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
401         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
402         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
403         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
404         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
406         * sysdeps/arm/arm-ifunc.h: New file.
407         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
408         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
409         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
410         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
411         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
412         (__memcpy_neon): Avoid create hidden alias.
413         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
414         (__memcpy_vfp): Likewise.
415         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
416         (sysdep_routines): Add memcpy_arm.
417         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
419 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
421         [BZ #22362]
422         * Makerules (make-link-multidir): New.
423         * config.make.in (multidir): New.
424         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
425         * configure: Regenerated.
426         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
427         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
428         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
429         New target.
431 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
433         [BZ #22402]
434         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
435         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
437 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
439         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
440         to be escaped.
442 2017-11-04  Florian Weimer  <fweimer@redhat.com>
444         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
446 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
448         * math/math.h [__HAVE_DISTINCT_FLOAT16
449         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
450         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
451         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
452         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
453         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
454         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
455         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
456         (__MATH_TG_F32): New macro.
457         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
458         (__MATH_TG_F64X): Likewise.
459         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
460         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
462 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
464         * po/de.po: Update translations.
465         * po/ru.po: Likewise.
467 2017-11-03  Florian Weimer  <fweimer@redhat.com>
469         * manual/filesys.texi (Hard Links): Document linkat.
471 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
473         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
474         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
475         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
476         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
477         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
478         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
479         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
480         the same as _Float128.
481         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
482         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
483         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
485         * stdlib/stdlib.h
486         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
487         Declare.
488         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
489         Likewise.
490         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
491         Likewise.
492         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
493         (strtof32x): Likewise.
494         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
495         (strtof64x): Likewise.
496         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
497         (strtof128x): Likewise.
498         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
499         (strfromf16): Likewise.
500         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
501         (strfromf32): Likewise.
502         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
503         (strfromf64): Likewise.
504         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
505         (strfromf32x): Likewise.
506         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
507         (strfromf64x): Likewise.
508         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
509         (strfromf128x): Likewise.
510         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
511         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
512         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
513         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
514         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
515         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
517 2017-11-03  Richard Henderson  <rth@twiddle.net>
519         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
521 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
523         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
525 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
527         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
528         DT_TLSDESC_GOT initialization.
529         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
530         (_dl_tlsdesc_resolve_hold): Likewise.
531         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
532         (_dl_tlsdesc_resolve_hold): Likewise.
533         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
534         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
536 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
538         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
540 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
542         [BZ #18572]
543         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
544         non-lazily for R_ARM_TLS_DESC.
546 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
548         [BZ #17078]
549         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
550         R_ARM_TLS_DESC case.
551         (elf_machine_lazy_rel): Remove the prelink check.
553 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
555         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
556         DT_TLSDESC_GOT initialization.
557         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
558         (_dl_tlsdesc_resolve_rela): Likewise.
559         (_dl_tlsdesc_resolve_hold): Likewise.
560         (_dl_tlsdesc_undefweak): Remove ldar.
561         (_dl_tlsdesc_dynamic): Likewise.
562         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
563         (_dl_tlsdesc_resolve_rela): Likewise.
564         (_dl_tlsdesc_resolve_hold): Likewise.
565         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
566         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
567         (_dl_tlsdesc_resolve_rela): Likewise.
568         (_dl_tlsdesc_resolve_hold): Likewise.
570 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
572         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
573         binding and initialization non-lazily for R_AARCH64_TLSDESC.
575 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
577         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
578         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
580 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
582         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
583         Declare.
584         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
585         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
586         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
587         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
588         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
589         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
590         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
591         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
592         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
593         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
594         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
596 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
598         [BZ #22382]
599         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
600         * localedata/locales/tpi_PG: Add standard header.
602 2017-11-02  Florian Weimer  <fweimer@redhat.com>
604         test-errno-linux: quotactl can fail with EPERM in containers.
605         * sysdeps/unix/sysv/linux/test-errno-linux.c
606         (LIST, LIST_FORWARD): New macros.
607         (check_error_in_list): New function.
608         (test_wrp_rv): Accept list of permitted error codes.
609         (test_wrp_rv2): Remove.
610         (test_wrp): Call test_wrp_rv with list of error codes.
611         (test_wrp2): Accept list of error codes.
612         (do_test): Adjust.  Allow EPERM for quotactl.
614 2017-11-02  Florian Weimer  <fweimer@redhat.com>
616         * stdio-common/bug16.c (do_test): Use array_length.
617         * stdio-common/errlist.c (_sys_nerr): Likewise.
618         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
619         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
620         * stdio-common/psiginfo.c (psiginfo): Use array_length.
621         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
622         (do_test): Use array_length.
623         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
624         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
625         * stdio-common/tst-printf-round.c (do_test): Likewise.
626         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
627         (CHECK): Use array_length.
628         * stdio-common/tstdiomisc.c (t3, F): Likewise.
629         * stdio-common/tstscanf.c (main): Likewise.
630         * stdio-common/vfprintf.c (process_string_arg): Likewise.
632 2017-11-02  Florian Weimer  <fweimer@redhat.com>
634         Add array_length and array_end macros.
635         * include/array_length.h: New file.
637 2017-11-02  Florian Weimer  <fweimer@redhat.com>
639         [BZ #22332]
640         * posix/tst-glob-tilde.c (do_noescape): New variable.
641         (one_test): Process it.
642         (do_test): Set do_noescape.  Add unescaping test case.
644 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
646         * math/complex.h
647         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
648         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
649         with appropriate macros defined and undefined.
650         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
651         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
652         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
653         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
654         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
655         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
656         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
657         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
658         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
659         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
661         * math/complex.h
662         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
663         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
664         that for long double.  Do not condition define and undefine of
665         _Mdouble_complex_ on [__CFLOAT128].
667 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
669         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
670         of <sysdeps/generic/sysdep.h>.
671         (ALIGNARG): Removed.
672         (ASM_SIZE_DIRECTIVE): Likewise.
673         (ENTRY): Likewise.
674         (END): Likewise.
675         (ENTRY_CHK): Likewise.
676         (END_CHK): Likewise.
677         (syscall_error): Likewise.
678         (mcount): Likewise.
679         (PSEUDO_END): Likewise.
680         (L): Likewise.
681         (atom_text_section): Likewise.
682         * sysdeps/x86/sysdep.h: New file.
683         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
684         of <sysdeps/generic/sysdep.h>.
685         (ALIGNARG): Removed.
686         (ASM_SIZE_DIRECTIVE): Likewise.
687         (ENTRY): Likewise.
688         (END): Likewise.
689         (ENTRY_CHK): Likewise.
690         (END_CHK): Likewise.
691         (syscall_error): Likewise.
692         (mcount): Likewise.
693         (PSEUDO_END): Likewise.
694         (L): Likewise.
695         (atom_text_section): Likewise.
697 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
699         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
700         category of LC_CTYPE set to "i18n:2012".
701         * localedata/locales/i18n_ctype: Regenerate.
703 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
705         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
706         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
707         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
708         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
710         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
711         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
712         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
713         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
715 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
717         * math/complex.h
718         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
719         New macro.
720         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
721         Likewise.
722         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
723         Likewise.
724         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
725         (CMPLXF32X): Likewise.
726         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
727         (CMPLXF64X): Likewise.
728         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
729         (CMPLXF128X): Likewise.
731         * math/math.h
732         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
733         (__MATH_EVAL_FMT2): Define to add 0.0f.
735 2017-10-31  Alan Modra  <amodra@gmail.com>
737         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
738         include sysdep.h.
739         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
740         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
741         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
742         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
743         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
744         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
745         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
746         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
747         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
748         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
749         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
750         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
751         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
753         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
754         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
755         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
756         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
757         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
758         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
759         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
760         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
761         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
762         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
763         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
764         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
765         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
766         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
767         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
768         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
769         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
770         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
771         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
772         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
773         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
774         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
775         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
776         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
777         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
778         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
779         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
780         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
781         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
782         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
783         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
784         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
785         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
786         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
787         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
788         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
789         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
790         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
791         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
792         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
793         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
794         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
795         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
796         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
797         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
798         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
799         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
800         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
801         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
802         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
803         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
804         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
805         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
806         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
807         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
809         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
810         include sysdep.h and math_ldbl_opt.h.
812         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
813         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
814         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
815         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
816         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
817         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
818         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
819         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
820         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
821         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
822         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
823         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
824         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
825         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
826         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
827         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
828         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
829         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
831         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
834         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
836         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
837         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
839 2017-10-31  Alan Modra  <amodra@gmail.com>
841         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
842         string/strncase_l.c, not string/strncase.c.
843         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
844         (libc_hidden_def): Redefine.
846 2017-10-31  Alan Modra  <amodra@gmail.com>
848         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
849         (__STRCMP, STRCMP, __strcasecmp_l): Define.
850         (__strcasecmp): Don't define.
852 2017-10-31  Alan Modra  <amodra@gmail.com>
854         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
855         IS_IN (libc).
856         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
857         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
858         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
860 2017-10-31  Alan Modra  <amodra@gmail.com>
862         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
863         USE_AS_STPNCPY.
865 2017-10-31  Alan Modra  <amodra@gmail.com>
867         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
868         Redefine only when SHARED.
870 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
872         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
873         Include <bits/math-finite.h> with appropriate macros defined and
874         undefined.
875         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
876         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
877         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
878         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
879         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
881         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
882         [!_Mlong_double_] (_Mlong_double_): Likewise.
883         [!_Mfloat16_] (_Mfloat16_): Likewise.
884         [!_Mfloat32_] (_Mfloat32_): Likewise.
885         [!_Mfloat64_] (_Mfloat64_): Likewise.
886         [!_Mfloat128_] (_Mfloat128_): Likewise.
887         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
888         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
889         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
890         (_Mdouble_): Define without indirection through those macros.
891         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
892         [!_Mfloat128_] (_Mfloat128_): Likewise.
893         [_Mlong_double_] (_Mlong_double_): Likewise.
894         (_Mdouble_): Define without indirection through those macros.
895         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
896         not add -D_Mlong_double_=double.
897         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
898         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
900 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
902         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
904 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
906         * sysdeps/x86/libc-start.c: Reformat.
908 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
910         [BZ #22353]
911         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
912         (1): Renamed to ...
913         (L(Src0)): This.
914         (L(Src1)): New.
915         (L(Src2)): Likewise.
916         (L(1)): Renamed to ...
917         (L(Src3)): This.
919 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
921         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
922         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
923         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
924         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
925         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
926         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
927         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
928         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
929         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
930         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
931         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
932         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
933         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
934         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
935         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
936         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
937         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
938         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
939         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
940         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
941         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
942         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
943         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
944         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
945         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
946         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
947         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
948         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
949         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
950         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
951         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
952         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
953         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
954         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
955         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
956         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
957         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
958         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
959         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
960         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
961         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
962         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
963         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
964         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
965         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
966         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
967         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
968         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
969         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
970         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
971         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
972         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
973         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
974         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
975         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
976         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
977         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
978         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
979         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
980         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
981         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
982         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
983         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
984         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
985         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
986         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
988 2017-10-30  Florian Weimer  <fweimer@redhat.com>
990         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
991         always defined.
992         * io/tst-mkdirat.c (do_test): Likewise.
993         * io/tst-mkfifoat.c (do_test): Likewise.
994         * io/tst-mknodat.c (do_test): Likewise.
995         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
996         * locale/programs/locale.c (select_dirs): Likewise.
997         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
998         * posix/bug-glob2.c (my_readdir): Likewise.
999         * posix/tst-dir.c (main): Likewise.
1000         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
1001         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
1003 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1005         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
1006         just __USE_GNU.
1008 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1010         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
1011         Convert to support/test-driver.c.
1012         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
1013         New macro parameters.
1014         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
1015         * posix/tst-gnuglob.c: New file.
1016         * posix/tst-gnuglob64.c: Likewise.
1017         * posix/Makefile (tests): Add tst-gnuglob64.
1019 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
1021         [BZ #19485]
1022         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
1023         and use a better translation for March in “mon”.
1024         * localedata/locales/csb_PL: Use more ASCII to improve the
1025         readability of the source.
1027 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
1029         [BZ #13953]
1030         * localedata/locales/km_KH: Use ASCII as much
1031         as possible for better readability of the source and
1032         remove useless comments.
1033         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
1034         was commented out and apparently wrong anyway because it was
1035         using Lao characters. If Buddhist era should be used
1036         for km_KH, a native speaker should write the correct formaat
1037         for Khmer.
1038         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
1039         (According to CLDR, the first weekday for Cambodia is Sunday).
1040         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
1041         (These were using Lao characters which must be wrong. If we get
1042         the correct data from a native speaker, we could add it back, until
1043         then it is better not to have name_mr and name_mrs at all than
1044         having it wrong).
1046 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
1048         * locale/loadlocale.c: Correct size of
1049         _nl_value_type_LC_<category> arrays.
1051 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
1053         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1054         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
1055         with appropriate macros defined and undefined.
1056         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1057         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1058         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1059         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1060         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1062 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1064         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
1065         "-O2 -march=i586".
1067 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1069         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
1070         with lowercase letters to make it agree with CLDR.
1072 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1074         [BZ #15260]
1075         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
1076         first letters of yesstr and nostr in yesexpr and noexpr,
1077         not for the full words.
1078         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1079         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
1080         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
1081         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
1082         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
1083         first letters of yesstr and nostr in yesexpr and noexpr,
1084         until now only English was matched in yesexpr and noexpr.
1085         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
1086         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
1087         fil but not for tl. As tl and fil are very similar, using fil
1088         is probably better than using English.
1090 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
1092         [BZ #21706]
1093         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
1094         in yesstr and nostr.
1096 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
1098         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1099         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
1100         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
1101         Likewise.
1102         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
1103         Likewise.
1104         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
1105         Likewise.
1106         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
1107         Likewise.
1108         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1109         (SNANF128X): Likewise.
1111         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1112         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
1113         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1114         (HUGE_VAL_F32): Likewise.
1115         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1116         (HUGE_VAL_F64): Likewise.
1117         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1118         (HUGE_VAL_F32X): Likewise.
1119         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1120         (HUGE_VAL_F64X): Likewise.
1121         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1122         (HUGE_VAL_F128X): Likewise.
1124 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1126         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
1127         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
1128         for the br_FR locale.
1130 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1132         [BZ #21706]
1133         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
1135 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
1137         * locale/programs/record-status.h: Define globals, and function
1138         prototypes. Move function bodies...
1139         * locale/programs/record-status.c: ... to here. New file.
1140         * iconv/Makefile (iconv_prog-modules): Add record-status.
1141         * locale/Makefile (lib-modules): Likewise.
1142         * iconv/iconv_prog.c: Remove verbose.
1143         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
1144         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
1145         record a warning about ASCII compatibility.
1146         * locale/programs/ld-monetary.c (monetary_finish): If
1147         warn_int_curr_symbol is true then record a warning about the symbol
1148         not being in our ISO 4217 list.
1149         * locale/programs/locale.c: Include record-status.h. Remove verbose.
1150         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
1151         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
1152         (OPT_NO_WARN): Define.
1153         (OPT_WARN): Define.
1154         (options): Add entry for --no-warnings, and --warnings.
1155         (set_warnings): New function to enable/disable warnings.
1156         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
1157         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
1158         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
1159         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
1160         Pass flags to generate_locale.
1161         (generate_locale): Accept new flag argument and pass it to localedef
1162         invocation.
1163         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
1164         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
1166         * localedata/Makefile (test-input-data): Use full file name.
1167         * localedata/da_DK.in: Rename to...
1168         * localedata/da_DK.ISO-8859-1.in: ...this.
1169         * localedata/de_DE.in: Rename to...
1170         * localedata/de_DE.ISO-8859-1.in: ...this.
1171         * localedata/en_US.in: Rename to...
1172         * localedata/en_US.ISO-8859-1.in: ...this.
1173         * localedata/fr_FR.in: Rename to...
1174         * localedata/fr_FR.UTF-8.in: ... this.
1175         * localedata/hr_HR.in: Rename to...
1176         * localedata/hr_HR.ISO-8859-2.in: ...this.
1177         * localedata/hu_HU.in: Rename to...
1178         * localedata/hu_HU.UTF-8.in: ...this.
1179         * localedata/si_LK.in: Rename to...
1180         * localedata/si_LK.UTF-8.in: ...this.
1181         * localedata/sv_SE.in: Rename to...
1182         * localedata/sv_SE.ISO-8859-1.in: ...this.
1183         * localedata/tr_TR.in: Rename to...
1184         * localedata/tr_TR.UTF-8.in: ...this.
1185         * localedata/uk_UA.in: Rename to...
1186         * localedata/uk_UA.UTF-8.in: ...this.
1187         * localedata/sort-test.sh: Test file is locale name with the
1188         suffix.
1190         * localedata/unicode-gen/Makefile (check_i18n): Rename to
1191         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
1192         file.
1193         * localedata/locales/i18n_ctype: Regenerate.
1194         * localedata/locales/tr_TR: Likewise.
1195         * localedata/locales/translit_circle: Likewise.
1196         * localedata/locales/translit_cjk_compat: Likewise.
1197         * localedata/locales/translit_combining: Likewise.
1198         * localedata/locales/translit_compat: Likewise.
1199         * localedata/locales/translit_font: Likewise.
1200         * localedata/locales/translit_fraction: Likewise.
1202 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1204         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
1205         lxvd2x/stxvd2x with lvx/stvx.
1206         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1208 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1210         * include/alloc_buffer.h: Replace "if if " with "if " in
1211         comments.
1212         * sysdeps/mips/memcpy.S: Likkewise.
1213         * sysdeps/mips/memset.S: Likewise.
1214         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
1215         Likewise.
1216         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
1217         Likewise.
1218         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
1219         Likewise.
1221 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1223         [BZ #15261]
1224         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
1225         yesexpr and noexpr.
1226         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1227         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1228         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1229         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1230         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1231         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1232         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1234 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1236         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
1237         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1238         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1239         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1240         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1241         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
1242         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1243         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1244         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1245         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1246         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1247         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1249 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1251         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
1252         as possible for better readability of the source.
1253         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
1254         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
1255         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
1256         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
1257         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
1258         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
1259         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
1260         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
1261         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1262         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
1263         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
1264         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
1265         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
1266         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
1267         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
1268         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
1269         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
1270         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
1271         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
1272         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
1273         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
1274         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
1275         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
1276         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
1277         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
1278         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
1279         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
1280         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
1281         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
1282         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
1283         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
1284         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1285         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
1286         * localedata/locales/en_US (LC_MESSAGES): Likewise.
1287         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
1288         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
1289         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
1290         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
1291         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
1292         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
1293         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
1294         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
1295         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
1296         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
1297         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
1298         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
1299         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
1300         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
1301         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
1302         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
1303         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
1304         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
1305         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
1306         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1307         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1308         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
1309         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
1310         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1311         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
1312         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
1313         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
1314         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
1315         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
1316         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
1317         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
1318         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
1319         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
1320         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
1321         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
1322         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
1323         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
1324         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
1325         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
1326         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
1327         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1328         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
1329         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
1330         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
1331         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
1332         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
1333         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
1334         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
1335         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
1336         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1337         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
1338         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
1339         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
1340         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1341         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
1342         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
1343         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
1344         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
1345         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1346         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
1347         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
1348         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1349         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
1350         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1351         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
1352         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
1353         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
1354         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
1355         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
1356         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
1357         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
1358         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
1359         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
1360         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
1361         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
1362         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
1363         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
1364         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
1365         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1366         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
1367         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
1368         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
1369         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
1370         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
1371         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
1372         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
1373         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
1374         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
1375         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
1376         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
1377         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
1378         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
1379         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
1380         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
1381         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
1382         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
1383         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
1384         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
1385         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
1386         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
1387         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
1388         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
1389         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
1390         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
1391         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
1392         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
1393         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
1394         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
1395         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
1396         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
1397         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
1398         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1399         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
1400         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
1401         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
1402         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
1403         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
1404         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
1405         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
1406         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
1407         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1408         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
1409         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
1410         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
1411         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
1412         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
1413         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
1414         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
1415         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
1416         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
1417         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
1418         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1419         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
1420         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
1421         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
1422         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
1423         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1424         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1425         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1426         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
1428 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1430         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
1431         (Use first letters of yesstr and nostr correctly instead of using
1432         full words).
1434 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1436         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
1437         (Use first letters of yesstr and nostr correctly).
1439 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1441         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
1442         also check for the first characters of yesstr and nostr.
1443         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
1444         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
1446 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1448         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
1449         also check for Chinese characters.
1451 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1453         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
1454         match also for the contents of yesstr and nostr. As the first letter
1455         of yesstr and nostr is equal, checking only for the first letter
1456         is not enough.
1458 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1460         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
1461         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
1463 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1465         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
1466         of main contributor.
1468 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1470         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
1471         instead of using English.
1473 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1475         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
1476         by including the first letters of nostr and yesexpr in the regexp.
1477         Also make it more readable by using ASCII where possible.
1479 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1481         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
1482         the first letter of nostr in the regexp. It agrees with CLDR now.
1483         Also make it more readable by using ASCII where possible.
1485 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1487         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
1488         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
1489         these strings contain a U+17D6 (which somewhat looks like a colon)
1490         instead of a real colon to separate the full words for “yes”
1491         and “no” from the single letter responses.
1493 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1495         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
1496         it agree with CLDR (include the first letter of yesstr).
1497         Also make it more readable by using ASCII where possible.
1499 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1501         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
1502         and improve yesexpr and noexpr. The yesstr and nostr apparently
1503         came from CLDR. And CLDR has a bug there: these strings contain
1504         a U+0903 (which looks like a colon) instead of a real colon
1505         to separate the full words for “yes” and “no” from the single
1506         letter responses.
1508 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1510         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
1511         letters of the full yesstr and nostr in yesexpr and noexpr.
1513 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1515         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
1516         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
1517         * localedata/locales/an_ES: Make source more readable by using ASCII
1518         where possible.
1520 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1522         [BZ #20952]
1523         * localedata/locales/yuw_PG: New file.
1524         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
1525         * locale/iso-639.def: Add Yau (Uruwa).
1527 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
1529         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
1531 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
1533         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
1534         (__libc_realloc): Likewise.
1535         (_mid_memalign): Likewise.
1536         (__libc_calloc): Likewise.
1538 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
1540         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
1541         by adding the generic +1 and -0 as in all other locales.
1542         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
1543         day names and make it more readable by using ASCII where possible.
1545 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
1547         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
1548         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
1550 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1552         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
1553         WNOHANG in waitpid call.
1555 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1557         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
1558         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
1560         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
1561         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
1562         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
1563         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
1564         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
1565         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
1566         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
1567         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
1568         variables.
1570 2017-10-23  Michael Collison  <michael.collison@arm.com>
1572         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
1573         with __builtin_sqrt.
1574         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
1575         with __builtin_sqrtf.
1576         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
1577         with __builtin_ceil.
1578         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
1579         with __builtin_ceilf.
1580         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
1581         with __builtin_floor.
1582         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
1583         with __builtin_floorf.
1584         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
1585         with __builtin_fma.
1586         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
1587         with __builtin_fmaf.
1588         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
1589         with __builtin_fmax.
1590         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
1591         with __builtin_fmaxf.
1592         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
1593         with __builtin_fmin.
1594         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
1595         with __builtin_fminf.
1596         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
1597         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
1598         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
1599         with builtin_rint and conversion to int.
1600         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
1601         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
1602         with builtin_llround.
1603         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
1604         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
1605         with builtin_rint and conversion to long int.
1606         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
1607         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
1608         with builtin_lround.
1609         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
1610         with builtin_lroundf.
1611         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
1612         statements with __builtin_nearbyint.
1613         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
1614         statements with __builtin_nearbyintf.
1615         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
1616         with __builtin_rint.
1617         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
1618         with __builtin_rintf.
1619         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
1620         with __builtin_round.
1621         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
1622         with __builtin_roundf.
1623         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
1624         with __builtin_trunc.
1625         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
1626         with __builtin_truncf.
1627         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
1628         and s_l[l]round[f].c too.
1630 2017-10-23  Alan Modra  <amodra@gmail.com>
1632         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
1633         Adjust stack after restoring regs.  Add missing LR cfi_restore.
1635 2017-10-23  Alan Modra  <amodra@gmail.com>
1637         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
1638         Move LR save and frame setup/teardown and LR restore to
1639         immediately around memset call.  Provide cfi.
1641 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1643         * sysdeps/i386/fpu/e_powf.S: Removed.
1644         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
1645         * sysdeps/i386/fpu/w_powf.c: Likewise.
1646         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
1647         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1648         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1649         Add e_powf-sse2.
1650         (CFLAGS-e_powf-sse2.c): New.
1651         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
1652         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
1654 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1656         * sysdeps/i386/fpu/e_log2f.S: Removed.
1657         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
1658         * sysdeps/i386/fpu/w_log2f.c: Likewise.
1659         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
1660         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1661         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1662         Add e_log2f-sse2.
1663         (CFLAGS-e_log2f-sse2.c): New.
1664         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
1665         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
1667 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1669         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1670         Add e_powf-fma.
1671         (CFLAGS-e_powf-fma.c): New.
1672         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
1673         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
1675 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1677         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1678         Add e_log2f-fma.
1679         (CFLAGS-e_log2f-fma.c): New.
1680         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
1681         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
1683 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1685         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1686         Add e_logf-fma.
1687         (CFLAGS-e_logf-fma.c): New.
1688         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
1689         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
1691 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1693         * sysdeps/i386/fpu/e_logf.S: Removed.
1694         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
1695         * sysdeps/i386/fpu/w_logf.c: Likewise.
1696         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
1697         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
1698         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1699         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1700         Add e_logf-sse2.
1701         (CFLAGS-e_logf-sse2.c): New.
1702         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
1703         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
1705 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1707         * sysdeps/i386/fpu/e_exp2f.S: Removed.
1708         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
1709         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
1710         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1711         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1712         Add e_exp2f-sse2.
1713         (CFLAGS-e_exp2f-sse2.c): New.
1714         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
1715         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
1717 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1719         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1720         Add e_exp2f-fma.
1721         (CFLAGS-e_exp2f-fma.c): New.
1722         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
1723         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
1725 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1727         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
1728         * sysdeps/i386/fpu/e_expf.S: Likewise.
1729         * sysdeps/i386/fpu/math_errf.c: Likewise.
1730         * sysdeps/i386/fpu/w_expf.c: Likewise.
1731         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
1732         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1733         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
1734         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
1735         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1736         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1737         Remove e_expf-ia32.
1738         (CFLAGS-e_expf-sse2.c): New.
1739         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
1740         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
1742 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1744         * sysdeps/x86_64/fpu/e_expf.S: Removed.
1745         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
1746         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
1747         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
1748         e_expf.c.
1749         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
1750         New.
1751         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
1752         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
1753         Renamed to ...
1754         (__redirect_expf): This.
1755         (SYMBOL_NAME): Changed to expf.
1756         (__ieee754_expf): Renamed to ...
1757         (__expf): This.
1758         (__GI___expf): This.
1759         (__ieee754_expf): Add strong_alias.
1760         (__expf_finite): Likewise.
1761         (__expf): New.
1762         Include <sysdeps/ieee754/flt-32/e_expf.c>.
1764 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
1766         [BZ #22332]
1767         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
1768         unescaping.
1770 2017-10-21  Florian Weimer  <fweimer@redhat.com>
1772         * posix/Makefile (tests): Add tst-glob-tilde.
1773         (tests-special): Add tst-glob-tilde-mem.out
1774         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
1775         (tst-glob-tilde-mem.out): Add mtrace check.
1776         * posix/tst-glob-tilde.c: New file.
1778 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
1780         * bits/floatn-common.h: New file.
1781         * math/Makefile (headers): Add bits/floatn-common.h.
1782         * bits/floatn.h: Include <bits/floatn-common.h>.
1783         * sysdeps/ia64/bits/floatn.h: Likewise.
1784         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1785         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
1786         * sysdeps/powerpc/bits/floatn.h: Likewise.
1787         * sysdeps/x86/bits/floatn.h: Likewise.
1789 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1791         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
1792         indicates whether compiler emits an warning for alias for
1793         functions with incompatible types.
1795         [BZ #22273]
1796         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
1797         the auxiliary process is terminated by a signal before calling _exit
1798         or execve.
1800 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1802         [BZ #21265]
1803         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
1804         New.
1805         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
1806         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
1807         and bit_arch_XSAVEC_Usable if needed.
1808         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
1809         and bit_arch_Use_dl_runtime_resolve_opt.
1810         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
1811         Removed.
1812         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
1813         (bit_arch_Prefer_No_AVX512): Updated.
1814         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
1815         (bit_arch_XSAVEC_Usable): New.
1816         (STATE_SAVE_OFFSET): Likewise.
1817         (STATE_SAVE_MASK): Likewise.
1818         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
1819         (cpu_features): Add xsave_state_size and xsave_state_full_size.
1820         (index_arch_Use_dl_runtime_resolve_opt): Removed.
1821         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
1822         (index_arch_XSAVEC_Usable): New.
1823         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
1824         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
1825         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
1826         is enabled.
1827         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1828         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
1829         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
1830         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
1831         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
1832         _dl_runtime_resolve_xsavec.
1833         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
1834         Removed.
1835         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
1836         instead of VEC_SIZE.
1837         (REGISTER_SAVE_BND0): Removed.
1838         (REGISTER_SAVE_BND1): Likewise.
1839         (REGISTER_SAVE_BND3): Likewise.
1840         (REGISTER_SAVE_RAX): Always defined to 0.
1841         (VMOV): Removed.
1842         (_dl_runtime_resolve_avx): Likewise.
1843         (_dl_runtime_resolve_avx_slow): Likewise.
1844         (_dl_runtime_resolve_avx_opt): Likewise.
1845         (_dl_runtime_resolve_avx512): Likewise.
1846         (_dl_runtime_resolve_avx512_opt): Likewise.
1847         (_dl_runtime_resolve_sse): Likewise.
1848         (_dl_runtime_resolve_sse_vex): Likewise.
1849         (USE_FXSAVE): New.
1850         (_dl_runtime_resolve_fxsave): Likewise.
1851         (USE_XSAVE): Likewise.
1852         (_dl_runtime_resolve_xsave): Likewise.
1853         (USE_XSAVEC): Likewise.
1854         (_dl_runtime_resolve_xsavec): Likewise.
1855         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
1856         Removed.
1857         (_dl_runtime_resolve_avx512_opt): Likewise.
1858         (_dl_runtime_resolve_avx): Likewise.
1859         (_dl_runtime_resolve_avx_opt): Likewise.
1860         (_dl_runtime_resolve_sse): Likewise.
1861         (_dl_runtime_resolve_sse_vex): Likewise.
1862         (_dl_runtime_resolve_fxsave): New.
1863         (_dl_runtime_resolve_xsave): Likewise.
1864         (_dl_runtime_resolve_xsavec): Likewise.
1866 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
1868         [BZ #22320]
1869         CVE-2017-15670
1870         * posix/glob.c (__glob): Fix one-byte overflow.
1872 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
1874         * malloc/malloc.c (sysdep-cancel.h): Add include.
1876 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
1878         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
1880 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
1882         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
1883         (tests): Remove $(objpfx)ga_test depdendency.
1884         * resolv/ga_test.c: Remove file.
1886 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
1888         [BZ #18812]
1889         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
1890         * localedata/locales/kab_DZ: New file.
1892 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1894         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
1895         _dl_relocate_static_pie instead of _dl_start to compute load
1896         address in static PIE.
1898 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1900         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
1902 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
1904         [BZ #13605]
1905         * localedata/SUPPORTED: Add shn_MM/UTF-8.
1906         * localedata/locales/shn_MM: New file.
1908 2017-10-20  Florian Weimer  <fweimer@redhat.com>
1910         [BZ #22321]
1911         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
1912         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
1913         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
1914         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
1915         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
1916         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
1918 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1920         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1922 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
1924         * sysdeps/mips/ieee754/bits/floatn.h: New file.
1926         [BZ #22322]
1927         * sysdeps/mips/bits/long-double.h: Move to ....
1928         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
1930 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
1932         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
1934 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
1935             H.J. Lu  <hongjiu.lu@intel.com>
1937         [BZ #22299]
1938         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
1939         GLRO(dl_platform) to NULL.
1940         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
1941         (modules-names): Add tst-platformmod-1 and
1942         x86_64/tst-platformmod-2.
1943         (CFLAGS-tst-platform-1.c): New.
1944         (CFLAGS-tst-platformmod-1.c): Likewise.
1945         (CFLAGS-tst-platformmod-2.c): Likewise.
1946         (LDFLAGS-tst-platformmod-2.so): Likewise.
1947         ($(objpfx)tst-platform-1): Likewise.
1948         ($(objpfx)tst-platform-1.out): Likewise.
1949         (tst-platform-1-ENV): Likewise.
1950         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
1951         * sysdeps/x86_64/tst-platform-1.c: New file.
1952         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
1953         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
1955 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
1957         [BZ #13994]
1958         * locale/iso-639.def: Add Karbi.
1959         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
1960         * localedata/locales/mjw_IN: New file.
1962 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
1964         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
1965         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1966         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
1967         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
1968         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1969         (libm_alias_ldouble_other_r): Also create _Float128 alias.
1970         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
1971         <bits/floatn.h>.
1972         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1973         (libm_alias_ldouble_other_r): Also create _Float128 alias.
1974         * manual/math.texi (Mathematics): Document additional architecture
1975         support for _Float128.
1976         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
1977         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1978         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1979         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1980         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1981         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1982         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1983         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1984         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1985         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1986         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1987         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1988         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1989         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1990         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1992 2017-10-18  Renlin Li  <renlin.li@arm.com>
1994         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
1995         _DYNAMIC symbol to calculate load address.
1997 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
1999         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
2000         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
2001         summary bits.
2002         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
2003         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
2005 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
2007         [BZ #16777]
2008         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
2009         and improve readability by using more ASCII.
2010         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
2011         and improve readability by using more ASCII.
2013 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
2015         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
2016         not all targets support atomics on bool.
2018 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
2020         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
2021         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
2022         __f128.
2023         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2024         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
2025         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2026         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
2027         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2028         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
2030 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2032         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
2033         defines.
2035 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2037         [BZ #22159]
2038         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
2039         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
2040         (do_check_remalloced_chunk): Fix build bug.
2041         (do_check_malloc_state): Add assert that checks arena->top.
2042         (malloc_consolidate): Remove initialization.
2043         (int_mallinfo): Remove call to malloc_consolidate.
2044          (__libc_mallopt): Clarify why malloc_consolidate is needed.
2046 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2048         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
2049         (have_fastchunks): Remove.
2050         (clear_fastchunks): Remove.
2051         (set_fastchunks): Remove.
2052         (malloc_state): Add have_fastchunks.
2053         (malloc_init_state): Use have_fastchunks.
2054         (do_check_malloc_state): Remove incorrect invariant checks.
2055         (_int_malloc): Use have_fastchunks.
2056         (_int_free): Likewise.
2057         (malloc_consolidate): Likewise.
2059 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2061         * malloc/malloc.c (tcache_put): Inline.
2062         (tcache_get): Inline.
2064 2017-10-17  Jordi Mallach  <jordi@gnu.org>
2066         Aurelien Jarno  <aurelien@aurel32.net>
2067         [BZ #2522]
2068         * localedata/locales/ca_ES@valencia: New file.
2069         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
2071 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
2073         [BZ #22296]
2074         * math/math.h: Let signbit use the builtin in C++ mode with gcc
2075         < 6.x
2077 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2079         * scripts/build-many-glibcs.py (Context.add_all_configs):
2080         Add arm-linux-gnueabihf multiarch extra_glibcs.
2082         * sysdeps/generic/ifunc-init.h: New file.
2083         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
2085 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
2087         [BZ #22019]
2088         * localedata/locales/el_GR: Set n_cs_precedes to 0.
2089         * localedata/locales/el_CY: copy "el_GR" because it is identical.
2090         * stdlib/tst-strfmon_l.c: adapt test case.
2092 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2094         * sysdeps/generic/float128-abi.h: New file.
2095         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
2096         non-__prefixed symbols to ....
2097         * math/Versions: ... here.  Include <float128-abi.h>.
2098         * stdlib/Versions ... and here.  Include <float128-abi.h>
2100 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2102         * version.h (VERSION): Switch to ".9000" as the development
2103         version suffix.
2105 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2107         [BZ #22050]
2108         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
2109         compat_symbol_reference to access non-default version.
2111 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2113         * malloc/Makefile (others-extras): Set to mcheck-init.o.
2115 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
2117         * include/shlib-compat.h (compat_symbol_reference): Update
2118         comment.
2120 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2122         * math/Makefile (test-types): Add
2123         $(type-float128-$(float128-alias-fcts)).
2124         * math/test-float128.h (TYPE_STR): Define conditional on
2125         [FLT128_MANT_DIG == LDBL_MANT_DIG].
2126         (ULP_IDX): Likewise.
2127         (ULP_I_IDX): Likewise.
2129         * stdlib/strtold.c: Include <bits/floatn.h>
2130         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
2131         and later undefine as macro.  Define as weak alias if
2132         [!USE_WIDE_CHAR].
2133         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
2134         and later undefine as macro.  Define as weak alias if
2135         [USE_WIDE_CHAR].
2136         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
2137         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
2138         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2139         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2140         Define and later undefine as macro.  Define as weak alias if
2141         [USE_WIDE_CHAR].
2142         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
2143         <bits/floatn.h>.
2144         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
2145         Define and later undefine as macro.  Define as weak alias if
2146         [!USE_WIDE_CHAR].
2147         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2148         Define and later undefine as macro.  Define as weak alias if
2149         [USE_WIDE_CHAR].
2151 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
2153         * localedata/collate-test.c (allocate_arrays): Don't use \n in
2154         record_verbose messages.
2156 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2158         [BZ #22052]
2159         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
2160         to silence -O3 -Wall warning with GCC 7.
2162 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
2164         * Makeconfig (+link-static-before-libc): Use the first of
2165         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
2166         * gmon/Makefile (tests): Add tst-gmon-static.
2167         (tests-static): Likewise.
2168         (CFLAGS-tst-gmon-static.c): New.
2169         (CRT-tst-gmon-static): Likewise.
2170         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
2171         (tst-gmon-static-ENV): Likewise.
2172         (tests-special): Likewise.
2173         ($(objpfx)tst-gmon-static.out): Likewise.
2174         (clean-tst-gmon-static-data): Likewise.
2175         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
2176         * gmon/tst-gmon-static-gprof.sh: New file.
2177         * gmon/tst-gmon-static.c: Likewise.
2179 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
2181         [BZ #22295]
2182         * locale/programs/linereader.c (get_string): Don't warn on
2183         non-symbolic character.
2185         [BZ #22294]
2186         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
2187         int_curr_symbol.
2189         [BZ #22292]
2190         * locale/programs/record-status.h: New file
2191         * locale/programs/locale.c: Add comment.
2192         * locale/programs/charmap-dir.c: Don't include error.h.
2193         (charmap_opendir): Use record_error.
2194         * locale/programs/charmap.c: Don't include error.h.
2195         (charmap_read): Use record_error, and record_warning.
2196         (parse_charmap): Likewise.
2197         * locale/programs/ld-address.c: Don't include error.h.
2198         (address_finish): Use record_error, and record_warning.
2199         * locale/programs/ld-collate.c: Don't include error.h.
2200         (collate_finish): Use record_error, and record_error_at_line.
2201         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
2202         (ctype_class_new): Likewise.
2203         (ctype_map_new): Likewise.
2204         (set_one_default): Likewise.
2205         (set_class_defaults): Likewise.
2206         (translit_flatten): Likewise.
2207         (allocate_arrays): Use record_error, and record_verbose.
2208         * locale/programs/ld-identification.c: Don't include error.h.
2209         (indentation_finish): Use record_error and record_warning.
2210         * locale/programs/ld-measurement.c: Don't include error.h.
2211         (measurement_finish): Use record_error.
2212         * locale/programs/ld-messages.c
2213         (message_finish): Likewise.
2214         * locale/programs/ld-monetary.c
2215         (monetary_finish): Likewise.
2216         * locale/programs/ld-name.c (name_finish): Use record_error
2217         and record_warning.
2218         * locale/programs/ld-numeric.c
2219         (numeric_finish): Use record_error.
2220         * locale/programs/ld-paper.c: Don't include error.h.
2221         (paper_finish): Use record_error.
2222         * locale/programs/ld-telephone.c: Don't include error.h.
2223         (telephone_finish): Use record_error.
2224         * locale/programs/ld-time.c (time_finish): Likewise.
2225         * locale/programs/linereader.h (lr_error): Make inline func.
2226         * locale/programs/localedef.c: Define recorded_warning_count,
2227         and recorded_error_count.
2228         (main): Use record_error. Use recorded_error_count and
2229         recorded_warning_count to issue correct error returns.
2230         (add_to_readlist): Use record_error.
2231         (find_locale): Likewise.
2232         (load_locale): Likewise.
2233         * locale/programs/localedef.h: Remove be_quiet
2234         and WITH_CUR_LOCALE.
2235         * locale/programs/locarchive.c (compare_from_file): Use
2236         record_error.
2237         * locale/programs/locfile.c (write_locale_data): Use
2238         record_error.
2239         * locale/programs/repertoire.c: Dont include error.h.
2240         (repertoire_complain): Use record_error.
2241         * localedata/tst-fmon.sh: Expect failures from localedef.
2242         * localedata/tst-locale.sh: Likewise.
2243         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
2245         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
2246         (REPORTS): Likewise.
2247         (check): Likewise.
2248         (i18n): Rename to...
2249         (i18n_ctype): ...this.
2250         (i18n-report): Rename to...
2251         (i18n_ctype-report): ...this.
2252         * localedata/locales/i18n_ctype: Regenerate.
2253         * localedata/locales/i18n: copy i18n_ctype.
2255 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2257         * stdlib/strfroml.c: Include <bits/floatn.h>.
2258         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
2259         Define before include of <stdlib.h> and undefine afterwards, then
2260         define as weak alias.
2262         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
2263         Undefine and restore default definition.  Use
2264         libm_alias_ldouble_other.
2266 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
2268         [BZ #22153]
2269         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
2270         in coredumps.
2272 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
2274         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
2275         Assign sym_map to be map for local symbols, as TLS relocations
2276         use sym_map to determine whether the symbol is defined and to
2277         extract the TLS information.
2278         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2279         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2281 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2283         [BZ #22189]
2284         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
2285         (math_force_eval): Add powerpc version.
2287         [BZ #22142]
2288         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
2289         -DBL_MAX.
2290         (do_test): Likewise.
2291         * stdio-common/tst-printf.sh: Likewise.
2292         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
2293         ifdef clause in order to set the carry bit right.  Replace r0 by
2294         0 without changing the behavior.
2296 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2298         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
2299         <libm-alias-ldouble.h>.
2300         (fabsl): Define using libm_alias_ldouble.
2301         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
2302         <libm-alias-ldouble.h>.
2303         (fabsl): Define using libm_alias_ldouble.
2305         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
2306         Remove conditional code.
2308         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
2309         Rename to __clog10_internal_l.
2310         (__clog10_internal_l): Define aliases using
2311         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
2312         with __clog10.
2314 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2316         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
2317         * benchtests/sincosf-inputs: New file.
2318         * benchtests/cosf-inputs: New file.
2319         * benchtests/sinf-inputs: New file.
2321 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2323         * posix/tst-spawn.c (do_test): Wait for both children.
2325 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2327         [BZ #22284]
2328         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
2329         tests-pie): Add tst-gmon-pie.
2330         (CFLAGS-tst-gmon-pie.c): New.
2331         (CRT-tst-gmon-pie): Likewise.
2332         (tst-gmon-pie-ENV): Likewise.
2333         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
2334         ($(objpfx)tst-gmon-pie.out): Likewise.
2335         (clean-tst-gmon-pie-data): Likewise.
2336         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
2337         * gmon/gmon.c [PIC]: Include <link.h>.
2338         [PIC] (callback): New function.
2339         (write_hist): Add an argument for load address.  Subtract load
2340         address from PCs.
2341         (write_call_graph): Likewise.
2342         (write_gmon): Call __dl_iterate_phdr to get load address, pass
2343         it to write_hist and write_call_graph.
2344         * gmon/tst-gmon-pie.c: New file.
2346 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2348         * math/Makefile (test-types-basic): New variable.
2349         (test-types): Likewise.
2350         (libm-test-support): Use $(test-types) instead of $(types).
2351         (libm-tests-base-normal): Likewise.
2352         (libm-tests-base-finite): Likewise.
2353         (libm-tests-base-inline): Likewise.
2354         (generated): Likewise.
2355         ($(objpfx)libm-test-support-$(t).c): Likewise.
2356         (libm-tests-for-type iterator): Likewise.
2357         (libm-test-support iterator): Likewise.
2358         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
2359         (ulp_idx): Use ULP_IDX.
2360         * math/test-ldouble.h: Include <float.h>.
2361         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
2362         (ULP_IDX): New macro.
2363         (ULP_I_IDX): Likewise.
2364         * math/test-double.h (ULP_IDX): Likewise.
2365         (ULP_I_IDX): Likewise.
2366         * math/test-float.h (ULP_IDX): Likewise.
2367         (ULP_I_IDX): Likewise.
2368         * math/test-float128.h (ULP_IDX): Likewise.
2369         (ULP_I_IDX): Likewise.
2371 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2373         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
2374         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
2375         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
2376         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
2377         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
2378         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
2379         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
2380         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
2381         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
2382         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
2383         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
2384         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
2385         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
2386         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2387         (SINGLE_THREAD_BY_GLOBAL): Define.
2388         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2389         Likewise.
2390         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2391         Likewise.
2392         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2393         Likewise.
2394         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2395         Likewise.
2396         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
2397         (SINGLE_THREAD_BY_GLOBAL): Likewise.
2398         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2399         Likewise.
2401 2017-10-11  Andreas Schwab  <schwab@suse.de>
2403         * nis/Makefile (aux): Remove.
2404         * nscd/Makefile (aux): Add nscd_hash.
2405         (nscd-modules): Likewise.
2406         ($(objpfx)nscd): Don't depend on libnsl.
2407         * nscd/nscd_hash.c: New file.
2408         * nscd/nscd_hash.h: Likewise.
2409         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
2410         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
2411         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
2412         instead of <nis/rpcsvc/nis.h>.
2413         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
2415 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2417         [BZ #22078]
2418         Avoid large NSS buffers with many addresses, aliases.
2419         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
2420         using dynarrays and struct alloc_buffer.
2421         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
2422         (tst-nss-files-hosts-multi): Link with -ldl.
2423         * nss/tst-nss-files-hosts-multi.c: New file.
2425 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2427         [BZ #18023]
2428         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
2429         scratch_buffer.  Eliminate gotos.
2431 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2433         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
2434         libm_alias_ldouble_other.
2435         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
2436         undefine and redefine.
2437         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
2438         (exp10l): Do not define here.
2439         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
2440         (weak_alias): Undefine and redefine.
2441         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
2442         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
2443         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
2444         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
2446         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
2447         [!__fma] (fma): Define using libm_alias_double.
2448         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
2449         [!__fmaf] (fmaf): Define using libm_alias_float.
2450         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
2451         (fmal): Define using libm_alias_ldouble.
2453 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
2455         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
2456         New macro.
2457         (libm_alias_double_other): Likewise.
2458         (libm_alias_double_r): Use libm_alias_double_other_r.
2459         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
2460         New macro.
2461         (libm_alias_float_other): Likewise.
2462         (libm_alias_float_r): Use libm_alias_float_other_r.
2463         * sysdeps/generic/libm-alias-float128.h
2464         (libm_alias_float128_other_r): New macro.
2465         (libm_alias_float128_other): Likewise.
2466         (libm_alias_float128_r): Use libm_alias_float128_other_r.
2467         * sysdeps/generic/libm-alias-ldouble.h
2468         (libm_alias_ldouble_other_r): New macro.
2469         (libm_alias_ldouble_other): Likewise.
2470         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
2471         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
2472         (libm_alias_double_other_r): New macro.
2473         (libm_alias_double_other): Likewise.
2474         (libm_alias_double_r): Use libm_alias_double_other_r.
2475         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
2476         (libm_alias_ldouble_other_r): New macro.
2477         (libm_alias_ldouble_other): Likewise.
2478         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
2479         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
2480         [!USE_AS_COMPAT]: Use libm_alias_double_other.
2481         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
2482         [!USE_AS_COMPAT]: Use libm_alias_float_other.
2483         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
2484         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
2485         * math/w_exp2f.c: Use libm_alias_float_other.
2486         * math/w_expf.c: Likewise.
2487         * math/w_log2f.c: Likewise.
2488         * math/w_logf.c: Likewise.
2489         * math/w_powf.c: Likewise.
2490         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
2491         [!__exp2f]: Use libm_alias_float_other.
2492         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
2493         [!__expf]: Use libm_alias_float_other.
2494         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
2495         [!__log2f]: Use libm_alias_float_other.
2496         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
2497         [!__logf]: Use libm_alias_float_other.
2498         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
2499         [!__powf]: Use libm_alias_float_other.
2501 2017-10-10  Florian Weimer  <fweimer@redhat.com>
2503         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
2504         function.
2505         (_nss_files_gethostbyname3_r): Call it.
2507 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
2509         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
2510         error.  Remove default definition of declare_mgen_alias.
2511         [!declare_mgen_alias_r]: Likewise.
2512         * sysdeps/generic/math-type-macros-double.h
2513         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
2514         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
2515         (declare_mgen_alias_r): Likewise.
2516         * sysdeps/generic/math-type-macros-float128.h
2517         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
2518         * sysdeps/generic/math-type-macros-ldouble.h
2519         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
2520         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
2521         macro.
2522         (declare_mgen_alias_r_s): Likewise.
2523         (declare_mgen_alias_r): Likewise.
2524         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
2525         (lgamma_r): Define using libm_alias_double_r.
2526         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
2527         (lgammaf_r): Define using libm_alias_float_r.
2528         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
2529         (lgammal_r): Define using libm_alias_ldouble_r.
2530         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
2531         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
2533 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2535         * lib/glob.c (__glob_pattern_type): Remove now-spurious
2536         extern declaration.
2538 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
2540         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
2542 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
2544         [BZ #21326]
2545         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
2546         [__cplusplus >= 201103] (__USE_ISOC99): Define.
2547         * math/Makefile (test-math-cxx11): New test.
2548         * math/test-math-cxx11.cc: New file.
2550 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
2552         * login/openpty.c (openpty): Close slave pty file descriptor on error.
2554         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
2555         call to allocate the slave pty file descriptor.
2557 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
2559         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
2560         [!__fma] (fma): Define using libm_alias_double.
2561         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
2562         [!__fma] (fma): Define using libm_alias_double.
2564         * sysdeps/ieee754/float128/float128_private.h: Include
2565         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
2566         (libm_alias_ldouble_r): Undefine and redefine.
2567         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
2568         <libm-alias-ldouble.h>.
2569         (asinhl): Define using libm_alias_ldouble.
2570         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
2571         <libm-alias-ldouble.h>.
2572         (atanl): Define using libm_alias_ldouble.
2573         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
2574         <libm-alias-ldouble.h>.
2575         (cbrtl): Define using libm_alias_ldouble.
2576         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
2577         <libm-alias-ldouble.h>.
2578         (ceill): Define using libm_alias_ldouble.
2579         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
2580         <libm-alias-ldouble.h>.
2581         (copysignl): Define using libm_alias_ldouble.
2582         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
2583         <libm-alias-ldouble.h>.
2584         (cosl): Define using libm_alias_ldouble.
2585         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
2586         <libm-alias-ldouble.h>.
2587         (erfl): Define using libm_alias_ldouble.
2588         (erfcl): Likewise.
2589         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
2590         <libm-alias-ldouble.h>.
2591         (expm1l): Define using libm_alias_ldouble.
2592         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
2593         <libm-alias-ldouble.h>.
2594         (fabsl): Define using libm_alias_ldouble.
2595         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
2596         <libm-alias-ldouble.h>.
2597         (floorl): Define using libm_alias_ldouble.
2598         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
2599         <libm-alias-ldouble.h>.
2600         (fmal): Define using libm_alias_ldouble.
2601         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
2602         <libm-alias-ldouble.h>.
2603         (frexpl): Define using libm_alias_ldouble.
2604         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
2605         libm_alias_ldouble.
2606         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
2607         <libm-alias-ldouble.h>.
2608         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
2609         libm_alias_ldouble.
2610         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
2611         <libm-alias-ldouble.h>.
2612         (getpayloadl): Define using libm_alias_ldouble.
2613         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
2614         <libm-alias-ldouble.h>.
2615         (llrintl): Define using libm_alias_ldouble.
2616         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
2617         <libm-alias-ldouble.h>.
2618         (llroundl): Define using libm_alias_ldouble.
2619         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
2620         <libm-alias-ldouble.h>.
2621         (logbl): Define using libm_alias_ldouble.
2622         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
2623         <libm-alias-ldouble.h>.
2624         (lrintl): Define using libm_alias_ldouble.
2625         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
2626         <libm-alias-ldouble.h>.
2627         (lroundl): Define using libm_alias_ldouble.
2628         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
2629         <libm-alias-ldouble.h>.
2630         (modfl): Define using libm_alias_ldouble.
2631         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
2632         <libm-alias-ldouble.h>.
2633         (nearbyintl): Define using libm_alias_ldouble.
2634         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
2635         <libm-alias-ldouble.h>.
2636         (nextafterl): Define using libm_alias_ldouble.
2637         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
2638         <libm-alias-ldouble.h>.
2639         (nextupl): Define using libm_alias_ldouble.
2640         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
2641         <libm-alias-ldouble.h>.
2642         (remquol): Define using libm_alias_ldouble.
2643         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
2644         <libm-alias-ldouble.h>.
2645         (rintl): Define using libm_alias_ldouble.
2646         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
2647         <libm-alias-ldouble.h>.
2648         (roundevenl): Define using libm_alias_ldouble.
2649         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
2650         <libm-alias-ldouble.h>.
2651         (roundl): Define using libm_alias_ldouble.
2652         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
2653         using libm_alias_ldouble.
2654         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
2655         <libm-alias-ldouble.h>.
2656         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
2657         Define using libm_alias_ldouble.
2658         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
2659         <libm-alias-ldouble.h>.
2660         (sincosl): Define using libm_alias_ldouble.
2661         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
2662         <libm-alias-ldouble.h>.
2663         (sinl): Define using libm_alias_ldouble.
2664         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
2665         <libm-alias-ldouble.h>.
2666         (tanhl): Define using libm_alias_ldouble.
2667         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
2668         <libm-alias-ldouble.h>.
2669         (tanl): Define using libm_alias_ldouble.
2670         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2671         <libm-alias-ldouble.h>.
2672         (totalorderl): Define using libm_alias_ldouble.
2673         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2674         <libm-alias-ldouble.h>.
2675         (totalordermagl): Define using libm_alias_ldouble.
2676         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
2677         <libm-alias-ldouble.h>.
2678         (truncl): Define using libm_alias_ldouble.
2679         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
2680         libm_alias_ldouble.
2681         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
2682         libm_alias_ldouble.
2683         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
2684         <libm-alias-ldouble.h>.
2685         (weak_alias): Do not undefine and redefine.
2686         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2687         (copysignl): Define with long_double_symbol only if [IS_IN
2688         (libc)].
2689         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
2690         <libm-alias-ldouble.h>.
2691         (weak_alias): Do not undefine and redefine.
2692         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2693         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
2694         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
2695         <libm-alias-ldouble.h>.
2696         (weak_alias): Do not undefine and redefine.
2697         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2698         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
2699         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
2700         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
2701         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
2702         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
2703         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
2704         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
2705         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
2706         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
2707         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
2708         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
2709         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
2710         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
2711         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
2712         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
2713         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
2714         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
2715         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
2716         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
2717         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
2718         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
2719         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
2720         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
2721         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
2722         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
2724 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
2726         [BZ #22111]
2727         * malloc/malloc.c (tcache_shutting_down): Use bool type.
2728         (tcache_thread_freeres): Set tcache_shutting_down before
2729         freeing the tcache.
2730         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
2731         * malloc/tst-malloc-tcache-leak.c: New file.
2733 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2735         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
2736         back to powerpc32 file.
2737         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
2738         (memrchr): Add __memrchr_power8 to ifunc list.
2739         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
2740         extra bytes for unaligned inputs.
2742 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
2744         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
2745         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
2746         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
2747         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
2748         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
2750 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
2752         * sysdeps/arm/libm-test-ulps: Update.
2754         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
2755         <libm-alias-ldouble.h>.
2756         (asinhl): Define using libm_alias_ldouble.
2757         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
2758         <libm-alias-ldouble.h>.
2759         (cbrtl): Define using libm_alias_ldouble.
2760         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
2761         <libm-alias-ldouble.h>.
2762         (copysignl): Define using libm_alias_ldouble.
2763         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
2764         <libm-alias-ldouble.h>.
2765         (cosl): Define using libm_alias_ldouble.
2766         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
2767         <libm-alias-ldouble.h>.
2768         (erfl): Define using libm_alias_ldouble.
2769         (erfcl): Likewise.
2770         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
2771         <libm-alias-ldouble.h>.
2772         (fmal): Define using libm_alias_ldouble.
2773         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
2774         <libm-alias-ldouble.h>.
2775         (frexpl): Define using libm_alias_ldouble.
2776         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
2777         libm_alias_ldouble.
2778         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
2779         <libm-alias-ldouble.h>.
2780         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
2781         libm_alias_ldouble.
2782         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
2783         <libm-alias-ldouble.h>.
2784         (getpayloadl): Define using libm_alias_ldouble.
2785         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
2786         <libm-alias-ldouble.h>.
2787         (llrintl): Define using libm_alias_ldouble.
2788         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
2789         <libm-alias-ldouble.h>.
2790         (llroundl): Define using libm_alias_ldouble.
2791         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
2792         <libm-alias-ldouble.h>.
2793         (lrintl): Define using libm_alias_ldouble.
2794         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
2795         <libm-alias-ldouble.h>.
2796         (lroundl): Define using libm_alias_ldouble.
2797         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
2798         <libm-alias-ldouble.h>.
2799         (modfl): Define using libm_alias_ldouble.
2800         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
2801         <libm-alias-ldouble.h>.
2802         (nextupl): Define using libm_alias_ldouble.
2803         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
2804         <libm-alias-ldouble.h>.
2805         (remquol): Define using libm_alias_ldouble.
2806         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
2807         <libm-alias-ldouble.h>.
2808         (roundevenl): Define using libm_alias_ldouble.
2809         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
2810         <libm-alias-ldouble.h>.
2811         (roundl): Define using libm_alias_ldouble.
2812         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
2813         using libm_alias_ldouble.
2814         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
2815         <libm-alias-ldouble.h>.
2816         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
2817         <libm-alias-ldouble.h>.
2818         (setpayloadsigl): Define using libm_alias_ldouble.
2819         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
2820         <libm-alias-ldouble.h>.
2821         (sincosl): Define using libm_alias_ldouble.
2822         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
2823         <libm-alias-ldouble.h>.
2824         (sinl): Define using libm_alias_ldouble.
2825         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
2826         <libm-alias-ldouble.h>.
2827         (tanhl): Define using libm_alias_ldouble.
2828         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
2829         <libm-alias-ldouble.h>.
2830         (tanl): Define using libm_alias_ldouble.
2831         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2832         <libm-alias-ldouble.h>.
2833         (totalorderl): Define using libm_alias_ldouble.
2834         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2835         <libm-alias-ldouble.h>.
2836         (totalordermagl): Define using libm_alias_ldouble.
2837         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
2838         libm_alias_ldouble.
2839         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
2840         libm_alias_ldouble.
2842 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2844         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
2845         memmove_falkor.
2846         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2847         (__libc_ifunc_impl_list): Likewise.
2848         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
2849         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
2851         * benchtests/bench-memmove-walk.c: New file.
2852         * benchtests/Makefile (string-benchset): Add it.
2854         * benchtests/bench-memset-walk.c: New file.
2855         * benchtests/Makefile (string-benchset): Add it.
2857         * benchtests/bench-memcpy-walk.c: New file.
2858         * benchtests/Makefile (string-benchset): Add it.
2860 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2862         nscd: Eliminate compilation time dependency in the build output.
2863         * nscd/nscd_stat.c (STATDATA_VERSION)
2864         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
2865         (STATDATA_VERSION_FULL): New macro definitions.
2866         (compilation): Remove.
2867         (struct statdata): Adjust version member.
2868         (send_stats): Set version from STATDATA_VERSION_FULL.
2869         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
2871 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
2873         * configure.ac (--enable-add-ons): Remove option.
2874         (machine): Do not mention add-ons in comment.
2875         (LIBC_PRECONFIGURE): Likewise.
2876         (add_ons): Remove variable and sanity checks and logic to locate
2877         add-ons.
2878         (add_ons_automatic): Remove variable.
2879         (configured_add_ons): Likewise.
2880         (add_ons_sfx): Likewise.
2881         (add_ons_pfx): Likewise.
2882         (add_on_subdirs): Likewise.
2883         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
2884         consideration of add-ons in Implies handling.
2885         (sysdeps_add_ons): Likewise.
2886         * configure: Regenerated.
2887         * libidn/configure.ac: Remove.
2888         * libidn/configure: Likewise.
2889         * sysdeps/unix/inet/configure.ac: New file.
2890         * sysdeps/unix/inet/configure: New generated file.
2891         * sysdeps/unix/inet/Subdirs: Add libidn.
2892         * Makeconfig (sysdeps-srcdirs): Remove variable.
2893         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
2894         ($(common-objpfx)config.status): Do not depend on add-on files.
2895         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
2896         comment.
2897         (all-subdirs): Do not include $(add-on-subdirs).
2898         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
2899         * config.make.in (add-ons): Remove variable.
2900         (add-on-subdirs): Likewise.
2901         (sysdeps-add-ons): Likewise.
2902         * manual/Makefile (add-chapters): Remove.
2903         ($(objpfx)texis): Do not depend on $(add-chapters).
2904         (nonexamples): Do not handle $(add-chapters).
2905         (examples): Do not handle $(add-ons).
2906         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
2907         libc-texinfo.sh.
2908         * manual/install.texi (Installation): Do not mention add-ons.
2909         (--enable-add-ons): Do not document configure option.
2910         * INSTALL: Regenerated.
2911         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
2912         * manual/maint.texi (Hierarchy Conventions): Do not mention
2913         add-ons.
2914         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
2915         --enable-add-ons.
2916         * scripts/gen-sorted.awk: Do not handle Subdirs files from
2917         add-ons.
2918         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
2919         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
2921 2017-10-05  Andreas Schwab  <schwab@suse.de>
2923         [BZ #15142]
2924         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
2925         (_IO_flush_all_lockp): Always lock list_all_lock.
2926         (_IO_flush_all_linebuffered): Likewise.
2927         (_IO_unbuffer_all): Likewise.
2929 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2931         [BZ #15436]
2932         Do not flush stdio streams on abort.
2933         * stdlib/abort.c (fflush): Remove macro definition.
2934         (abort): Remove stages related to stdio flushing.
2936 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2938         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
2940 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
2942         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2944 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2946         * support/support_format_hostent.c (support_format_hostent): Add
2947         more error information for NETDB_INTERNAL.
2949 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2951         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
2952         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
2953         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
2954         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
2955         AC_DEFINE if multi-arch is enabled.
2956         * sysdeps/i386/configure: Regenerated.
2958 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2960         * Makeconfig (+link-static-before-libc): Use
2961         $(DEFAULT-LDFLAGS-$(@F)).
2962         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
2963         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
2964         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
2966 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2968         * elf/Makefile (tests): Add tst-main1.
2969         (modules-names): Add tst-main1mod.
2970         ($(objpfx)tst-main1): New.
2971         (CRT-tst-main1): Likewise.
2972         (LDFLAGS-tst-main1): Likewise.
2973         (LDLIBS-tst-main1): Likewise.
2974         (tst-main1mod.so-no-z-defs): Likewise.
2975         * elf/tst-main1.c: New file.
2976         * elf/tst-main1mod.c: Likewise.
2978 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2980         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
2982 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
2984         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
2985         (fma): Define using libm_alias_double.
2986         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
2987         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
2988         <math_ldbl_opt.h>.
2989         (fmal): Do not define as compat symbol here.
2990         * sysdeps/alpha/fpu/s_fma.c: New file.
2992 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2994         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
2996 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
2998         [BZ #22229]
2999         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3000         <math_ldbl_opt.h>
3001         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3002         and libc.
3003         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
3004         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3005         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
3006         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
3007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3008         Include <math_ldbl_opt.h>
3009         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3010         and libc.
3011         (compat_symbol): Undefine and redefine.
3012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3013         <math_ldbl_opt.h>
3014         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3015         (compat_symbol): Undefine and redefine.
3016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
3017         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
3018         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
3019         GLIBC_2_1 for libm.
3020         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
3021         GLIBC_2.0 copysignl symbol.
3022         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3023         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
3025         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
3027 2017-10-04  Florian Weimer  <fweimer@redhat.com>
3029         * scripts/check-local-headers.sh: Ignore nspr4 header file
3030         directory in addition to nspr.
3032 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
3034         [BZ #17956]
3035         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
3036         * configure: Regenerate.
3037         * crypt/Makefile (nss-cpp-flags): New variable.
3038         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
3039         (CPPFLAGS-md5-crypt.c): Use it.
3040         * scripts/check-local-headers.sh: Ignore nspr header file
3041         directory.
3043 2017-10-04  Andreas Schwab  <schwab@suse.de>
3045         * nis/Makefile (services): Remove compat.
3046         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
3047         ($(objpfx)libnss_compat.so): Remove rule.
3048         * nis/Versions (libnss_compat): Remove.
3049         * nss/Makefile (services): Add compat.
3050         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
3051         * nss/Versions (libnss_compat): Define.
3052         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
3053         Don't include <rpc/types.h>.  Replace bool_t by bool.
3054         * nss/nss_compat/compat-initgroups.c: Likewise.
3055         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
3056         instead of <rpcsrv/ypclnt.h>.
3057         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
3058         yp_get_default_domain.
3059         * nss/nss_compat/compat-pwd.c: Likewise.
3060         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
3061         yp_get_default_domain.
3062         * nss/nss_compat/nisdomain.c: New file.
3063         * nss/nss_compat/nisdomain.h: Likewise.
3065 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3067         [BZ #22244]
3068         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
3069         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3071 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3073         [BZ #22243]
3074         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
3075         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
3077 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3079         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
3080         "movl main@GOTOFF(%ebx), %eax".
3082 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3084         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
3085         allow undefined _DYNAMIC in PIE libc.a.
3086         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3087         Likewse.
3089 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3091         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
3092         check _DYNAMIC.
3094 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3096         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
3097         check _DYNAMIC.
3099 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3101         * math/test-math-iscanonical.cc (error): Replace bool with int.
3103 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3105         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
3106         (modf): Define using libm_alias_double, only if [!__modf].
3107         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
3108         <libm-alias-double.h>.
3109         (modf): Define using libm_alias_double, only if [!__modf].
3110         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
3111         compat symbol here.
3112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
3113         (weak_alias): Do not undefine and redefine.
3114         (strong_alias): Likewise.
3115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
3116         (weak_alias): Likewise.
3117         (strong_alias): Likewise.
3119         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
3120         (logb): Define using libm_alias_double, only if [!__logb].
3121         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
3122         <libm-alias-double.h>.
3123         (logb): Define using libm_alias_double, only if [!__logb].
3124         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
3125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
3126         (weak_alias): Do not undefine and redefine.
3127         (strong_alias): Likewise.
3128         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
3129         (weak_alias): Likewise.
3130         (strong_alias): Likewise.
3132 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3134         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
3135         Check SHARED instead PIC.
3137 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3139         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
3140         [!__fmaf] (fmaf): Define using libm_alias_float.
3142         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
3143         (frexp): Define using libm_alias_double.
3144         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
3145         <libm-alias-double.h>.
3146         (frexp): Define using libm_alias_double.
3147         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
3148         compat symbol here.
3150 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3152         [BZ #22235]
3153         * math/math.h: Trivial fix for unbalanced parentheses in comment.
3154         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
3155         (CFLAGS-test-math-iscanonical.cc): New variable.
3156         * math/test-math-iscanonical.cc: New file.
3157         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
3158         Provide a C++ implementation based on function overloading,
3159         rather than using __MATH_TG, which uses C-only builtins.
3160         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
3161         Likewise.
3162         * sysdeps/powerpc/powerpc64le/Makefile
3163         (CFLAGS-test-math-iscanonical.cc): New variable.
3165 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3167         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
3168         (ceil): Define using libm_alias_double.
3169         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
3170         (floor): Define using libm_alias_double.
3171         * sysdeps/ieee754/dbl-64/s_llround.c: Include
3172         <libm-alias-double.h>.
3173         (llround): Define using libm_alias_double.
3174         * sysdeps/ieee754/dbl-64/s_lround.c: Include
3175         <libm-alias-double.h>.
3176         (lround): Define using libm_alias_double.
3177         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
3178         <libm-alias-double.h>.
3179         (nearbyint): Define using libm_alias_double.
3180         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
3181         <libm-alias-double.h>.
3182         (remquo): Define using libm_alias_double.
3183         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
3184         (rint): Define using libm_alias_double.
3185         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
3186         (round): Define using libm_alias_double.
3187         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
3188         (trunc): Define using libm_alias_double.
3189         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
3190         <libm-alias-double.h>.
3191         (ceil): Define using libm_alias_double.
3192         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
3193         <libm-alias-double.h>.
3194         (floor): Define using libm_alias_double.
3195         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
3196         <libm-alias-double.h>.
3197         (llround): Define using libm_alias_double.
3198         [_LP64] (lround): Likewise.
3199         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
3200         <libm-alias-double.h>.
3201         [!_LP64] (lround): Define using libm_alias_double.
3202         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
3203         <libm-alias-double.h>.
3204         (nearbyint): Define using libm_alias_double.
3205         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
3206         <libm-alias-double.h>.
3207         (remquo): Define using libm_alias_double.
3208         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
3209         <libm-alias-double.h>.
3210         (rint): Define using libm_alias_double.
3211         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
3212         <libm-alias-double.h>.
3213         (round): Define using libm_alias_double.
3214         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
3215         <libm-alias-double.h>.
3216         (trunc): Define using libm_alias_double.
3217         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
3218         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
3219         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
3220         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
3221         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
3222         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
3223         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
3224         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
3225         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
3227 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3229         * math/w_remainder.c: New file.
3230         * math/w_remainderf.c: New file.
3231         * math/w_remainderl.c: New file.
3233 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3235         * elf/rtld.c (BOOTSTRAP_MAP): New.
3236         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
3237         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3238         Likewise.
3239         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3240         Likewise.
3241         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3242         Likewise.
3244 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3246         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
3247         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
3248         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
3249         rtld_hidden_data_ver): Define to empty.
3250         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
3251         __assert_perror_fail): Likewise.
3252         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3253         (__rewinddir): Likewise.
3254         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3255         (__profile_frequency): Likewise.
3256         * include/setjmp.h (__sigsetjmp): Likewise.
3257         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
3258         __libc_sigaction): Likewise.
3259         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
3260         not set hidden attribute.
3261         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
3262         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
3263         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
3264         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
3265         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
3266         __fxstatat64): Likewise.
3267         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3268         (__uname): Likewise.
3269         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3270         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
3271         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
3272         (NO_RTLD_HIDDEN): Set.
3273         * sysdeps/mach/hurd/configure: Refresh.
3274         * config.h.in: Refresh.
3276 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
3278         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
3279         (atan): Define using libm_alias_double.
3280         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
3281         (tan): Define using libm_alias_double.
3282         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
3283         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
3285         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
3286         define as weak alias of __atan.  Do not define any aliases if
3287         [__atan].
3288         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
3289         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
3290         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
3291         as weak alias of __tan.  Do not define any aliases if [__tan].
3292         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
3293         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
3294         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
3295         __atan.
3296         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
3297         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
3298         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
3299         and define as weak alias of __atan.
3300         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
3301         __atan.
3302         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
3303         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
3304         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
3305         define as weak alias of __tan.
3307 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3309         * math/w_lgamma.c: New file.
3310         * math/w_lgammaf.c: New file.
3311         * math/w_lgammal.c: New file.
3313 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3315         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
3316         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
3317         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
3318         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
3319         * sysdeps/ieee754/flt-32/w_logf.c: New file.
3320         * sysdeps/ieee754/flt-32/w_powf.c: New file.
3321         * sysdeps/i386/fpu/w_log2f.c: New file.
3322         * sysdeps/i386/fpu/w_logf.c: New file.
3323         * sysdeps/i386/fpu/w_powf.c: New file.
3324         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
3325         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
3326         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
3328 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3329             H.J. Lu  <hongjiu.lu@intel.com>
3331         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
3332         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
3333         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
3334         * sysdeps/ieee754/flt-32/w_expf.c: New file.
3335         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
3336         the new expf code.
3337         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
3338         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
3339         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
3340         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
3341         * sysdeps/i386/fpu/w_exp2f.c: New file.
3342         * sysdeps/i386/fpu/w_expf.c: New file.
3343         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
3344         * sysdeps/x86_64/fpu/w_expf.c: New file.
3346 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3348         * math/Versions (logf): New libm symbol at GLIBC_2.27.
3349         (log2f): Likewise.
3350         (powf): Likewise.
3351         * math/w_log2f.c: New file.
3352         * math/w_logf.c: New file.
3353         * math/w_powf.c: New file.
3354         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
3355         * math/w_logf_compat.c (__logf_compat): Likewise.
3356         * math/w_powf_compat.c (__powf_compat): Likewise.
3357         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
3358         * sysdeps/ia64/fpu/e_logf.S: Likewise.
3359         * sysdeps/ia64/fpu/e_powf.S: Likewise.
3360         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3361         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3362         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3363         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3364         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3365         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3366         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3367         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3368         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3369         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3370         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3371         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3373         Likewise.
3374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3375         Likewise.
3376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3377         Likewise.
3378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3379         Likewise.
3380         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3381         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3382         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3383         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3384         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3385         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3386         Likewise.
3387         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3388         Likewise.
3389         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3390         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3391         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3393 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3395         * sysdeps/powerpc/powerpc64/multiarch/Makefile
3396         (sysdep_routines): Add memrchr_power8.
3397         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
3398         (memrchr): Add __memrchr_power8 to list of memrchr functions.
3399         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
3400         New file.
3401         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3402         (memrchr): Add __memrchr_power8 to ifunc list.
3403         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
3405 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3407         [BZ #18822]
3408         * sysdeps/unix/sysv/linux/posix_fadvise64.c
3409         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
3410         libc_hidden_def.
3411         * sysdeps/unix/sysv/linux/posix_fallocate64.c
3412         (__posix_fallocate64_l64): Likewise.
3414 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3416         [BZ #18822]
3417         * sysdeps/unix/sysv/linux/sched_setaffinity.c
3418         (__sched_setaffinity_new): Add libc_hidden_proto and
3419         libc_hidden_def.
3421 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3423         [BZ #18822]
3424         * include/glob.h (__glob64): Add libc_hidden_proto.
3425         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
3426         libc_hidden_def.
3428 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3430         [BZ #18822]
3431         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
3432         attribute_hidden.
3434 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3436         [BZ #18822]
3437         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
3439 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3441         [BZ #18822]
3442         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
3443         libc_hidden_def.
3445 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3447         [BZ #18822]
3448         * csu/version.c (__libc_print_version): Add attribute_hidden.
3450 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3452         [BZ #18822]
3453         * include/libc-internal.h (__init_misc): Add attribute_hidden.
3455 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3457         [BZ #18822]
3458         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
3460 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3462         [BZ #18822]
3463         * nscd/nscd_helper.c (__nis_hash): New prototype.
3465 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3467         [BZ #18822]
3468         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
3469         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
3470         libc_hidden_def.
3471         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
3472         * termios/tcgetattr.c (__tcgetattr): Likewise.
3474 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3476         [BZ #18822]
3477         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
3478         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
3479         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
3480         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
3481         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
3483 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3485         [BZ #18822]
3486         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
3488 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3490         [BZ #18822]
3491         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
3492         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
3494 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3496         [BZ #18822]
3497         * intl/hash-string.h (__hash_string): Add attribute_hidden.
3499 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3501         [BZ #18822]
3502         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
3503         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
3505 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3507         [BZ #18822]
3508         * include/ifreq.h: New file.
3509         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
3510         (__ifreq): Likewise.
3511         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
3512         (__ifreq): Likewise.
3514 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3516         [BZ #18822]
3517         * include/idna.h: New file.
3518         * inet/getnameinfo.c: Include <idna.h> instead of
3519         <libidn/idna.h>.
3520         (__idna_to_unicode_lzlz): Removed.
3521         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
3522         <libidn/idna.h>.
3523         (__idna_to_ascii_lz): Removed.
3524         (__idna_to_unicode_lzlz): Likewise.
3526 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3528         [BZ #18822]
3529         * include/plural-exp.h: New file.
3530         * intl/plural-exp.c: Include <plural-exp.h> instead of
3531         "plural-exp.h".
3533 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3535         [BZ #18822]
3536         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
3537         "getsourcefilter.h".
3538         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
3539         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
3540         "getsourcefilter.h".
3541         (__get_sol): Removed.
3543 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3545         [BZ #18822]
3546         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
3547         to ...
3548         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
3550 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3552         [BZ #18822]
3553         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
3554         attribute_hidden.
3556 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3558         [BZ #18822]
3559         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
3561 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3563         [BZ #18822]
3564         * include/search.h (__tdestroy): Add libc_hidden_proto.
3565         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
3567 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3569         [BZ #18822]
3570         * include/assert.h (__assert_fail_base): Add attribute_hidden.
3572 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3574         [BZ #18822]
3575         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
3576         attribute_hidden.
3578 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3580         [BZ #18822]
3581         * include/signal.h (__kill): Add libc_hidden_proto.
3582         (__sigblock): Likewise.
3583         (__sigprocmask): Likewise.
3584         (__sigaltstack): Likewise.
3585         * signal/kill.c (__kill): Add libc_hidden_def.
3586         * signal/sigblock.c (__sigblock): Likewise.
3587         * signal/sigprocmask.c (__sigprocmask): Likewise.
3588         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
3589         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
3590         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
3591         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
3592         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
3593         Likewise.
3594         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
3595         Likewise.
3596         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
3597         (__sigprocmask): Likewise.
3598         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
3599         Likewise.
3600         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
3601         (__sigprocmask): Likewise.
3602         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
3603         Likewise.
3605 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3607         [BZ #18822]
3608         * include/string.h (__strsep): Add libc_hidden_proto.
3609         * string/strsep.c (__strsep): Add libc_hidden_def.
3611 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3613         [BZ #18822]
3614         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
3615         attribute_hidden.
3616         (__spawni): Likewise.
3618 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3620         [BZ #18822]
3621         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
3622         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
3623         libc_hidden_def.
3625 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3627         [BZ #18822]
3628         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
3630 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3632         [BZ #18822]
3633         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
3634         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
3635         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3636         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
3637         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
3638         Likewise.
3639         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
3640         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
3642 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3644         [BZ #18822]
3645         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
3646         (__dcigettext): Likewise.
3648 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3650         [BZ #18822]
3651         * include/sys/sysinfo.h (__get_nprocs_conf): Add
3652         libc_hidden_proto.
3653         (__get_nprocs): Likewise.
3654         (__get_phys_pages): Likewise.
3655         (__get_avphys_pages): Likewise.
3656         (__get_child_max): Add attribute_hidden.
3657         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
3658         (__get_nprocs): Likewise.
3659         (__get_phys_pages): Likewise.
3660         (__get_avphys_pages): Likewise.
3661         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
3662         libc_hidden_def.
3663         (__get_nprocs): Likewise.
3664         (__get_phys_pages): Likewise.
3665         (__get_avphys_pages): Likewise.
3666         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
3667         libc_hidden_def.
3668         (__get_nprocs_conf): Likewise.
3669         (__get_phys_pages): Likewise.
3670         (__get_avphys_pages): Likewise.
3672 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3674         [BZ #18822]
3675         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
3676         attribute_hidden.
3677         (__netlink_close): Likewise.
3678         (__netlink_free_handle): Likewise.
3679         (__netlink_request): Likewise.
3681 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3683         [BZ #18822]
3684         * include/rpc/rpc.h (__rpc_thread_variables): Add
3685         attribute_hidden.
3686         (__rpc_thread_svc_cleanup): Likewise.
3687         (__rpc_thread_clnt_cleanup): Likewise.
3688         (__rpc_thread_key_cleanup): Likewise.
3690 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3692         [BZ #18822]
3693         * include/sys/uio.h (__readv): Add libc_hidden_proto.
3694         (__writev): Likewise.
3695         * misc/readv.c (__readv): Add libc_hidden_def.
3696         * misc/writev.c (__writev): Likewise.
3697         * sysdeps/posix/readv.c (__readv): Likewise.
3698         * sysdeps/posix/writev.c (__writev): Likewise.
3699         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
3700         (__readv): Likewise.
3701         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
3702         (__writev): Likewise.
3704 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3706         [BZ #18822]
3707         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
3708         (__regcomp): Add libc_hidden_proto.
3709         (__regexec): Likewise.
3710         (__regfree): Likewise.
3711         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
3712         (__regfree): Likewise.
3713         * posix/regexec.c (__regexec): Likewise.
3715 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3717         [BZ #18822]
3718         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
3719         (__getutent): Likewise.
3720         (__getutid): Likewise.
3721         (__getutline): Likewise.
3722         (__pututline): Likewise.
3723         (__getutent_r): Likewise.
3724         (__getutid_r): Likewise.
3725         (__getutline_r): Likewise.
3726         (__utmpname): Add attribute_hidden.
3727         (__setutent): Likewise.
3728         (__endutent): Likewise.
3729         * login/getutent.c (__getutent): Add libc_hidden_def.
3730         * login/getutent_r.c (__getutent_r): Likewise.
3731         (__pututline): Likewise.
3732         * login/getutid.c (__getutid): Likewise.
3733         * login/getutid_r.c (__getutid_r): Likewise.
3734         * login/getutline.c (__getutline): Likewise.
3735         * login/getutline_r.c (__getutline_r): Likewise.
3736         * login/updwtmp.c (__updwtmp): Likewise.
3738 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3740         [BZ #18822]
3741         * include/dirent.h (__opendir): Always add attribute_hidden.
3742         (__fdopendir): Likewise.
3743         (__closedir): Likewise.
3744         (__readdir): Likewise.
3745         (__readdir64): Add libc_hidden_proto.
3746         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
3747         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
3748         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
3749         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
3750         New alias.
3752 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3754         [BZ #18822]
3755         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
3756         * include/netdb.h (__gethostbyaddr_r): Likewise.
3757         (__gethostbyname_r): Likewise.
3758         (__gethostbyname2_r): Likewise.
3759         (__getnetbyaddr_r): Likewise.
3760         (__getnetbyname_r): Likewise.
3761         (__getservbyname_r): Likewise.
3762         (__getservbyport_r): Likewise.
3763         (__getprotobyname_r): Likewise.
3764         (__getprotobynumber_r): Likewise.
3765         (__getnetgrent_r): Likewise.
3766         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
3767         (__getrpcbynumber_r): Likewise.
3768         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
3770 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3772         [BZ #18822]
3773         * include/stdio.h (__fcloseall): Add attribute_hidden.
3774         (__getline): Likewise.
3775         (__path_search): Likewise.
3776         (__gen_tempname): Likewise.
3777         (__libc_message): Likewise.
3778         (__flockfile): Likewise.
3779         (__funlockfile): Likewise.
3780         (__fxprintf): Likewise.
3781         (__fxprintf_nocancel): Likewise.
3783 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3785         [BZ #18822]
3786         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
3787         (__sgetsgent_r): Likewise.
3789 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3791         [BZ #18822]
3792         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
3793         (__statfs64): Likewise.
3794         (__fstatfs64): Likewise.
3795         * include/sys/statvfs.h (__statvfs64): Likewise.
3796         (__fstatvfs64): Likewise.
3797         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
3798         (__statfs_filesize_max): Likewise.
3799         (__statfs_symlinks): Likewise.
3800         (__statfs_chown_restricted): Likewise.
3802 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3804         [BZ #18822]
3805         * include/time.h (__tzstring): Add attribute_hidden.
3806         (__tzfile_read): Likewise.
3807         (__tzfile_compute): Likewise.
3808         (__tzfile_default): Likewise.
3809         (__tzset_parse_tz): Likewise.
3810         (__offtime): Likewise.
3811         (__asctime_r): Likewise.
3812         (__tzset): Likewise.
3813         (__tz_convert): Likewise.
3814         (__getdate_r): Likewise.
3815         (__getclktck): Likewise.
3817 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3819         [BZ #18822]
3820         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
3821         (__nscd_unmap): Likewise.
3822         (__nscd_cache_search): Likewise.
3823         (__nscd_get_nl_timestamp): Likewise.
3824         (__nscd_getpwnam_r): Likewise.
3825         (__nscd_getpwuid_r): Likewise.
3826         (__nscd_getgrnam_r): Likewise.
3827         (__nscd_getgrgid_r): Likewise.
3828         (__nscd_gethostbyname_r): Likewise.
3829         (__nscd_gethostbyname2_r): Likewise.
3830         (__nscd_gethostbyaddr_r): Likewise.
3831         (__nscd_getai): Likewise.
3832         (__nscd_getgrouplist): Likewise.
3833         (__nscd_getservbyname_r): Likewise.
3834         (__nscd_getservbyport_r): Likewise.
3835         (__nscd_innetgr): Likewise.
3836         (__nscd_setnetgrent): Likewise.
3838 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3840         [BZ #18822]
3841         * include/gmp.h: Declare internal functions only if _ISOMAC is
3842         undefined.
3843         (__mpn_extract_double): Add attribute_hidden.
3844         (__mpn_extract_long_double): Likewise.
3845         (__mpn_extract_float128): Likewise.
3846         (__mpn_construct_float): Likewise.
3847         (__mpn_construct_double): Likewise.
3848         (__mpn_construct_long_double): Likewise.
3849         (__mpn_construct_float128): Likewise.
3850         (mpn_add_1): Likewise.
3851         (mpn_addmul_1): Likewise.
3852         (mpn_add_n): Likewise.
3853         (mpn_cmp): Likewise.
3854         (mpn_divrem): Likewise.
3855         (mpn_lshift): Likewise.
3856         (mpn_mul): Likewise.
3857         (mpn_mul_1): Likewise.
3858         (mpn_rshift): Likewise.
3859         (mpn_sub_1): Likewise.
3860         (mpn_submul_1): Likewise.
3861         (mpn_sub_n): Likewise.
3863 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3865         [BZ #18822]
3866         * include/wchar.h (__wcsnlen): Add attribute_hidden.
3867         (__wcscat): Likewise.
3868         (__btowc): Likewise.
3869         (__wcrtomb): Likewise.
3870         (__mbsrtowcs): Likewise.
3871         (__wcsrtombs): Likewise.
3872         (__mbsnrtowcs): Likewise.
3873         (__wcsnrtombs): Likewise.
3874         (__wcsncpy): Likewise.
3875         (__wcpncpy): Likewise.
3876         (__wmemcpy): Likewise.
3877         (__wmempcpy): Likewise.
3878         (__wmemmove): Likewise.
3879         (__wcschrnul): Likewise.
3880         (__vfwscanf): Likewise.
3881         (__vswprintf): Likewise.
3882         (__fwprintf): Likewise.
3883         (__vfwprintf): Likewise.
3885 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3887         [BZ #18822]
3888         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
3889         (__getgrgid_r): Likewise.
3890         (__getgrnam_r): Likewise.
3891         * include/pwd.h (__getpwuid_r): Likewise.
3892         (__getpwnam_r): Likewise.
3893         (__fgetpwent_r): Likewise.
3894         * include/shadow.h (__getspnam_r): Likewise.
3895         (__sgetspent_r): Likewise.
3896         (__fgetspent_r): Likewise.
3898 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3900         [BZ #18822]
3901         * include/unistd.h (__access): Add attribute_hidden.
3902         (__lseek64): Likewise.
3903         (__libc_pread64): Likewise.
3904         (__pipe2): Likewise.
3905         (__sleep): Likewise.
3906         (__chdir): Likewise.
3907         (__fchdir): Likewise.
3908         (__getcwd): Likewise.
3909         (__rmdir): Likewise.
3910         (__execvpe): Likewise.
3911         (__execve): Likewise.
3912         (__setsid): Likewise.
3913         (__getuid): Likewise.
3914         (__geteuid): Likewise.
3915         (__getgid): Likewise.
3916         (__getegid): Likewise.
3917         (__getgroups): Likewise.
3918         (__group_member): Likewise.
3919         (__ttyname_r): Likewise.
3920         (__isatty): Likewise.
3921         (__readlink): Likewise.
3922         (__unlink): Likewise.
3923         (__gethostname): Likewise.
3924         (__profil): Likewise.
3925         (__getdtablesize): Likewise.
3926         (__brk): Likewise.
3927         (__ftruncate): Likewise.
3928         (__ftruncate64): Likewise.
3930 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3932         [BZ #18822]
3933         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
3934         * argp/argp-fs-xinl.c: Likewise.
3935         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
3936         * argp/argp-parse.c: Include <argp.h>.
3937         * argp/argp-xinl.c: Likewise.
3938         * include/argp-fmtstream.h: New file.
3939         * include/argp.h (__argp_error): Add attribute_hidden.
3940         (__argp_failure): Likewise.
3941         (__argp_input): Likewise.
3942         (__argp_state_help): Likewise.
3944 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3946         [BZ #18822]
3947         * include/wchar.h (____wcstof_l_internal): New prototype.
3948         (____wcstod_l_internal): Likewise.
3949         (____wcstold_l_internal): Likewise.
3950         (____wcstol_l_internal): Likewise.
3951         (____wcstoul_l_internal): Likewise.
3952         (____wcstoll_l_internal): Likewise.
3953         (____wcstoull_l_internal): Likewise.
3954         (____wcstof128_l_internal): Likewise.
3955         * sysdeps/ieee754/float128/wcstof128.c
3956         (____wcstof128_l_internal): Removed.
3957         * sysdeps/ieee754/float128/wcstof128_l.c
3958         (____wcstof128_l_internal): Likewise.
3959         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
3960         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
3961         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
3962         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
3963         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
3964         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
3965         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
3966         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
3967         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
3968         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
3970 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3972         [BZ #18822]
3973         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
3974         instead of <sys/statvfs.h>.
3975         (__internal_statvfs): Removed.
3976         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
3977         instead of <sys/statvfs.h>.
3978         (__internal_statvfs64): Removed.
3979         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
3980         "internal_statvfs.h" instead of <sys/statvfs.h>.
3981         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
3982         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
3983         instead of <sys/statvfs.h>.
3984         (__internal_statvfs): Removed.
3985         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
3986         instead of <sys/statvfs.h>.
3987         (__internal_statvfs64): Removed.
3989 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3991         [BZ #18822]
3992         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
3993         (__gconv_close): Likewise.
3994         (__gconv): Likewise.
3995         (__gconv_find_transform): Likewise.
3996         (__gconv_lookup_cache): Likewise.
3997         (__gconv_compare_alias_cache): Likewise.
3998         (__gconv_load_cache): Likewise.
3999         (__gconv_get_path): Likewise.
4000         (__gconv_close_transform): Likewise.
4001         (__gconv_release_cache): Likewise.
4002         (__gconv_find_shlib): Likewise.
4003         (__gconv_release_shlib): Likewise.
4004         (__gconv_get_builtin_trans): Likewise.
4005         (__gconv_compare_alias): Likewise.
4006         * include/dlfcn.h (_dlerror_run): Likewise.
4007         * include/stdio.h (__fortify_fail_abort): Likewise.
4008         * include/time.h (__tz_compute): Likewise.
4009         (__strptime_internal): Likewise.
4010         * intl/gettextP.h (_nl_find_domain): Likewise.
4011         (_nl_load_domain): Likewise.
4012         (_nl_find_msg): Likewise.
4013         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
4014         (EXTRACT_PLURAL_EXPRESSION): Likewise.
4015         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
4016         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
4017         (__gai_find_request): Likewise.
4018         (__gai_remove_request): Likewise.
4019         (__gai_notify): Likewise.
4020         (__gai_notify_only): Likewise.
4021         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4022         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4023         (_dl_non_dynamic_init): Likewise.
4024         (_dl_aux_init): Likewise.
4025         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
4026         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4027         Likewise.
4028         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
4029         (__wcsmbs_clone_conv): Likewise.
4030         (__wcsmbs_named_conv): Likewise.
4032 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4034         [BZ #18822]
4035         * include/stdlib.h (__random): Add attribute_hidden.
4036         (__random_r): Likewise.
4037         (__srandom_r): Likewise.
4038         (__initstate_r): Likewise.
4039         (__setstate_r): Likewise.
4040         (__erand48_r): Likewise.
4041         (__nrand48_r): Likewise.
4042         (__jrand48_r): Likewise.
4043         (__srand48_r): Likewise.
4044         (__seed48_r): Likewise.
4045         (__lcong48_r): Likewise.
4046         (__drand48_iterate): Likewise.
4047         (__setenv): Likewise.
4048         (__unsetenv): Likewise.
4049         (__clearenv): Likewise.
4050         (__ptsname_r): Likewise.
4051         (__posix_openpt): Likewise.
4052         (__add_to_environ): Likewise.
4053         (__realpath): Add libc_hidden_proto.
4054         (__ecvt_r): Likewise.
4055         (__fcvt_r): Likewise.
4056         (__qecvt_r): Likewise.
4057         (__qfcvt_r): Likewise.
4058         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
4059         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
4061 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4063         [BZ #18822]
4064         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
4065         * include/time.h (__mktime_internal): Likewise.
4066         * libio/iolibio.h (__fopen_internal): Likewise.
4068 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
4070         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
4071         pointer in frame.
4072         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
4073         Correct offset used to restore PIC register.
4075 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
4077         [BZ libc/22165]
4078         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
4079         code to load address of __getcontext_ret when generating PIC code.
4081 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
4083         * elf/Makefile (tests-static-internal): Add
4084         tst-tls1-static-non-pie.
4085         (LDFLAGS-tst-tls1-static-non-pie): New.
4086         * elf/tst-tls1-static-non-pie.c: New file.
4088 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4090         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
4091         (asinh): Define using libm_alias_double.
4092         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
4093         (cbrt): Define using libm_alias_double.
4094         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
4095         <libm-alias-double.h>.
4096         (copysign): Define using libm_alias_double.
4097         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
4098         (erf): Define using libm_alias_double.
4099         (erfc): Likewise.
4100         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
4101         (expm1): Define using libm_alias_double.
4102         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
4103         (fabs): Define using libm_alias_double.
4104         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
4105         libm_alias_double.
4106         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
4107         <libm-alias-double.h>.
4108         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
4109         libm_alias_double.
4110         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
4111         <libm-alias-double.h>.
4112         (getpayload): Define using libm_alias_double.
4113         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
4114         <libm-alias-double.h>.
4115         (llrint): Define using libm_alias_double.
4116         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
4117         (lrint): Define using libm_alias_double.
4118         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
4119         <libm-alias-double.h>.
4120         (nextup): Define using libm_alias_double.
4121         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
4122         <libm-alias-double.h>.
4123         (roundeven): Define using libm_alias_double.
4124         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
4125         libm_alias_double.
4126         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
4127         <libm-alias-double.h>.
4128         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
4129         using libm_alias_double.
4130         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
4131         (cos): Define using libm_alias_double.
4132         (sin): Likewise.
4133         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
4134         <libm-alias-double.h>.
4135         (sincos): Define using libm_alias_double.
4136         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
4137         (tanh): Define using libm_alias_double.
4138         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
4139         <libm-alias-double.h>.
4140         (totalorder): Define using libm_alias_double.
4141         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
4142         <libm-alias-double.h>.
4143         (totalordermag): Define using libm_alias_double.
4144         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
4145         libm_alias_double.
4146         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
4147         libm_alias_double.
4148         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
4149         <libm-alias-double.h>.
4150         (getpayload): Define using libm_alias_double.
4151         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
4152         <libm-alias-double.h>.
4153         (roundeven): Define using libm_alias_double.
4154         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
4155         <libm-alias-double.h>.
4156         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
4157         <libm-alias-double.h>.
4158         (totalorder): Define using libm_alias_double.
4159         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
4160         <libm-alias-double.h>.
4161         (totalordermag): Define using libm_alias_double.
4162         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
4163         libc compat symbol here.
4164         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
4165         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
4166         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
4167         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
4168         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
4169         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
4170         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
4171         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
4172         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
4173         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
4175 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4177         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
4178         _dl_relocate_static_pie instead of _dl_start to compute load
4179         address in static PIE.  Return 0 if _DYNAMIC is undefined for
4180         static executable.
4182 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4184         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
4185         _DYNAMIC is undefined for static executable.
4187 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4189         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
4191 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4193         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4195 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4197         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
4198         (__ieee754_lgamma_r): Use fabs rather than __fabs.
4199         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4200         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4201         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
4202         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
4203         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4204         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
4205         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
4206         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4207         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4208         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
4209         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4210         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4211         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4212         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4213         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
4215 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4217         * math/bits/cmathcalls.h (cimag): Remove inline.
4218         (creal): Remove inline.
4219         (conj): Remove inline.
4221 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4223         * math/Makefile (type-float-routines): Add e_powf_log2_data.
4224         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
4225         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
4226         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
4227         (issignalingf_inline): Likewise.
4228         (POWF_LOG2_TABLE_BITS): Likewise.
4229         (POWF_LOG2_POLY_ORDER): Likewise.
4230         (POWF_SCALE_BITS): Likewise.
4231         (POWF_SCALE): Likewise.
4232         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
4233         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
4234         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
4236 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4238         * math/Makefile (type-float-routines): Add e_log2f_data.
4239         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
4240         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
4241         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
4242         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
4243         * sysdeps/i386/fpu/e_log2f_data.c: New file.
4244         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
4245         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
4247 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4249         * math/Makefile (type-float-routines): Add e_logf_data.
4250         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
4251         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
4252         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
4253         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
4254         * sysdeps/i386/fpu/e_logf_data.c: New file.
4255         * sysdeps/ia64/fpu/e_logf_data.c: New file.
4256         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
4258 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
4260         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
4261         undefined _DYNAMIC in PIE libc.a.
4262         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4263         Likewse.
4265 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4267         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
4268         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
4269         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
4270         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
4271         (__signbit): Remove.
4272         (__signbitl): Remove.
4273         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
4274         (__signbit): Remove.
4275         (__signbitl): Remove.
4276         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
4277         (__signbit): Remove.
4278         (__signbitl): Remove.
4279         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
4280         (__signbit): Remove.
4281         (__signbitl): Remove.
4282         * sysdeps/tile/bits/mathinline.h: Delete file.
4283         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
4284         (__signbit): Remove.
4285         (__signbitl): Remove.
4287 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4289         * math/math.h: Improve handling of C99 isgreater macros.
4290         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
4291         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
4292         * sysdeps/powerpc/bits/mathinline.h: Likewise.
4293         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4294         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
4296 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4298         * sysdeps/aarch64/libm-test-ulps: Update.
4300 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
4302         [BZ #22225]
4303         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4304         math_opt_barrier on argument when doing arithmetic on it.
4305         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4306         Likewise.  Use math_force_eval not math_opt_barrier after
4307         arithmetic.
4308         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
4309         math_opt_barrier on argument when doing arithmetic on it.
4310         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4311         Likewise.
4313 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
4315         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
4316         libc_hidden_def.
4317         (__freeifaddrs): Likewise.
4319 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4321         * include/dirent.h (__dirfd): New declaration.
4322         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
4323         alias.
4324         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
4325         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
4326         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
4327         * include/unistd.h (__revoke): New declaration.
4328         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
4329         alias.
4330         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
4331         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
4332         revoke.
4333         * include/dirent.h (__seekdir): New declaration.
4334         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
4335         redefine as weak alias.
4336         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
4337         of seekdir.
4338         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
4339         and use libc_hidden_def on them.
4340         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
4341         them.
4342         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
4343         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
4344         instead of getifaddrs and freeifaddrs.
4346 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4348         [BZ #18822]
4349         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
4350         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
4351         (__dso_handle): Remove declaration.
4352         * dlfcn/tstatexit.c (__dso_handle): Removed.
4353         (main): Don't check __dso_handle.
4354         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
4355         (main): Don't check __dso_handle.
4356         * include/dso_handle.h: New file.
4357         * malloc/mtrace.c: Include <dso_handle.h>.
4358         (mtrace): Pass __dso_handle directly.
4359         * nptl/pthread_atfork.c: Include <dso_handle.h>.
4360         (__dso_handle): Remove declaration.
4361         (__pthread_atfork): Pass __dso_handle directly.
4362         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
4363         (__dso_handle): Removed.
4364         * posix/wordexp-test.c: Include <dso_handle.h>.
4365         (__dso_handle): Remove declaration.
4366         (__app_register_atfork): Pass __dso_handle directly.
4367         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
4368         (__dso_handle): Remove declaration.
4369         (at_quick_exit): Pass __dso_handle directly.
4370         * stdlib/atexit.c: Include <dso_handle.h>.
4371         (__dso_handle): Remove declaration.
4372         (atexit): Pass __dso_handle directly.
4373         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
4374         (__dso_handle): Removed.
4376 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4378         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
4379         using VDSO.
4381 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
4383         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
4384         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
4385         values to correct default value for given type.
4387 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4389         [BZ #22101]
4390         * elf/Makefile (tests): Add tst-debug1.
4391         ($(objpfx)tst-debug1): New.
4392         ($(objpfx)tst-debug1.out): Likewise.
4393         ($(objpfx)tst-debug1mod1.so): Likewise.
4394         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
4395         with p_filesz == 0.
4396         * elf/tst-debug1.c: New file.
4398 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4400         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
4401         Define using __ifunc.
4403 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4405         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
4406         exp2f() values.
4408 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4410         [BZ #22156]
4411         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
4413 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4415         * resolv/Makefile (tests-internal): Fix typo in comment.
4417 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4419         * resolv/nss_dns/dns-host.c: Fix typo in comment.
4421 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4423         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
4424         Use an union instead of a max_align_t array for __space,
4425         so that __space is the same size on all platforms.
4426         * malloc/scratch_buffer_grow_preserve.c
4427         (__libc_scratch_buffer_grow_preserve): Likewise.
4429         [BZ #22183]
4430         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
4431         version to 2.
4432         * posix/Makefile (routines): Add glob-lstat-compat and
4433         glob64-lstat-compat.
4434         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
4435         * posix/glob-lstat-compat.c: New file.
4436         * posix/glob64-lstat-compat.c: Likewise.
4437         * posix/tst-glob_lstat_compat.c: Likewise.
4438         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
4439         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
4440         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
4441         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
4442         Likewise.
4443         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
4444         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
4445         * posix/glob.c (glob_lstat): New function.
4446         (glob): Rename to __glob and add versioned symbol to 2.27.
4447         (glob_in_dir): Use glob_lstat.
4448         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
4449         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4450         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
4451         2.27.
4452         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
4453         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
4454         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
4455         gl_lstat on glob call.
4456         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
4457         and glob64 symbols.
4458         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4459         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4460         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4461         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4462         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4463         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4464         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4465         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4466         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
4467         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4468         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4469         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4471         Likewise.
4472         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
4473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
4474         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4475         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4476         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4477         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4478         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4479         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
4480         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
4481         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
4482         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4483         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4485 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
4487         * configure.ac (AS): Require binutils 2.25 or later.
4488         * configure: Regenerated.
4490 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4492         [BZ #22207]
4493         * stdlib/test-atexit-race-common.c (do_test): Minimize required
4494         VM size.
4496 2017-09-25  DJ Delorie  <dj@redhat.com>
4498         [BZ #22161]
4499         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
4500         resetting timeout.
4502 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
4504         * sysdeps/ieee754/dbl-64/sincos32.h
4505         [SINCCOS32_H]: Remove define.
4506         [SINCOS32_H]: Define.
4508 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4510         * math/Versions (expf): New libm symbol at GLIBC_2.27.
4511         (exp2f): Likewise.
4512         * math/w_exp2f.c: New file.
4513         * math/w_expf.c: New file.
4514         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
4515         * math/w_expf_compat.c (__expf_compat): Likewise.
4516         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
4517         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4518         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4519         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4520         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4521         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4522         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4523         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4524         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4525         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4526         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4527         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4528         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4529         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4531         Likewise.
4532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4533         Likewise.
4534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4535         Likewise.
4536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4537         Likewise.
4538         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4539         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4540         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4541         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4542         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4543         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4544         Likewise.
4545         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4546         Likewise.
4547         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4548         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4549         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4551 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4553         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
4554         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
4555         (roundtoint, converttoint): Likewise.
4556         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
4557         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
4558         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
4559         * sysdeps/ieee754/flt-32/math_config.h: New file.
4560         * sysdeps/ieee754/flt-32/math_errf.c: New file.
4561         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
4562         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
4563         * sysdeps/i386/fpu/math_errf.c: New file.
4564         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
4565         * sysdeps/ia64/fpu/math_errf.c: New file.
4566         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
4567         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
4569 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4571         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
4572         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
4573         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
4574         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
4575         to make sure that these symbols are defined.
4576         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
4577         of <limits.h>
4578         (__need_NULL): Do not define.
4579         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
4580         alignment.
4581         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
4582         CMGROUP_MAX, cmsgcred): Do not define.
4583         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
4584         NULL.
4585         * bits/socket.h: Likewise.
4586         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
4587         __gettimeofday instead of gettimeofday.
4588         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
4589         instead of settimeofday.
4591 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
4593         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
4594         (asinhf): Define using libm_alias_float.
4595         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
4596         (atanf): Define using libm_alias_float.
4597         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
4598         (cbrtf): Define using libm_alias_float.
4599         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
4600         (ceilf): Define using libm_alias_float.
4601         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
4602         <libm-alias-float.h>.
4603         (copysignf): Define using libm_alias_float.
4604         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
4605         (cosf): Define using libm_alias_float.
4606         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
4607         (erff): Define using libm_alias_float.
4608         (erfcf): Likewise.
4609         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
4610         (expm1f): Define using libm_alias_float.
4611         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
4612         (fabsf): Define using libm_alias_float.
4613         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
4614         (floorf): Define using libm_alias_float.
4615         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
4616         (frexpf): Define using libm_alias_float.
4617         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
4618         libm_alias_float.
4619         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
4620         <libm-alias-float.h>.
4621         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
4622         libm_alias_float.
4623         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
4624         <libm-alias-float.h>.
4625         (getpayloadf): Define using libm_alias_float.
4626         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
4627         <libm-alias-float.h>.
4628         (llrintf): Define using libm_alias_float.
4629         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
4630         <libm-alias-float.h>.
4631         (llroundf): Define using libm_alias_float.
4632         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
4633         (logbf): Define using libm_alias_float.
4634         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
4635         (lrintf): Define using libm_alias_float.
4636         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
4637         (lroundf): Define using libm_alias_float.
4638         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
4639         (modff): Define using libm_alias_float.
4640         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
4641         <libm-alias-float.h>.
4642         (nearbyintf): Define using libm_alias_float.
4643         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
4644         <libm-alias-float.h>.
4645         (nextafterf): Define using libm_alias_float.
4646         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
4647         <libm-alias-float.h>.
4648         (nextupf): Define using libm_alias_float.
4649         * sysdeps/ieee754/flt-32/s_remquof.c: Include
4650         <libm-alias-float.h>.
4651         (remquof): Define using libm_alias_float.
4652         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
4653         (rintf): Define using libm_alias_float.
4654         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
4655         <libm-alias-float.h>.
4656         (roundevenf): Define using libm_alias_float.
4657         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
4658         (roundf): Define using libm_alias_float.
4659         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
4660         using libm_alias_float.
4661         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
4662         <libm-alias-float.h>.
4663         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
4664         Define using libm_alias_float.
4665         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
4666         <libm-alias-float.h>.
4667         (sincosf): Define using libm_alias_float.
4668         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
4669         (sinf): Define using libm_alias_float.
4670         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
4671         (tanf): Define using libm_alias_float.
4672         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
4673         (tanhf): Define using libm_alias_float.
4674         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
4675         <libm-alias-float.h>.
4676         (totalorderf): Define using libm_alias_float.
4677         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
4678         <libm-alias-float.h>.
4679         (totalordermagf): Define using libm_alias_float.
4680         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
4681         (truncf): Define using libm_alias_float.
4682         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
4683         libm_alias_float.
4684         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
4685         libm_alias_float.
4687 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4689         [BZ #22146]
4690         math/math.h: Let fpclassify use the builtin in C++ mode, even
4691         when optimazing for size.
4693 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
4695         * csu/Makefile (generated): Do not add version-info.h.
4696         (before-compile): Likewise.
4697         (all-Banner-files): Remove variable.
4698         ($(objpfx)version-info.h): Remove rule.
4699         * csu/version.c (banner): Do not include "version-info.h".
4700         * libidn/Banner: Remove.
4701         * manual/contrib.texi (Simon Josefsson): New entry.
4703 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4705         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4706         Remove conditionals on LDBL_MANT_DIG.
4707         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4708         (__ieee754_lgammal_r): Likewise.
4710 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4712         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
4713         _Float128 and L().
4714         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
4715         _Float128 and L(). Replace _Float128 with long double and L(x)
4716         with xL, throughout the file.
4717         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4718         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4719         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4720         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4722 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4724         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
4725         sysdeps/ieee754/ldbl-128ibm.
4726         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
4727         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
4728         of including it.  Keep _Float128 and L() intact.  These will be
4729         reviewed by a separate patch.
4730         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4731         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4732         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4733         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4735 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4737         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
4738         (__finitef128): Define to __redirect___finitef128.
4739         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
4740         (__isinff128): Define to __redirect___isinff128.
4741         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
4742         (__isnanf128): Define to __redirect___isnanf128.
4744 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4746         * sysdeps/powerpc/powerpc64le/Makefile
4747         (CFLAGS-tst-strtod-nan-locale.c): New variable.
4748         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
4750 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
4751             Carlos O'Donell  <carlos@redhat.com>
4753         [BZ #22180]
4754         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
4755         * stdlib/test-dlclose-exit-race.c: New file.
4756         * stdlib/test-dlclose-exit-race-helper.c: New file.
4757         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
4759 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
4761         * crypt/Banner: Remove file.
4762         * nptl/Banner: Likewise.
4763         * resolv/Banner: Likewise.
4764         * soft-fp/Banner: Likewise.
4765         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
4766         ($(objpfx)version.d): Remove dependency on banner.h.
4767         ($(objpfx)version.os): Likewise.
4768         * nptl/version.c (banner): Do not include banner.h.
4769         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
4770         Jelinek and BIND code.
4772 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4773             Carlos O'Donell  <carlos@redhat.com>
4775         * support/xdlfcn.h: New file.
4776         * support/xdlfcn.c: New file.
4777         * support/Makefile (libsupport-routines): Add xdlfcn.
4778         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
4780 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
4782         [BZ #20142]
4783         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4784         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
4785         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
4786         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
4787         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
4788         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
4789         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
4790         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
4792 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4793             Ricky Zhou  <rickyz@google.com>
4794             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
4796         [BZ #14333]
4797         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
4798         Remove atomics.
4799         (__new_exitfn): Fail registration when we finished at_exit processing.
4800         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
4801         * stdlib/on_exit.c (__on_exit): Likewise.
4802         * stdlib/exit.c (__exit_funcs_done): New variable.
4803         (__run_exit_handlers): Use __exit_funcs_lock.
4804         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
4805         declarations.
4806         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
4807         (test-cxa_atexit-race, test-on_exit-race): New tests.
4808         * stdlib/test-atexit-race-common.c: New file.
4809         * stdlib/test-atexit-race.c: New file.
4810         * stdlib/test-at_quick_exit-race.c: New file.
4811         * stdlib/test-cxa_atexit-race.c: New file.
4812         * stdlib/test-on_exit-race.c: New file.
4814 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4816         * benchtests/Makefile: Add exp2f and log2f benchmarks.
4817         * benchtests/exp2f-inputs: Copy of expf-inputs.
4818         * benchtests/log2f-inputs: Copy of logf-inputs.
4820 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
4822         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
4823         Explicitly take address of first element of array arguments in
4824         call to INLINE_SYSCALL.
4826 2017-09-19  Andreas Schwab  <schwab@suse.de>
4828         [BZ #22134]
4829         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
4830         execveat first.
4831         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
4832         unimplemented.
4833         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
4834         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
4835         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4836         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
4837         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4838         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4839         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4840         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4841         * posix/Makefile (tests): Add tst-fexecve.
4842         * posix/tst-fexecve.c: New file.
4844 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4846         * benchtests/Makefile: Add logf benchmark.
4847         * benchtests/logf-inputs: Add reduced trace from wrf_r.
4849 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4851         * benchtests/Makefile: Add expf benchmark.
4852         * benchtests/expf-inputs: Add reduced trace from wrf_r.
4854 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4856         * csu/Makefile: Add -funwind-tables to libc-start.c.
4857         * debug/Makefile: Add -funwind-tables to backtrace.c.
4858         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
4859         * sysdeps/arm/Makefile: Likewise.
4860         * sysdeps/i386/Makefile: Likewise.
4861         * sysdeps/m68k/Makefile: Likewise.
4862         * sysdeps/mips/Makefile: Likewise.
4863         * sysdeps/nios2/Makefile: Likewise.
4864         * sysdeps/sh/Makefile: Likewise.
4865         * sysdeps/sparc/Makefile: Likewise.
4867 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
4869         * benchtests/Makefile (bench-math): Add trunc and truncf.
4870         (CFLAGS-bench-trunc.c): New variable.
4871         (CFLAGS-bench-truncf.c): Likewise.
4872         * benchtests/trunc-inputs: New file.
4873         * benchtests/truncf-inputs: Likewise.
4875 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4877         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
4879 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
4881         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
4882         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
4883         redefine.
4884         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
4885         (exp10l): Define as weak alias.
4886         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
4887         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
4888         and redefine.
4889         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
4890         (remainderl): Define as weak alias.
4892         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
4893         (fmal): Define using libm_alias_ldouble.
4894         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
4895         (acoshl): Define using libm_alias_ldouble.
4896         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
4897         (acosl): Define using libm_alias_ldouble.
4898         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
4899         (asinl): Define using libm_alias_ldouble.
4900         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
4901         (atan2l): Define using libm_alias_ldouble.
4902         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
4903         (atanhl): Define using libm_alias_ldouble.
4904         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
4905         (coshl): Define using libm_alias_ldouble.
4906         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
4907         (exp10l): Define using libm_alias_ldouble.
4908         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
4909         (exp2l): Define using libm_alias_ldouble.
4910         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
4911         (expl): Define using libm_alias_ldouble.
4912         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
4913         (fmodl): Define using libm_alias_ldouble.
4914         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
4915         (hypotl): Define using libm_alias_ldouble.
4916         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
4917         (j0l): Define using libm_alias_ldouble.
4918         (y0l): Likewise.
4919         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
4920         (j1l): Define using libm_alias_ldouble.
4921         (y1l): Likewise.
4922         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
4923         (jnl): Define using libm_alias_ldouble.
4924         (ynl): Likewise.
4925         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
4926         (log10l): Define using libm_alias_ldouble.
4927         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
4928         (log2l): Define using libm_alias_ldouble.
4929         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
4930         (logl): Define using libm_alias_ldouble.
4931         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
4932         (powl): Define using libm_alias_ldouble.
4933         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
4934         (remainderl): Define using libm_alias_ldouble.
4935         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
4936         (sinhl): Define using libm_alias_ldouble.
4937         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
4938         (sqrtl): Define using libm_alias_ldouble.
4939         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
4940         (tgammal): Define using libm_alias_ldouble.
4941         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
4942         (exp10l): Do not use long_double_symbol here.
4943         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
4944         [LIBM_SVID_COMPAT] (remainderl): Likewise.
4945         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
4946         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
4947         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
4948         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
4949         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
4950         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
4951         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
4952         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
4953         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
4954         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
4955         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
4956         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
4957         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
4958         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
4959         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
4960         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
4961         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
4962         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
4963         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
4964         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
4966 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
4968         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
4969         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
4971 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4973         * io/read.c (read): Add libc_hidden_weak.
4974         * sysdeps/mach/hurd/read.c (read): Likewise.
4975         * io/write.c (write): Likewise.
4976         * sysdeps/mach/hurd/write.c (write): Likewise.
4977         * io/pread64.c (__pread64): Likewise.
4978         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
4979         * posix/pread64.c (__pread64): Add libc_hidden_def.
4981 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4983         * benchtests/scripts/compare_strings.py: New option -g.
4984         (draw_graph): Print a message that a graph is being generated.
4985         (process_results): Generate graph only if -g is passed.
4986         (main): Process option -g.
4988         * benchtests/scripts/compare_strings.py (process_results):
4989         Better spacing for output.
4991         * benchtests/scripts/compare_strings.py: Use argparse.
4992         * benchtests/README: Document existence of compare_strings.py.
4994 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
4996         * math/s_fma.c: Include <libm-alias-double.h>.
4997         (fma): Define using libm_alias_double.
4998         * math/s_nextafter.c: Include <libm-alias-double.h>.
4999         (nextafter): Define using libm_alias_double.
5000         * math/w_acos_compat.c: Include <libm-alias-double.h>.
5001         (acos): Define using libm_alias_double.
5002         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
5003         (aocsh): Define using libm_alias_double.
5004         * math/w_asin_compat.c: Include <libm-alias-double.h>.
5005         (asin): Define using libm_alias_double.
5006         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
5007         (atan2): Define using libm_alias_double.
5008         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
5009         (atanh): Define using libm_alias_double.
5010         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
5011         (cosh): Define using libm_alias_double.
5012         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
5013         (exp10): Define using libm_alias_double.
5014         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
5015         (exp2): Define using libm_alias_double.
5016         * math/w_exp_compat.c: Include <libm-alias-double.h>.
5017         (exp): Define using libm_alias_double.
5018         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
5019         (fmod): Define using libm_alias_double.
5020         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
5021         (hypot): Define using libm_alias_double.
5022         * math/w_j0_compat.c: Include <libm-alias-double.h>.
5023         (j0): Define using libm_alias_double.
5024         (y0): Likewise.
5025         * math/w_j1_compat.c: Include <libm-alias-double.h>.
5026         (j1): Define using libm_alias_double.
5027         (y1): Likewise.
5028         * math/w_jn_compat.c: Include <libm-alias-double.h>.
5029         (jn): Define using libm_alias_double.
5030         (yn): Likewise.
5031         * math/w_log10_compat.c: Include <libm-alias-double.h>.
5032         (log10): Define using libm_alias_double.
5033         * math/w_log2_compat.c: Include <libm-alias-double.h>.
5034         (log2): Define using libm_alias_double.
5035         * math/w_log_compat.c: Include <libm-alias-double.h>.
5036         (log): Define using libm_alias_double.
5037         * math/w_pow_compat.c: Include <libm-alias-double.h>.
5038         (pow): Define using libm_alias_double.
5039         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
5040         (remainder): Define using libm_alias_double.
5041         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
5042         (sinh): Define using libm_alias_double.
5043         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
5044         (sqrt): Define using libm_alias_double.
5045         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
5046         (tgamma): Define using libm_alias_double.
5047         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
5048         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
5049         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
5050         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
5051         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
5052         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
5053         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
5054         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5055         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5056         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5057         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5058         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5059         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
5060         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5061         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5062         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5063         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5064         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5065         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5066         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5067         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5068         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5069         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5070         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5071         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5073         * math/e_acoshl.c: Remove.
5074         * math/e_acosl.c: Likewise.
5075         * math/e_asinl.c: Likewise.
5076         * math/e_atan2l.c: Likewise.
5077         * math/e_atanhl.c: Likewise.
5078         * math/e_coshl.c: Likewise.
5079         * math/e_expl.c: Likewise.
5080         * math/e_fmodl.c: Likewise.
5081         * math/e_gammal_r.c: Likewise.
5082         * math/e_hypotl.c: Likewise.
5083         * math/e_j0l.c: Likewise.
5084         * math/e_j1l.c: Likewise.
5085         * math/e_jnl.c: Likewise.
5086         * math/e_lgammal_r.c: Likewise.
5087         * math/e_log10l.c: Likewise.
5088         * math/e_log2l.c: Likewise.
5089         * math/e_logl.c: Likewise.
5090         * math/e_powl.c: Likewise.
5091         * math/e_rem_pio2l.c: Likewise.
5092         * math/e_sinhl.c: Likewise.
5093         * math/e_sqrtf128.c: Likewise.
5094         * math/e_sqrtl.c: Likewise.
5095         * math/k_cosl.c: Likewise.
5096         * math/k_sinl.c: Likewise.
5097         * math/k_tanl.c: Likewise.
5098         * math/s_asinhl.c: Likewise.
5099         * math/s_atanl.c: Likewise.
5100         * math/s_cbrtl.c: Likewise.
5101         * math/s_erfl.c: Likewise.
5102         * math/s_expm1l.c: Likewise.
5103         * math/s_log1pl.c: Likewise.
5104         * math/s_tanhl.c: Likewise.
5106 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5108         [BZ #21745]
5109         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
5110         [$(subdir) = math] (sysdep_calls): New variable.  Has the
5111         previous contents of sysdep_routines, but re-sorted..
5112         [$(subdir) = math] (sysdep_routines): Re-use the contents from
5113         sysdep_calls.
5114         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
5115         defined in sysdep_calls and replace by the respective m_* names.
5116         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
5117         (compat_symbol): Undefine to avoid duplicated compat symbols in
5118         libc.
5120 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5122         * math/s_fmaf.c: Include <libm-alias-float.h>.
5123         (fmaf): Define using libm_alias_float.
5124         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
5125         (acosf): Define using libm_alias_float.
5126         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
5127         (acoshf): Define using libm_alias_float.
5128         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
5129         (asinf): Define using libm_alias_float.
5130         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
5131         (atan2f): Define using libm_alias_float.
5132         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
5133         (atanhf): Define using libm_alias_float.
5134         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
5135         (coshf): Define using libm_alias_float.
5136         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
5137         (exp10f): Define using libm_alias_float.
5138         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
5139         (fmodf): Define using libm_alias_float.
5140         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
5141         (hypotf): Define using libm_alias_float.
5142         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
5143         (j0f): Define using libm_alias_float.
5144         (y0f): Likewise.
5145         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
5146         (j1f): Define using libm_alias_float.
5147         (y1f): Likewise.
5148         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
5149         (jnf): Define using libm_alias_float.
5150         (ynf): Likewise.
5151         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
5152         (log10f): Define using libm_alias_float.
5153         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
5154         (log2f): Define using libm_alias_float.
5155         * math/w_logf_compat.c: Include <libm-alias-float.h>.
5156         (logf): Define using libm_alias_float.
5157         * math/w_powf_compat.c: Include <libm-alias-float.h>.
5158         (powf): Define using libm_alias_float.
5159         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
5160         (remainderf): Define using libm_alias_float.
5161         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
5162         (sinhf): Define using libm_alias_float.
5163         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
5164         (sqrtf): Define using libm_alias_float.
5165         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
5166         (tgammaf): Define using libm_alias_float.
5168 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5170         * include/math.h (roundeven): Change hidden_proto call to
5171         __roundeven.
5172         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
5173         alias.
5174         [NO_LONG_DOUBLE] (__j0l): New strong alias.
5175         (y0): Rename to __y0 and define as weak alias.
5176         [NO_LONG_DOUBLE] (__y0l): New strong alias.
5177         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
5178         alias.
5179         (y0f): Rename to __y0f and define as weak alias.
5180         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
5181         alias.
5182         [NO_LONG_DOUBLE] (__j1l): New strong alias.
5183         (y1): Rename to __y1 and define as weak alias.
5184         [NO_LONG_DOUBLE] (__y1l): New strong alias.
5185         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
5186         alias.
5187         (y1f): Rename to __y1f and define as weak alias.
5188         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
5189         alias.
5190         [NO_LONG_DOUBLE] (__jnl): New strong alias.
5191         (yn): Rename to __yn and define as weak alias.
5192         [NO_LONG_DOUBLE] (__ynl): New strong alias.
5193         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
5194         alias.
5195         (ynf): Rename to __ynf and define as weak alias.
5196         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
5197         (fromfp): Define as weak alias.
5198         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
5199         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
5200         (fromfpx): Define as weak alias.
5201         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
5202         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
5203         __getpayload and define as weak alias.
5204         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5205         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
5206         __roundeven and define as weak alias.
5207         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5208         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
5209         __setpayload.
5210         (setpayload): Define as weak alias.
5211         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
5212         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
5213         __setpayloadsig.
5214         (setpayloadsig): Define as weak alias.
5215         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
5216         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
5217         __totalorder and define as weak alias.
5218         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5219         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
5220         to __totalordermag and define as weak alias.
5221         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5222         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
5223         (ufromfp): Define as weak alias.
5224         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
5225         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
5226         __ufromfpx.
5227         (ufromfpx): Define as weak alias.
5228         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
5229         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
5230         Rename to __getpayload and define as weak alias.
5231         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5232         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
5233         Rename to __roundeven and define as weak alias.
5234         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5235         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
5236         Rename to __totalorder and define as weak alias.
5237         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5238         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
5239         (totalordermag): Rename to __totalordermag and define as weak
5240         alias.
5241         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5242         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
5243         macro.
5244         (__roundevenl): Likewise.
5245         (__totalorderl): Likewise.
5246         (__totalordermagl): Likewise
5247         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
5248         __fromfpf128.
5249         (fromfpf128): Define as weak alias.
5250         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
5251         __fromfpxf128.
5252         (fromfpxf128): Define as weak alias.
5253         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
5254         __setpayloadf128.
5255         (setpayloadf128): Define as weak alias.
5256         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
5257         __setpayloadsigf128.
5258         (setpayloadsigf128): Define as weak alias.
5259         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
5260         __ufromfpf128.
5261         (ufromfpf128): Define as weak alias.
5262         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
5263         __ufromfpxf128.
5264         (ufromfpxf128): Define as weak alias.
5265         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
5266         (fromfpf): Define as weak alias.
5267         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
5268         __fromfpxf.
5269         (fromfpxf): Define as weak alias.
5270         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
5271         __getpayloadf and define as weak alias.
5272         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
5273         __roundevenf and define as weak alias.
5274         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
5275         __setpayloadf.
5276         (setpayloadf): Define as weak alias.
5277         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
5278         __setpayloadsigf.
5279         (setpayloadsigf): Define as weak alias.
5280         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
5281         __totalorderf and define as weak alias.
5282         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
5283         Rename to __totalordermagf and define as weak alias.
5284         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
5285         __ufromfpf.
5286         (ufromfpf): Define as weak alias.
5287         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
5288         __ufromfpxf.
5289         (ufromfpxf): Define as weak alias.
5290         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
5291         __fromfpl.
5292         (fromfpl): Define as weak alias.
5293         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
5294         __fromfpxl.
5295         (fromfpxl): Define as weak alias.
5296         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
5297         to __getpayloadl and define as weak alias.
5298         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
5299         __roundevenl and define as weak alias.
5300         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
5301         __setpayloadl.
5302         (setpayloadl): Define as weak alias.
5303         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
5304         __setpayloadsigl.
5305         (setpayloadsigl): Define as weak alias.
5306         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
5307         to __totalorderl and define as weak alias.
5308         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
5309         Rename to __totalordermagl and define as weak alias.
5310         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
5311         __ufromfpl.
5312         (ufromfpl): Define as weak alias.
5313         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
5314         __ufromfpxl.
5315         (ufromfpxl): Define as weak alias.
5316         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
5317         __fromfpl.
5318         (fromfpl): Define as weak alias.
5319         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
5320         __fromfpxl.
5321         (fromfpxl): Define as weak alias.
5322         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
5323         Rename to __getpayloadl and define as weak alias.
5324         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
5325         to __roundevenl and define as weak alias.  Call __roundeven
5326         instead of roundeven.
5327         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
5328         __setpayloadl.
5329         (setpayloadl): Define as weak alias.
5330         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
5331         __setpayloadsigl.
5332         (setpayloadsigl): Define as weak alias.
5333         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
5334         Rename to __totalorderl and define as weak alias.
5335         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
5336         Rename to __totalordermagl and define as weak alias.
5337         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
5338         __ufromfpl.
5339         (ufromfpl): Define as weak alias.
5340         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
5341         __ufromfpxl.
5342         (ufromfpxl): Define as weak alias.
5343         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
5344         __fromfpl.
5345         (fromfpl): Define as weak alias.
5346         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
5347         __fromfpxl.
5348         (fromfpxl): Define as weak alias.
5349         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
5350         __getpayloadl and define as weak alias.
5351         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
5352         __roundevenl and define as weak alias.
5353         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
5354         __setpayloadl.
5355         (setpayloadl): Define as weak alias.
5356         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
5357         __setpayloadsigl.
5358         (setpayloadsigl): Define as weak alias.
5359         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
5360         __totalorderl and define as weak alias.
5361         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
5362         Rename to __totalordermagl and define as weak alias.
5363         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
5364         __ufromfpl.
5365         (ufromfpl): Define as weak alias.
5366         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
5367         __ufromfpxl.
5368         (ufromfpxl): Define as weak alias.
5370 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5372         * benchtests/bench-string.h (realloc_bufs): New function.
5373         (test_init): Call it.
5374         * benchtests/bench-memset-large.c (do_test): Likewise.
5375         * benchtests/bench-memset.c (do_test): Likewise.
5377         * benchtests/bench-memset-large.c: Print output in JSON
5378         format.
5379         * benchtests/bench-memset.c: Likewise.
5381 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5383         [BZ #21084]
5384         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
5385         * iconvdata/Makefile: Add IBM858.
5386         * iconvdata/gconv-modules: Likewise.
5387         * iconvdata/tst-tables.sh: Likewise.
5388         * iconvdata/ibm858.c: New file.
5389         * localedata/charmaps/IBM858: Likewise.
5391 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
5393         [BZ #22023]
5394         * locales/niu_NZ (LC_TIME): copy "niu_NU".
5395         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
5397 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5399         [BZ #22112]
5400         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
5401         and add tel_int_fmt.
5403 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5405         * sysdeps/generic/libm-alias-float128.h: New file.
5406         * sysdeps/generic/math-type-macros-float128.h: Include
5407         <libm-alias-float128.h>.
5408         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
5410 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5412         * sysdeps/generic/libm-alias-ldouble.h: New file.
5413         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
5414         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
5415         * sysdeps/generic/math-type-macros-ldouble.h: Include
5416         <libm-alias-ldouble.h>.
5417         [!declare_mgen_alias] (declare_mgen_alias): Define to use
5418         libm_alias_ldouble.
5420 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5422         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
5423         * math/w_exp_compat.c: ... here.
5424         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
5425         * math/w_expf_compat.c: ... here.
5426         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
5427         * math/w_expl_compat.c: ... here.
5428         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
5429         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
5430         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
5431         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5433 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5435         * math/w_scalbln_template.c (strong_alias): Do not undefine and
5436         redefine.
5437         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
5438         macro.
5439         (ldexpl): Only define as compat symbol for libc, not libm.
5440         (scalbnl): Define as compat symbol for libc here.
5441         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
5442         define for [IS_IN (libc)].
5443         (__ldexpl_2): Remove alias.
5444         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
5445         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
5446         name in long_double_symbol call.
5447         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
5448         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
5449         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
5450         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
5451         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
5452         Remove macro.
5453         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
5454         Define as compat symbol.
5456 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5458         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
5459         * sysdeps/unix/sysv/linux/alpha/Makefile
5460         [$(subdir) = csu] (sysdep_routines): Remove rule.
5462 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5464         * sysdeps/generic/libm-alias-double.h: New file.
5465         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
5466         * sysdeps/generic/math-type-macros-double.h: Include
5467         <libm-alias-double.h>.
5468         [declare_mgen_alias] (declare_mgen_alias): Define to use
5469         libm_alias_double.
5470         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
5471         (M_LIBM_NEED_COMPAT): Remove macro.
5472         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
5473         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
5474         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
5475         code.
5476         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5477         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5478         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5479         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5480         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5481         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5482         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5483         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5484         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5485         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5486         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5487         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5488         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5489         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5490         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5491         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5492         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5493         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5494         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5495         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5496         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5497         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5498         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5499         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5500         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5501         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5502         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5503         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
5504         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
5505         macro.
5506         (declare_mgen_alias): New macro.
5507         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
5508         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
5509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
5510         (M_LIBM_NEED_COMPAT): Remove macro.
5511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
5512         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
5513         <first-versions.h>.
5514         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
5515         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
5517 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
5519         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
5520         (declare_mgen_alias_2): Remove.
5521         * sysdeps/generic/math-type-macros-double.h
5522         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
5523         Likewise.
5524         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
5525         alias.
5526         (ldexp): Define with declare_mgen_alias.
5527         (scalbn): Likewise.
5529 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
5531         * grp/initgroups.c: Include config.h.
5532         (DEFAULT_CONFIG): New macro.
5533         (internal_getgrouplist): Use DEFAULT_CONFIG.
5534         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5535         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
5536         (DEFAULT_DEFCONFIG): New macro.
5537         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
5538         * nss/grp-lookup.c: Include config.h
5539         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
5540         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
5541         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
5542         * manual/nss.texi: Update default values section.
5544 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
5546         [BZ #21967]
5547         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
5548         New.
5549         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
5550         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
5551         Handle MathVec_Prefer_No_AVX512.
5552         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
5553         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
5554         is set.
5556 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5558         * posix/sched_primax.c (__sched_get_priority_max): Add
5559         libc_hidden_def.
5560         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
5561         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5562         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
5563         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
5564         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
5565         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
5566         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
5567         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
5568         Add aliases.
5570 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
5572         * sysdeps/generic/libm-alias-float.h: New file.
5573         * sysdeps/generic/math-type-macros-float.h: Include
5574         <libm-alias-float.h>.
5575         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
5577 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
5579         [BZ #22093]
5580         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
5581         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
5582         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
5583         (HWCAP_IMPORTANT): Likewise.
5584         (HWCAP_X86_64): New enum.
5585         (HWCAP_X86_AVX512_1): Updated.
5586         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
5587         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
5588         (modules-names): Add x86_64/tst-x86_64mod-1.
5589         (LDFLAGS-tst-x86_64mod-1.so): New.
5590         ($(objpfx)tst-x86_64-1): Likewise.
5591         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
5592         (tst-x86_64-1-clean): Likewise.
5593         * sysdeps/x86_64/tst-x86_64-1.c: New file.
5594         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
5596 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5598         * po/sv.po: Update translations.
5599         * po/fr.po: Likewise.
5601 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5603         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
5604         seconds.
5605         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
5606         seconds.
5607         * elf/rtld-Rules: Fix $(error) use.
5609 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
5611         [BZ #14925]
5612         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
5613         * locale/iso-639.def: Change “Bengali” to “Bangla”.
5614         * localedata/locales/bn_BD: “Bengali” was still used in some
5615         comments. Change it to “Bangla”.
5617 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
5619         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
5621 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
5623         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
5624         thunderx2t99p1 to list of cpu names.
5625         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
5626         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
5628 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
5630         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
5631         Use strcmp instead of tunable_is_name.
5633 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
5635         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5636         (F_GET_RW_HINT): New macro.
5637         [__USE_GNU] (F_SET_RW_HINT): Likewise.
5638         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
5639         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
5640         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
5641         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
5642         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
5643         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
5644         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
5645         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
5647         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5648         (F_ADD_SEALS): New macro.
5649         [__USE_GNU] (F_GET_SEALS): Likewise.
5650         [__USE_GNU] (F_SEAL_SEAL): Likewise.
5651         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
5652         [__USE_GNU] (F_SEAL_GROW): Likewise.
5653         [__USE_GNU] (F_SEAL_WRITE): Likewise.
5655 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5657         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5658         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5659         * posix/glob_internal.h (__glob_pattern_type):
5660         * posix/glob.c (glob):
5661         * posix/glob_pattern_p.c (__glob_pattern_p):
5662         Use them.
5664         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
5665         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5666         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
5667         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
5668         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
5670         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
5671         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
5672         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5673         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5674         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5675         * sysdeps/wordsize-64/glob.c: Likewise.
5676         * sysdeps/wordsize-64/glob64.c: Likewise.
5677         * sysdeps/wordsize-64/globfree.c: Likewise.
5678         * sysdeps/wordsize-64/globfree64.c: Likewise.
5679         * sysdeps/unix/sysv/linux/glob.c: New file.
5680         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
5681         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
5682         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
5683         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5684         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
5685         adds !GLOB_NO_OLD_VERSION as an extra condition.
5686         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
5687         using relative path instead of absolute one.
5688         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
5689         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
5690         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5691         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
5692         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
5693         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
5695         [BZ #1062]
5696         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
5697         (glob): Use the same scratch buffer for both getlogin_r and
5698         getpwnam_r.  Don’t require preallocation of the login name.  This
5699         simplifies storage allocation, and corrects the handling of
5700         long login names.
5702         [BZ #1062]
5703         * posix/glob.c (glob): Port recent patches to platforms
5704         lacking getpwnam_r.
5705         (glob): Fix longstanding misuse of errno after getpwnam_r, which
5706         returns an error number rather than setting errno.
5708         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
5709         instead of GCC extension.
5710         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
5711         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
5712         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
5714         [BZ #866]
5715         [BZ #1062]
5716         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
5717         * posix/bug-glob1.c: Remove file.
5718         * posix/tst-glob_symlinks.c: New file.
5719         * posix/glob.c (__lstat64): New macro.
5720         (is_dir): New function.
5721         (glob, glob_in_dir): Match symlinks even if they are dangling.
5722         (link_stat, link_exists_p): Remove.  All uses removed.
5724         [BZ #1062]
5725         [BZ #19971]
5726         * posix/glob.c (struct readdir_result): Remove skip_entry member.
5727         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5728         All uses removed.
5730         [BZ #1062]
5731         CVE-2017-15671
5732         * posix/Makefile (routines): Add globfree, globfree64, and
5733         glob_pattern_p.
5734         * posix/flexmember.h: New file.
5735         * posix/glob_internal.h: Likewise.
5736         * posix/glob_pattern_p.c: Likewise.
5737         * posix/globfree.c: Likewise.
5738         * posix/globfree64.c: Likewise.
5739         * sysdeps/gnu/globfree64.c: Likewise.
5740         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
5741         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5742         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
5743         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5744         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5745         * sysdeps/wordsize-64/globfree.c: Likewise.
5746         * sysdeps/wordsize-64/globfree64.c: Likewise.
5747         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
5748         [NDEBUG): Remove comments.
5749         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
5750         (dirent_type): New type.  Use uint_fast8_t not
5751         uint8_t, as C99 does not require uint8_t.
5752         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
5753         (struct readdir_result): Use dirent_type.  Do not define skip_entry
5754         unless it is needed; this saves a byte on platforms lacking d_ino.
5755         (readdir_result_type, readdir_result_skip_entry):
5756         New functions, replacing ...
5757         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5758          these functions, which were removed.  This makes the callers
5759         easier to read.  All callers changed.
5760         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5761         (size_add_wrapv, glob_use_alloca): New static functions.
5762         (glob, glob_in_dir): Check for size_t overflow in several places,
5763         and fix some size_t checks that were not quite right.
5764         Remove old code using SHELL since Bash no longer
5765         uses this.
5766         (glob, prefix_array): Separate MS code better.
5767         (glob_in_dir): Remove old Amiga and VMS code.
5768         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5769         separate files.
5770         (glob_in_dir): Do not rely on undefined behavior in accessing
5771         struct members beyond their bounds.  Use a flexible array member
5772         instead
5773         (link_stat): Rename from link_exists2_p and return -1/0 instead of
5774         0/1.  Caller changed.
5775         (glob): Fix memory leaks.
5776         * posix/glob64 (globfree64): Move to separate file.
5777         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
5778         (globfree64): Remove hidden alias.
5779         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
5780         oldglob.
5781         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
5782         separate file.
5783         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
5784         define.
5785         Move compat code to separate file.
5786         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
5787         separate file.
5789 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
5791         * resolv/tst-resolv-qtypes.c (domain): Changed to
5792         "const char domain[] =".
5794 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
5796         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
5797         version to 3.1.6.
5799         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
5800         (TCP_MD5SIG_EXT): Likewise.
5801         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
5802         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
5803         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
5805         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
5807 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
5809         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
5811 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
5813         [BZ #22100]
5814         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
5816 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5818         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
5819         before assuming that the file is empty.  Avoid testing buffer content
5820         when nread == 0.
5822 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5824         [BZ #18858]
5825         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5826         Remove define.
5827         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
5828         Likewise.
5829         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
5830         Likewise.
5831         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
5832         Likewise.
5833         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5834         Likewise.
5835         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
5836         Likewise.
5837         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
5838         Likewise.
5840 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5842         * malloc/dynarray_emplace_enlarge.c
5843         (__libc_dynarray_emplace_enlarge): Add missing else.
5845 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5847         [BZ #22096]
5848         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
5849         case of failure to obtain the global conf object.
5851 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5853         [BZ #22095]
5854         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
5855         dynarray allocation failure.
5857 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5859         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
5860         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
5861         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
5862         New functions.
5863         (response): Call them.  Add 'p', '6' flag processing.
5864         (test_reverse): New function.
5865         (test_get2_any): Call it.
5866         (test_no_inet6): Add 'p' test.
5867         (test_inet6): Likewise.
5869 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5871         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
5872         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
5873         the QNAME.
5874         (test_gai): Adjust query names.  Add additional tests.
5875         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
5876         test_get2.  Adjust query names.  Add additional tests.
5877         (test_no_inet6): New function, extracted from threadfunc.
5878         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
5879         Add additional tests.
5881 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
5883         [BZ #22070]
5884         * localedata/unicode-gen/utf8_gen.py: Set the width for
5885         characters with Prepended_Concatenation_Mark property to 1
5886         * localedata/charmaps/UTF-8: Updated using the improved script.
5888 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
5890         [BZ #21750]
5891         * localedata/unicode-gen/utf8_gen.py: Improve the script to
5892         use the range notation for all ranges of neighbouring characters
5893         with the same width.
5895 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
5897         * sysdeps/generic/math-type-macros-double.h: Include
5898         <math-svid-compat.h>.
5899         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5900         * sysdeps/generic/math-type-macros-float.h: Include
5901         <math-svid-compat.h>.
5902         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5903         * sysdeps/generic/math-type-macros-ldouble.h: Include
5904         <math-svid-compat.h>.
5905         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5906         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
5907         condition.
5908         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
5909         * math/w_acosf_compat.c: Likewise.
5910         * math/w_acosh_compat.c: Likewise.
5911         * math/w_acoshf_compat.c: Likewise.
5912         * math/w_acoshl_compat.c: Likewise.
5913         * math/w_acosl_compat.c: Likewise.
5914         * math/w_asin_compat.c: Likewise.
5915         * math/w_asinf_compat.c: Likewise.
5916         * math/w_asinl_compat.c: Likewise.
5917         * math/w_atan2_compat.c: Likewise.
5918         * math/w_atan2f_compat.c: Likewise.
5919         * math/w_atan2l_compat.c: Likewise.
5920         * math/w_atanh_compat.c: Likewise.
5921         * math/w_atanhf_compat.c: Likewise.
5922         * math/w_atanhl_compat.c: Likewise.
5923         * math/w_cosh_compat.c: Likewise.
5924         * math/w_coshf_compat.c: Likewise.
5925         * math/w_coshl_compat.c: Likewise.
5926         * math/w_exp10_compat.c: Likewise.
5927         * math/w_exp10f_compat.c: Likewise.
5928         * math/w_exp10l_compat.c: Likewise.
5929         * math/w_exp2_compat.c: Likewise.
5930         * math/w_exp2f_compat.c: Likewise.
5931         * math/w_exp2l_compat.c: Likewise.
5932         * math/w_fmod_compat.c: Likewise.
5933         * math/w_fmodf_compat.c: Likewise.
5934         * math/w_fmodl_compat.c: Likewise.
5935         * math/w_hypot_compat.c: Likewise.
5936         * math/w_hypotf_compat.c: Likewise.
5937         * math/w_hypotl_compat.c: Likewise.
5938         * math/w_j0_compat.c: Likewise.
5939         * math/w_j0f_compat.c: Likewise.
5940         * math/w_j0l_compat.c: Likewise.
5941         * math/w_j1_compat.c: Likewise.
5942         * math/w_j1f_compat.c: Likewise.
5943         * math/w_j1l_compat.c: Likewise.
5944         * math/w_jn_compat.c: Likewise.
5945         * math/w_jnf_compat.c: Likewise.
5946         * math/w_jnl_compat.c: Likewise.
5947         * math/w_lgamma_r_compat.c: Likewise.
5948         * math/w_lgammaf_r_compat.c: Likewise.
5949         * math/w_lgammal_r_compat.c: Likewise.
5950         * math/w_log10_compat.c: Likewise.
5951         * math/w_log10f_compat.c: Likewise.
5952         * math/w_log10l_compat.c: Likewise.
5953         * math/w_log2_compat.c: Likewise.
5954         * math/w_log2f_compat.c: Likewise.
5955         * math/w_log2l_compat.c: Likewise.
5956         * math/w_log_compat.c: Likewise.
5957         * math/w_logf_compat.c: Likewise.
5958         * math/w_logl_compat.c: Likewise.
5959         * math/w_pow_compat.c: Likewise.
5960         * math/w_powf_compat.c: Likewise.
5961         * math/w_powl_compat.c: Likewise.
5962         * math/w_remainder_compat.c: Likewise.
5963         * math/w_remainderf_compat.c: Likewise.
5964         * math/w_remainderl_compat.c: Likewise.
5965         * math/w_sinh_compat.c: Likewise.
5966         * math/w_sinhf_compat.c: Likewise.
5967         * math/w_sinhl_compat.c: Likewise.
5968         * math/w_sqrt_compat.c: Likewise.
5969         * math/w_sqrtf_compat.c: Likewise.
5970         * math/w_sqrtl_compat.c: Likewise.
5971         * math/w_tgamma_compat.c: Likewise.
5972         * math/w_tgammaf_compat.c: Likewise.
5973         * math/w_tgammal_compat.c: Likewise.
5974         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
5975         [LIBM_SVID_COMPAT].
5976         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
5977         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
5978         [LIBM_SVID_COMPAT].
5979         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
5980         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
5981         [LIBM_SVID_COMPAT].
5982         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
5983         * sysdeps/i386/fpu/w_sqrt.c: New file.
5984         * sysdeps/ia64/fpu/w_acos.c: Likewise.
5985         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5986         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5987         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5988         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5989         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5990         * sysdeps/ia64/fpu/w_asin.c: Likewise.
5991         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5992         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5993         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5994         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5995         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5996         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5997         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5998         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5999         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
6000         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
6001         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
6002         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6003         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
6004         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
6005         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
6006         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
6007         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
6008         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
6009         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6010         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6011         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
6012         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
6013         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
6014         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
6015         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
6016         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
6017         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
6018         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
6019         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
6020         * sysdeps/ia64/fpu/w_log.c: Likewise.
6021         * sysdeps/ia64/fpu/w_log10.c: Likewise.
6022         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
6023         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
6024         * sysdeps/ia64/fpu/w_log2.c: Likewise.
6025         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
6026         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
6027         * sysdeps/ia64/fpu/w_logf.c: Likewise.
6028         * sysdeps/ia64/fpu/w_logl.c: Likewise.
6029         * sysdeps/ia64/fpu/w_pow.c: Likewise.
6030         * sysdeps/ia64/fpu/w_powf.c: Likewise.
6031         * sysdeps/ia64/fpu/w_powl.c: Likewise.
6032         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
6033         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
6034         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
6035         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
6036         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
6037         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
6038         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
6039         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
6040         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
6041         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
6042         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
6043         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
6044         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
6045         [LIBM_SVID_COMPAT].
6046         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6047         * sysdeps/ieee754/k_standard.c: Likewise.
6048         * sysdeps/ieee754/k_standardf.c: Likewise.
6049         * sysdeps/ieee754/k_standardl.c: Likewise.
6050         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6051         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6052         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6053         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
6054         long_double_symbol call on [LIBM_SVID_COMPAT].
6055         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6056         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6057         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6058         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6059         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6060         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6061         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6062         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6063         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6064         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6065         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6066         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
6067         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6068         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6069         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6070         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6071         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
6072         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6073         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6074         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6075         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
6076         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
6078 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
6080         * include/shlib-compat.h (TEST_COMPAT): New Macro.
6081         * malloc/tst-mallocstate.c: Convert from test-skeleton
6082         to test-driver.  Ifdef code using TEST_COMPAT macro.
6083         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
6084         * math/test-matherr.c: Likewise.
6086 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6088         [BZ #22086]
6089         * debug/pcprofiledump.c (main): Use byte-swapped mask when
6090         comparing word with byte-swapped constant.
6092 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
6094         [BZ #20498]
6095         * locale/iso-639.def: add Miskito.
6096         * localedata/SUPPORTED: Add miq_NI/UTF-8.
6097         * localedata/locales/miq_NI: New file.
6099 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6101         [BZ #18822]
6102         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
6103         (__mkdir): Likewise.
6104         * io/chmod.c (__chmod): Add libc_hidden_def.
6105         * io/mkdir.c (__mkdir): Likewise.
6106         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
6107         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
6108         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
6109         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
6111 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6113         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6114         version to 4.13.
6116         [BZ #22082]
6117         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
6118         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
6120 2017-09-04  Florian Weimer  <fweimer@redhat.com>
6122         * math/math.h: Issue warning if log is defined.
6124 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6126         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6127         kernel version to 4.13.
6129 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6131         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
6132         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
6133         parameter.
6134         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
6135         just <bits/types.h>.
6136         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
6137         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
6138         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
6139         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
6140         * misc/preadv2.c: Include <errno.h>.
6141         * misc/preadv64v2.c: Include <errno.h>.
6142         * misc/pwritev2.c: Include <errno.h>.
6143         * misc/pwritev64v2.c: Include <errno.h>.
6144         * sysdeps/posix/preadv2.c: Include <errno.h>.
6145         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
6146         Fix <unistd.h> inclusion.
6147         * sysdeps/posix/pwritev2.c: Include <errno.h>.
6148         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
6149         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
6150         __strtoul_internal): New functions.
6151         * sysdeps/posix/pause.c: Include <sigsetops.h>.
6152         * sysdeps/posix/system.c: Include <sigsetops.h>.
6153         * sysdeps/mach/hurd/i386/Makefile
6154         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
6155         [$(subdir) = csu] (sysdep-only-routines): Likewise.
6156         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
6157         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
6158         __feraiseexcept_renamed to feraiseexcept instead of
6159         __GI_feraiseexcept.
6160         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
6161         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
6162         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
6163         RWF_NOWAIT): Define to 0 if undefined already.
6164         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
6165         boils down to 0.
6166         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
6167         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
6169 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6171         * manual/math.texi (pow10): Do not document.
6172         (pow10f): Likewise.
6173         (pow10l): Likewise.
6174         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
6175         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
6176         * math/libm-test-exp10.inc (pow10_test): Remove.
6177         (do_test): Do not call pow10.
6178         * math/w_exp10_compat.c (pow10): Make into compat symbol.
6179         [NO_LONG_DOUBLE] (pow10l): Likewise.
6180         * math/w_exp10f_compat.c (pow10f): Likewise.
6181         * math/w_exp10l_compat.c (pow10l): Likewise.
6182         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
6183         (pow10): Make into compat symbol.
6184         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
6185         (pow10f): Make into compat symbol.
6186         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
6187         (pow10l): Make into compat symbol.
6188         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
6189         pow10.
6190         (CFLAGS-nldbl-pow10.c): Remove variable..
6191         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
6192         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
6193         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
6194         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
6195         Undefine and redefine.
6196         (pow10l): Make into compat symbol.
6197         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
6198         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6199         * sysdeps/arm/libm-test-ulps: Likewise.
6200         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
6201         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6202         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6203         * sysdeps/microblaze/libm-test-ulps: Likewise.
6204         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6205         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6206         * sysdeps/nios2/libm-test-ulps: Likewise.
6207         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6208         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6209         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6210         * sysdeps/sh/libm-test-ulps: Likewise.
6211         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6212         * sysdeps/tile/libm-test-ulps: Likewise.
6213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6215 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6217         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
6219 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6221         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
6222         "../ChangeLog.old/ChangeLog.8".
6223         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
6224         "../ChangeLog.old/ChangeLog.14".
6226 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6228         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
6229         Threads Library.
6231 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6233         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
6235 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6237         * csu/version.c (banner): Remove "by Roland McGrath et al.".
6238         * nptl/Banner: Remove "by Ulrich Drepper et al.".
6240 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6242         * stdlib/tst-atexit-common.c (do_test): Test support for at least
6243         32 atexit handlers.
6245 2017-09-01  Zack Weinberg  <zackw@panix.com>
6247         * math/math.h (HUGE_VAL): Improve commentary.
6249 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6250             Andreas Schwab  <schwab@suse.de>
6252         [BZ #21530]
6253         * include/stdio.h (__gen_tempfd): New function.
6254         * stdio-common/Makefile (routines): Add gentempfd.
6255         * stdio-common/gentempfd.c: New file.
6256         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
6257         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
6258         unnamed file first.
6260 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6262         [BZ #21915]
6263         [BZ #21922]
6264         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
6265         result to determine success or failure, not the errno value.
6266         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
6267         (tst-nss-files-hosts-erange): Link with -ldl.
6268         * nss/tst-nss-files-hosts-erange.c: New file.
6269         * nss/tst-resolv-basic.c (response): Handle nodata.example.
6270         (do_test): Add NO_DATA tests.
6271         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
6272         (do_test): Call it.
6274 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6276         [BZ #21922]
6277         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
6278         coming from gethostbyname2_r.
6280 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6282         * support/namespace.h (struct support_chroot_configuration): Add
6283         hosts, host_conf.
6284         (struct support_chroot): Add path_hosts, path_host_conf.
6285         * support/support_chroot.c (write_file): New function.
6286         (support_chroot_create): Call it to process /etc/resolv.conf,
6287         /etc/hosts, /etc/host.conf.
6288         (support_chroot_free): Update.
6290 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6292         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
6293         status indicates it is set.
6295 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6297         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
6298         function lookup failures more reliable.
6300 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6302         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
6303         (getcanonname): Likewise.
6304         (gaih_inet): Likewise.
6306 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6308         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
6309         (getcanonname): Likewise.
6310         (gaih_inet): Likewise.
6312 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6313             Richard Henderson <rth@twiddle.net>
6315         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
6316         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
6317         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
6318         (IREG_SIZE, OREG_SIZE): New macros.
6319         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
6320         (IREG_SIZE, OREG_SIZE): New macros.
6321         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
6322         (IREG_SIZE): New macro.
6323         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
6324         (IREG_SIZE): New macro.
6325         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
6326         New includes.
6327         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
6328         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6329         (__CONCATX): Handle exceptions correctly on large values that may
6330         set FE_INVALID.
6331         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
6332         Initialize if not already set.
6333         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6335 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6337         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
6338         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
6339         Likewise.
6340         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
6341         Likewise.
6342         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
6343         Likewise.
6344         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
6345         Likewise.
6346         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
6347         Likewise.
6348         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
6349         Likewise.
6350         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
6351         Likewise.
6352         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
6353         (NO_CANCELLATION): Likewise.
6354         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
6355         Likewise.
6356         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
6357         Likewise.
6358         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
6359         Likewise.
6360         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
6361         (NO_CANCELLATION): Likewise.
6362         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
6363         (NO_CANCELLATION): Likewise.
6364         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
6365         Likewise
6366         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
6367         Likewise.
6368         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
6369         Likewise.
6370         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
6371         Likewise.
6372         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
6373         hidden prototype.
6374         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
6375         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
6377 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6379         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
6380         in resolver call.
6382 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6384         * include/libc-symbols.h (internal_function): Remove.
6386 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6388         * stdlib/fmtmsg.c (internal_addseverity): Remove
6389         internal_function.
6391 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6393         * stdio-common/printf_fp.c (group_number): Remove
6394         internal_function.
6395         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
6397 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6399         * posix/fnmatch.c (internal_function): Remove definition.
6400         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
6401         * posix/regcomp.c (peek_token, init_word_char)
6402         (duplicate_node_closure, fetch_token, peek_token)
6403         (peek_token_bracket, build_range_exp, build_collating_symbol):
6404         Likewise.
6405         * posix/regex_internal.c (re_string_construct_common)
6406         (create_ci_newstate, create_cd_newstate, re_string_allocate)
6407         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
6408         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
6409         (re_string_translate_buffer, re_string_reconstruct)
6410         (re_string_peek_byte_case, re_string_fetch_byte_case)
6411         (re_string_destruct, re_string_context_at, re_node_set_alloc)
6412         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
6413         (re_node_set_add_intersect, re_node_set_init_union)
6414         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
6415         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
6416         (re_dfa_add_node, calc_state_hash, re_acquire_state)
6417         (re_acquire_state_context): Likewise.
6418         * posix/regex_internal.h (internal_function): Remove definition.
6419         (re_string_realloc_buffers, build_wcs_buffer)
6420         (build_wcs_upper_buffer, build_upper_buffer)
6421         (re_string_translate_buffer, re_string_context_at)
6422         (re_string_char_size_at, re_string_wchar_at)
6423         (re_string_elem_size_at): Likewise.
6424         * posix/regexec.c (match_ctx_init, match_ctx_clean)
6425         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
6426         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
6427         (re_search_internal, re_search_2_stub, re_search_stub)
6428         (re_copy_regs, prune_impossible_nodes, check_matching)
6429         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
6430         (free_fail_stack_return, sift_states_iter_mb)
6431         (sift_states_backward, build_sifted_states)
6432         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
6433         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
6434         (check_subexp_limits, sift_states_bkref, merge_state_array)
6435         (find_recover_state, transit_state, merge_state_with_log)
6436         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
6437         (transit_state_mb, transit_state_bkref, get_subexp)
6438         (get_subexp_sub, find_subexp_node, check_arrival)
6439         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
6440         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
6441         (check_node_accept_bytes, find_collation_sequence_value)
6442         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
6443         (acquire_init_state_context, check_halt_node_context)
6444         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
6445         (sub_epsilon_src_nodes): Likewise.
6446         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
6447         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
6448         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
6449         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
6450         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
6451         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
6452         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
6453         * sysdeps/posix/ttyname.c (getttyname): Likewise.
6454         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
6455         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
6456         (PREADV): Likewise.
6457         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
6458         (PREADV): Likewise.
6459         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
6460         (PWRITEV): Likewise.
6461         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
6462         (PWRITEV): Likewise.
6463         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
6464         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
6466 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6468         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
6469         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
6470         Remove internal_function.
6471         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
6472         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
6473         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
6474         (__deallocate_stack, __libc_pthread_init)
6475         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
6476         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
6477         (__libc_disable_asynccancel, __librt_disable_asynccancel):
6478         Likewise.
6479         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
6480         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
6481         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
6482         Likewise.
6483         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
6484         (__pthread_mutex_unlock_usercnt): Likewise.
6486 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6488         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
6489         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
6490         (fts_safe_changedir): Remove internal_function.
6491         * io/ftw.c (internal_function): Remove definition.
6492         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
6494 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6496         * inet/deadline.c (__deadline_current_time)
6497         (__deadline_from_timeval, __deadline_to_ms): Remove
6498         internal_function.
6499         * inet/getnameinfo.c (nrl_domainname): Likewise.
6500         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
6501         * inet/inet6_option.c (add_pad): Likewise.
6502         * inet/net-internal.h (__deadline_current_time)
6503         (__deadline_from_timeval, __deadline_to_ms): Likewise.
6504         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
6505         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
6506         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
6508 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
6510         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
6511         include <bits/nan.h>.
6512         * math/Makefile (headers): Remove bits/nan.h.
6513         * bits/nan.h: Remove.
6514         * sysdeps/ieee754/bits/nan.h: Likewise.
6515         * sysdeps/mips/bits/nan.h: Likewise.
6517         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
6518         not include <bits/inf.h>.
6519         * math/Makefile (headers): Remove bits/inf.h.
6520         * bits/inf.h: Remove.
6521         * sysdeps/ieee754/bits/inf.h: Likewise.
6523         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
6524         bits/huge_vall.h or bits/huge_val_flt128.h.
6525         (HUGE_VAL): Define directly here.
6526         [__USE_ISOC99] (HUGE_VALF): Likewise.
6527         [__USE_ISOC99] (HUGE_VALL): Likewise.
6528         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6529         (HUGE_VAL_F128): Likewise.
6530         * math/Makefile (headers): Remove bits/huge_val.h,
6531         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
6532         * bits/huge_val.h: Remove.
6533         * bits/huge_val_flt128.h: Likewise.
6534         * bits/huge_valf.h: Likewise.
6535         * bits/huge_vall.h: Likewise.
6536         * sysdeps/ia64/bits/huge_vall.h: Likewise.
6537         * sysdeps/ieee754/bits/huge_val.h: Likewise.
6538         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
6539         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
6540         * sysdeps/sh/bits/huge_val.h: Likewise.
6541         * sysdeps/sparc/bits/huge_vall.h: Likewise.
6542         * sysdeps/x86/bits/huge_vall.h: Likewise.
6544 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6546         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
6547         internal_function.
6548         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
6549         Likewise.
6550         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
6551         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
6552         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
6553         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
6554         * elf/dl-fini.c (_dl_sort_fini): Likewise.
6555         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
6556         * elf/dl-libc.c (dlerror_run): Likewise.
6557         * elf/dl-load.c (add_name_to_object, decompose_rpath)
6558         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
6559         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
6560         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
6561         Likewise.
6562         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
6563         (_dl_higher_prime_number, _dl_strtoul): Likewise.
6564         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
6565         * elf/dl-profile.c (_dl_start_profile): Likewise.
6566         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
6567         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
6568         Likewise.
6569         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
6570         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
6571         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
6572         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
6573         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
6574         (_dl_allocate_tls_storage): Likewise.
6575         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
6576         (_dl_check_all_versions): Likewise.
6577         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
6578         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
6579         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
6580         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6581         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
6582         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
6583         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
6584         internal_function from __dl_start.
6585         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
6586         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
6587         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
6588         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
6589         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
6590         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
6591         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
6592         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
6593         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
6594         (_dl_next_ld_env_entry, _dl_important_hwcaps)
6595         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
6596         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
6597         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
6598         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
6599         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
6600         Likewise.
6601         (struct rtld_global_ro): Remove internal_function from the
6602         _dl_lookup_symbol_x member.
6603         (_dl_symbol_value): Remove.  No longer defined anywhere.
6604         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
6605         internal_function.
6606         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6607         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
6608         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
6609         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
6610         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
6611         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
6612         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
6613         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
6614         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
6615         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
6616         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6617         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
6619 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6621         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
6622         Remove internal_function.
6623         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
6624         Likewise.
6625         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
6626         Likewise.
6628 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6630         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
6631         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
6632         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
6634 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6636         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
6637         (__gai_enqueue_request): Remove internal_function.
6638         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
6639         (__gai_remove_request, __gai_notify, __gai_notify_only)
6640         (__gai_sigqueue): Likewise.
6641         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
6642         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
6643         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
6644         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
6645         Likewise.
6647 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6649         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
6650         * include/dirent.h (__opendirat, __getdents, __getdents64)
6651         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
6652         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
6653         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6654         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
6655         Likewise.
6656         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
6658 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6660         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
6661         internal_function.
6662         (GETCWD_RETURN_TYPE): Likewise.
6664 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6666         * include/time.h (__tz_compute, __strptime_internal): Remove
6667         internal_function.
6668         * time/strptime_l.c (__strptime_internal): Likewise.
6669         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
6671 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6673         * iconv/gconv.c (__gconv): Remove internal_function.
6674         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
6675         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
6676         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
6677         (__gconv_release_cache): Likewise.
6678         * iconv/gconv_close.c (__gconv_close): Likewise.
6679         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
6680         (read_conf_file, __gconv_get_path): Likewise.
6681         * iconv/gconv_db.c (derivation_lookup, add_derivation)
6682         (__gconv_release_step, gen_steps, increment_counter)
6683         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
6684         (__gconv_close_transform, free_modules_db): Likewise.
6685         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
6686         Likewise.
6687         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
6688         (__gconv_find_transform, __gconv_lookup_cache)
6689         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
6690         (__gconv_close_transform, __gconv_release_cache)
6691         (__gconv_loaded_object, __gconv_release_shlib)
6692         (__gconv_compare_alias): Likewise.
6693         * iconv/gconv_open.c (__gconv_open): Likewise.
6694         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
6695         * iconv/iconvconfig.c (add_module): Likewise.
6696         * intl/dcigettext.c (plural_lookup, guess_category_value)
6697         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
6698         * intl/eval-plural.h (plural_eval): Likewise.
6699         * intl/finddomain.c (_nl_find_domain): Likewise.
6700         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
6701         (_nl_load_domain, _nl_find_msg): Likewise.
6702         (internal_function): Remove definition.
6703         * intl/loadinfo.h (internal_function): Likewise.
6704         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
6705         internal_function.
6706         * intl/localealias.c (internal_function): Remove definition.
6707         (read_alias_file): Remove internal_function.
6708         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
6709         * intl/plural-exp.h (internal_function): Remove definition.
6710         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
6711         internal_function.
6712         * intl/plural.c: Regenerate.
6713         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
6714         * locale/coll-lookup.c (__collidx_table_lookup)
6715         (__collseq_table_lookup): Likewise.
6716         * locale/coll-lookup.h (__collidx_table_lookup)
6717         (__collseq_table_lookup): Likewise.
6718         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
6719         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6720         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
6721         (_nl_unload_locale): Likewise.
6722         * locale/localeinfo.h (struct __locale_data): Remove
6723         internal_function from cleanup member.
6724         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
6725         (_nl_remove_locale, _nl_load_locale_from_archive)
6726         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
6727         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
6728         (_nl_cleanup_time): Remove internal_function.
6729         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
6730         (_nl_parse_alt_digit): Likewise.
6731         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
6732         (_nl_select_era_entry): Likewise.
6733         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6734         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6735         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6736         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6737         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6739 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6741         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
6742         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
6743         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
6744         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
6745         Likewise.
6746         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
6747         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
6748         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
6749         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
6750         Likewise.
6751         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
6753 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6755         * misc/getttyent.c (skip, value): Remove internal_function.
6756         * misc/syslog.c (openlog_internal): Likewise.
6757         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
6759 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6761         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
6762         (__nss_rewrite_field): Remove internal_function.
6763         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6764         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6765         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6766         * nss/nsswitch.c (nss_parse_file, nss_getline)
6767         (nss_parse_service_list, nss_new_service): Likewise.
6768         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
6769         * nss/valid_field.c (__nss_valid_field): Likewise.
6770         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
6772 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6774         * malloc/arena.c (__malloc_fork_lock_parent)
6775         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
6776         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
6777         internal_function from defintions.
6778         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
6779         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
6780         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
6781         internal_function from declarations.
6782         * malloc/malloc.c (internal_function): Do not define.
6783         (mem2mem_check): Remove internal_function from declaration.
6784         (munmap_chunk, mremap_chunk): Remove internal_function.
6785         * malloc/mtrace.c (tr_where): Likewise.
6787 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6789         * include/rpc/pmap_clnt.h (__get_socket): Remove
6790         internal_function.
6791         * sunrpc/auth_des.c (synchronize): Likewise.
6792         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
6793         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
6794         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
6795         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
6796         (key_call): Likewise.
6797         * sunrpc/pm_getport.c (__get_socket): Likewise.
6798         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
6799         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
6800         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
6801         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
6802         (invalidate): Likewise.
6803         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
6804         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
6805         (set_input_fragment, get_input_bytes): Likewise.
6807 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6809         * malloc/malloc.c (_int_free): Remove locked variable and related
6810         asserts.
6812 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
6814         [BZ #22051]
6815         * Makerules (build-module-helper-objlist): Filter out
6816         $(elf-objpfx)sofini.os.
6817         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
6818         needed.
6820 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6822         * libio/fcloseall.c: Assume weak_alias is defined.
6823         * libio/feof.c: Likewise.
6824         * libio/fileno.c: Likewise.
6825         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
6826         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6827         definitions.
6828         (_IO_file_open): Call __open directly.
6829         (_IO_new_file_sync): Assume ESPIPE is defined.
6830         (_IO_file_seekoff_maybe_mmap): Call __read directly.
6831         (_IO_new_file_write): Call __write directly.
6832         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
6833         * libio/ftello64.c (__ftello64): Assume EIO is defined.
6834         * libio/genops.c: Assume _LIBC is defined.
6835         (save_for_backup): Remove internal_function.
6836         * libio/getc.c: Assume weak_alias is defined.
6837         * libio/getwc.c: Likewise.
6838         * libio/iofclose.c: Assume _LIBC is defined.
6839         * libio/iofdopen.c: Likewise.
6840         (_IO_fcntl): Remove macro definition.
6841         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
6842         Call __fcntl directly.
6843         * libio/iofflush.c: Assume weak_alias is defined.
6844         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
6845         defined.
6846         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
6847         * libio/iofgets.c: Likewise.
6848         * libio/iofopen.c: Assume _LIBC is defined.
6849         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
6850         * libio/iofputs.c: Assume weak_alias is defined.
6851         * libio/iofread.c: Likewise.
6852         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
6853         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
6854         * libio/ioftell.c: Assume weak_alias is defined.
6855         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
6856         * libio/iofwide.c: Assume _LIBC is defined.
6857         (_IO_fwide): Drop SHARED conditional because it is implied by
6858         SHLIB_COMPAT.
6859         * libio/iofwrite.c: Assume weak_alias is defined.
6860         * libio/iogetdelim.c: Likewise.
6861         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
6862         * libio/iogetwline.c (wmemcpy): Remove macro definition.
6863         (_IO_getwline): Call __wmemcpy directly.
6864         * libio/iopopen.c: Assume _LIBC is defined.
6865         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6866         (_IO_close): Remove macro definitions.
6867         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
6868         _exit directly.
6869         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
6870         directly.
6871         * libio/ioputs.c: Assume weak_alias is defined.
6872         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
6873         * libio/iosetbuffer.c: Assume weak_alias is defined.
6874         * libio/iosetvbuf.c: Likewise.
6875         * libio/ioungetc.c: Likewise.
6876         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
6877         libc_hidden_def, libc_hidden_weak, NULL are defined.
6878         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
6879         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
6880         defined.
6881         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6882         definitions.
6883         (_IO_old_file_init_internal): Drop SHARED conditional because it
6884         is implied by SHLIB_COMPAT.
6885         (_IO_old_file_fopen): Call __open directly.
6886         (_IO_old_file_sync): Assume ESPIPE is defined.
6887         (_IO_old_file_write): Call __write directly.
6888         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
6889         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
6890         Call __fcntl directly.
6891         * libio/oldiofgetpos.c: Assume weak_alias is defined.
6892         (_IO_old_fgetpos): Assume EIO is defined.
6893         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
6894         (_IO_old_fgetpos64): Assume EIO is defined.
6895         * libio/oldiofsetpos.c: Assume weak_alias is defined.
6896         (_IO_old_fsetpos): Assume EIO is defined.
6897         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
6898         (_IO_old_fsetpos64): Assume EIO is defined.
6899         * libio/oldiopopen.c:  Assume _LIBC is defined.
6900         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6901         (_IO_close): Remove macro definitions.
6902         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
6903         directly.
6904         (_IO_old_proc_close): Call __close, __waitpid directly.
6905         * libio/put.c: Assume weak_alias is defined.
6906         * libio/stdfiles.c: Assume _LIBC is defined.
6907         * libio/stdio.c: Likewise.
6908         * libio/wfileops.c: Likewise.
6909         (_IO_wfile_sync): Assume ESPIPE is defined.
6910         * libio/wgenops.c: Assume _LIBC is defined.
6911         (save_for_wbackup): Remove internal_function.
6913 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6915         * malloc/malloc.c (top_check): Change return type to void.  Remove
6916         internal_function.
6917         * malloc/hooks.c (top_check): Likewise.
6918         (malloc_check, realloc_check, memalign_check): Adjust.
6920 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
6922         [BZ #21457]
6923         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6924         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
6925         sigcontext and namespace requirements.
6926         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6927         * sysdeps/m68k/sys/ucontext.h: Likewise.
6928         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
6929         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
6930         <bits/sigcontext.h>.
6931         (__ctx): Define earlier.
6932         (mcontext_t): Define structure contents rather than using struct
6933         sigcontext.
6934         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
6935         __glibc_reserved1 instead of __reserved.
6936         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
6937         <bits/sigcontext.h>.
6938         (__ctx): Define earlier.
6939         (mcontext_t): Define structure contents rather than using struct
6940         sigcontext.
6941         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
6942         mcontext_t instead of struct sigcontext.
6943         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
6944         <bits/sigcontext.h>.
6945         (__ctx): Define earlier.
6946         (mcontext_t): Define structure contents rather than using struct
6947         sigcontext.
6948         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
6949         <bits/sigcontext.h>.
6950         (__ctx): Define earlier.
6951         (mcontext_t): Define structure contents rather than using struct
6952         sigcontext.
6953         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
6954         mcontext_t instead of struct sigcontext.
6955         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
6956         mcontext_t instead of struct sigcontext.
6957         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
6958         <bits/sigcontext.h>.
6959         (__ctx): New macro.
6960         (struct __ia64_fpreg_mcontext): New type.
6961         (mcontext_t): Define structure contents rather than using struct
6962         sigcontext.
6963         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
6964         (uc_sigmask): Define using __ctx.
6965         (uc_stack): Likewise.
6966         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
6967         <bits/sigcontext.h>.
6968         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6969         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
6970         <bits/sigcontext.h>.
6971         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
6972         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
6973         <bits/sigcontext.h>.
6974         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
6975         <bits/sigcontext.h>.
6976         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
6977         <bits/sigcontext.h>.
6978         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
6979         <bits/sigcontext.h>.
6980         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
6981         <bits/sigcontext.h>.
6982         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
6983         <bits/sigcontext.h>.
6984         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
6985         <bits/sigcontext.h>.
6986         (__ctx): Define earlier.
6987         (mcontext_t): Define structure contents rather than using struct
6988         sigcontext.
6989         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
6990         <bits/sigcontext.h>.  Include <bits/types.h>.
6991         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
6992         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
6993         (test-xfail-XPG42/ucontext.h/conform): Likewise.
6994         (test-xfail-UNIX98/signal.h/conform): Likewise.
6995         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6996         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6997         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6998         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6999         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7000         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7001         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7002         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7003         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7005 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7007         * malloc/dynarray_emplace_enlarge.c
7008         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
7009         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7010         * malloc/tst-dynarray.c (test_long_overflow): New function.
7011         (do_test): Call it.
7013 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7015         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
7016         (set_arena_corrupt): Remove definitions.
7017         (mtrim): Do not check for corrupt arena.
7018         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
7019         Likewise.
7021 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7023         [BZ #21754]
7024         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
7025         check_action.
7026         (ptmalloc_init): Do not set or use check_action.
7027         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
7028         call to malloc_printerr.  Remove return statement.
7029         (free_check): Likewise.  Remove arena unlock.
7030         (top_check): Update comment.  Adjust call to malloc_printerr.
7031         Remove heap repair code.
7032         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
7033         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
7034         (sysmalloc): Adjust call to malloc_printerr.
7035         (munmap_chunk, __libc_realloc): Likewise.  Remove return
7036         statement.
7037         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
7038         Remove errout label and corresponding gotos.
7039         (_int_free): Likewise.  Remove arena unlock.
7040         (do_set_mallopt_check): Do not set check_action.
7041         (malloc_printerr): Adjust parameter list.  Do not mark arena as
7042         corrupt.
7043         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
7044         comment.
7045         * manual/probes.texi (Memory Allocation Probes): Remove
7046         memory_mallopt_check_action.
7048 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
7050         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
7051         Use pointer to uint64_t instead of long int for sp.
7053 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7055         [BZ #21754]
7056         * malloc/malloc.c (malloc_printerr): Always terminate the process,
7057         without printing a backtrace.  Do not leak any information in the
7058         error message.
7059         * manual/memory.texi (Heap Consistency Checking): Update.
7060         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
7062 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7064         Do not scale NPTL tests with available number of CPUs.
7065         * nptl/tst-cond16.c (count): Set to constant value of 8.
7066         * nptl/tst-cond18.c (count): Likewise.
7068 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7070         [BZ #22035]
7071         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
7072         Define to take a second argument that is a macro that
7073         concatentates a suffix, not the suffix itself.
7074         (__CONCAT_d): New macro.
7075         (__CONCAT_f): Likewise.
7076         (__CONCAT_l): Likewise.
7078 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
7080         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
7081         by child.
7083 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7084             Aurelien Jarno  <aurelien@aurel32.net>
7085             Maciej W. Rozycki  <macro@imgtec.com>
7087         [BZ #21956]
7088         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
7089         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
7090         `mips16-syscall6' and `mips16-syscall7'.
7091         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
7092         (CFLAGS-mips16-syscall7.c): Remove.
7093         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
7094         Remove `__mips16_syscall5', `__mips16_syscall6' and
7095         `__mips16_syscall7'.
7096         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
7097         (__mips16_syscall0): Rename `__mips16_syscall_return' to
7098         `__mips_syscall_return'.
7099         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
7100         (__mips16_syscall1): Likewise.
7101         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
7102         (__mips16_syscall2): Likewise.
7103         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
7104         (__mips16_syscall3): Likewise.
7105         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
7106         (__mips16_syscall4): Likewise.
7107         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
7108         Remove.
7109         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
7110         Remove.
7111         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
7112         Remove.
7113         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
7114         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
7115         `__mips16_syscall5'.  Remove prototype.
7116         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
7117         `__mips16_syscall6'.  Remove prototype.
7118         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
7119         `__mips16_syscall7'.  Remove prototype.
7120         (__nomips16, __mips16_syscall_return): Move to...
7121         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
7122         (__nomips16, __mips_syscall_return): ... here.
7123         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
7124         `__mips16_syscall_return' to `__mips_syscall_return'.
7125         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
7126         `internal_syscall##nr'.
7127         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
7128         `internal_syscall##nr'.
7129         (FORCE_FRAME_POINTER): Remove.
7130         (__mips_syscall5): New prototype.
7131         (internal_syscall5): Rewrite to call `__mips_syscall5'.
7132         (__mips_syscall6): New prototype.
7133         (internal_syscall6): Rewrite to call `__mips_syscall6'.
7134         (__mips_syscall7): New prototype.
7135         (internal_syscall7): Rewrite to call `__mips_syscall7'.
7136         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
7137         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
7138         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
7139         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
7140         (sysdep_routines): Add libc-do-syscall.
7141         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
7142         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
7144 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7146         [BZ #21672]
7147         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
7148         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
7149         (advise_stack_range): New function.
7150         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
7151         stack non required to advise_stack_range at allocatestack.c
7153 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7155         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
7157 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7159         [BZ #22026]
7160         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
7161         __end_fct.  Mangle __end_fct after setting it to NULL.
7162         * iconv/Makefile (tests): Add tst-gconv-init-failure.
7163         (modules-names, modules-names-tests): Add
7164         tst-gconv-init-failure-mod.
7165         (gconv-modules): New target.
7166         (tst-gconv-init-failure-mod.so): Link against libsupport.
7167         (tst-gconv-init-failure): Depend on gconv-modules,
7168         tst-gconv-init-failure-mod.so.
7169         * iconv/tst-gconv-init-failure-mod.c: New file.
7170         * iconv/tst-gconv-init-failure.c: Likewise.
7171         * iconv/test-gconv-modules: Likewise.
7173 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7175         [BZ #22025]
7176         * iconv/gconv_db.c (free_derivation): Remove redundant
7177         parentheses.
7178         (gen_steps): Unconditionally mangle __btowc_fct after
7179         initialization.
7180         (increment_counter): Likewise.  Do not call init_fct for internal
7181         modules.
7183 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7185         [BZ #22028]
7186         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7187         (_MSUF_): Remove macro.
7188         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
7189         Likewise.
7190         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7191         (__REDIRFROM_X): New macro.
7192         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
7193         Likewise.
7194         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
7195         (__REDIRTO_X): Likewise.
7196         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
7197         arguments.
7198         (__MATH_REDIRCALL_2): Likewise.
7199         (__MATH_REDIRCALL_INTERNAL): Likewise.
7200         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7201         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
7202         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
7203         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7204         * math/test-finite-macros.c: New file.
7205         * math/Makefile (tests): Add test-finite-macros.
7206         (CFLAGS-test-finite-macros.c): New variable.
7208 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
7209             Jeff Law  <law@redhat.com>
7211         [BZ #22025]
7212         Mangle NULL pointers in iconv/gconv.
7213         * iconv/gconv_cache.c (find_module): Demangle init_fct before
7214         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
7215         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
7216         is non-NULL before demangling the end_fct.  Check for NULL
7217         end_fct after demangling.
7218         (__gconv_release_step): Demangle the end_fct before checking
7219         it for NULL.   Remove assert on __shlibc_handle != NULL.
7220         (gen_steps): Don't check btowc_fct for NULL before mangling.
7221         Demangle init_fct before checking for NULL.
7222         (increment_counter): Likewise.
7223         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
7224         end_fct for NULL before mangling.
7225         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
7226         for NULL.
7228 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
7230         [BZ #21971]
7231         * locale/iso-639.def: add Morisyen.
7233 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7235         [BZ #21930]
7236         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
7237         (iszero): New C++ implementation that does not use
7238         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
7239         signaling nans are enabled, since __builtin_types_compatible_p
7240         is a C-only feature.
7241         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
7242         defined, include ieee754_float128.h for access to the union and
7243         member ieee854_float128.ieee.
7244         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
7245         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
7246         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7247         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
7248         options of test-math-zero on powerpc64le.
7250 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
7252         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
7253         Change double to float.
7255 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
7257         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
7258         unconditional.
7259         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
7260         conditional code; define contents only for [LIBM_SVID_COMPAT].
7262 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7264         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
7265         (abi-lp64_be-options): Remove.
7266         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
7267         (abi-hard-options): Likewise.
7268         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
7269         (abi-o32_hard-options, abi-o32_soft_2008-options)
7270         (abi-o32_hard_2008-options, abi-n32_soft-options)
7271         (abi-n32_hard-options, abi-n32_soft_2008-options)
7272         (abi-n32_hard_2008-options, abi-n64_soft-options)
7273         (abi-n64_hard-options, abi-n64_soft_2008-options)
7274         (abi-n64_hard_2008-options): Likewise.
7275         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
7276         (abi-64-v1-options, abi-64-v2-options): Likewise.
7277         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
7278         (abi-64-options): Likewise.
7279         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
7280         (abi-64-options): Likewise.
7281         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
7282         (abi-64-options): Likewise.
7283         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
7284         (abi-64-options, abi-x32-options): Likewise.
7286 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7288         Store supported list of SYS_* system calls in the source tree.
7289         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7290         (bits/syscall.h): Generate from list file.
7291         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
7292         [$(subdir) = misc] (tests): Add tst-syscall-list.
7293         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
7294         [$(subdir) = misc] (tst-syscall-list-macros.list)
7295         [$(subdir) = misc] (tst-syscall-list-nr.list)
7296         (tst-syscall-list-sys.list): Helper targets for new
7297         tst-syscall-list test.
7298         [$(subdir) = misc] (tst-syscall-list.out): Run test script
7299         tst-syscall-list.sh.
7300         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
7301         target. Do not include bits/syscall.d.
7302         [$(subdir) = misc] (generated): Do not update.
7303         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
7304         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
7305         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
7306         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
7308 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
7310         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
7311         (tst-cxa_atexit, tst-on_exit): Likewise.
7312         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
7313         tst-cxa_atexit, and tst-on_exit.
7314         * stdlib/tst-atexit-common.c: New file.
7315         * stdlib/tst-atexit.c: New file.
7316         * stdlib/tst-at_quick_exit.c: New file.
7317         * stdlib/tst-cxa_atexit.c: New file.
7318         * stdlib/tst-on_exit.c: New file.
7320 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7322         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
7323         * mach/stack_chk_fail_local.c: New file.
7324         * hurd/stack_chk_fail_local.c: New file.
7325         * mach/Machrules ($(interface-library)-routines): Add
7326         stack_chk_fail_local.
7327         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
7328         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
7329         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
7330         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
7331         * hurd/Makefile (CFLAGS-hurdstartup.o,
7332         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
7334 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
7336         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
7337         (index_cpu_*, index_arch_*): Removed.
7339 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7341         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
7342         Use uint64_t instead of unsigned long.
7344 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
7346         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
7347         [__HAVE_DISTINCT_FLOAT128].
7349         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
7350         of <bits/math-finite.h>.
7351         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
7352         inclusion of <bits/math-finite.h>.
7353         * math/bits/math-finite.h (__REDIRTO_X): Do not define
7354         conditionally on [__MATH_DECLARING_LDOUBLE && defined
7355         __NO_LONG_DOUBLE_MATH].
7356         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
7357         (__MATH_REDIRCALL_2): Likewise.
7358         (__MATH_REDIRCALL_INTERNAL): Likewise.
7359         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7360         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
7361         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7363         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
7364         Remove file.
7365         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
7366         Likewise.
7367         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
7368         Likewise.
7369         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
7370         Likewise.
7371         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
7372         Likewise.
7373         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
7374         Likewise.
7375         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
7376         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
7377         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
7378         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
7379         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
7380         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
7381         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
7382         w_sqrtf_compat-ppc32.
7384 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7386         * math/math.h [defined __cplusplus] (issignaling): In the long
7387         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
7388         is not defined.  Call __issignaling, otherwise.
7390 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7392         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
7393         syscall definitions and replace __builtin_expect with __glibc_likely.
7394         * sysdeps/unix/syscall-template.S: Update comment about cancellable
7395         syscall.
7396          (SYSCALL_CANCELLABLE): Removedefinition
7397         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
7398         definition.
7399         (PSEUDO_END): Likewise.
7400         [IS_IN (libpthread)] (CENABLE): Likewise.
7401         [IS_IN (libpthread)] (CDISABLE): Likewise.
7402         [IS_IN (libc)] (CENABLE): Likewise.
7403         [IS_IN (libc)] (CENABLE): Likewise.
7404         [IS_IN (librt)] (CDISABLE): Likewise.
7405         [IS_IN (librt)] (CDISABLE): Likewise.
7406         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7407         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
7408         definition.
7409         (PSEUDO_END): Likewise.
7410         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
7411         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
7412         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7413         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7414         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7415         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7416         (CENABLE): Likewise.
7417         (CDISABLE): Likewise.
7418         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7419         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
7420         defintion.
7421         (PSEUDO_END): Likewise.
7422         [IS_IN (libpthread)] (CENABLE): Likewise.
7423         [IS_IN (libpthread)] (CDISABLE): Likewise.
7424         [IS_IN (libc)] (CENABLE): Likewise.
7425         [IS_IN (libc)] (CENABLE): Likewise.
7426         [IS_IN (librt)] (CDISABLE): Likewise.
7427         [IS_IN (librt)] (CDISABLE): Likewise.
7428         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7429         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
7430         definition.
7431         (PSEUDO_END): Likewise.
7432         [IS_IN (libpthread)] (CENABLE): Likewise.
7433         [IS_IN (libpthread)] (CDISABLE): Likewise.
7434         [IS_IN (libc)] (CENABLE): Likewise.
7435         [IS_IN (libc)] (CENABLE): Likewise.
7436         [IS_IN (librt)] (CDISABLE): Likewise.
7437         [IS_IN (librt)] (CDISABLE): Likewise.
7438         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7439         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
7440         definition.
7441         (PSEUDO_END): Likewise.
7442         [IS_IN (libpthread)] (CENABLE): Likewise.
7443         [IS_IN (libpthread)] (CDISABLE): Likewise.
7444         [IS_IN (libc)] (CENABLE): Likewise.
7445         [IS_IN (libc)] (CENABLE): Likewise.
7446         [IS_IN (librt)] (CDISABLE): Likewise.
7447         [IS_IN (librt)] (CDISABLE): Likewise.
7448         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7449         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
7450         definition.
7451         (PSEUDO_END): Likewise.
7452         [IS_IN (libpthread)] (CENABLE): Likewise.
7453         [IS_IN (libpthread)] (CDISABLE): Likewise.
7454         [IS_IN (libc)] (CENABLE): Likewise.
7455         [IS_IN (libc)] (CENABLE): Likewise.
7456         [IS_IN (librt)] (CDISABLE): Likewise.
7457         [IS_IN (librt)] (CDISABLE): Likewise.
7458         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7459         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
7460         definition.
7461         (PSEUDO_END): Likewise.
7462         [IS_IN (libpthread)] (CENABLE): Likewise.
7463         [IS_IN (libpthread)] (CDISABLE): Likewise.
7464         [IS_IN (libc)] (CENABLE): Likewise.
7465         [IS_IN (libc)] (CENABLE): Likewise.
7466         [IS_IN (librt)] (CDISABLE): Likewise.
7467         [IS_IN (librt)] (CDISABLE): Likewise.
7468         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7469         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
7470         definition.
7471         (PSEUDO_END): Likewise.
7472         [IS_IN (libpthread)] (CENABLE): Likewise.
7473         [IS_IN (libpthread)] (CDISABLE): Likewise.
7474         [IS_IN (libc)] (CENABLE): Likewise.
7475         [IS_IN (libc)] (CENABLE): Likewise.
7476         [IS_IN (librt)] (CDISABLE): Likewise.
7477         [IS_IN (librt)] (CDISABLE): Likewise.
7478         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7479         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
7480         Remove definition.
7481         (PSEUDO_END): Likewise.
7482         [IS_IN (libpthread)] (CENABLE): Likewise.
7483         [IS_IN (libpthread)] (CDISABLE): Likewise.
7484         [IS_IN (libc)] (CENABLE): Likewise.
7485         [IS_IN (libc)] (CENABLE): Likewise.
7486         [IS_IN (librt)] (CDISABLE): Likewise.
7487         [IS_IN (librt)] (CDISABLE): Likewise.
7488         (SINGLE_THREAD_P): Likewise.
7489         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
7490         definition.
7491         (PSEUDO_END): Likewise.
7492         [IS_IN (libpthread)] (CENABLE): Likewise.
7493         [IS_IN (libpthread)] (CDISABLE): Likewise.
7494         [IS_IN (libc)] (CENABLE): Likewise.
7495         [IS_IN (libc)] (CENABLE): Likewise.
7496         [IS_IN (librt)] (CDISABLE): Likewise.
7497         [IS_IN (librt)] (CDISABLE): Likewise.
7498         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7499         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
7500         definition.
7501         (PSEUDO_END): Likewise.
7502         [IS_IN (libpthread)] (CENABLE): Likewise.
7503         [IS_IN (libpthread)] (CDISABLE): Likewise.
7504         [IS_IN (libc)] (CENABLE): Likewise.
7505         [IS_IN (libc)] (CENABLE): Likewise.
7506         [IS_IN (librt)] (CDISABLE): Likewise.
7507         [IS_IN (librt)] (CDISABLE): Likewise.
7508         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7509         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
7510         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
7511         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
7512         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
7513         definition.
7514         (PSEUDO_END): Likewise.
7515         [IS_IN (libpthread)] (CENABLE): Likewise.
7516         [IS_IN (libpthread)] (CDISABLE): Likewise.
7517         [IS_IN (libc)] (CENABLE): Likewise.
7518         [IS_IN (libc)] (CENABLE): Likewise.
7519         [IS_IN (librt)] (CDISABLE): Likewise.
7520         [IS_IN (librt)] (CDISABLE): Likewise.
7521         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7522         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
7523         definition.
7524         (PSEUDO_END): Likewise.
7525         [IS_IN (libpthread)] (CENABLE): Likewise.
7526         [IS_IN (libpthread)] (CDISABLE): Likewise.
7527         [IS_IN (libc)] (CENABLE): Likewise.
7528         [IS_IN (libc)] (CENABLE): Likewise.
7529         [IS_IN (librt)] (CDISABLE): Likewise.
7530         [IS_IN (librt)] (CDISABLE): Likewise.
7531         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7532         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
7533         definition.
7534         (PSEUDO_END): Likewise.
7535         [IS_IN (libpthread)] (CENABLE): Likewise.
7536         [IS_IN (libpthread)] (CDISABLE): Likewise.
7537         [IS_IN (libc)] (CENABLE): Likewise.
7538         [IS_IN (libc)] (CENABLE): Likewise.
7539         [IS_IN (librt)] (CDISABLE): Likewise.
7540         [IS_IN (librt)] (CDISABLE): Likewise.
7541         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7542         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
7543         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
7544         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
7545         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
7546         definition.
7547         (PSEUDO_END): Likewise.
7548         [IS_IN (libpthread)] (CENABLE): Likewise.
7549         [IS_IN (libpthread)] (CDISABLE): Likewise.
7550         [IS_IN (libc)] (CENABLE): Likewise.
7551         [IS_IN (libc)] (CENABLE): Likewise.
7552         [IS_IN (librt)] (CDISABLE): Likewise.
7553         [IS_IN (librt)] (CDISABLE): Likewise.
7554         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7555         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
7556         definition.
7557         (PSEUDO_END): Likewise.
7558         [IS_IN (libpthread)] (CENABLE): Likewise.
7559         [IS_IN (libpthread)] (CDISABLE): Likewise.
7560         [IS_IN (libc)] (CENABLE): Likewise.
7561         [IS_IN (libc)] (CENABLE): Likewise.
7562         [IS_IN (librt)] (CDISABLE): Likewise.
7563         [IS_IN (librt)] (CDISABLE): Likewise.
7564         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7566 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7568         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
7570 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
7572         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7574 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
7576         [BZ #21982]
7577         * string/stratcliff.c (do_test): Declare size, nchars, inner,
7578         middle and outer with size_t instead of int.  Repleace %d and
7579         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
7580         "MAX (outer, nchars - 64)" to support unsigned outer and
7581         nchars.  Also exit loop when outer == 0.
7583 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7585         * include/fcntl.h (__fcntl_nocancel): Remove definition.
7586         * include/signal.h (__sigsuspend_nocancel): Likewise.
7587         * include/time.h (__nanosleep_nocancel): Likewise.
7588         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
7589         * login/utmp_file.c: Include non cancellable syscall header.
7590         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
7591         prototype.
7593 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
7595         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
7596         .byte sequences with AVX512F instructions.
7597         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
7598         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
7599         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
7600         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
7601         Likewise.
7602         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
7603         Likewise.
7605 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7606             Steve Ellcey  <sellcey@cavium.com>
7608         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
7609         Use PTR_REG macro in cmp instruction.
7611 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7613         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
7614         Change the return type of the ifunc resolver to match the return
7615         type of the target function.
7617 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7619         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
7620         (preadv64): Likewise.
7621         (pwrite64(: Likewise.
7622         (pwritev64): Likewise.
7624         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
7625         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
7626         (LOAD_ARGS_0): Likewise.
7627         (LOAD_ARGS_1): Likewise.
7628         (LOAD_ARGS_2): Likewise.
7629         (LOAD_ARGS_3): Likewise.
7630         (LOAD_ARGS_4): Likewise.
7631         (LOAD_ARGS_5): Likewise.
7632         (LOAD_ARGS_6): Likewise.
7633         (LOAD_REGS_0): Likewise.
7634         (LOAD_REGS_1): Likewise.
7635         (LOAD_REGS_2): Likewise.
7636         (LOAD_REGS_3): Likewise.
7637         (LOAD_REGS_4): Likewise.
7638         (LOAD_REGS_5): Likewise.
7639         (LOAD_REGS_6): Likewise.
7640         (ASM_ARGS_0): Likewise.
7641         (ASM_ARGS_1): Likewise.
7642         (ASM_ARGS_2): Likewise.
7643         (ASM_ARGS_3): Likewise.
7644         (ASM_ARGS_4): Likewise.
7645         (ASM_ARGS_5): Likewise.
7646         (ASM_ARGS_6): Likewise.
7647         (LOAD_ARGS_TYPES_1): Likewise.
7648         (LOAD_ARGS_TYPES_2): Likewise.
7649         (LOAD_ARGS_TYPES_3): Likewise.
7650         (LOAD_ARGS_TYPES_4): Likewise.
7651         (LOAD_ARGS_TYPES_5): Likewise.
7652         (LOAD_ARGS_TYPES_6): Likewise.
7653         (LOAD_REGS_TYPES_1): Likewise.
7654         (LOAD_REGS_TYPES_2): Likewise.
7655         (LOAD_REGS_TYPES_3): Likewise.
7656         (LOAD_REGS_TYPES_4): Likewise.
7657         (LOAD_REGS_TYPES_5): Likewise.
7658         (LOAD_REGS_TYPES_6): Likewise.
7659         (TYPEFY): New define.
7660         (ARGIFY): Likewise.
7661         (internal_syscall0): Likewise.
7662         (internal_syscall1): Likewise.
7663         (internal_syscall2): Likewise.
7664         (internal_syscall3): Likewise.
7665         (internal_syscall4): Likewise.
7666         (internal_syscall5): Likewise.
7667         (internal_syscall6): Likewise.
7668         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
7669         (INTERNAL_SYSCALL_NCS): Remove define.
7670         (internal_syscall1): Add define.
7672 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7674         * math/w_remainder_compat.c: Remove duplicate inclusion of
7675         math-svid-compat.h.
7676         * math/w_remainderf_compat.c: Likewise.
7677         * math/w_remainderl_compat.c: Likewise.
7679 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7681         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7683 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
7685         [BZ #21684]
7686         * math/tgmath.h (__floating_type): Simplify definitions.
7687         (__real_integer_type): New macro.
7688         (__complex_integer_type): Likewise.
7689         (__expr_is_real): Likewise.
7690         (__tgmath_real_type_sub): Update comment to describe handling of
7691         complex types.
7692         (__tgmath_complex_type_sub): New macro.
7693         (__tgmath_complex_type): Likewise.
7694         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7695         (__TGMATH_CF128): Use __expr_is_real.
7696         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
7697         __expr_is_real.
7698         (__TGMATH_BINARY_REAL_IMAG): Likewise.
7699         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
7700         * math/gen-tgmath-tests.py (Type.create_type): Create complex
7701         integer types.
7703 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7705         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
7706         macro.
7707         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
7708         alias.
7709         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
7710         Likewise.
7712         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
7713         nanosleep_not_cancel with __nanosleep_nocancel.
7714         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
7715         (__nanosleep_nocancel): New macro.
7716         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
7717         function.
7718         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
7719         macro.
7720         (__nanosleep_nocancel): New prototype.
7722         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
7723         pause_not_cancel with __pause_nocancel.
7724         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
7725         (__pause_nocancel): New macro.
7726         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
7727         macro.
7728         (__pause_nocancel): New prototype.
7729         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
7731 2017-08-22  Martin Sebor  <msebor@redhat.com>
7733         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
7734         to return a pointer to the same type as the target function.
7736 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
7738         [BZ #18822]
7739         [BZ #21986]
7740         * include/printf.h (__printf_fphex): Add attribute_hidden.
7741         (__guess_grouping): New prototype.
7742         * stdio-common/printf_fp.c (__guess_grouping): Removed.
7743         * stdio-common/reg-printf.c (__register_printf_specifier): Add
7744         libc_hidden_proto and libc_hidden_def.
7745         * stdlib/strfmon_l.c (__guess_grouping): Removed.
7746         (__vstrfmon_l): Remove the third argument passed to
7747         __guess_grouping.
7749 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7751         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
7752         definition for issignaling that does not rely on __MATH_TG,
7753         since __MATH_TG uses __builtin_types_compatible_p, which is only
7754         available in C mode.
7755         (CFLAGS-test-math-issignaling.cc): New variable.
7756         * math/Makefile [CXX] (tests): Add test-math-issignaling.
7757         * math/test-math-issignaling.cc: New test for C++ implementation
7758         of type-generic issignaling.
7759         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7760         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
7761         options of test-math-issignaling on powerpc64le.
7763 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
7765         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7766         building libc.a.
7767         (hidden_proto): Likewise.
7768         (hidden_tls_proto): Likewise.
7769         (__hidden_proto): Likewise.
7771 2017-08-22  Florian Weimer  <fweimer@redhat.com>
7773         math: Statically link tests of internal functionality.
7774         * math/Makefile (tests): Remove atest-exp, atest-sincos,
7775         atest-exp2.
7776         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
7777         (gmp-objs): Remove assignment.
7778         (atest-exp, atest-sincos, atest-exp2): Remove targets.
7780 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
7782         [BZ #21987]
7783         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
7784         and copy to ...
7785         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
7786         ... here.
7787         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
7788         ... and here.
7790         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
7791         variable definitions above inclusion of ../Rules.
7793 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
7795         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
7796         case calling __builtin_unreachable.
7798 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7800         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
7801         __waitpid_nocancel.
7802         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
7803         (__waitpid_nocancel): New macro.
7804         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
7805         macro.
7806         (__waitpid_nocancel): Replace macro with a function.
7807         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
7808         function.
7810         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
7811         __fcntl_nocancel.
7812         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
7813         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
7815         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
7816         __writev_nocancel_nostatus.
7817         (write_call_graph): Likewise.
7818         (write_bb_counts): Likewise.
7819         * resolv/herror.c (herror): Likewise.
7820         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
7821         macro.
7822         (__writev_nocancel_nostatus): New macro.
7823         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
7824         Remove macro.
7825         (__writev_nocancel_nostatus): New function.
7827 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
7829         Revert:
7830         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7832         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7833         building libc.a.
7834         (hidden_proto): Likewise.
7835         (hidden_tls_proto): Likewise.
7836         (__hidden_proto): Likewise.
7838         [BZ #21973]
7839         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
7840         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
7841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
7842         Likewise.
7843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
7844         Likewise.
7845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
7846         Likewise.
7847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
7848         Likewise.
7849         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
7850         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
7851         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
7852         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
7853         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
7854         GLIBC_2.0 sqrtl symbol.
7856         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
7857         [__USE_MISC] (_LIB_VERSION): Likewise.
7858         [__USE_MISC] (struct exception): Likewise.
7859         [__USE_MISC] (matherr): Likewise.
7860         [__USE_MISC] (DOMAIN): Likewise.
7861         [__USE_MISC] (SING): Likewise.
7862         [__USE_MISC] (OVERFLOW): Likewise.
7863         [__USE_MISC] (UNDERFLOW): Likewise.
7864         [__USE_MISC] (TLOSS): Likewise.
7865         [__USE_MISC] (PLOSS): Likewise.
7866         [__USE_MISC] (HUGE): Likewise.
7867         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
7868         * math/math-svid-compat.h: New file.
7869         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
7870         and matherrl.
7871         * include/math.h [!_ISOMAC] (__matherr): Remove.
7872         * manual/arith.texi (FP Exceptions): Do not document matherr.
7873         * math/Makefile (tests): Change test-matherr to test-matherr-3.
7874         (tests-internal): New variable.
7875         (install-lib): Do not add libieee.a.
7876         (non-lib.a): Likewise.
7877         (extra-objs): Do not add libieee.a and ieee-math.o.
7878         (CPPFLAGS-s_lib_version.c): Remove variable.
7879         ($(objpfx)libieee.a): Remove rule.
7880         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
7881         * math/ieee-math.c: Remove.
7882         * math/libm-test-support.c (matherr): Remove.
7883         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
7884         and license notices.  Include <math-svid-compat.h> and
7885         <shlib-compat.h>.
7886         (matherr): Undefine as macro.  Use compat_symbol_reference.
7887         (_LIB_VERSION): Likewise.
7888         * math/test-matherr-2.c: New file.
7889         * math/test-matherr-3.c: Likewise.
7890         * sysdeps/generic/math_private.h (__kernel_standard): Remove
7891         declaration.
7892         (__kernel_standard_f): Likewise.
7893         (__kernel_standard_l): Likewise.
7894         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
7895         <math_private.h>.  Include <math-svid-compat.h>.
7896         (_LIB_VERSION): Undefine as macro.
7897         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
7898         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
7899         [LIBM_SVID_COMPAT], use compat_symbol.
7900         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
7901         <math_private.h>.  Include <math-svid-compat.h>.
7902         (matherr): Undefine as macro.
7903         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
7904         compat_symbol.
7905         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
7906         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
7907         compat_symbol_reference.
7908         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
7909         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
7910         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
7911         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
7912         (MATHERR_D): Remove declaration.
7913         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
7914         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
7915         [LIBM_BUILD] (pmatherrf): Likewise.
7916         [LIBM_BUILD] (pmatherr): Likewise.
7917         [LIBM_BUILD] (pmatherrl): Likewise.
7918         (DOMAIN): Likewise.
7919         (SING): Likewise.
7920         (OVERFLOW): Likewise.
7921         (UNDERFLOW): Likewise.
7922         (TLOSS): Likewise.
7923         (PLOSS): Likewise.
7924         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
7925         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
7926         compat_symbol.
7927         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
7928         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
7929         compat_symbol.
7930         * math/lgamma-compat.h: Include <math-svid-compat.h>.
7931         * math/w_acos_compat.c: Likewise.
7932         * math/w_acosf_compat.c: Likewise.
7933         * math/w_acosh_compat.c: Likewise.
7934         * math/w_acoshf_compat.c: Likewise.
7935         * math/w_acoshl_compat.c: Likewise.
7936         * math/w_acosl_compat.c: Likewise.
7937         * math/w_asin_compat.c: Likewise.
7938         * math/w_asinf_compat.c: Likewise.
7939         * math/w_asinl_compat.c: Likewise.
7940         * math/w_atan2_compat.c: Likewise.
7941         * math/w_atan2f_compat.c: Likewise.
7942         * math/w_atan2l_compat.c: Likewise.
7943         * math/w_atanh_compat.c: Likewise.
7944         * math/w_atanhf_compat.c: Likewise.
7945         * math/w_atanhl_compat.c: Likewise.
7946         * math/w_cosh_compat.c: Likewise.
7947         * math/w_coshf_compat.c: Likewise.
7948         * math/w_coshl_compat.c: Likewise.
7949         * math/w_exp10_compat.c: Likewise.
7950         * math/w_exp10f_compat.c: Likewise.
7951         * math/w_exp10l_compat.c: Likewise.
7952         * math/w_exp2_compat.c: Likewise.
7953         * math/w_exp2f_compat.c: Likewise.
7954         * math/w_exp2l_compat.c: Likewise.
7955         * math/w_fmod_compat.c: Likewise.
7956         * math/w_fmodf_compat.c: Likewise.
7957         * math/w_fmodl_compat.c: Likewise.
7958         * math/w_hypot_compat.c: Likewise.
7959         * math/w_hypotf_compat.c: Likewise.
7960         * math/w_hypotl_compat.c: Likewise.
7961         * math/w_j0_compat.c: Likewise.
7962         * math/w_j0f_compat.c: Likewise.
7963         * math/w_j0l_compat.c: Likewise.
7964         * math/w_j1_compat.c: Likewise.
7965         * math/w_j1f_compat.c: Likewise.
7966         * math/w_j1l_compat.c: Likewise.
7967         * math/w_jn_compat.c: Likewise.
7968         * math/w_jnf_compat.c: Likewise.
7969         * math/w_jnl_compat.c: Likewise.
7970         * math/w_lgamma_main.c: Likewise.
7971         * math/w_lgamma_r_compat.c: Likewise.
7972         * math/w_lgammaf_main.c: Likewise.
7973         * math/w_lgammaf_r_compat.c: Likewise.
7974         * math/w_lgammal_main.c: Likewise.
7975         * math/w_lgammal_r_compat.c: Likewise.
7976         * math/w_log10_compat.c: Likewise.
7977         * math/w_log10f_compat.c: Likewise.
7978         * math/w_log10l_compat.c: Likewise.
7979         * math/w_log2_compat.c: Likewise.
7980         * math/w_log2f_compat.c: Likewise.
7981         * math/w_log2l_compat.c: Likewise.
7982         * math/w_log_compat.c: Likewise.
7983         * math/w_logf_compat.c: Likewise.
7984         * math/w_logl_compat.c: Likewise.
7985         * math/w_pow_compat.c: Likewise.
7986         * math/w_powf_compat.c: Likewise.
7987         * math/w_powl_compat.c: Likewise.
7988         * math/w_remainder_compat.c: Likewise.
7989         * math/w_remainderf_compat.c: Likewise.
7990         * math/w_remainderl_compat.c: Likewise.
7991         * math/w_scalb_compat.c: Likewise.
7992         * math/w_scalbf_compat.c: Likewise.
7993         * math/w_scalbl_compat.c: Likewise.
7994         * math/w_sinh_compat.c: Likewise.
7995         * math/w_sinhf_compat.c: Likewise.
7996         * math/w_sinhl_compat.c: Likewise.
7997         * math/w_sqrt_compat.c: Likewise.
7998         * math/w_sqrtf_compat.c: Likewise.
7999         * math/w_sqrtl_compat.c: Likewise.
8000         * math/w_tgamma_compat.c: Likewise.
8001         * math/w_tgammaf_compat.c: Likewise.
8002         * math/w_tgammal_compat.c: Likewise.
8003         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
8004         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
8005         * sysdeps/ieee754/k_standard.c: Likewise.
8006         * sysdeps/ieee754/k_standardf.c: Likewise.
8007         * sysdeps/ieee754/k_standardl.c: Likewise.
8008         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
8009         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
8010         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
8011         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8012         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8013         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8014         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8015         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8016         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8018         Likewise.
8019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8020         Likewise.
8021         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
8022         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8023         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8024         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8026 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8028         [BZ #21864]
8029         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
8030         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
8031         Move before inclusion of ../Rules.
8033 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8035         [BZ #21972]
8036         * assert/assert.h (assert): Use static_cast (bool) for C++.
8037         Use the ternary operator in the warning branch for GNU C.
8038         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
8039         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
8040         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
8041         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
8042         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
8044 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8046         [BZ #18822]
8047         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8048         (__syscall_clock_gettime): Add attribute_hidden.
8049         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
8050         (__start_context): Likewise.
8052 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8054         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8055         building libc.a.
8056         (hidden_proto): Likewise.
8057         (hidden_tls_proto): Likewise.
8058         (__hidden_proto): Likewise.
8060 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8062         * include/libc-symbols.h (attribute_hidden): Enable hidden
8063         visibility in libc.a compiled with PIE.
8065 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8067         [BZ #18822]
8068         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
8069         Add attribute_hidden.
8071 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8073         [BZ #21864]
8074         * Makerules (all-nonlib): Add $(others-extras).
8075         * catgets/Makefile (others-extras): New.
8076         * elf/Makefile (others-extras): Likewise.
8077         * nss/Makefile (others-extras): Likewise.
8079 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8081         [BZ #18822]
8082         * csu/libc-start.c (__libc_multiple_libcs): Removed.
8083         * elf/dl-open.c: Include <libc-internal.h>.
8084         (__libc_multiple_libcs): Removed.
8085         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
8086         <hp-timing.h>.
8087         * include/libc-internal.h (__libc_multiple_libcs): New.
8088         * misc/sbrk.c: Include <libc-internal.h>.
8089         (__libc_multiple_libcs): Removed.
8091 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8093         [BZ #18822]
8094         * grp/initgroups.c (__nss_group_database): Removed.
8095         (__nss_initgroups_database): Likewise.
8096         * nscd/gai.c (__nss_hosts_database): Likewise.
8097         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
8098         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
8099         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
8100         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
8101         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
8102         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
8103         attribute_hidden.
8104         * nss/nsswitch.c (__nss_database_custom): Define only if
8105         USE_NSCD is defined.
8106         (__nss_configure_lookup): Use __nss_database_custom only if
8107         USE_NSCD is defined.
8108         * nss/nsswitch.h (__nss_database_custom): Declare only if
8109         USE_NSCD is defined.  Add attribute_hidden.
8110         (__nss_setent): Add attribute_hidden.
8111         (__nss_endent): Likewise.
8112         (__nss_getent_r): Likewise.
8113         (__nss_getent): Likewise.
8114         (DEFINE_DATABASE): Declare __nss_##arg##_database.
8116 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8118         [BZ #18822]
8119         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
8120         libc_hidden_proto and libc_hidden_def.
8122 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8124         [BZ #18822]
8125         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
8126         Add libc_hidden_proto.
8127         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
8128         Add libc_hidden_def.
8130 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8132         [BZ #21974]
8133         * gmon/Makefile (routines): Remove bb_init_func and
8134         bb_exit_func.
8135         (elide-routines.os): Removed.
8136         * gmon/bb_exit_func.c: Likewise.
8137         * gmon/bb_init_func.c: Likewise.
8138         * include/sys/gmon.h (__bb): Likewise.
8139         (__bb_init_func): Likewise.
8140         (__bb_exit_func): Likewise.
8141         * sysdeps/alpha/bb_init_func.S: Likewise.
8143 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8145         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
8146         * include/setjmp.h (____longjmp_chk): Here.  Add
8147         attribute_hidden.
8149 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8151         [BZ #18822]
8152         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
8153         attribute_hidden.
8154         (__strspn_sse2): Likewise.
8156 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8158         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
8159         (close_not_cancel_no_status): Likewise.
8160         (__close_nocancel): New macro.
8161         (__close_nocancel_nostatus): Likewise.
8162         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
8163         macro.
8164         (close_not_cancel): Likewise.
8165         (close_not_cancel_no_status): Likewise.
8166         (__close_nocancel): New prototype.
8167         (__close_nocancel_nostatus): New function.
8168         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
8169         * catgets/open_catalog.c (__open_catalog): Replace
8170         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
8171         * gmon/gmon.c (write_gmon): Likewise.
8172         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8173         * intl/loadmsgcat.c (close): Likewise.
8174         * io/ftw.c (open_dir_stream): Likewise.
8175         (ftw_startup): Likewise.
8176         * libio/fileops.c (_IO_file_open): Likewise.
8177         (_IO_file_close_mmap): Likewise.
8178         (_IO_file_close): Likewise.
8179         * libio/iopopen.c (_IO_dup2): Likewise.
8180         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8181         * locale/loadlocale.c (_nl_load_locale): Likewise.
8182         * login/utmp_file.c (pututline_file): Likewise.
8183         (endutent_file): Likewise.
8184         * misc/daemon.c (daemon): Likewise.
8185         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8186         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8187         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8188         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8189         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8190         * nscd/nscd_helper.c (open_socket): Likewise.
8191         (__nscd_open_socket): Likewise.
8192         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8193         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
8194         (__nscd_innetgr): Likewise.
8195         * nss/nss_db/db-open.c (internal_setent): Likewise.
8196         * resolv/res-close.c (__res_iclose): Likewise.
8197         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
8198         * sysdeps/posix/closedir.c (__closedir): Likewise.
8199         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
8200         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8201         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8202         (opendir_tail): Likewise.
8203         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8204         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
8205         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8206         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8207         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8208         (gethostid): Likewise.
8209         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8210         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8211         Likewise.
8212         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8213         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
8214         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8215         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8216         Likewise.
8217         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
8218         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
8219         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8220         Likewise.
8221         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
8222         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8223         Likewise.
8224         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8225         Likewise.
8226         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8227         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8228         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8229         __close_nocancel.
8231         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
8232         (openat_not_cancel_3): Likewise.
8233         (openat64_not_cancel_3): Likewise).
8234         (openat_not_cancel_3): Likewise).
8235         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
8236         macro.
8237         (openat_not_cancel_3): Likewise.
8238         (openat64_not_cancel): Likewise.
8239         (openat64_not_cancel_3): Likewise.
8240         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
8241         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
8242         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
8243         __open{64}_nocancel.
8244         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8245         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8246         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8248 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8250         [BZ #18822]
8251         * include/argz.h (__argz_create_sep): New function prototype.
8252         (__argz_append): Likewise.
8253         (__argz_add): Likewise.
8254         (__argz_add_sep): Likewise.
8255         (__argz_delete): Likewise.
8256         (__argz_insert): Likewise.
8257         (__argz_replace): Likewise.
8258         * string/argz.h (__argz_create_sep): Removed.
8259         (__argz_append): Likewise.
8260         (__argz_add): Likewise.
8261         (__argz_add_sep): Likewise.
8262         (__argz_delete): Likewise.
8263         (__argz_insert): Likewise.
8264         (__argz_replace): Likewise.
8266 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8268         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
8269         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
8270         (GNU_PROPERTY_STACK_SIZE): Likewie.
8271         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
8272         (GNU_PROPERTY_LOPROC): Likewise.
8273         (GNU_PROPERTY_HIPROC): Likewise.
8274         (GNU_PROPERTY_LOUSER): Likewise.
8275         (GNU_PROPERTY_HIUSER): Likewise.
8276         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
8277         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
8278         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
8279         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
8280         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
8281         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
8282         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
8283         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
8284         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
8285         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
8286         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
8287         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
8288         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
8289         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
8290         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
8291         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
8292         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
8293         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
8294         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
8295         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
8296         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
8297         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
8298         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
8300 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8302         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
8303         in C++ mode.
8305 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8307         [BZ #21930]
8308         * math/math.h (isinf): Check if in C or C++ mode before using
8309         __builtin_types_compatible_p, since this is a C mode feature.
8311 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8313         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
8314         (__write_nocancel): New macro.
8315         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
8316         Rewrite as a function prototype.
8317         (write_not_cancel): Remove macro.
8318         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
8319         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
8320         (write_gmon): Likewise.
8321         * libio/fileops.c (_IO_new_file_write): Likewise.
8322         * login/utmp_file.c (pututline_file): Likewise.
8323         (updwtmp_file): Likewise.
8324         * stdio-common/psiginfo.c (psiginfo): Likewise.
8325         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8326         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8327         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8328         Likewise.
8329         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8330         Likewise.
8332         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
8333         (__read_nocancel): New macro.
8334         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8335         __read_nocancel.
8336         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
8337         macro.
8338         (__read_nocancel): New prototype.
8339         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
8340         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
8341         with __read_nocancel.
8342         * intl/loadmsgcat.c (read): Likewise.
8343         * libio/fileops.c (_IO_file_read): Likewise.
8344         * locale/loadlocale.c (_nl_load_locale): Likewise.
8345         * login/utmp_file.c (getutent_r_file): Likewise.
8346         (internal_getut_r): Likewise.
8347         (getutline_r_file): Likewise.
8348         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8349         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
8350         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8351         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8352         Likewise.
8353         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
8354         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8355         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8356         Likewise.
8357         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8358         Likewise.
8359         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8360         Likewise.
8361         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8362         Likewise.
8363         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8365 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8367         [BZ #21966]
8368         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
8369         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
8370         usable.
8372 2017-08-17  DJ Delorie  <dj@redhat.com>
8374         * bug17079.c: Update to new test harness.
8375         * test-digits-dots.c: Likewise.
8376         * test-netdb.c: Likewise.
8377         * tst-field.c: Likewise.
8378         * tst-nss-getpwent.c: Likewise.
8379         * tst-nss-static.c: Likewise.
8380         * tst-nss-test1.c: Likewise.
8381         * tst-nss-test2.c: Likewise.
8382         * tst-nss-test3.c: Likewise.
8383         * tst-nss-test4.c: Likewise.
8384         * tst-nss-test5.c: Likewise.
8386 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8388         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
8389         (open_not_cancel_2): Likewise.
8390         (open_nocancel): New macro.
8391         (open64_nocancel): Likewise.
8392         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
8393         (open_not_cancel_2): Likewise.
8394         (__open_nocancel): New prototype.
8395         (__open64_nocancel): Likewise.
8396         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8397         __open_nocancel.
8398         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
8399         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
8400         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
8401         with __open_nocancel.
8402         * csu/check_fds.c (check_one_fd): Likewise.
8403         * gmon/gmon.c (write_gmon): Likewise.
8404         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
8405         * intl/loadmsgcat.c (open): Likewise.
8406         * libio/fileops.c (_IO_file_open): Likewise.
8407         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8408         * locale/loadlocale.c (_nl_load_locale): Likewise.
8409         * login/utmp_file.c (setutent_file): Likewise.
8410         * misc/daemon.c (daemon): Likewise.
8411         * nss/nss_db/db-open.c (internal_setent): Likewise.
8412         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8413         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
8414         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8415         (__opendir): Likewise.
8416         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8417         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8418         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8419         (gethostid): Likewise.
8420         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8421         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8422         Likewise.
8423         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8424         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
8425         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8426         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8427         Likewise.
8428         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8429         Likewise.
8430         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8431         Likewise.
8432         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
8433         Likewise.
8434         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8435         Likewise.
8436         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8437         Likewise.
8438         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8439         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8441 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
8443         * benchtests/bench-skeleton.c (main): Add support for
8444         latency benchmarking.
8445         * benchtests/scripts/bench.py: Add support for latency benchmarking.
8447 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
8449         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
8450         the startup object.
8452 2017-08-17  Florian Weimer  <fweimer@redhat.com>
8454         * include/sys/socket.h (__opensock): Remove internal_function.
8455         * socket/opensock.c (__opensock): Likewise.
8456         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
8458 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
8460         [BZ #21944]
8461         * signal/bits/types/__sigval_t.h: New file.
8462         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
8463         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
8464         and define sigval_t using __sigval_t.
8465         * include/bits/types/__sigval_t.h: New file.
8466         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
8467         instead of <bits/types/__sigval_t.h>.
8468         (struct sigevent): Use __sigval_t instead of sigval_t.
8469         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
8470         instead of <bits/types/__sigval_t.h>.
8471         (siginfo_t): Use __sigval_t instead of sigval_t.
8472         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
8473         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
8474         (struct sigevent): Use __sigval_t instead of sigval_t.
8475         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
8476         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
8477         (siginfo_t): Use __sigval_t instead of sigval_t.
8478         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
8480 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8482         * NEWS: Remove "[Add new features here]" for 2.27.
8484 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
8486         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
8487         libc.so.
8489 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8491         * NEWS: Mention x86-64 FMA optimization.
8493 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8495         [BZ #21912]
8496         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8497         Add e_expf-fma.
8498         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
8499         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
8500         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
8502 2017-08-16  Andreas Schwab  <schwab@suse.de>
8504         [BZ #16750]
8505         CVE-2009-5064
8506         * elf/ldd.bash.in: Never run file directly.
8508 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
8510         [BZ #21955]
8511         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
8512         (L(SP_INF_0)): Likewise.
8514 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8516         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
8517         run-built-tests.
8519 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8521         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
8522         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
8523         BROKEN_THREAD_SIGNALS code.
8524         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
8525         request_list): Remove caller_pid member used for
8526         BROKEN_THREAD_SIGNALS.
8527         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
8528         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
8529         Remove BROKEN_THREAD_SIGNALS support.
8530         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8531         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
8533 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8535         * gmon/Makefile (tests): Add tst-gmon.
8536         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
8537         Set.
8538         (tests-special): Add tst-gmon-prof.out.
8539         (tst-gmon.out): Depend on clean-tst-gmon-data.
8540         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
8541         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
8542         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
8543         startup object.
8544         * aclocal.m4 (GPROF): Set and substitute.
8545         * config.amke.in (GPROF): Set.
8546         * configure: Regenerate.
8548 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
8550         * elf/elf.h A (NT_PPC_TAR): New macro.
8551         (NT_PPC_PPR): Likewise.
8552         (NT_PPC_DSCR): Likewise.
8553         (NT_PPC_EBB): Likewise.
8554         (NT_PPC_PMU): Likewise.
8555         (NT_PPC_TM_CGPR): Likewise.
8556         (NT_PPC_TM_CFPR): Likewise.
8557         (NT_PPC_TM_CVMX): Likewise.
8558         (NT_PPC_TM_CVSX): Likewise.
8559         (NT_PPC_TM_SPR): Likewise.
8560         (NT_PPC_TM_CTAR): Likewise.
8561         (NT_PPC_TM_CPPR): Likewise.
8562         (NT_PPC_TM_CDSCR): Likewise.
8564 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8566         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
8567         regparm (2) instead of internal_function.
8568         (_MCOUNT_DECL): Adjust.
8570 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
8572         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
8573         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
8575 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
8577         * conform/data/sys/wait.h-data (si_value): Do not expect for
8578         XPG42.
8580 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8582         [BZ #21962]
8583         NSS: Create stubs for accidentally exported lookup functions.
8584         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
8585         Remove declaration.
8586         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8587         (ether_hostton): Call __nss_ethers_lookup2 instead.
8588         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
8589         (ether_ntohost): Call __nss_ethers_lookup2 instead.
8590         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
8591         (setup): Call __nss_netgroup_lookup2 instead.
8592         * nss/Makefile (routines): Add compat-lookup.
8593         * nss/Versions (GLIBC_2.27): Add symbol version.
8594         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
8595         (DB_COMPAT_FCT): Remove.
8596         * nss/compat-lookup.c: New file.
8597         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
8598         from databases.def.
8599         * nss/service-lookup.c (NO_COMPAT): Remove definition.
8600         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
8601         (netname2user): Call __nss_publickey_lookup2 instead.
8602         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
8603         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
8604         instead.
8606 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8607             Sergei Trofimovich  <slyfox@inbox.ru>
8609         [BZ #21908]
8610         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
8611         Rename to MMAP2_PAGE_UNIT.
8612         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
8613         __OFF_T_MATCHES_OFF64_T is not defined.
8614         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
8615         uint64_t.
8616         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
8617         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
8619 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8621         i386: Do not set internal_function.
8622         * config.h.in (USE_REGPARMS, internal_function): Remove.
8623         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
8624         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
8626 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8628         * elf/dl-init.c (_dl_init): Remove internal_function.
8629         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
8630         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
8632 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8634         * elf/rtld.c (_dl_start): Remove internal_function.
8635         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
8636         _dl_start.
8638 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8640         * elf/dl-fini.c (_dl_fini): Remove internal_function
8641         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
8643 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
8645         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
8646         (bit_cpu_SHSTK): Likewise.
8647         (index_cpu_IBT): Likewise.
8648         (index_cpu_SHSTK): Likewise.
8649         (reg_IBT): Likewise.
8650         (reg_SHSTK): Likewise.
8651         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
8652         Handle index_cpu_IBT and index_cpu_SHSTK.
8654 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
8656         [BZ #19982]
8657         * po/fr.po: Fix spelling mistake.
8659 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8661         * elf/dl-addr.c (_dl_addr): Remove internal_function.
8662         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
8663         (_dl_catch_error, _dl_receive_error): Likewise.
8664         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
8665         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
8666         (_dl_deallocate_tls): Likewise.
8667         * include/dlfcn.h (_dl_addr): Likewise.
8668         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
8669         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
8670         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
8671         Likewise.
8673 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8675         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
8676         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
8677         internal_function.
8678         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
8680 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8682         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
8683         internal_function.
8684         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
8685         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
8686         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
8687         internal_function from _dl_make_stack_executable_hook member.
8688         (_dl_make_stack_executable): Remove internal_function.
8689         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
8690         Likewise.
8691         * sysdeps/unix/sysv/linux/dl-execstack.c
8692         (_dl_make_stack_executable): Likewise.
8694 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8696         * sysdeps/unix/sysv/linux/netlinkaccess.h
8697         (__netlink_assert_response): Remove internal_function.
8698         * sysdeps/unix/sysv/linux/netlink_assert_response.c
8699         (__netlink_assert_response): Likewise.
8701 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8703         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
8704         internal_function.
8705         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
8707 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8709         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
8710         internal_function.
8711         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
8712         * inet/netgroup.h (__internal_setnetgrent)
8713         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8714         * inet/getnetgrent_r.c (__internal_setnetgrent)
8715         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8716         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
8717         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
8718         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
8719         * nss/nsswitch.h (db_lookup_function): Likewise.
8721 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8723         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
8724         Remove internal_function.
8725         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
8726         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
8727         message argument on the stack.
8728         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
8729         Likeweise.
8731 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
8733         Adapt test case data to the changes in the thousands
8734         separators.
8736         [BZ #20756]
8737         * localedata/tst-langinfo.sh: Adapt test case data.
8738         * stdlib/tst-strfmon_l.c: Likewise.
8739         * stdlib/tst-strtod4.c: Likewise.
8740         * stdlib/tst-strtod5i.c: Likewise.
8742 2017-08-11  Florian Weimer  <fweimer@redhat.com>
8744         [BZ #21242]
8745         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
8746         Suppress pedantic warning resulting from statement expression.
8747         (__ASSERT_FUNCTION): Add missing __extension__.
8749 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8751         * benchtests/bench-memmove-large.c: Print output in JSON
8752         format.
8753         * benchtests/bench-memmove.c: Likewise.
8755         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
8756         * benchtests/bench-memchr.c (do_one_test): Likewise.
8757         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
8758         * benchtests/bench-memcpy.c (do_one_test): Likewise.
8759         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
8760         * benchtests/bench-memmove.c (do_one_test): Likewise.
8761         * benchtests/bench-memset-large.c (do_one_test): Likewise.
8762         * benchtests/bench-memset.c (do_one_test): Likewise.
8763         * benchtests/bench-string.h (test_init): Remove memsets.
8765 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
8767         * manual/lang.texi
8768         (Computing the Width of an Integer Data Type): Rename section to
8769         "Width of an Integer Type".  Remove inaccurate statement regarding
8770         lack of C language facilities for determining width of integer
8771         types, and reorder content to improve flow and context of
8772         discussion.
8774 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
8776         * lang.texi (va_copy): Change standard from ISO to C99.
8777         (__va_copy): Add standard and header annotation.
8778         Update description for clarity of origins and current use.
8780 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8782         [BZ #21941]
8783         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
8784         xssqrtqp requires operands to be in Vector Registers
8785         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
8786         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
8787         (__ieee754_sqrtf128): Likewise.
8789 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
8791         * sysdeps/aarch64/memcmp.S (memcmp):
8792         Rewrite of optimized memcmp.
8794 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8796         Introduce ld.so exceptions.
8797         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
8798         (_dl_exception_create, _dl_exception_create_format)
8799         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
8800         (_dl_catch_exception): Declare.
8801         (_dl_catch_error): Update comment.
8802         * elf/dl-error-skeleton.c (struct catch): Replace objname,
8803         errstring, malloced members with exception member.
8804         (_dl_out_of_memory): Remove.
8805         (fatal_error): New function, extracted from _dl_signal_error.
8806         (_dl_signal_exception, _dl_signal_cexception): New functions.
8807         (_dl_signal_error): Call _dl_exception_create to allocate an
8808         exception object.
8809         (_dl_catch_exception): New function, based on _dl_catch_error.
8810         (_dl_catch_error): Implement using _dl_catch_exception.
8811         * elf/dl-exception.c: New file.
8812         * elf/Makefile (dl-routines): Add dl-exception.
8813         (elide-routines.os): Likewise.
8814         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
8815         _dl_exception_create_format, _dl_exception_free.
8816         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
8817         _dl_signal_exception.
8818         * elf/dl-lookup.c (make_string): Remove.
8819         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
8820         _dl_signal_cexception, _dl_exception_free.
8821         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
8822         _dl_signal_exception.
8823         * elf/dl-sym.c (do_sym): Likewise.
8824         * elf/dl-version.c (make_string): Remove.
8825         (match_symbol): Use _dl_exception_create_format,
8826         _dl_signal_cexception, _dl_exception_free.
8827         (_dl_check_map_versions): Likewise.
8828         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
8829         _dl_catch_exception.
8830         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8831         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8832         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8833         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8834         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8835         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8836         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8837         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
8838         Likewise.
8839         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8841         (ld.so): Likewise.
8842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8843         (ld.so): Likewise.
8844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8845         Likewise.
8846         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8847         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8848         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
8849         Likewise.
8850         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
8851         Likewise.
8852         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8854 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8856         * inet/net-internal.h (__inet6_scopeid_pton): Remove
8857         attribute_hidden, internal_function.
8858         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
8859         internal_function.
8861 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8863         * malloc/malloc.c (get_max_fast): Reimplement as an inline
8864         function which calls __builtin_unreachable.
8866 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
8868         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
8869         Indian monetary formatting
8870         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
8871         test cases.
8873 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
8875         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
8876         Fix typo in comment.
8878         [BZ #21928]
8879         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
8880         PTRACE_SEIZE_DEVEL): Remove.
8881         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
8882         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8883         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8884         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8885         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8887 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
8889         * posix/bits/types.h (__qaddr_t): Remove.
8891         [BZ #21457]
8892         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
8893         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8894         __glibc_reserved1.
8895         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
8896         (ucontext_t): Use __ctx with uc_flags.
8897         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
8898         (__ctxt): Likewise.
8899         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8900         __glibc_reserved1.
8901         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
8902         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8903         __glibc_reserved1.
8904         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
8905         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8906         __glibc_reserved1.
8907         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
8908         macro.
8909         (ucontext_t): Use __ctx with uc_flags.
8910         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
8911         (ucontext_t): Use __ctx with uc_flags.
8912         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
8913         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
8914         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
8915         (ucontext_t): Use __ctx with uc_flags.
8916         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
8917         undefine further down.
8918         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8919         __glibc_reserved1.
8920         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
8921         undefine further down.
8922         (ucontext_t): Use __ctx with uc_flags.
8923         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
8924         undefine further down.
8925         (ucontext_t): Use __ctx with uc_flags.
8926         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
8927         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
8928         Rename uc_pad to __glibc_reserved1.
8929         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
8930         undefine further down.
8931         (ucontext_t): Use __ctx with uc_flags.
8932         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
8933         further down.
8934         (ucontext_t): Use __ctx with uc_flags.
8935         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
8936         __ctx with uc_flags.
8937         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
8938         (ucontext_t): Use __ctx with uc_flags.
8939         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
8940         __ctx with uc_flags.
8942 2017-08-09  Florian Weimer  <fweimer@redhat.com>
8944         [BZ #21932]
8945         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
8946         before early return.
8948 2017-08-09  Andreas Schwab  <schwab@suse.de>
8950         [BZ #21041]
8951         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
8952         renamed alias.
8954         [BZ #21041]
8955         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
8956         tst-compat-forwarder.
8957         (modules-names): Add tst-compat-forwarder-mod.
8958         ($(objpfx)tst-compat-forwarder): Depend on
8959         $(objpfx)tst-compat-forwarder-mod.so.
8960         * nptl/tst-compat-forwarder.c: New file.
8961         * nptl/tst-compat-forwarder-mod.c: New file.
8963 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8965         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
8966         comments.
8968         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
8969         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8970         memcpy_falkor.
8971         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
8972         Bump.
8973         (__libc_ifunc_impl_list): Add __memcpy_falkor.
8974         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
8975         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
8976         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
8977         Add falkor.
8978         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
8979         New macro.
8981 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8983         [BZ #759]
8984         * manual/setjmp.texi (getcontex): Document uc_stack value
8985         compatibility differences.
8987 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
8989         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
8990         (old_malloc_hook): Likewise.
8991         (old_memalign_hook): Likewise.
8992         (old_realloc_hook): Likewise.
8993         (struct hdr): Likewise.
8994         (flood): Likewise.
8995         (freehook): Likewise.
8996         (mallochook): Likewise.
8997         (memalignhook): Likewise.
8998         (reallochook): Likewise.
8999         (mprobe): Likewise.
9000         * malloc/mtrace.c (mallwatch): Likewise.
9001         (tr_old_free_hook): Likewise.
9002         (tr_old_malloc_hook): Likewise.
9003         (tr_old_realloc_hook): Likewise.
9004         (tr_old_memalign_hook): Likewise.
9005         (tr_where): Likewise.
9006         (lock_and_info): Likewise.
9007         (tr_freehook): Likewise.
9008         (tr_mallochook): Likewise.
9009         (tr_reallochook): Likewise.
9010         (tr_memalignhook): Likewise.
9011         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
9012         * misc/mmap.c (__mmap): Likewise.
9013         * misc/mmap64.c (__mmap64): Likewise.
9014         * misc/mprotect.c (__mprotect): Likewise.
9015         * misc/msync.c (msync): Likewise.
9016         * misc/munmap.c (__munmap): Likewise.
9017         * posix/posix_madvise.c (posix_madvise): Likewise.
9018         * socket/send.c (__send): Likewise.
9019         * socket/sendto.c (__sendto): Likewise.
9020         * socket/setsockopt.c (__setsockopt): Likewise.
9021         * string/memcmp.c (__ptr_t): Remove macro.
9022         (MEMCMP): Use void * instead of ptr_t.
9023         * string/memrchr.c (__ptr_t): Remove macro.
9024         (__memrchr): Use void * instead of ptr_t.
9025         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
9026         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9027         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9028         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
9029         * sysdeps/mach/msync.c (msync): Likewise.
9030         * sysdeps/mach/munmap.c (__munmap): Likewise.
9031         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
9032         Likewise.
9033         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9034         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
9035         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
9036         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
9037         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
9038         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
9039         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
9040         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
9041         Likewise.
9042         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
9043         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
9044         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
9045         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
9046         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
9047         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
9048         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
9049         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
9050         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
9051         Likewise.
9052         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
9053         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
9054         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
9055         (MEMCMP): Use void * instead of ptr_t.
9056         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
9057         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
9059 2017-08-08  Florian Weimer  <fweimer@redhat.com>
9061         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
9062         return statement.
9064 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
9066         [BZ #21913]
9067         * csu/libc-tls.c: Include <startup.h> first.
9068         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
9069         * elf/dl-tunables.c: Include <startup.h> first.
9070         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
9071         * sysdeps/generic/startup.h: New file.
9072         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
9073         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
9074         (I386_USE_SYSENTER): New.  Defined to 0.
9076 2017-08-08  Andreas Schwab  <schwab@suse.de>
9078         [BZ #21041]
9079         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
9080         * nptl/pt-system.c (system): Likewise.
9082 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9084         [BZ #21780]
9085         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
9086         EOPNOTSUPP.
9087         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9088         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9089         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
9090         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9091         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9092         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9093         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9095 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
9097         [BZ #21899]
9098         * bits/sigaction.h (struct sigaction): Define sa_handler and
9099         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
9100         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9101         [__USE_XOPEN_EXTENDED].
9102         (SA_RESTART): Likewise.
9103         (SA_NODEFER): Likewise.
9104         (SA_RESETHAND): Likewise.
9105         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
9106         (struct sigaction): Define sa_handler and sa_sigaction using union
9107         also for [__USE_XOPEN_EXTENDED].
9108         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9109         [__USE_XOPEN_EXTENDED].
9110         (SA_RESTART): Likewise.
9111         (SA_NODEFER): Likewise.
9112         (SA_RESETHAND): Likewise.
9113         * sysdeps/unix/sysv/linux/bits/sigaction.h
9114         (struct sigaction): Define sa_handler and sa_sigaction using union
9115         also for [__USE_XOPEN_EXTENDED].
9116         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9117         [__USE_XOPEN_EXTENDED].
9118         (SA_RESTART): Likewise.
9119         (SA_NODEFER): Likewise.
9120         (SA_RESETHAND): Likewise.
9121         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
9122         (struct sigaction): Define sa_handler and sa_sigaction using union
9123         also for [__USE_XOPEN_EXTENDED].
9124         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9125         [__USE_XOPEN_EXTENDED].
9126         (SA_RESTART): Likewise.
9127         (SA_NODEFER): Likewise.
9128         (SA_RESETHAND): Likewise.
9129         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
9130         (struct sigaction): Define sa_handler and sa_sigaction using union
9131         also for [__USE_XOPEN_EXTENDED].
9132         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9133         [__USE_XOPEN_EXTENDED].
9134         (SA_RESTART): Likewise.
9135         (SA_NODEFER): Likewise.
9136         (SA_RESETHAND): Likewise.
9137         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
9138         (struct sigaction): Define sa_handler and sa_sigaction using union
9139         also for [__USE_XOPEN_EXTENDED].
9140         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9141         [__USE_XOPEN_EXTENDED].
9142         (SA_RESTART): Likewise.
9143         (SA_NODEFER): Likewise.
9144         (SA_RESETHAND): Likewise.
9145         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
9146         (struct sigaction): Define sa_handler and sa_sigaction using union
9147         also for [__USE_XOPEN_EXTENDED].
9148         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9149         [__USE_XOPEN_EXTENDED].
9150         (SA_RESTART): Likewise.
9151         (SA_NODEFER): Likewise.
9152         (SA_RESETHAND): Likewise.
9153         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
9154         (struct sigaction): Define sa_handler and sa_sigaction using union
9155         also for [__USE_XOPEN_EXTENDED].
9156         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9157         [__USE_XOPEN_EXTENDED].
9158         (SA_RESTART): Likewise.
9159         (SA_NODEFER): Likewise.  Define directly rather than as alias.
9160         (SA_RESETHAND): Likewise.
9161         (SA_INTERRUPT): Define only for [__USE_MISC].
9162         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
9163         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
9164         [__USE_MISC].
9165         (SA_STACK): Define only for [__USE_MISC].
9166         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
9167         (struct sigaction): Define sa_handler and sa_sigaction using union
9168         also for [__USE_XOPEN_EXTENDED].
9169         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9170         [__USE_XOPEN_EXTENDED].
9171         (SA_RESTART): Likewise.
9172         (SA_NODEFER): Likewise.
9173         (SA_RESETHAND): Likewise.
9174         (SA_NOPTRACE): Define only for [__USE_MISC].
9176         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
9177         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
9178         (struct catalog_info): Likewise.
9179         * inet/htontest.c (lo): Likewise.
9180         (foo): Likewise.
9181         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9182         * inet/inet_net.c (inet_network): Likewise.
9183         * inet/inet_netof.c (inet_netof): Likewise.
9184         * inet/rcmd.c (__ivaliduser): Likewise.
9185         (iruserok): Likewise.
9186         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
9187         * locale/programs/locale-spec.c (locale_special): Likewise.
9188         * nis/nis_findserv.c (struct findserv_req): Likewise.
9189         (__nis_findfastest_with_timeout): Likewise.
9190         * nss/test-netdb.c (test_network): Likewise.
9191         * resolv/inet_neta.c (inet_neta): Likewise.
9192         * resolv/ns_date.c (ns_datetosecs): Likewise.
9193         (SECS_PER_DAY): Likewise.
9194         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
9195         Likewise.
9196         * resolv/res_comp.c (__putlong): Likewise.
9197         (__putshort): Likewise.
9198         (_getlong): Likewise.
9199         (_getshort): Likewise.
9200         * resolv/res_debug.c (p_time): Likewise.
9201         (precsize_ntoa): Likewise.
9202         (precsize_aton): Likewise.
9203         (latlon2ul): Likewise.
9204         (loc_aton): Likewise.
9205         (loc_ntoa): Likewise.
9206         * resolv/res_hconf.c (struct netaddr): Likewise.
9207         (_res_hconf_reorder_addrs): Likewise.
9208         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
9209         (clnttcp_control): Likewise.
9210         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9211         (clntudp_control): Likewise.
9212         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
9213         (clntunix_control): Likewise.
9214         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
9215         * sunrpc/rpc/auth.h (union des_block): Likewise.
9216         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
9217         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
9218         (xdrrec_create): Likewise.
9219         (xdrrec_endofrecord): Likewise.
9220         (flush_out): Likewise.
9221         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
9222         (xdrstdio_putlong): Likewise.
9223         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
9224         Likewise.
9226         * misc/sys/cdefs.h (__long_double_t): Remove.
9227         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
9228         instead of __long_double_t,
9229         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
9231 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9233         * benchtests/scripts/compare_strings.py: Avoid display error when
9234         running on a text terminal.
9236         * benchtests/scripts/compare_strings.py (main): Add an
9237         optional -base option.
9238         (process_results): New argument base_func.
9240         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
9241         hardcoding memcpy.
9242         * benchtests/bench-memcpy-large.c (test_name): Likewise.
9243         * benchtests/bench-memcpy-random.c (test_name): Likewise.
9245 2017-08-07  Andreas Schwab  <schwab@suse.de>
9247         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
9248         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
9249         * intl/Makefile ($(objpfx)tst-gettext.out)
9250         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
9251         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
9252         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
9253         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
9254         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
9255         * posix/Makefile ($(objpfx)globtest.out)
9256         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
9257         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
9258         ($(objpfx)tst-printf.out): Likewise.
9259         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
9260         ($(objpfx)tst-setcontext3.out): Likewise.
9262 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
9264         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9265         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
9266         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
9267         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
9268         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
9269         and mptan-fma.
9270         (CFLAGS-doasin-fma.c): New.
9271         (CFLAGS-dosincos-fma.c): Likewise.
9272         (CFLAGS-e_asin-fma.c): Likewise.
9273         (CFLAGS-e_atan2-fma.c): Likewise.
9274         (CFLAGS-e_exp-fma.c): Likewise.
9275         (CFLAGS-e_log-fma.c): Likewise.
9276         (CFLAGS-e_pow-fma.c): Likewise.
9277         (CFLAGS-halfulp-fma.c): Likewise.
9278         (CFLAGS-mpa-fma.c): Likewise.
9279         (CFLAGS-mpatan-fma.c): Likewise.
9280         (CFLAGS-mpatan2-fma.c): Likewise.
9281         (CFLAGS-mpexp-fma.c): Likewise.
9282         (CFLAGS-mplog-fma.c): Likewise.
9283         (CFLAGS-mpsqrt-fma.c): Likewise.
9284         (CFLAGS-mptan-fma.c): Likewise.
9285         (CFLAGS-s_atan-fma.c): Likewise.
9286         (CFLAGS-sincos32-fma.c): Likewise.
9287         (CFLAGS-slowexp-fma.c): Likewise.
9288         (CFLAGS-slowpow-fma.c): Likewise.
9289         (CFLAGS-s_sin-fma.c): Likewise.
9290         (CFLAGS-s_tan-fma.c): Likewise.
9291         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
9292         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
9293         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
9294         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
9295         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
9296         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
9297         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
9298         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
9299         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
9300         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
9301         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
9302         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
9303         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
9304         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
9305         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
9306         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
9307         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
9308         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
9309         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
9310         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
9311         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
9312         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
9313         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
9314         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
9315         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9316         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9317         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9318         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
9319         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9320         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9321         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9323 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
9325         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
9326         (min_of_type_f): New macro.
9327         (min_of_type_): Likewise.
9328         (min_of_type_l): Likewise.
9329         (min_of_type_f128): Likewise.
9330         (min_of_type): Define using __MATH_TG and taking an expression
9331         argument.
9332         (math_check_force_underflow): Pass expression instead of type to
9333         min_of_type.
9334         (math_check_force_underflow_nonneg): Likewise.
9336 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9338         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
9339         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
9340         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
9342 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9344         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9345         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
9346         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
9347         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
9348         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
9349         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
9350         memcpy_chk-nonshared, mempcpy_chk-nonshared,
9351         memmove_chk-nonshared and memset_chk-nonshared
9352         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
9353         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
9354         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
9355         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
9356         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
9357         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
9358         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
9359         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
9360         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
9361         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
9362         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
9363         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
9364         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
9365         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
9366         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
9367         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
9368         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
9369         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
9370         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
9371         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
9372         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
9373         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
9374         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
9375         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
9376         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
9377         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
9378         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
9379         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
9380         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
9381         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
9382         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
9383         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
9384         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
9385         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9386         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9387         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
9388         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
9389         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
9390         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
9391         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
9392         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
9393         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
9394         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
9395         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
9396         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
9397         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
9398         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
9399         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
9400         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
9401         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
9402         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
9403         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
9404         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
9405         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
9406         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
9407         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
9408         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
9409         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
9410         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
9411         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
9412         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
9413         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
9414         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
9415         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
9416         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
9417         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
9418         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
9419         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
9420         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
9421         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
9422         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
9423         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9424         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9425         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9426         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9427         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9428         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9429         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9430         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9431         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9432         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9433         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9434         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9435         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9436         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
9437         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
9438         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9439         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
9440         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9441         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9442         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9443         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9444         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9445         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9446         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
9447         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
9448         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
9449         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
9450         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9451         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
9452         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9453         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9454         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9455         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9456         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9457         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9458         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9459         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9461 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9463         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
9464         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
9465         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
9466         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
9467         svml_d_log2_core-sse2, svml_d_log4_core-sse,
9468         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
9469         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
9470         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
9471         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
9472         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
9473         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
9474         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
9475         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
9476         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
9477         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
9478         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
9479         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
9480         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
9481         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
9482         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
9483         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
9484         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
9485         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
9486         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
9487         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
9488         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
9489         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
9490         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
9491         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
9492         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
9493         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
9494         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
9495         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
9496         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
9497         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
9498         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
9499         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
9500         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
9501         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
9502         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
9503         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
9504         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
9505         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
9506         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
9507         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
9508         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
9509         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
9510         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
9511         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
9512         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
9513         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
9514         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
9515         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
9516         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
9517         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
9518         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
9519         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
9520         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
9521         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
9522         ...
9523         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
9524         Don't include <sysdep.h> nor <init-arch.h>.
9525         (_ZGVbN2v_cos): Removed.
9526         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
9527         ...
9528         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
9529         Don't include <sysdep.h> nor <init-arch.h>.
9530         (_ZGVdN4v_cos): Removed.
9531         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
9532         ...
9533         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
9534         Don't include <sysdep.h> nor <init-arch.h>.
9535         (_ZGVeN8v_cos): Removed.
9536         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
9537         ...
9538         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
9539         Don't include <sysdep.h> nor <init-arch.h>.
9540         (_ZGVbN2v_exp): Removed.
9541         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
9542         ...
9543         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
9544         Don't include <sysdep.h> nor <init-arch.h>.
9545         (_ZGVdN4v_exp): Removed.
9546         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
9547         ...
9548         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
9549         Don't include <sysdep.h> nor <init-arch.h>.
9550         (_ZGVeN8v_exp): Removed.
9551         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
9552         ...
9553         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
9554         Don't include <sysdep.h> nor <init-arch.h>.
9555         (_ZGVbN2v_log): Removed.
9556         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
9557         ...
9558         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
9559         Don't include <sysdep.h> nor <init-arch.h>.
9560         (_ZGVdN4v_log): Removed.
9561         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
9562         ...
9563         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
9564         Don't include <sysdep.h> nor <init-arch.h>.
9565         (_ZGVeN8v_log): Removed.
9566         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
9567         ...
9568         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
9569         Don't include <sysdep.h> nor <init-arch.h>.
9570         (_ZGVbN2vv_pow): Removed.
9571         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
9572         ...
9573         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
9574         Don't include <sysdep.h> nor <init-arch.h>.
9575         (_ZGVdN4vv_pow): Removed.
9576         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
9577         ...
9578         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
9579         Don't include <sysdep.h> nor <init-arch.h>.
9580         (_ZGVeN8vv_pow): Removed.
9581         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
9582         ...
9583         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
9584         Don't include <sysdep.h> nor <init-arch.h>.
9585         (_ZGVbN2v_sin): Removed.
9586         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
9587         ...
9588         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
9589         Don't include <sysdep.h> nor <init-arch.h>.
9590         (_ZGVbN4v_sin): Removed.
9591         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
9592         ...
9593         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
9594         Don't include <sysdep.h> nor <init-arch.h>.
9595         (_ZGVbN8v_sin): Removed.
9596         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
9597         ...
9598         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
9599         Don't include <sysdep.h> nor <init-arch.h>.
9600         (_ZGVbN2vvv_sincos): Removed.
9601         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
9602         ...
9603         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
9604         Don't include <sysdep.h> nor <init-arch.h>.
9605         (_ZGVdN4vvv_sincos): Removed.
9606         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
9607         ...
9608         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
9609         Don't include <sysdep.h> nor <init-arch.h>.
9610         (_ZGVeN8vvv_sincos): Removed.
9611         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
9612         ...
9613         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
9614         Don't include <sysdep.h> nor <init-arch.h>.
9615         (_ZGVeN16v_cosf): Removed.
9616         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
9617         ...
9618         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
9619         Don't include <sysdep.h> nor <init-arch.h>.
9620         (_ZGVbN4v_cosf): Removed.
9621         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
9622         ...
9623         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
9624         Don't include <sysdep.h> nor <init-arch.h>.
9625         (_ZGVdN8v_cosf): Removed.
9626         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
9627         ...
9628         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
9629         Don't include <sysdep.h> nor <init-arch.h>.
9630         (_ZGVeN16v_expf): Removed.
9631         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
9632         ...
9633         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
9634         Don't include <sysdep.h> nor <init-arch.h>.
9635         (_ZGVbN4v_expf): Removed.
9636         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
9637         ...
9638         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
9639         Don't include <sysdep.h> nor <init-arch.h>.
9640         (_ZGVdN8v_expf): Removed.
9641         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
9642         ...
9643         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
9644         Don't include <sysdep.h> nor <init-arch.h>.
9645         (_ZGVeN16v_logf): Removed.
9646         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
9647         ...
9648         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
9649         Don't include <sysdep.h> nor <init-arch.h>.
9650         (_ZGVbN4v_logf): Removed.
9651         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
9652         ...
9653         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
9654         Don't include <sysdep.h> nor <init-arch.h>.
9655         (_ZGVdN8v_logf): Removed.
9656         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
9657         ...
9658         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
9659         Don't include <sysdep.h> nor <init-arch.h>.
9660         (_ZGVeN16vv_powf): Removed.
9661         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
9662         ...
9663         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
9664         Don't include <sysdep.h> nor <init-arch.h>.
9665         (_ZGVbN4vv_powf): Removed.
9666         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
9667         ...
9668         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
9669         Don't include <sysdep.h> nor <init-arch.h>.
9670         (_ZGVdN8vv_powf): Removed.
9671         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
9672         ...
9673         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
9674         Don't include <sysdep.h> nor <init-arch.h>.
9675         (_ZGVeN16vvv_sincosf): Removed.
9676         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
9677         ...
9678         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
9679         Don't include <sysdep.h> nor <init-arch.h>.
9680         (_ZGVbN4vvv_sincosf): Removed.
9681         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
9682         ...
9683         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
9684         Don't include <sysdep.h> nor <init-arch.h>.
9685         (_ZGVdN8vvv_sincosf): Removed.
9686         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
9687         ...
9688         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
9689         Don't include <sysdep.h> nor <init-arch.h>.
9690         (_ZGVeN16v_sinf): Removed.
9691         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
9692         ...
9693         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
9694         Don't include <sysdep.h> nor <init-arch.h>.
9695         (_ZGVbN4v_sinf): Removed.
9696         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
9697         ...
9698         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
9699         Don't include <sysdep.h> nor <init-arch.h>.
9700         (_ZGVdN8v_sinf): Removed.
9702 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9704         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9705         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
9706         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
9707         s_rint-sse4_1 and s_rintf-sse4_1.
9708         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
9709         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9710         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9711         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9712         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9713         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
9714         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
9715         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9716         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9717         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
9718         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
9719         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9720         (__ceil): Removed.
9721         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
9722         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
9723         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9724         (__ceilf): Removed.
9725         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
9726         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
9727         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9728         (__floor): Removed.
9729         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
9730         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
9731         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9732         (__floorf): Removed.
9733         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
9734         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
9735         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9736         (__nearbyint): Removed.
9737         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
9738         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
9739         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9740         (__nearbyintf): Removed.
9741         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
9742         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
9743         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9744         (__rint): Removed.
9745         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
9746         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
9747         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9748         (__rintf): Removed.
9750 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9752         * sysdeps/i386/start.S (_start): Check Check PIC instead of
9753         SHARED.  Avoid dynamic relocation against main in static PIE.
9755 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9757         [BZ #21815]
9758         * elf/Makefile (CFLAGS-tst-prelink.c): New.
9759         (LDFLAGS-tst-prelink): Likewise.
9761 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9763         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
9764         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
9765         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
9766         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9767         (INTERNAL_SYSCALL_NCS): Likewise.
9768         (LOADARGS_1): Likewise.
9769         (LOADARGS_5): Likewise.
9770         (RESTOREARGS_1): Likewise.
9771         (RESTOREARGS_5): Likewise.
9773 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9775         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
9776         (MEMPCPY_SYMBOL): Likewise.
9777         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
9778         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
9779         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
9780         in libc.a.
9781         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9782         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
9783         Likewise.
9784         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
9785         (__hidden_ver1): Don't use in libc.a.
9786         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
9787         (__mempcpy): Don't create a weak alias in libc.a.
9788         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
9789         libc.a.
9790         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
9791         (__hidden_ver1): Don't use in libc.a.
9793 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9795         * config.make.in (have-insert): New.
9796         * configure.ac (libc_cv_insert): New.  Set to yes if linker
9797         supports INSERT in linker script.
9798         (AC_SUBST(libc_cv_insert): New.
9799         * configure: Regenerated.
9800         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
9801         if $(have-insert) == yes.
9803 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9805         * elf/Makefile (tests): Add vismain only if
9806         $(have-protected-data) == yes.
9807         (tests-pie): Likewise.
9809 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9811         [BZ #21871]
9812         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
9813         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
9815 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9817         [BZ #21790]
9818         * sysdeps/i386/i586/memset.S
9819         (__memset_zero_constant_len_parameter): Removed.
9820         * sysdeps/i386/i686/memset.S
9821         (__memset_zero_constant_len_parameter): Likewise.
9822         * sysdeps/i386/i686/multiarch/memset_chk.S
9823         (__memset_zero_constant_len_parameter): Likewise.
9824         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
9825         Likewise.
9827 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
9829         * stdlib/getentropy.c (getentropy): Change return type to int.
9831 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
9833         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
9835 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
9837         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
9838         u_intN_t.
9839         * math/s_nexttowardf.c (__nexttowardf): Likewise.
9840         * sysdeps/generic/math_private.h (ieee_double_shape_type):
9841         Likewise.
9842         (ieee_float_shape_type): Likewise.
9843         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
9844         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
9845         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
9846         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9847         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
9848         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
9849         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
9850         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
9851         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9852         Likewise.
9853         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
9854         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9855         (__ieee754_yn): Likewise.
9856         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
9857         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
9858         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
9859         Likewise.
9860         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
9861         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
9862         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
9863         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
9864         (__erfc): Likewise.
9865         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
9866         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
9867         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
9868         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
9869         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
9870         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
9871         Likewise.
9872         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
9873         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
9874         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9875         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
9876         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
9877         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
9878         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
9879         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
9880         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
9881         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
9882         (__issignaling): Likewise.
9883         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
9884         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
9885         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9886         Likewise.
9887         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
9888         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
9889         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
9890         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
9891         Likewise.
9892         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
9893         Likewise.
9894         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
9895         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
9896         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
9897         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
9898         (__erfcf): Likewise.
9899         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
9900         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
9901         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
9902         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
9903         Likewise.
9904         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
9905         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
9906         Likewise.
9907         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9908         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
9909         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9910         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
9911         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
9912         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
9913         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
9914         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
9915         Likewise.
9916         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
9917         Likewise.
9918         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
9919         Likewise.
9920         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
9921         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9922         Likewise.
9923         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9924         Likewise.
9925         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9926         (__ieee754_ynl): Likewise.
9927         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9928         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
9929         Likewise.
9930         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
9931         Likewise.
9932         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
9933         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
9934         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9935         Likewise.
9936         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
9937         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
9938         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
9939         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
9940         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
9941         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
9942         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
9943         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
9944         Likewise.
9945         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
9946         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
9947         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
9948         Likewise.
9949         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9950         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
9951         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9952         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
9953         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
9954         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
9955         Likewise.
9956         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
9957         Likewise.
9958         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9959         Likewise.
9960         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9961         Likewise.
9962         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
9963         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
9964         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9965         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
9966         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
9967         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
9968         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
9969         Likewise.
9970         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9971         Likewise.
9972         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9973         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
9974         Likewise.
9975         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
9976         (__ieee754_remainderl): Likewise.
9977         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9978         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9979         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
9980         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
9981         Likewise.
9982         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
9983         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9984         Likewise.
9985         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
9986         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
9987         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
9988         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
9989         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
9990         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9991         Likewise.
9992         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
9993         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
9994         (__ieee754_y0l): Likewise.
9995         (pzero): Likewise.
9996         (qzero): Likewise.
9997         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
9998         (__ieee754_y1l): Likewise.
9999         (pone): Likewise.
10000         (qone): Likewise.
10001         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10002         (__ieee754_ynl): Likewise.
10003         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10004         (__ieee754_lgammal_r): Likewise.
10005         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
10006         Likewise.
10007         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10008         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
10009         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10010         (__erfcl): Likewise.
10011         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
10012         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
10013         Likewise.
10014         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10015         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
10016         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10017         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
10018         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
10019         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10020         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10021         Likewise.
10022         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
10023         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
10024         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
10025         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
10026         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10027         Likewise.
10028         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
10029         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
10030         Likewise.
10031         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
10032         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
10033         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
10034         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
10035         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10037 2017-08-03  Florian Weimer  <fweimer@redhat.com>
10039         [BZ #21885]
10040         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
10041         on memory allocation failure.
10043 2017-08-03  Alan Modra  <amodra@gmail.com>
10045         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
10046         tst-tlsopt-powerpc.c with function name change and no test harness.
10047         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
10048         Call tls_get_addr_opt_test.
10049         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
10050         (modules-names): Add mod-tlsopt-powerpc.
10051         (mod-tlsopt-powerpc.so-no-z-defs): Define.
10052         (tst-tlsopt-powerpc): Depend on .so.
10053         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
10054         define.  Expand use in TLS_GD and TLS_LD.
10056 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10058         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
10059         function.
10060         * sysdeps/posix/shm_open.c: Include <pthread.h>.
10062 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10064         [BZ #21686]
10065         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
10066         comparing size with that of double.
10067         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10068         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10069         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10070         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10071         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10072         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
10073         unsigned __int128 types.
10075 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
10077         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
10078         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
10079         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
10080         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
10081         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
10083 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10085         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
10087 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10089         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
10090         of SHARED.
10091         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
10092         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10093         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10094         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10095         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10096         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10097         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10099 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10101         [BZ #21685]
10102         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
10103         bit-field expressions passed to sizeof or typeof.
10104         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10105         (__TGMATH_F128): Likewise.
10106         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10107         (__TGMATH_CF128): Likewise.
10108         (__TGMATH_UNARY_REAL_ONLY): Likewise.
10109         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
10110         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
10111         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
10112         (__TGMATH_BINARY_REAL_ONLY): Likewise.
10113         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10114         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10115         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10116         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10117         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
10118         (__TGMATH_UNARY_REAL_IMAG): Likewise.
10119         (__TGMATH_UNARY_IMAG): Likewise.
10120         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10121         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10122         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
10123         type.
10124         (define_vars_for_type): Handle bit_field type specially.
10125         (Tests.__init__): Declare structure with bit-field element.
10127 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10129         [BZ #21791]
10130         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
10131         (MEMCPY_CHK): Define only if SHARED is defined.
10132         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
10133         Likewise.
10134         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
10135         Likewise.
10137 See ChangeLog.18 for earlier changes.