support: Add xstrndup, xunlink, xreadlink, support_create_temp_directory
[glibc.git] / ChangeLog
blob32b57bcd06f1b3934e6a959533737da485e2d855
1 2017-11-12  Florian Weimer  <fweimer@redhat.com>
3         * support/support.h (xstrndup): Declare.
4         * support/xunistd.h (xunlink, xreadlink): Declare.
5         * support/temp_file.h (support_create_temp_directory): Declare.
6         * support/temp_file.c (support_create_temp_directory): New function.
7         * support/support_chroot.c (support_chroot_create): Use it.
8         * support/xreadlink.c: New file.
9         * support/xstrndup.c: Likewise.
10         * support/xunlink.c: Likewise.
11         * support/tst-xreadlink.c: Likewise.
13 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
15         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
17 2017-11-11  Florian Weimer  <fweimer@redhat.com>
19         [BZ #22409]
20         [BZ #22412]
21         * resolv/res_comp.c (printable_string, binary_hnok)
22         (binary_leading_dash): New functions.
23         (res_hnok): Reimplement using these functions and ns_name_pton.
24         (res_ownok): Likewise.
25         (res_mailok): Reimplement using printable_string, ns_name_pton and
26         binary_hnok.
27         (res_dnok): Reimplement using printable_string and ns_name_pton.
28         * resolv/tst-res_hnok.c (tests): Add additional tests.
29         (LETTERDIGITS, PRINTABLE): Define.
30         (do_test): Adjust one_char results.
32 2017-11-11  Florian Weimer  <fweimer@redhat.com>
34         [BZ #22413]
35         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
36         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
38 2017-11-11  Florian Weimer  <fweimer@redhat.com>
40         * resolv/tst-ns_name_pton.c: New file.
41         * resolv/Makefile (tests): Add tst-ns_name_pton.
42         (tst-ns_name_pton): Link against libresolv.
44 2017-11-11  Florian Weimer  <fweimer@redhat.com>
46         * resolv/tst-res_hnok.c: New file.
47         * resolv/Makefile (tests): Add tst-res_hnok.
48         (tst-res_hnok): Link against libresolv.
50 2017-11-11  Florian Weimer  <fweimer@redhat.com>
52         * resolv/tst-resolv-network.c: Use test framework instead explicit
53         main function.
55 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
57         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
58         <jmp_buf-macros.h>.
59         [!_ISOMAC] (STR_HELPER): New.
60         [!_ISOMAC] (STR): Likewise.
61         [!_ISOMAC] (TEST_SIZE): Likewise.
62         [!_ISOMAC] (TEST_ALIGN): Likewise.
63         [!_ISOMAC] (TEST_OFFSET): Likewise.
64         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
65         field offsets of jmp_buf as well as sigjmp_buf.
66         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
67         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
68         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
69         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
70         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
71         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
72         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
73         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
74         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
75         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
76         Likewise.
77         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
78         Likewise.
79         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
80         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
81         Likewise.
82         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
83         Likewise.
84         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
85         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
86         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
87         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
88         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
89         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
90         Likewise.
91         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
92         Likewise.
93         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
94         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
95         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
97 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
99         * include/float.h
100         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
101         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
102         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
103         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
104         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
105         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
106         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
107         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
108         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
109         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
110         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
111         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
112         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
113         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
114         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
115         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
116         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
117         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
118         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
119         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
120         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
121         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
122         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
123         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
124         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
125         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
126         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
127         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
128         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
129         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
130         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
131         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
132         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
133         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
134         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
135         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
136         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
137         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
138         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
139         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
140         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
141         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
142         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
143         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
144         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
145         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
146         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
147         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
148         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
149         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
150         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
151         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
152         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
153         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
154         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
155         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
156         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
157         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
158         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
159         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
160         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
161         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
162         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
163         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
164         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
165         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
166         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
167         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
168         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
169         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
170         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
171         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
172         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
173         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
174         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
175         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
176         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
177         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
178         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
179         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
180         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
181         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
182         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
183         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
184         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
185         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
186         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
187         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
189         * stdlib/tst-strtod.h (F16): New macro.
190         (F32): Likewise.
191         (F64): Likewise.
192         (F32X): Likewise.
193         (F64X): Likewise.
194         (F128X): Likewise.
195         (IF_FLOAT16): Likewise.
196         (IF_FLOAT32): Likewise.
197         (IF_FLOAT64): Likewise.
198         (IF_FLOAT32X): Likewise.
199         (IF_FLOAT64X): Likewise.
200         (IF_FLOAT128X): Likewise.
201         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
202         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
203         (STRTOD_TEST_FOREACH): Likewise.
204         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
205         (CHOOSE_f64): Likewise.
206         (CHOOSE_f32x): Likewise.
207         (CHOOSE_f64x): Likewise.
209 2017-11-07  Andreas Schwab  <schwab@suse.de>
211         * nptl/Makefile (tests-internal): Remove tst-typesizes.
213 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
215         [BZ #22403]
216         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
217         to be escaped.
218         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
219         to be escaped.
221 2017-11-07  Claude Paroz <claude@2xlibre.net>
223         [BZ #22403]
224         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
225         to be escaped.
226         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
227         to be escaped.
228         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
229         to be escaped.
231 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
233         [BZ #22298]
234         * nptl/allocatestack.c (allocate_stack): Check if
235         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
236         __PTHREAD_MUTEX_HAVE_PREV is defined.
237         * nptl/descr.h (pthread): Likewise.
238         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
239         Likewise.
240         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
241         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
242         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
243         * sysdeps/nptl/bits/thread-shared-types.h
244         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
245         defines.
246         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
247         of __WORDSIZE for internal layout.
248         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
249         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
250         instead of __WORDSIZE whether to use an union for __spins and __list
251         fields.
252         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
253         case.
254         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
255         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
256         defines.
257         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
258         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
259         Likewise.
260         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
261         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
262         Likewise.
263         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
264         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
265         Likewise.
266         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
267         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
268         Likewise.
269         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
270         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
271         Likewise.
272         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
273         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
274         Likewise.
275         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
276         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
277         Likewise.
278         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
279         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
280         Likewise.
281         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
282         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
283         Likewise.
284         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
285         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
286         Likewise.
287         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
288         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
289         Likewise.
290         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
291         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
292         Likewise.
293         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
294         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
295         Likewise.
296         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
297         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
298         Likewise.
300         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
301         New macros.
302         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
303         checks for expected input type size.
304         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
305         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
306         Likewise.
307         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
308         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
309         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
310         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
311         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
312         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
313         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
314         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
315         superflous runtime assert check.
316         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
317         Likewise.
318         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
319         Likewise.
320         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
321         Likewise.
322         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
323         Likewise.
324         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
325         Likewise.
326         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
327         Likewise.
328         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
329         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
330         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
331         Likewise.
332         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
333         Likewise.
334         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
335         Likewise.
336         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
337         Likewise.
338         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
339         Likewise.
340         * nptl/pthread_attr_setinheritsched.c
341         (__pthread_attr_setinheritsched): Likewise.
342         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
343         Likewise.
344         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
345         Likewise.
346         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
347         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
348         __old_pthread_attr_setstack): Likewise.
349         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
350         Likewise.
351         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
352         Likewise.
353         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
354         Likewise.
355         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
356         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
357         Likewise.
358         * nptl/tst-typesizes.c: Remove file.
360         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
361         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
362         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
363         checks for internal pthread_mutex_t offsets.
364         * sysdeps/aarch64/nptl/pthread-offsets.h
365         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
366         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
367         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
368         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
369         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
370         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
371         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
372         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
373         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
374         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
375         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
376         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
377         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
378         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
379         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
380         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
381         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
382         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
384 2017-11-07  Florian Weimer  <fweimer@redhat.com>
386         * bits/mman-linux.h: Move ...
387         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
388         comment.
389         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
390         outdated comment.
392 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
394         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
395         Redefine STRNLEN as __strnlen_power8.
397 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
399         * signal/sighold.c (sighold): Optimize implementation.
401         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
402         __NR_rt_sigqueueinfo.
404         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
405         __sigtimedwait.
406         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
407         assume __NR_rt_sigtimedwait.
408         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
409         and add LIBC_CANCEL_HANDLED for cancellation marking.
410         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
412         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
413         (sysdeps_routines): Add memchr_noneon.
414         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
415         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
416         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
417         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
418         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
419         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
420         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
422         * sysdeps/arm/arm-ifunc.h: New file.
423         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
424         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
425         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
426         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
427         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
428         (__memcpy_neon): Avoid create hidden alias.
429         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
430         (__memcpy_vfp): Likewise.
431         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
432         (sysdep_routines): Add memcpy_arm.
433         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
435 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
437         [BZ #22362]
438         * Makerules (make-link-multidir): New.
439         * config.make.in (multidir): New.
440         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
441         * configure: Regenerated.
442         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
443         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
444         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
445         New target.
447 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
449         [BZ #22402]
450         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
451         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
453 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
455         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
456         to be escaped.
458 2017-11-04  Florian Weimer  <fweimer@redhat.com>
460         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
462 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
464         * math/math.h [__HAVE_DISTINCT_FLOAT16
465         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
466         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
467         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
468         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
469         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
470         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
471         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
472         (__MATH_TG_F32): New macro.
473         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
474         (__MATH_TG_F64X): Likewise.
475         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
476         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
478 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
480         * po/de.po: Update translations.
481         * po/ru.po: Likewise.
483 2017-11-03  Florian Weimer  <fweimer@redhat.com>
485         * manual/filesys.texi (Hard Links): Document linkat.
487 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
489         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
490         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
491         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
492         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
493         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
494         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
495         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
496         the same as _Float128.
497         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
498         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
499         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
501         * stdlib/stdlib.h
502         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
503         Declare.
504         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
505         Likewise.
506         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
507         Likewise.
508         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
509         (strtof32x): Likewise.
510         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
511         (strtof64x): Likewise.
512         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
513         (strtof128x): Likewise.
514         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
515         (strfromf16): Likewise.
516         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
517         (strfromf32): Likewise.
518         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
519         (strfromf64): Likewise.
520         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
521         (strfromf32x): Likewise.
522         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
523         (strfromf64x): Likewise.
524         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
525         (strfromf128x): Likewise.
526         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
527         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
528         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
529         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
530         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
531         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
533 2017-11-03  Richard Henderson  <rth@twiddle.net>
535         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
537 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
539         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
541 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
543         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
544         DT_TLSDESC_GOT initialization.
545         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
546         (_dl_tlsdesc_resolve_hold): Likewise.
547         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
548         (_dl_tlsdesc_resolve_hold): Likewise.
549         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
550         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
552 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
554         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
556 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
558         [BZ #18572]
559         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
560         non-lazily for R_ARM_TLS_DESC.
562 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
564         [BZ #17078]
565         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
566         R_ARM_TLS_DESC case.
567         (elf_machine_lazy_rel): Remove the prelink check.
569 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
571         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
572         DT_TLSDESC_GOT initialization.
573         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
574         (_dl_tlsdesc_resolve_rela): Likewise.
575         (_dl_tlsdesc_resolve_hold): Likewise.
576         (_dl_tlsdesc_undefweak): Remove ldar.
577         (_dl_tlsdesc_dynamic): Likewise.
578         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
579         (_dl_tlsdesc_resolve_rela): Likewise.
580         (_dl_tlsdesc_resolve_hold): Likewise.
581         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
582         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
583         (_dl_tlsdesc_resolve_rela): Likewise.
584         (_dl_tlsdesc_resolve_hold): Likewise.
586 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
588         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
589         binding and initialization non-lazily for R_AARCH64_TLSDESC.
591 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
593         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
594         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
596 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
598         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
599         Declare.
600         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
601         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
602         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
603         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
604         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
605         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
606         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
607         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
608         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
609         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
610         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
612 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
614         [BZ #22382]
615         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
616         * localedata/locales/tpi_PG: Add standard header.
618 2017-11-02  Florian Weimer  <fweimer@redhat.com>
620         test-errno-linux: quotactl can fail with EPERM in containers.
621         * sysdeps/unix/sysv/linux/test-errno-linux.c
622         (LIST, LIST_FORWARD): New macros.
623         (check_error_in_list): New function.
624         (test_wrp_rv): Accept list of permitted error codes.
625         (test_wrp_rv2): Remove.
626         (test_wrp): Call test_wrp_rv with list of error codes.
627         (test_wrp2): Accept list of error codes.
628         (do_test): Adjust.  Allow EPERM for quotactl.
630 2017-11-02  Florian Weimer  <fweimer@redhat.com>
632         * stdio-common/bug16.c (do_test): Use array_length.
633         * stdio-common/errlist.c (_sys_nerr): Likewise.
634         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
635         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
636         * stdio-common/psiginfo.c (psiginfo): Use array_length.
637         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
638         (do_test): Use array_length.
639         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
640         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
641         * stdio-common/tst-printf-round.c (do_test): Likewise.
642         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
643         (CHECK): Use array_length.
644         * stdio-common/tstdiomisc.c (t3, F): Likewise.
645         * stdio-common/tstscanf.c (main): Likewise.
646         * stdio-common/vfprintf.c (process_string_arg): Likewise.
648 2017-11-02  Florian Weimer  <fweimer@redhat.com>
650         Add array_length and array_end macros.
651         * include/array_length.h: New file.
653 2017-11-02  Florian Weimer  <fweimer@redhat.com>
655         [BZ #22332]
656         * posix/tst-glob-tilde.c (do_noescape): New variable.
657         (one_test): Process it.
658         (do_test): Set do_noescape.  Add unescaping test case.
660 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
662         * math/complex.h
663         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
664         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
665         with appropriate macros defined and undefined.
666         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
667         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
668         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
669         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
670         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
671         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
672         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
673         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
674         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
675         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
677         * math/complex.h
678         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
679         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
680         that for long double.  Do not condition define and undefine of
681         _Mdouble_complex_ on [__CFLOAT128].
683 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
685         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
686         of <sysdeps/generic/sysdep.h>.
687         (ALIGNARG): Removed.
688         (ASM_SIZE_DIRECTIVE): Likewise.
689         (ENTRY): Likewise.
690         (END): Likewise.
691         (ENTRY_CHK): Likewise.
692         (END_CHK): Likewise.
693         (syscall_error): Likewise.
694         (mcount): Likewise.
695         (PSEUDO_END): Likewise.
696         (L): Likewise.
697         (atom_text_section): Likewise.
698         * sysdeps/x86/sysdep.h: New file.
699         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
700         of <sysdeps/generic/sysdep.h>.
701         (ALIGNARG): Removed.
702         (ASM_SIZE_DIRECTIVE): Likewise.
703         (ENTRY): Likewise.
704         (END): Likewise.
705         (ENTRY_CHK): Likewise.
706         (END_CHK): Likewise.
707         (syscall_error): Likewise.
708         (mcount): Likewise.
709         (PSEUDO_END): Likewise.
710         (L): Likewise.
711         (atom_text_section): Likewise.
713 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
715         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
716         category of LC_CTYPE set to "i18n:2012".
717         * localedata/locales/i18n_ctype: Regenerate.
719 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
721         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
722         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
723         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
724         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
726         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
727         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
728         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
729         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
731 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
733         * math/complex.h
734         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
735         New macro.
736         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
737         Likewise.
738         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
739         Likewise.
740         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
741         (CMPLXF32X): Likewise.
742         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
743         (CMPLXF64X): Likewise.
744         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
745         (CMPLXF128X): Likewise.
747         * math/math.h
748         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
749         (__MATH_EVAL_FMT2): Define to add 0.0f.
751 2017-10-31  Alan Modra  <amodra@gmail.com>
753         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
754         include sysdep.h.
755         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
756         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
757         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
758         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
759         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
760         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
761         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
762         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
763         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
764         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
765         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
766         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
767         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
768         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
769         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
770         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
771         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
772         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
773         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
774         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
775         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
776         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
777         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
778         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
779         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
780         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
781         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
782         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
783         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
784         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
785         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
786         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
787         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
788         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
789         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
790         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
791         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
792         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
793         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
794         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
795         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
796         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
797         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
798         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
799         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
800         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
801         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
802         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
803         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
804         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
805         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
806         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
807         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
808         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
809         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
810         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
811         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
812         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
813         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
814         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
815         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
816         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
817         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
818         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
819         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
820         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
821         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
822         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
823         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
825         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
826         include sysdep.h and math_ldbl_opt.h.
828         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
829         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
831         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
834         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
836         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
837         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
838         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
839         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
840         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
841         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
842         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
843         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
844         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
845         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
846         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
847         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
848         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
849         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
850         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
851         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
852         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
853         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
855 2017-10-31  Alan Modra  <amodra@gmail.com>
857         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
858         string/strncase_l.c, not string/strncase.c.
859         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
860         (libc_hidden_def): Redefine.
862 2017-10-31  Alan Modra  <amodra@gmail.com>
864         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
865         (__STRCMP, STRCMP, __strcasecmp_l): Define.
866         (__strcasecmp): Don't define.
868 2017-10-31  Alan Modra  <amodra@gmail.com>
870         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
871         IS_IN (libc).
872         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
873         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
874         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
876 2017-10-31  Alan Modra  <amodra@gmail.com>
878         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
879         USE_AS_STPNCPY.
881 2017-10-31  Alan Modra  <amodra@gmail.com>
883         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
884         Redefine only when SHARED.
886 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
888         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
889         Include <bits/math-finite.h> with appropriate macros defined and
890         undefined.
891         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
892         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
893         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
894         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
895         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
897         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
898         [!_Mlong_double_] (_Mlong_double_): Likewise.
899         [!_Mfloat16_] (_Mfloat16_): Likewise.
900         [!_Mfloat32_] (_Mfloat32_): Likewise.
901         [!_Mfloat64_] (_Mfloat64_): Likewise.
902         [!_Mfloat128_] (_Mfloat128_): Likewise.
903         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
904         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
905         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
906         (_Mdouble_): Define without indirection through those macros.
907         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
908         [!_Mfloat128_] (_Mfloat128_): Likewise.
909         [_Mlong_double_] (_Mlong_double_): Likewise.
910         (_Mdouble_): Define without indirection through those macros.
911         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
912         not add -D_Mlong_double_=double.
913         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
914         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
916 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
918         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
920 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
922         * sysdeps/x86/libc-start.c: Reformat.
924 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
926         [BZ #22353]
927         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
928         (1): Renamed to ...
929         (L(Src0)): This.
930         (L(Src1)): New.
931         (L(Src2)): Likewise.
932         (L(1)): Renamed to ...
933         (L(Src3)): This.
935 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
937         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
938         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
939         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
940         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
941         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
942         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
943         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
944         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
945         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
946         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
947         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
948         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
949         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
950         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
951         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
952         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
953         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
954         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
955         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
956         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
957         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
958         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
959         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
960         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
961         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
962         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
963         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
964         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
965         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
966         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
967         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
968         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
969         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
970         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
971         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
972         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
973         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
974         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
975         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
976         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
977         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
978         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
979         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
980         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
981         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
982         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
983         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
984         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
985         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
986         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
987         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
988         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
989         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
990         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
991         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
992         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
993         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
994         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
995         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
996         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
997         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
998         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
999         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
1000         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
1001         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
1002         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
1004 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1006         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
1007         always defined.
1008         * io/tst-mkdirat.c (do_test): Likewise.
1009         * io/tst-mkfifoat.c (do_test): Likewise.
1010         * io/tst-mknodat.c (do_test): Likewise.
1011         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
1012         * locale/programs/locale.c (select_dirs): Likewise.
1013         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
1014         * posix/bug-glob2.c (my_readdir): Likewise.
1015         * posix/tst-dir.c (main): Likewise.
1016         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
1017         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
1019 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1021         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
1022         just __USE_GNU.
1024 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1026         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
1027         Convert to support/test-driver.c.
1028         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
1029         New macro parameters.
1030         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
1031         * posix/tst-gnuglob.c: New file.
1032         * posix/tst-gnuglob64.c: Likewise.
1033         * posix/Makefile (tests): Add tst-gnuglob64.
1035 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
1037         [BZ #19485]
1038         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
1039         and use a better translation for March in “mon”.
1040         * localedata/locales/csb_PL: Use more ASCII to improve the
1041         readability of the source.
1043 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
1045         [BZ #13953]
1046         * localedata/locales/km_KH: Use ASCII as much
1047         as possible for better readability of the source and
1048         remove useless comments.
1049         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
1050         was commented out and apparently wrong anyway because it was
1051         using Lao characters. If Buddhist era should be used
1052         for km_KH, a native speaker should write the correct formaat
1053         for Khmer.
1054         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
1055         (According to CLDR, the first weekday for Cambodia is Sunday).
1056         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
1057         (These were using Lao characters which must be wrong. If we get
1058         the correct data from a native speaker, we could add it back, until
1059         then it is better not to have name_mr and name_mrs at all than
1060         having it wrong).
1062 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
1064         * locale/loadlocale.c: Correct size of
1065         _nl_value_type_LC_<category> arrays.
1067 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
1069         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1070         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
1071         with appropriate macros defined and undefined.
1072         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1073         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1074         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1075         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1076         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1078 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1080         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
1081         "-O2 -march=i586".
1083 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1085         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
1086         with lowercase letters to make it agree with CLDR.
1088 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1090         [BZ #15260]
1091         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
1092         first letters of yesstr and nostr in yesexpr and noexpr,
1093         not for the full words.
1094         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1095         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
1096         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
1097         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
1098         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
1099         first letters of yesstr and nostr in yesexpr and noexpr,
1100         until now only English was matched in yesexpr and noexpr.
1101         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
1102         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
1103         fil but not for tl. As tl and fil are very similar, using fil
1104         is probably better than using English.
1106 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
1108         [BZ #21706]
1109         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
1110         in yesstr and nostr.
1112 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
1114         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1115         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
1116         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
1117         Likewise.
1118         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
1119         Likewise.
1120         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
1121         Likewise.
1122         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
1123         Likewise.
1124         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1125         (SNANF128X): Likewise.
1127         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1128         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
1129         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1130         (HUGE_VAL_F32): Likewise.
1131         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1132         (HUGE_VAL_F64): Likewise.
1133         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1134         (HUGE_VAL_F32X): Likewise.
1135         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1136         (HUGE_VAL_F64X): Likewise.
1137         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1138         (HUGE_VAL_F128X): Likewise.
1140 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1142         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
1143         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
1144         for the br_FR locale.
1146 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1148         [BZ #21706]
1149         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
1151 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
1153         * locale/programs/record-status.h: Define globals, and function
1154         prototypes. Move function bodies...
1155         * locale/programs/record-status.c: ... to here. New file.
1156         * iconv/Makefile (iconv_prog-modules): Add record-status.
1157         * locale/Makefile (lib-modules): Likewise.
1158         * iconv/iconv_prog.c: Remove verbose.
1159         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
1160         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
1161         record a warning about ASCII compatibility.
1162         * locale/programs/ld-monetary.c (monetary_finish): If
1163         warn_int_curr_symbol is true then record a warning about the symbol
1164         not being in our ISO 4217 list.
1165         * locale/programs/locale.c: Include record-status.h. Remove verbose.
1166         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
1167         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
1168         (OPT_NO_WARN): Define.
1169         (OPT_WARN): Define.
1170         (options): Add entry for --no-warnings, and --warnings.
1171         (set_warnings): New function to enable/disable warnings.
1172         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
1173         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
1174         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
1175         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
1176         Pass flags to generate_locale.
1177         (generate_locale): Accept new flag argument and pass it to localedef
1178         invocation.
1179         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
1180         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
1182         * localedata/Makefile (test-input-data): Use full file name.
1183         * localedata/da_DK.in: Rename to...
1184         * localedata/da_DK.ISO-8859-1.in: ...this.
1185         * localedata/de_DE.in: Rename to...
1186         * localedata/de_DE.ISO-8859-1.in: ...this.
1187         * localedata/en_US.in: Rename to...
1188         * localedata/en_US.ISO-8859-1.in: ...this.
1189         * localedata/fr_FR.in: Rename to...
1190         * localedata/fr_FR.UTF-8.in: ... this.
1191         * localedata/hr_HR.in: Rename to...
1192         * localedata/hr_HR.ISO-8859-2.in: ...this.
1193         * localedata/hu_HU.in: Rename to...
1194         * localedata/hu_HU.UTF-8.in: ...this.
1195         * localedata/si_LK.in: Rename to...
1196         * localedata/si_LK.UTF-8.in: ...this.
1197         * localedata/sv_SE.in: Rename to...
1198         * localedata/sv_SE.ISO-8859-1.in: ...this.
1199         * localedata/tr_TR.in: Rename to...
1200         * localedata/tr_TR.UTF-8.in: ...this.
1201         * localedata/uk_UA.in: Rename to...
1202         * localedata/uk_UA.UTF-8.in: ...this.
1203         * localedata/sort-test.sh: Test file is locale name with the
1204         suffix.
1206         * localedata/unicode-gen/Makefile (check_i18n): Rename to
1207         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
1208         file.
1209         * localedata/locales/i18n_ctype: Regenerate.
1210         * localedata/locales/tr_TR: Likewise.
1211         * localedata/locales/translit_circle: Likewise.
1212         * localedata/locales/translit_cjk_compat: Likewise.
1213         * localedata/locales/translit_combining: Likewise.
1214         * localedata/locales/translit_compat: Likewise.
1215         * localedata/locales/translit_font: Likewise.
1216         * localedata/locales/translit_fraction: Likewise.
1218 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1220         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
1221         lxvd2x/stxvd2x with lvx/stvx.
1222         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1224 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1226         * include/alloc_buffer.h: Replace "if if " with "if " in
1227         comments.
1228         * sysdeps/mips/memcpy.S: Likkewise.
1229         * sysdeps/mips/memset.S: Likewise.
1230         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
1231         Likewise.
1232         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
1233         Likewise.
1234         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
1235         Likewise.
1237 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1239         [BZ #15261]
1240         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
1241         yesexpr and noexpr.
1242         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1243         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1244         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1245         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1246         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1247         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1248         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1250 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1252         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
1253         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1254         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1255         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1256         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1257         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
1258         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1259         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1260         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1261         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1262         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1263         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1265 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1267         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
1268         as possible for better readability of the source.
1269         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
1270         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
1271         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
1272         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
1273         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
1274         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
1275         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
1276         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
1277         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1278         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
1279         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
1280         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
1281         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
1282         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
1283         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
1284         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
1285         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
1286         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
1287         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
1288         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
1289         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
1290         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
1291         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
1292         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
1293         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
1294         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
1295         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
1296         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
1297         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
1298         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
1299         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
1300         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1301         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
1302         * localedata/locales/en_US (LC_MESSAGES): Likewise.
1303         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
1304         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
1305         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
1306         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
1307         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
1308         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
1309         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
1310         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
1311         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
1312         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
1313         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
1314         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
1315         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
1316         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
1317         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
1318         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
1319         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
1320         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
1321         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
1322         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1323         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1324         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
1325         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
1326         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1327         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
1328         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
1329         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
1330         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
1331         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
1332         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
1333         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
1334         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
1335         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
1336         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
1337         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
1338         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
1339         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
1340         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
1341         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
1342         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
1343         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1344         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
1345         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
1346         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
1347         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
1348         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
1349         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
1350         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
1351         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
1352         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1353         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
1354         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
1355         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
1356         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1357         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
1358         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
1359         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
1360         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
1361         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1362         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
1363         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
1364         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1365         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
1366         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1367         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
1368         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
1369         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
1370         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
1371         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
1372         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
1373         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
1374         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
1375         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
1376         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
1377         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
1378         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
1379         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
1380         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
1381         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1382         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
1383         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
1384         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
1385         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
1386         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
1387         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
1388         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
1389         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
1390         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
1391         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
1392         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
1393         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
1394         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
1395         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
1396         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
1397         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
1398         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
1399         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
1400         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
1401         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
1402         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
1403         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
1404         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
1405         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
1406         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
1407         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
1408         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
1409         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
1410         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
1411         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
1412         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
1413         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
1414         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1415         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
1416         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
1417         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
1418         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
1419         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
1420         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
1421         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
1422         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
1423         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1424         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
1425         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
1426         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
1427         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
1428         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
1429         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
1430         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
1431         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
1432         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
1433         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
1434         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1435         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
1436         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
1437         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
1438         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
1439         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1440         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1441         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1442         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
1444 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1446         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
1447         (Use first letters of yesstr and nostr correctly instead of using
1448         full words).
1450 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1452         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
1453         (Use first letters of yesstr and nostr correctly).
1455 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1457         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
1458         also check for the first characters of yesstr and nostr.
1459         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
1460         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
1462 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1464         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
1465         also check for Chinese characters.
1467 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1469         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
1470         match also for the contents of yesstr and nostr. As the first letter
1471         of yesstr and nostr is equal, checking only for the first letter
1472         is not enough.
1474 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1476         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
1477         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
1479 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1481         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
1482         of main contributor.
1484 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1486         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
1487         instead of using English.
1489 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1491         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
1492         by including the first letters of nostr and yesexpr in the regexp.
1493         Also make it more readable by using ASCII where possible.
1495 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1497         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
1498         the first letter of nostr in the regexp. It agrees with CLDR now.
1499         Also make it more readable by using ASCII where possible.
1501 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1503         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
1504         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
1505         these strings contain a U+17D6 (which somewhat looks like a colon)
1506         instead of a real colon to separate the full words for “yes”
1507         and “no” from the single letter responses.
1509 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1511         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
1512         it agree with CLDR (include the first letter of yesstr).
1513         Also make it more readable by using ASCII where possible.
1515 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1517         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
1518         and improve yesexpr and noexpr. The yesstr and nostr apparently
1519         came from CLDR. And CLDR has a bug there: these strings contain
1520         a U+0903 (which looks like a colon) instead of a real colon
1521         to separate the full words for “yes” and “no” from the single
1522         letter responses.
1524 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1526         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
1527         letters of the full yesstr and nostr in yesexpr and noexpr.
1529 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1531         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
1532         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
1533         * localedata/locales/an_ES: Make source more readable by using ASCII
1534         where possible.
1536 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1538         [BZ #20952]
1539         * localedata/locales/yuw_PG: New file.
1540         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
1541         * locale/iso-639.def: Add Yau (Uruwa).
1543 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
1545         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
1547 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
1549         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
1550         (__libc_realloc): Likewise.
1551         (_mid_memalign): Likewise.
1552         (__libc_calloc): Likewise.
1554 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
1556         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
1557         by adding the generic +1 and -0 as in all other locales.
1558         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
1559         day names and make it more readable by using ASCII where possible.
1561 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
1563         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
1564         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
1566 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1568         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
1569         WNOHANG in waitpid call.
1571 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1573         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
1574         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
1576         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
1577         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
1578         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
1579         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
1580         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
1581         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
1582         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
1583         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
1584         variables.
1586 2017-10-23  Michael Collison  <michael.collison@arm.com>
1588         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
1589         with __builtin_sqrt.
1590         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
1591         with __builtin_sqrtf.
1592         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
1593         with __builtin_ceil.
1594         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
1595         with __builtin_ceilf.
1596         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
1597         with __builtin_floor.
1598         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
1599         with __builtin_floorf.
1600         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
1601         with __builtin_fma.
1602         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
1603         with __builtin_fmaf.
1604         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
1605         with __builtin_fmax.
1606         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
1607         with __builtin_fmaxf.
1608         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
1609         with __builtin_fmin.
1610         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
1611         with __builtin_fminf.
1612         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
1613         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
1614         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
1615         with builtin_rint and conversion to int.
1616         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
1617         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
1618         with builtin_llround.
1619         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
1620         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
1621         with builtin_rint and conversion to long int.
1622         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
1623         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
1624         with builtin_lround.
1625         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
1626         with builtin_lroundf.
1627         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
1628         statements with __builtin_nearbyint.
1629         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
1630         statements with __builtin_nearbyintf.
1631         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
1632         with __builtin_rint.
1633         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
1634         with __builtin_rintf.
1635         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
1636         with __builtin_round.
1637         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
1638         with __builtin_roundf.
1639         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
1640         with __builtin_trunc.
1641         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
1642         with __builtin_truncf.
1643         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
1644         and s_l[l]round[f].c too.
1646 2017-10-23  Alan Modra  <amodra@gmail.com>
1648         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
1649         Adjust stack after restoring regs.  Add missing LR cfi_restore.
1651 2017-10-23  Alan Modra  <amodra@gmail.com>
1653         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
1654         Move LR save and frame setup/teardown and LR restore to
1655         immediately around memset call.  Provide cfi.
1657 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1659         * sysdeps/i386/fpu/e_powf.S: Removed.
1660         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
1661         * sysdeps/i386/fpu/w_powf.c: Likewise.
1662         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
1663         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1664         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1665         Add e_powf-sse2.
1666         (CFLAGS-e_powf-sse2.c): New.
1667         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
1668         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
1670 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1672         * sysdeps/i386/fpu/e_log2f.S: Removed.
1673         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
1674         * sysdeps/i386/fpu/w_log2f.c: Likewise.
1675         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
1676         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1677         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1678         Add e_log2f-sse2.
1679         (CFLAGS-e_log2f-sse2.c): New.
1680         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
1681         * sysdeps/i386/i686/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_powf-fma.
1687         (CFLAGS-e_powf-fma.c): New.
1688         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
1689         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
1691 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1693         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1694         Add e_log2f-fma.
1695         (CFLAGS-e_log2f-fma.c): New.
1696         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
1697         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
1699 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1701         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1702         Add e_logf-fma.
1703         (CFLAGS-e_logf-fma.c): New.
1704         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
1705         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
1707 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1709         * sysdeps/i386/fpu/e_logf.S: Removed.
1710         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
1711         * sysdeps/i386/fpu/w_logf.c: Likewise.
1712         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
1713         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
1714         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1715         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1716         Add e_logf-sse2.
1717         (CFLAGS-e_logf-sse2.c): New.
1718         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
1719         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
1721 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1723         * sysdeps/i386/fpu/e_exp2f.S: Removed.
1724         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
1725         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
1726         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1727         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1728         Add e_exp2f-sse2.
1729         (CFLAGS-e_exp2f-sse2.c): New.
1730         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
1731         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
1733 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1735         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1736         Add e_exp2f-fma.
1737         (CFLAGS-e_exp2f-fma.c): New.
1738         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
1739         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
1741 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1743         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
1744         * sysdeps/i386/fpu/e_expf.S: Likewise.
1745         * sysdeps/i386/fpu/math_errf.c: Likewise.
1746         * sysdeps/i386/fpu/w_expf.c: Likewise.
1747         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
1748         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1749         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
1750         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
1751         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1752         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1753         Remove e_expf-ia32.
1754         (CFLAGS-e_expf-sse2.c): New.
1755         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
1756         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
1758 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1760         * sysdeps/x86_64/fpu/e_expf.S: Removed.
1761         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
1762         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
1763         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
1764         e_expf.c.
1765         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
1766         New.
1767         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
1768         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
1769         Renamed to ...
1770         (__redirect_expf): This.
1771         (SYMBOL_NAME): Changed to expf.
1772         (__ieee754_expf): Renamed to ...
1773         (__expf): This.
1774         (__GI___expf): This.
1775         (__ieee754_expf): Add strong_alias.
1776         (__expf_finite): Likewise.
1777         (__expf): New.
1778         Include <sysdeps/ieee754/flt-32/e_expf.c>.
1780 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
1782         [BZ #22332]
1783         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
1784         unescaping.
1786 2017-10-21  Florian Weimer  <fweimer@redhat.com>
1788         * posix/Makefile (tests): Add tst-glob-tilde.
1789         (tests-special): Add tst-glob-tilde-mem.out
1790         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
1791         (tst-glob-tilde-mem.out): Add mtrace check.
1792         * posix/tst-glob-tilde.c: New file.
1794 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
1796         * bits/floatn-common.h: New file.
1797         * math/Makefile (headers): Add bits/floatn-common.h.
1798         * bits/floatn.h: Include <bits/floatn-common.h>.
1799         * sysdeps/ia64/bits/floatn.h: Likewise.
1800         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1801         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
1802         * sysdeps/powerpc/bits/floatn.h: Likewise.
1803         * sysdeps/x86/bits/floatn.h: Likewise.
1805 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1807         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
1808         indicates whether compiler emits an warning for alias for
1809         functions with incompatible types.
1811         [BZ #22273]
1812         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
1813         the auxiliary process is terminated by a signal before calling _exit
1814         or execve.
1816 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1818         [BZ #21265]
1819         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
1820         New.
1821         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
1822         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
1823         and bit_arch_XSAVEC_Usable if needed.
1824         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
1825         and bit_arch_Use_dl_runtime_resolve_opt.
1826         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
1827         Removed.
1828         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
1829         (bit_arch_Prefer_No_AVX512): Updated.
1830         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
1831         (bit_arch_XSAVEC_Usable): New.
1832         (STATE_SAVE_OFFSET): Likewise.
1833         (STATE_SAVE_MASK): Likewise.
1834         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
1835         (cpu_features): Add xsave_state_size and xsave_state_full_size.
1836         (index_arch_Use_dl_runtime_resolve_opt): Removed.
1837         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
1838         (index_arch_XSAVEC_Usable): New.
1839         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
1840         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
1841         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
1842         is enabled.
1843         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1844         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
1845         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
1846         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
1847         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
1848         _dl_runtime_resolve_xsavec.
1849         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
1850         Removed.
1851         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
1852         instead of VEC_SIZE.
1853         (REGISTER_SAVE_BND0): Removed.
1854         (REGISTER_SAVE_BND1): Likewise.
1855         (REGISTER_SAVE_BND3): Likewise.
1856         (REGISTER_SAVE_RAX): Always defined to 0.
1857         (VMOV): Removed.
1858         (_dl_runtime_resolve_avx): Likewise.
1859         (_dl_runtime_resolve_avx_slow): Likewise.
1860         (_dl_runtime_resolve_avx_opt): Likewise.
1861         (_dl_runtime_resolve_avx512): Likewise.
1862         (_dl_runtime_resolve_avx512_opt): Likewise.
1863         (_dl_runtime_resolve_sse): Likewise.
1864         (_dl_runtime_resolve_sse_vex): Likewise.
1865         (USE_FXSAVE): New.
1866         (_dl_runtime_resolve_fxsave): Likewise.
1867         (USE_XSAVE): Likewise.
1868         (_dl_runtime_resolve_xsave): Likewise.
1869         (USE_XSAVEC): Likewise.
1870         (_dl_runtime_resolve_xsavec): Likewise.
1871         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
1872         Removed.
1873         (_dl_runtime_resolve_avx512_opt): Likewise.
1874         (_dl_runtime_resolve_avx): Likewise.
1875         (_dl_runtime_resolve_avx_opt): Likewise.
1876         (_dl_runtime_resolve_sse): Likewise.
1877         (_dl_runtime_resolve_sse_vex): Likewise.
1878         (_dl_runtime_resolve_fxsave): New.
1879         (_dl_runtime_resolve_xsave): Likewise.
1880         (_dl_runtime_resolve_xsavec): Likewise.
1882 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
1884         [BZ #22320]
1885         CVE-2017-15670
1886         * posix/glob.c (__glob): Fix one-byte overflow.
1888 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
1890         * malloc/malloc.c (sysdep-cancel.h): Add include.
1892 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
1894         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
1896 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
1898         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
1899         (tests): Remove $(objpfx)ga_test depdendency.
1900         * resolv/ga_test.c: Remove file.
1902 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
1904         [BZ #18812]
1905         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
1906         * localedata/locales/kab_DZ: New file.
1908 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1910         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
1911         _dl_relocate_static_pie instead of _dl_start to compute load
1912         address in static PIE.
1914 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1916         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
1918 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
1920         [BZ #13605]
1921         * localedata/SUPPORTED: Add shn_MM/UTF-8.
1922         * localedata/locales/shn_MM: New file.
1924 2017-10-20  Florian Weimer  <fweimer@redhat.com>
1926         [BZ #22321]
1927         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
1928         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
1929         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
1930         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
1931         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
1932         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
1934 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1936         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1938 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
1940         * sysdeps/mips/ieee754/bits/floatn.h: New file.
1942         [BZ #22322]
1943         * sysdeps/mips/bits/long-double.h: Move to ....
1944         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
1946 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
1948         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
1950 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
1951             H.J. Lu  <hongjiu.lu@intel.com>
1953         [BZ #22299]
1954         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
1955         GLRO(dl_platform) to NULL.
1956         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
1957         (modules-names): Add tst-platformmod-1 and
1958         x86_64/tst-platformmod-2.
1959         (CFLAGS-tst-platform-1.c): New.
1960         (CFLAGS-tst-platformmod-1.c): Likewise.
1961         (CFLAGS-tst-platformmod-2.c): Likewise.
1962         (LDFLAGS-tst-platformmod-2.so): Likewise.
1963         ($(objpfx)tst-platform-1): Likewise.
1964         ($(objpfx)tst-platform-1.out): Likewise.
1965         (tst-platform-1-ENV): Likewise.
1966         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
1967         * sysdeps/x86_64/tst-platform-1.c: New file.
1968         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
1969         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
1971 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
1973         [BZ #13994]
1974         * locale/iso-639.def: Add Karbi.
1975         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
1976         * localedata/locales/mjw_IN: New file.
1978 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
1980         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
1981         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1982         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
1983         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
1984         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1985         (libm_alias_ldouble_other_r): Also create _Float128 alias.
1986         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
1987         <bits/floatn.h>.
1988         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1989         (libm_alias_ldouble_other_r): Also create _Float128 alias.
1990         * manual/math.texi (Mathematics): Document additional architecture
1991         support for _Float128.
1992         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
1993         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1994         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1995         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1996         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1997         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1998         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1999         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2000         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2001         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2002         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2003         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2004         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2005         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2006         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2008 2017-10-18  Renlin Li  <renlin.li@arm.com>
2010         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
2011         _DYNAMIC symbol to calculate load address.
2013 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
2015         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
2016         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
2017         summary bits.
2018         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
2019         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
2021 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
2023         [BZ #16777]
2024         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
2025         and improve readability by using more ASCII.
2026         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
2027         and improve readability by using more ASCII.
2029 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
2031         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
2032         not all targets support atomics on bool.
2034 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
2036         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
2037         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
2038         __f128.
2039         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2040         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
2041         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2042         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
2043         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2044         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
2046 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2048         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
2049         defines.
2051 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2053         [BZ #22159]
2054         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
2055         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
2056         (do_check_remalloced_chunk): Fix build bug.
2057         (do_check_malloc_state): Add assert that checks arena->top.
2058         (malloc_consolidate): Remove initialization.
2059         (int_mallinfo): Remove call to malloc_consolidate.
2060          (__libc_mallopt): Clarify why malloc_consolidate is needed.
2062 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2064         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
2065         (have_fastchunks): Remove.
2066         (clear_fastchunks): Remove.
2067         (set_fastchunks): Remove.
2068         (malloc_state): Add have_fastchunks.
2069         (malloc_init_state): Use have_fastchunks.
2070         (do_check_malloc_state): Remove incorrect invariant checks.
2071         (_int_malloc): Use have_fastchunks.
2072         (_int_free): Likewise.
2073         (malloc_consolidate): Likewise.
2075 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2077         * malloc/malloc.c (tcache_put): Inline.
2078         (tcache_get): Inline.
2080 2017-10-17  Jordi Mallach  <jordi@gnu.org>
2082         Aurelien Jarno  <aurelien@aurel32.net>
2083         [BZ #2522]
2084         * localedata/locales/ca_ES@valencia: New file.
2085         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
2087 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
2089         [BZ #22296]
2090         * math/math.h: Let signbit use the builtin in C++ mode with gcc
2091         < 6.x
2093 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2095         * scripts/build-many-glibcs.py (Context.add_all_configs):
2096         Add arm-linux-gnueabihf multiarch extra_glibcs.
2098         * sysdeps/generic/ifunc-init.h: New file.
2099         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
2101 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
2103         [BZ #22019]
2104         * localedata/locales/el_GR: Set n_cs_precedes to 0.
2105         * localedata/locales/el_CY: copy "el_GR" because it is identical.
2106         * stdlib/tst-strfmon_l.c: adapt test case.
2108 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2110         * sysdeps/generic/float128-abi.h: New file.
2111         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
2112         non-__prefixed symbols to ....
2113         * math/Versions: ... here.  Include <float128-abi.h>.
2114         * stdlib/Versions ... and here.  Include <float128-abi.h>
2116 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2118         * version.h (VERSION): Switch to ".9000" as the development
2119         version suffix.
2121 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2123         [BZ #22050]
2124         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
2125         compat_symbol_reference to access non-default version.
2127 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2129         * malloc/Makefile (others-extras): Set to mcheck-init.o.
2131 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
2133         * include/shlib-compat.h (compat_symbol_reference): Update
2134         comment.
2136 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2138         * math/Makefile (test-types): Add
2139         $(type-float128-$(float128-alias-fcts)).
2140         * math/test-float128.h (TYPE_STR): Define conditional on
2141         [FLT128_MANT_DIG == LDBL_MANT_DIG].
2142         (ULP_IDX): Likewise.
2143         (ULP_I_IDX): Likewise.
2145         * stdlib/strtold.c: Include <bits/floatn.h>
2146         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
2147         and later undefine as macro.  Define as weak alias if
2148         [!USE_WIDE_CHAR].
2149         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
2150         and later undefine as macro.  Define as weak alias if
2151         [USE_WIDE_CHAR].
2152         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
2153         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
2154         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2155         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2156         Define and later undefine as macro.  Define as weak alias if
2157         [USE_WIDE_CHAR].
2158         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
2159         <bits/floatn.h>.
2160         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
2161         Define and later undefine as macro.  Define as weak alias if
2162         [!USE_WIDE_CHAR].
2163         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2164         Define and later undefine as macro.  Define as weak alias if
2165         [USE_WIDE_CHAR].
2167 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
2169         * localedata/collate-test.c (allocate_arrays): Don't use \n in
2170         record_verbose messages.
2172 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2174         [BZ #22052]
2175         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
2176         to silence -O3 -Wall warning with GCC 7.
2178 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
2180         * Makeconfig (+link-static-before-libc): Use the first of
2181         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
2182         * gmon/Makefile (tests): Add tst-gmon-static.
2183         (tests-static): Likewise.
2184         (CFLAGS-tst-gmon-static.c): New.
2185         (CRT-tst-gmon-static): Likewise.
2186         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
2187         (tst-gmon-static-ENV): Likewise.
2188         (tests-special): Likewise.
2189         ($(objpfx)tst-gmon-static.out): Likewise.
2190         (clean-tst-gmon-static-data): Likewise.
2191         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
2192         * gmon/tst-gmon-static-gprof.sh: New file.
2193         * gmon/tst-gmon-static.c: Likewise.
2195 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
2197         [BZ #22295]
2198         * locale/programs/linereader.c (get_string): Don't warn on
2199         non-symbolic character.
2201         [BZ #22294]
2202         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
2203         int_curr_symbol.
2205         [BZ #22292]
2206         * locale/programs/record-status.h: New file
2207         * locale/programs/locale.c: Add comment.
2208         * locale/programs/charmap-dir.c: Don't include error.h.
2209         (charmap_opendir): Use record_error.
2210         * locale/programs/charmap.c: Don't include error.h.
2211         (charmap_read): Use record_error, and record_warning.
2212         (parse_charmap): Likewise.
2213         * locale/programs/ld-address.c: Don't include error.h.
2214         (address_finish): Use record_error, and record_warning.
2215         * locale/programs/ld-collate.c: Don't include error.h.
2216         (collate_finish): Use record_error, and record_error_at_line.
2217         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
2218         (ctype_class_new): Likewise.
2219         (ctype_map_new): Likewise.
2220         (set_one_default): Likewise.
2221         (set_class_defaults): Likewise.
2222         (translit_flatten): Likewise.
2223         (allocate_arrays): Use record_error, and record_verbose.
2224         * locale/programs/ld-identification.c: Don't include error.h.
2225         (indentation_finish): Use record_error and record_warning.
2226         * locale/programs/ld-measurement.c: Don't include error.h.
2227         (measurement_finish): Use record_error.
2228         * locale/programs/ld-messages.c
2229         (message_finish): Likewise.
2230         * locale/programs/ld-monetary.c
2231         (monetary_finish): Likewise.
2232         * locale/programs/ld-name.c (name_finish): Use record_error
2233         and record_warning.
2234         * locale/programs/ld-numeric.c
2235         (numeric_finish): Use record_error.
2236         * locale/programs/ld-paper.c: Don't include error.h.
2237         (paper_finish): Use record_error.
2238         * locale/programs/ld-telephone.c: Don't include error.h.
2239         (telephone_finish): Use record_error.
2240         * locale/programs/ld-time.c (time_finish): Likewise.
2241         * locale/programs/linereader.h (lr_error): Make inline func.
2242         * locale/programs/localedef.c: Define recorded_warning_count,
2243         and recorded_error_count.
2244         (main): Use record_error. Use recorded_error_count and
2245         recorded_warning_count to issue correct error returns.
2246         (add_to_readlist): Use record_error.
2247         (find_locale): Likewise.
2248         (load_locale): Likewise.
2249         * locale/programs/localedef.h: Remove be_quiet
2250         and WITH_CUR_LOCALE.
2251         * locale/programs/locarchive.c (compare_from_file): Use
2252         record_error.
2253         * locale/programs/locfile.c (write_locale_data): Use
2254         record_error.
2255         * locale/programs/repertoire.c: Dont include error.h.
2256         (repertoire_complain): Use record_error.
2257         * localedata/tst-fmon.sh: Expect failures from localedef.
2258         * localedata/tst-locale.sh: Likewise.
2259         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
2261         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
2262         (REPORTS): Likewise.
2263         (check): Likewise.
2264         (i18n): Rename to...
2265         (i18n_ctype): ...this.
2266         (i18n-report): Rename to...
2267         (i18n_ctype-report): ...this.
2268         * localedata/locales/i18n_ctype: Regenerate.
2269         * localedata/locales/i18n: copy i18n_ctype.
2271 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2273         * stdlib/strfroml.c: Include <bits/floatn.h>.
2274         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
2275         Define before include of <stdlib.h> and undefine afterwards, then
2276         define as weak alias.
2278         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
2279         Undefine and restore default definition.  Use
2280         libm_alias_ldouble_other.
2282 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
2284         [BZ #22153]
2285         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
2286         in coredumps.
2288 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
2290         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
2291         Assign sym_map to be map for local symbols, as TLS relocations
2292         use sym_map to determine whether the symbol is defined and to
2293         extract the TLS information.
2294         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2295         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2297 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2299         [BZ #22189]
2300         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
2301         (math_force_eval): Add powerpc version.
2303         [BZ #22142]
2304         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
2305         -DBL_MAX.
2306         (do_test): Likewise.
2307         * stdio-common/tst-printf.sh: Likewise.
2308         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
2309         ifdef clause in order to set the carry bit right.  Replace r0 by
2310         0 without changing the behavior.
2312 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2314         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
2315         <libm-alias-ldouble.h>.
2316         (fabsl): Define using libm_alias_ldouble.
2317         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
2318         <libm-alias-ldouble.h>.
2319         (fabsl): Define using libm_alias_ldouble.
2321         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
2322         Remove conditional code.
2324         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
2325         Rename to __clog10_internal_l.
2326         (__clog10_internal_l): Define aliases using
2327         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
2328         with __clog10.
2330 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2332         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
2333         * benchtests/sincosf-inputs: New file.
2334         * benchtests/cosf-inputs: New file.
2335         * benchtests/sinf-inputs: New file.
2337 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2339         * posix/tst-spawn.c (do_test): Wait for both children.
2341 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2343         [BZ #22284]
2344         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
2345         tests-pie): Add tst-gmon-pie.
2346         (CFLAGS-tst-gmon-pie.c): New.
2347         (CRT-tst-gmon-pie): Likewise.
2348         (tst-gmon-pie-ENV): Likewise.
2349         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
2350         ($(objpfx)tst-gmon-pie.out): Likewise.
2351         (clean-tst-gmon-pie-data): Likewise.
2352         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
2353         * gmon/gmon.c [PIC]: Include <link.h>.
2354         [PIC] (callback): New function.
2355         (write_hist): Add an argument for load address.  Subtract load
2356         address from PCs.
2357         (write_call_graph): Likewise.
2358         (write_gmon): Call __dl_iterate_phdr to get load address, pass
2359         it to write_hist and write_call_graph.
2360         * gmon/tst-gmon-pie.c: New file.
2362 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2364         * math/Makefile (test-types-basic): New variable.
2365         (test-types): Likewise.
2366         (libm-test-support): Use $(test-types) instead of $(types).
2367         (libm-tests-base-normal): Likewise.
2368         (libm-tests-base-finite): Likewise.
2369         (libm-tests-base-inline): Likewise.
2370         (generated): Likewise.
2371         ($(objpfx)libm-test-support-$(t).c): Likewise.
2372         (libm-tests-for-type iterator): Likewise.
2373         (libm-test-support iterator): Likewise.
2374         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
2375         (ulp_idx): Use ULP_IDX.
2376         * math/test-ldouble.h: Include <float.h>.
2377         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
2378         (ULP_IDX): New macro.
2379         (ULP_I_IDX): Likewise.
2380         * math/test-double.h (ULP_IDX): Likewise.
2381         (ULP_I_IDX): Likewise.
2382         * math/test-float.h (ULP_IDX): Likewise.
2383         (ULP_I_IDX): Likewise.
2384         * math/test-float128.h (ULP_IDX): Likewise.
2385         (ULP_I_IDX): Likewise.
2387 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2389         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
2390         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
2391         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
2392         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
2393         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
2394         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
2395         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
2396         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
2397         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
2398         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
2399         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
2400         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
2401         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
2402         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2403         (SINGLE_THREAD_BY_GLOBAL): Define.
2404         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2405         Likewise.
2406         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2407         Likewise.
2408         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2409         Likewise.
2410         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2411         Likewise.
2412         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
2413         (SINGLE_THREAD_BY_GLOBAL): Likewise.
2414         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2415         Likewise.
2417 2017-10-11  Andreas Schwab  <schwab@suse.de>
2419         * nis/Makefile (aux): Remove.
2420         * nscd/Makefile (aux): Add nscd_hash.
2421         (nscd-modules): Likewise.
2422         ($(objpfx)nscd): Don't depend on libnsl.
2423         * nscd/nscd_hash.c: New file.
2424         * nscd/nscd_hash.h: Likewise.
2425         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
2426         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
2427         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
2428         instead of <nis/rpcsvc/nis.h>.
2429         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
2431 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2433         [BZ #22078]
2434         Avoid large NSS buffers with many addresses, aliases.
2435         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
2436         using dynarrays and struct alloc_buffer.
2437         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
2438         (tst-nss-files-hosts-multi): Link with -ldl.
2439         * nss/tst-nss-files-hosts-multi.c: New file.
2441 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2443         [BZ #18023]
2444         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
2445         scratch_buffer.  Eliminate gotos.
2447 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2449         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
2450         libm_alias_ldouble_other.
2451         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
2452         undefine and redefine.
2453         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
2454         (exp10l): Do not define here.
2455         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
2456         (weak_alias): Undefine and redefine.
2457         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
2458         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
2459         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
2460         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
2462         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
2463         [!__fma] (fma): Define using libm_alias_double.
2464         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
2465         [!__fmaf] (fmaf): Define using libm_alias_float.
2466         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
2467         (fmal): Define using libm_alias_ldouble.
2469 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
2471         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
2472         New macro.
2473         (libm_alias_double_other): Likewise.
2474         (libm_alias_double_r): Use libm_alias_double_other_r.
2475         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
2476         New macro.
2477         (libm_alias_float_other): Likewise.
2478         (libm_alias_float_r): Use libm_alias_float_other_r.
2479         * sysdeps/generic/libm-alias-float128.h
2480         (libm_alias_float128_other_r): New macro.
2481         (libm_alias_float128_other): Likewise.
2482         (libm_alias_float128_r): Use libm_alias_float128_other_r.
2483         * sysdeps/generic/libm-alias-ldouble.h
2484         (libm_alias_ldouble_other_r): New macro.
2485         (libm_alias_ldouble_other): Likewise.
2486         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
2487         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
2488         (libm_alias_double_other_r): New macro.
2489         (libm_alias_double_other): Likewise.
2490         (libm_alias_double_r): Use libm_alias_double_other_r.
2491         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
2492         (libm_alias_ldouble_other_r): New macro.
2493         (libm_alias_ldouble_other): Likewise.
2494         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
2495         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
2496         [!USE_AS_COMPAT]: Use libm_alias_double_other.
2497         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
2498         [!USE_AS_COMPAT]: Use libm_alias_float_other.
2499         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
2500         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
2501         * math/w_exp2f.c: Use libm_alias_float_other.
2502         * math/w_expf.c: Likewise.
2503         * math/w_log2f.c: Likewise.
2504         * math/w_logf.c: Likewise.
2505         * math/w_powf.c: Likewise.
2506         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
2507         [!__exp2f]: Use libm_alias_float_other.
2508         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
2509         [!__expf]: Use libm_alias_float_other.
2510         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
2511         [!__log2f]: Use libm_alias_float_other.
2512         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
2513         [!__logf]: Use libm_alias_float_other.
2514         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
2515         [!__powf]: Use libm_alias_float_other.
2517 2017-10-10  Florian Weimer  <fweimer@redhat.com>
2519         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
2520         function.
2521         (_nss_files_gethostbyname3_r): Call it.
2523 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
2525         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
2526         error.  Remove default definition of declare_mgen_alias.
2527         [!declare_mgen_alias_r]: Likewise.
2528         * sysdeps/generic/math-type-macros-double.h
2529         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
2530         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
2531         (declare_mgen_alias_r): Likewise.
2532         * sysdeps/generic/math-type-macros-float128.h
2533         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
2534         * sysdeps/generic/math-type-macros-ldouble.h
2535         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
2536         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
2537         macro.
2538         (declare_mgen_alias_r_s): Likewise.
2539         (declare_mgen_alias_r): Likewise.
2540         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
2541         (lgamma_r): Define using libm_alias_double_r.
2542         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
2543         (lgammaf_r): Define using libm_alias_float_r.
2544         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
2545         (lgammal_r): Define using libm_alias_ldouble_r.
2546         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
2547         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
2549 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2551         * lib/glob.c (__glob_pattern_type): Remove now-spurious
2552         extern declaration.
2554 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
2556         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
2558 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
2560         [BZ #21326]
2561         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
2562         [__cplusplus >= 201103] (__USE_ISOC99): Define.
2563         * math/Makefile (test-math-cxx11): New test.
2564         * math/test-math-cxx11.cc: New file.
2566 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
2568         * login/openpty.c (openpty): Close slave pty file descriptor on error.
2570         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
2571         call to allocate the slave pty file descriptor.
2573 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
2575         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
2576         [!__fma] (fma): Define using libm_alias_double.
2577         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
2578         [!__fma] (fma): Define using libm_alias_double.
2580         * sysdeps/ieee754/float128/float128_private.h: Include
2581         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
2582         (libm_alias_ldouble_r): Undefine and redefine.
2583         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
2584         <libm-alias-ldouble.h>.
2585         (asinhl): Define using libm_alias_ldouble.
2586         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
2587         <libm-alias-ldouble.h>.
2588         (atanl): Define using libm_alias_ldouble.
2589         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
2590         <libm-alias-ldouble.h>.
2591         (cbrtl): Define using libm_alias_ldouble.
2592         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
2593         <libm-alias-ldouble.h>.
2594         (ceill): Define using libm_alias_ldouble.
2595         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
2596         <libm-alias-ldouble.h>.
2597         (copysignl): Define using libm_alias_ldouble.
2598         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
2599         <libm-alias-ldouble.h>.
2600         (cosl): Define using libm_alias_ldouble.
2601         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
2602         <libm-alias-ldouble.h>.
2603         (erfl): Define using libm_alias_ldouble.
2604         (erfcl): Likewise.
2605         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
2606         <libm-alias-ldouble.h>.
2607         (expm1l): Define using libm_alias_ldouble.
2608         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
2609         <libm-alias-ldouble.h>.
2610         (fabsl): Define using libm_alias_ldouble.
2611         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
2612         <libm-alias-ldouble.h>.
2613         (floorl): Define using libm_alias_ldouble.
2614         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
2615         <libm-alias-ldouble.h>.
2616         (fmal): Define using libm_alias_ldouble.
2617         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
2618         <libm-alias-ldouble.h>.
2619         (frexpl): Define using libm_alias_ldouble.
2620         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
2621         libm_alias_ldouble.
2622         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
2623         <libm-alias-ldouble.h>.
2624         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
2625         libm_alias_ldouble.
2626         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
2627         <libm-alias-ldouble.h>.
2628         (getpayloadl): Define using libm_alias_ldouble.
2629         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
2630         <libm-alias-ldouble.h>.
2631         (llrintl): Define using libm_alias_ldouble.
2632         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
2633         <libm-alias-ldouble.h>.
2634         (llroundl): Define using libm_alias_ldouble.
2635         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
2636         <libm-alias-ldouble.h>.
2637         (logbl): Define using libm_alias_ldouble.
2638         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
2639         <libm-alias-ldouble.h>.
2640         (lrintl): Define using libm_alias_ldouble.
2641         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
2642         <libm-alias-ldouble.h>.
2643         (lroundl): Define using libm_alias_ldouble.
2644         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
2645         <libm-alias-ldouble.h>.
2646         (modfl): Define using libm_alias_ldouble.
2647         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
2648         <libm-alias-ldouble.h>.
2649         (nearbyintl): Define using libm_alias_ldouble.
2650         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
2651         <libm-alias-ldouble.h>.
2652         (nextafterl): Define using libm_alias_ldouble.
2653         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
2654         <libm-alias-ldouble.h>.
2655         (nextupl): Define using libm_alias_ldouble.
2656         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
2657         <libm-alias-ldouble.h>.
2658         (remquol): Define using libm_alias_ldouble.
2659         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
2660         <libm-alias-ldouble.h>.
2661         (rintl): Define using libm_alias_ldouble.
2662         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
2663         <libm-alias-ldouble.h>.
2664         (roundevenl): Define using libm_alias_ldouble.
2665         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
2666         <libm-alias-ldouble.h>.
2667         (roundl): Define using libm_alias_ldouble.
2668         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
2669         using libm_alias_ldouble.
2670         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
2671         <libm-alias-ldouble.h>.
2672         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
2673         Define using libm_alias_ldouble.
2674         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
2675         <libm-alias-ldouble.h>.
2676         (sincosl): Define using libm_alias_ldouble.
2677         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
2678         <libm-alias-ldouble.h>.
2679         (sinl): Define using libm_alias_ldouble.
2680         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
2681         <libm-alias-ldouble.h>.
2682         (tanhl): Define using libm_alias_ldouble.
2683         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
2684         <libm-alias-ldouble.h>.
2685         (tanl): Define using libm_alias_ldouble.
2686         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2687         <libm-alias-ldouble.h>.
2688         (totalorderl): Define using libm_alias_ldouble.
2689         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2690         <libm-alias-ldouble.h>.
2691         (totalordermagl): Define using libm_alias_ldouble.
2692         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
2693         <libm-alias-ldouble.h>.
2694         (truncl): Define using libm_alias_ldouble.
2695         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
2696         libm_alias_ldouble.
2697         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
2698         libm_alias_ldouble.
2699         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
2700         <libm-alias-ldouble.h>.
2701         (weak_alias): Do not undefine and redefine.
2702         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2703         (copysignl): Define with long_double_symbol only if [IS_IN
2704         (libc)].
2705         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
2706         <libm-alias-ldouble.h>.
2707         (weak_alias): Do not undefine and redefine.
2708         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2709         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
2710         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
2711         <libm-alias-ldouble.h>.
2712         (weak_alias): Do not undefine and redefine.
2713         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2714         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
2715         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
2716         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
2717         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
2718         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
2719         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
2720         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
2721         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
2722         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
2723         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
2724         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
2725         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
2726         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
2727         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
2728         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
2729         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
2730         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
2731         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
2732         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
2733         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
2734         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
2735         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
2736         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
2737         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
2738         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
2740 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
2742         [BZ #22111]
2743         * malloc/malloc.c (tcache_shutting_down): Use bool type.
2744         (tcache_thread_freeres): Set tcache_shutting_down before
2745         freeing the tcache.
2746         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
2747         * malloc/tst-malloc-tcache-leak.c: New file.
2749 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2751         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
2752         back to powerpc32 file.
2753         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
2754         (memrchr): Add __memrchr_power8 to ifunc list.
2755         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
2756         extra bytes for unaligned inputs.
2758 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
2760         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
2761         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
2762         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
2763         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
2764         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
2766 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
2768         * sysdeps/arm/libm-test-ulps: Update.
2770         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
2771         <libm-alias-ldouble.h>.
2772         (asinhl): Define using libm_alias_ldouble.
2773         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
2774         <libm-alias-ldouble.h>.
2775         (cbrtl): Define using libm_alias_ldouble.
2776         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
2777         <libm-alias-ldouble.h>.
2778         (copysignl): Define using libm_alias_ldouble.
2779         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
2780         <libm-alias-ldouble.h>.
2781         (cosl): Define using libm_alias_ldouble.
2782         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
2783         <libm-alias-ldouble.h>.
2784         (erfl): Define using libm_alias_ldouble.
2785         (erfcl): Likewise.
2786         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
2787         <libm-alias-ldouble.h>.
2788         (fmal): Define using libm_alias_ldouble.
2789         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
2790         <libm-alias-ldouble.h>.
2791         (frexpl): Define using libm_alias_ldouble.
2792         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
2793         libm_alias_ldouble.
2794         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
2795         <libm-alias-ldouble.h>.
2796         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
2797         libm_alias_ldouble.
2798         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
2799         <libm-alias-ldouble.h>.
2800         (getpayloadl): Define using libm_alias_ldouble.
2801         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
2802         <libm-alias-ldouble.h>.
2803         (llrintl): Define using libm_alias_ldouble.
2804         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
2805         <libm-alias-ldouble.h>.
2806         (llroundl): Define using libm_alias_ldouble.
2807         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
2808         <libm-alias-ldouble.h>.
2809         (lrintl): Define using libm_alias_ldouble.
2810         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
2811         <libm-alias-ldouble.h>.
2812         (lroundl): Define using libm_alias_ldouble.
2813         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
2814         <libm-alias-ldouble.h>.
2815         (modfl): Define using libm_alias_ldouble.
2816         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
2817         <libm-alias-ldouble.h>.
2818         (nextupl): Define using libm_alias_ldouble.
2819         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
2820         <libm-alias-ldouble.h>.
2821         (remquol): Define using libm_alias_ldouble.
2822         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
2823         <libm-alias-ldouble.h>.
2824         (roundevenl): Define using libm_alias_ldouble.
2825         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
2826         <libm-alias-ldouble.h>.
2827         (roundl): Define using libm_alias_ldouble.
2828         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
2829         using libm_alias_ldouble.
2830         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
2831         <libm-alias-ldouble.h>.
2832         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
2833         <libm-alias-ldouble.h>.
2834         (setpayloadsigl): Define using libm_alias_ldouble.
2835         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
2836         <libm-alias-ldouble.h>.
2837         (sincosl): Define using libm_alias_ldouble.
2838         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
2839         <libm-alias-ldouble.h>.
2840         (sinl): Define using libm_alias_ldouble.
2841         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
2842         <libm-alias-ldouble.h>.
2843         (tanhl): Define using libm_alias_ldouble.
2844         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
2845         <libm-alias-ldouble.h>.
2846         (tanl): Define using libm_alias_ldouble.
2847         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2848         <libm-alias-ldouble.h>.
2849         (totalorderl): Define using libm_alias_ldouble.
2850         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2851         <libm-alias-ldouble.h>.
2852         (totalordermagl): Define using libm_alias_ldouble.
2853         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
2854         libm_alias_ldouble.
2855         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
2856         libm_alias_ldouble.
2858 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2860         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
2861         memmove_falkor.
2862         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2863         (__libc_ifunc_impl_list): Likewise.
2864         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
2865         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
2867         * benchtests/bench-memmove-walk.c: New file.
2868         * benchtests/Makefile (string-benchset): Add it.
2870         * benchtests/bench-memset-walk.c: New file.
2871         * benchtests/Makefile (string-benchset): Add it.
2873         * benchtests/bench-memcpy-walk.c: New file.
2874         * benchtests/Makefile (string-benchset): Add it.
2876 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2878         nscd: Eliminate compilation time dependency in the build output.
2879         * nscd/nscd_stat.c (STATDATA_VERSION)
2880         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
2881         (STATDATA_VERSION_FULL): New macro definitions.
2882         (compilation): Remove.
2883         (struct statdata): Adjust version member.
2884         (send_stats): Set version from STATDATA_VERSION_FULL.
2885         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
2887 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
2889         * configure.ac (--enable-add-ons): Remove option.
2890         (machine): Do not mention add-ons in comment.
2891         (LIBC_PRECONFIGURE): Likewise.
2892         (add_ons): Remove variable and sanity checks and logic to locate
2893         add-ons.
2894         (add_ons_automatic): Remove variable.
2895         (configured_add_ons): Likewise.
2896         (add_ons_sfx): Likewise.
2897         (add_ons_pfx): Likewise.
2898         (add_on_subdirs): Likewise.
2899         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
2900         consideration of add-ons in Implies handling.
2901         (sysdeps_add_ons): Likewise.
2902         * configure: Regenerated.
2903         * libidn/configure.ac: Remove.
2904         * libidn/configure: Likewise.
2905         * sysdeps/unix/inet/configure.ac: New file.
2906         * sysdeps/unix/inet/configure: New generated file.
2907         * sysdeps/unix/inet/Subdirs: Add libidn.
2908         * Makeconfig (sysdeps-srcdirs): Remove variable.
2909         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
2910         ($(common-objpfx)config.status): Do not depend on add-on files.
2911         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
2912         comment.
2913         (all-subdirs): Do not include $(add-on-subdirs).
2914         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
2915         * config.make.in (add-ons): Remove variable.
2916         (add-on-subdirs): Likewise.
2917         (sysdeps-add-ons): Likewise.
2918         * manual/Makefile (add-chapters): Remove.
2919         ($(objpfx)texis): Do not depend on $(add-chapters).
2920         (nonexamples): Do not handle $(add-chapters).
2921         (examples): Do not handle $(add-ons).
2922         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
2923         libc-texinfo.sh.
2924         * manual/install.texi (Installation): Do not mention add-ons.
2925         (--enable-add-ons): Do not document configure option.
2926         * INSTALL: Regenerated.
2927         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
2928         * manual/maint.texi (Hierarchy Conventions): Do not mention
2929         add-ons.
2930         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
2931         --enable-add-ons.
2932         * scripts/gen-sorted.awk: Do not handle Subdirs files from
2933         add-ons.
2934         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
2935         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
2937 2017-10-05  Andreas Schwab  <schwab@suse.de>
2939         [BZ #15142]
2940         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
2941         (_IO_flush_all_lockp): Always lock list_all_lock.
2942         (_IO_flush_all_linebuffered): Likewise.
2943         (_IO_unbuffer_all): Likewise.
2945 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2947         [BZ #15436]
2948         Do not flush stdio streams on abort.
2949         * stdlib/abort.c (fflush): Remove macro definition.
2950         (abort): Remove stages related to stdio flushing.
2952 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2954         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
2956 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
2958         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2960 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2962         * support/support_format_hostent.c (support_format_hostent): Add
2963         more error information for NETDB_INTERNAL.
2965 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2967         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
2968         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
2969         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
2970         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
2971         AC_DEFINE if multi-arch is enabled.
2972         * sysdeps/i386/configure: Regenerated.
2974 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2976         * Makeconfig (+link-static-before-libc): Use
2977         $(DEFAULT-LDFLAGS-$(@F)).
2978         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
2979         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
2980         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
2982 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2984         * elf/Makefile (tests): Add tst-main1.
2985         (modules-names): Add tst-main1mod.
2986         ($(objpfx)tst-main1): New.
2987         (CRT-tst-main1): Likewise.
2988         (LDFLAGS-tst-main1): Likewise.
2989         (LDLIBS-tst-main1): Likewise.
2990         (tst-main1mod.so-no-z-defs): Likewise.
2991         * elf/tst-main1.c: New file.
2992         * elf/tst-main1mod.c: Likewise.
2994 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2996         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
2998 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3000         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
3001         (fma): Define using libm_alias_double.
3002         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
3003         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
3004         <math_ldbl_opt.h>.
3005         (fmal): Do not define as compat symbol here.
3006         * sysdeps/alpha/fpu/s_fma.c: New file.
3008 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3010         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
3012 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3014         [BZ #22229]
3015         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3016         <math_ldbl_opt.h>
3017         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3018         and libc.
3019         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
3020         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3021         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
3022         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
3023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3024         Include <math_ldbl_opt.h>
3025         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3026         and libc.
3027         (compat_symbol): Undefine and redefine.
3028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3029         <math_ldbl_opt.h>
3030         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3031         (compat_symbol): Undefine and redefine.
3032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
3033         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
3034         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
3035         GLIBC_2_1 for libm.
3036         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
3037         GLIBC_2.0 copysignl symbol.
3038         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3039         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
3041         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
3043 2017-10-04  Florian Weimer  <fweimer@redhat.com>
3045         * scripts/check-local-headers.sh: Ignore nspr4 header file
3046         directory in addition to nspr.
3048 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
3050         [BZ #17956]
3051         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
3052         * configure: Regenerate.
3053         * crypt/Makefile (nss-cpp-flags): New variable.
3054         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
3055         (CPPFLAGS-md5-crypt.c): Use it.
3056         * scripts/check-local-headers.sh: Ignore nspr header file
3057         directory.
3059 2017-10-04  Andreas Schwab  <schwab@suse.de>
3061         * nis/Makefile (services): Remove compat.
3062         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
3063         ($(objpfx)libnss_compat.so): Remove rule.
3064         * nis/Versions (libnss_compat): Remove.
3065         * nss/Makefile (services): Add compat.
3066         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
3067         * nss/Versions (libnss_compat): Define.
3068         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
3069         Don't include <rpc/types.h>.  Replace bool_t by bool.
3070         * nss/nss_compat/compat-initgroups.c: Likewise.
3071         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
3072         instead of <rpcsrv/ypclnt.h>.
3073         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
3074         yp_get_default_domain.
3075         * nss/nss_compat/compat-pwd.c: Likewise.
3076         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
3077         yp_get_default_domain.
3078         * nss/nss_compat/nisdomain.c: New file.
3079         * nss/nss_compat/nisdomain.h: Likewise.
3081 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3083         [BZ #22244]
3084         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
3085         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3087 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3089         [BZ #22243]
3090         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
3091         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
3093 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3095         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
3096         "movl main@GOTOFF(%ebx), %eax".
3098 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3100         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
3101         allow undefined _DYNAMIC in PIE libc.a.
3102         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3103         Likewse.
3105 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3107         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
3108         check _DYNAMIC.
3110 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3112         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
3113         check _DYNAMIC.
3115 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3117         * math/test-math-iscanonical.cc (error): Replace bool with int.
3119 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3121         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
3122         (modf): Define using libm_alias_double, only if [!__modf].
3123         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
3124         <libm-alias-double.h>.
3125         (modf): Define using libm_alias_double, only if [!__modf].
3126         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
3127         compat symbol here.
3128         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
3129         (weak_alias): Do not undefine and redefine.
3130         (strong_alias): Likewise.
3131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
3132         (weak_alias): Likewise.
3133         (strong_alias): Likewise.
3135         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
3136         (logb): Define using libm_alias_double, only if [!__logb].
3137         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
3138         <libm-alias-double.h>.
3139         (logb): Define using libm_alias_double, only if [!__logb].
3140         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
3141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
3142         (weak_alias): Do not undefine and redefine.
3143         (strong_alias): Likewise.
3144         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
3145         (weak_alias): Likewise.
3146         (strong_alias): Likewise.
3148 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3150         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
3151         Check SHARED instead PIC.
3153 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3155         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
3156         [!__fmaf] (fmaf): Define using libm_alias_float.
3158         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
3159         (frexp): Define using libm_alias_double.
3160         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
3161         <libm-alias-double.h>.
3162         (frexp): Define using libm_alias_double.
3163         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
3164         compat symbol here.
3166 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3168         [BZ #22235]
3169         * math/math.h: Trivial fix for unbalanced parentheses in comment.
3170         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
3171         (CFLAGS-test-math-iscanonical.cc): New variable.
3172         * math/test-math-iscanonical.cc: New file.
3173         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
3174         Provide a C++ implementation based on function overloading,
3175         rather than using __MATH_TG, which uses C-only builtins.
3176         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
3177         Likewise.
3178         * sysdeps/powerpc/powerpc64le/Makefile
3179         (CFLAGS-test-math-iscanonical.cc): New variable.
3181 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3183         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
3184         (ceil): Define using libm_alias_double.
3185         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
3186         (floor): Define using libm_alias_double.
3187         * sysdeps/ieee754/dbl-64/s_llround.c: Include
3188         <libm-alias-double.h>.
3189         (llround): Define using libm_alias_double.
3190         * sysdeps/ieee754/dbl-64/s_lround.c: Include
3191         <libm-alias-double.h>.
3192         (lround): Define using libm_alias_double.
3193         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
3194         <libm-alias-double.h>.
3195         (nearbyint): Define using libm_alias_double.
3196         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
3197         <libm-alias-double.h>.
3198         (remquo): Define using libm_alias_double.
3199         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
3200         (rint): Define using libm_alias_double.
3201         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
3202         (round): Define using libm_alias_double.
3203         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
3204         (trunc): Define using libm_alias_double.
3205         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
3206         <libm-alias-double.h>.
3207         (ceil): Define using libm_alias_double.
3208         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
3209         <libm-alias-double.h>.
3210         (floor): Define using libm_alias_double.
3211         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
3212         <libm-alias-double.h>.
3213         (llround): Define using libm_alias_double.
3214         [_LP64] (lround): Likewise.
3215         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
3216         <libm-alias-double.h>.
3217         [!_LP64] (lround): Define using libm_alias_double.
3218         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
3219         <libm-alias-double.h>.
3220         (nearbyint): Define using libm_alias_double.
3221         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
3222         <libm-alias-double.h>.
3223         (remquo): Define using libm_alias_double.
3224         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
3225         <libm-alias-double.h>.
3226         (rint): Define using libm_alias_double.
3227         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
3228         <libm-alias-double.h>.
3229         (round): Define using libm_alias_double.
3230         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
3231         <libm-alias-double.h>.
3232         (trunc): Define using libm_alias_double.
3233         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
3234         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
3235         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
3236         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
3237         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
3238         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
3239         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
3240         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
3241         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
3243 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3245         * math/w_remainder.c: New file.
3246         * math/w_remainderf.c: New file.
3247         * math/w_remainderl.c: New file.
3249 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3251         * elf/rtld.c (BOOTSTRAP_MAP): New.
3252         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
3253         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3254         Likewise.
3255         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3256         Likewise.
3257         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3258         Likewise.
3260 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3262         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
3263         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
3264         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
3265         rtld_hidden_data_ver): Define to empty.
3266         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
3267         __assert_perror_fail): Likewise.
3268         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3269         (__rewinddir): Likewise.
3270         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3271         (__profile_frequency): Likewise.
3272         * include/setjmp.h (__sigsetjmp): Likewise.
3273         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
3274         __libc_sigaction): Likewise.
3275         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
3276         not set hidden attribute.
3277         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
3278         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
3279         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
3280         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
3281         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
3282         __fxstatat64): Likewise.
3283         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3284         (__uname): Likewise.
3285         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3286         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
3287         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
3288         (NO_RTLD_HIDDEN): Set.
3289         * sysdeps/mach/hurd/configure: Refresh.
3290         * config.h.in: Refresh.
3292 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
3294         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
3295         (atan): Define using libm_alias_double.
3296         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
3297         (tan): Define using libm_alias_double.
3298         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
3299         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
3301         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
3302         define as weak alias of __atan.  Do not define any aliases if
3303         [__atan].
3304         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
3305         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
3306         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
3307         as weak alias of __tan.  Do not define any aliases if [__tan].
3308         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
3309         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
3310         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
3311         __atan.
3312         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
3313         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
3314         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
3315         and define as weak alias of __atan.
3316         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
3317         __atan.
3318         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
3319         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
3320         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
3321         define as weak alias of __tan.
3323 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3325         * math/w_lgamma.c: New file.
3326         * math/w_lgammaf.c: New file.
3327         * math/w_lgammal.c: New file.
3329 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3331         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
3332         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
3333         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
3334         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
3335         * sysdeps/ieee754/flt-32/w_logf.c: New file.
3336         * sysdeps/ieee754/flt-32/w_powf.c: New file.
3337         * sysdeps/i386/fpu/w_log2f.c: New file.
3338         * sysdeps/i386/fpu/w_logf.c: New file.
3339         * sysdeps/i386/fpu/w_powf.c: New file.
3340         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
3341         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
3342         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
3344 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3345             H.J. Lu  <hongjiu.lu@intel.com>
3347         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
3348         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
3349         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
3350         * sysdeps/ieee754/flt-32/w_expf.c: New file.
3351         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
3352         the new expf code.
3353         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
3354         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
3355         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
3356         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
3357         * sysdeps/i386/fpu/w_exp2f.c: New file.
3358         * sysdeps/i386/fpu/w_expf.c: New file.
3359         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
3360         * sysdeps/x86_64/fpu/w_expf.c: New file.
3362 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3364         * math/Versions (logf): New libm symbol at GLIBC_2.27.
3365         (log2f): Likewise.
3366         (powf): Likewise.
3367         * math/w_log2f.c: New file.
3368         * math/w_logf.c: New file.
3369         * math/w_powf.c: New file.
3370         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
3371         * math/w_logf_compat.c (__logf_compat): Likewise.
3372         * math/w_powf_compat.c (__powf_compat): Likewise.
3373         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
3374         * sysdeps/ia64/fpu/e_logf.S: Likewise.
3375         * sysdeps/ia64/fpu/e_powf.S: Likewise.
3376         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3377         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3378         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3379         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3380         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3381         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3382         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3383         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3384         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3385         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3386         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3387         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3389         Likewise.
3390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3391         Likewise.
3392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3393         Likewise.
3394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3395         Likewise.
3396         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3397         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3398         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3399         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3400         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3401         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3402         Likewise.
3403         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3404         Likewise.
3405         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3406         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3407         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3409 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3411         * sysdeps/powerpc/powerpc64/multiarch/Makefile
3412         (sysdep_routines): Add memrchr_power8.
3413         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
3414         (memrchr): Add __memrchr_power8 to list of memrchr functions.
3415         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
3416         New file.
3417         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3418         (memrchr): Add __memrchr_power8 to ifunc list.
3419         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
3421 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3423         [BZ #18822]
3424         * sysdeps/unix/sysv/linux/posix_fadvise64.c
3425         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
3426         libc_hidden_def.
3427         * sysdeps/unix/sysv/linux/posix_fallocate64.c
3428         (__posix_fallocate64_l64): Likewise.
3430 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3432         [BZ #18822]
3433         * sysdeps/unix/sysv/linux/sched_setaffinity.c
3434         (__sched_setaffinity_new): Add libc_hidden_proto and
3435         libc_hidden_def.
3437 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3439         [BZ #18822]
3440         * include/glob.h (__glob64): Add libc_hidden_proto.
3441         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
3442         libc_hidden_def.
3444 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3446         [BZ #18822]
3447         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
3448         attribute_hidden.
3450 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3452         [BZ #18822]
3453         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
3455 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3457         [BZ #18822]
3458         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
3459         libc_hidden_def.
3461 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3463         [BZ #18822]
3464         * csu/version.c (__libc_print_version): Add attribute_hidden.
3466 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3468         [BZ #18822]
3469         * include/libc-internal.h (__init_misc): Add attribute_hidden.
3471 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3473         [BZ #18822]
3474         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
3476 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3478         [BZ #18822]
3479         * nscd/nscd_helper.c (__nis_hash): New prototype.
3481 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3483         [BZ #18822]
3484         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
3485         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
3486         libc_hidden_def.
3487         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
3488         * termios/tcgetattr.c (__tcgetattr): Likewise.
3490 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3492         [BZ #18822]
3493         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
3494         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
3495         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
3496         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
3497         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
3499 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3501         [BZ #18822]
3502         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
3504 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3506         [BZ #18822]
3507         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
3508         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
3510 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3512         [BZ #18822]
3513         * intl/hash-string.h (__hash_string): Add attribute_hidden.
3515 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3517         [BZ #18822]
3518         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
3519         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
3521 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3523         [BZ #18822]
3524         * include/ifreq.h: New file.
3525         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
3526         (__ifreq): Likewise.
3527         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
3528         (__ifreq): Likewise.
3530 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3532         [BZ #18822]
3533         * include/idna.h: New file.
3534         * inet/getnameinfo.c: Include <idna.h> instead of
3535         <libidn/idna.h>.
3536         (__idna_to_unicode_lzlz): Removed.
3537         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
3538         <libidn/idna.h>.
3539         (__idna_to_ascii_lz): Removed.
3540         (__idna_to_unicode_lzlz): Likewise.
3542 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3544         [BZ #18822]
3545         * include/plural-exp.h: New file.
3546         * intl/plural-exp.c: Include <plural-exp.h> instead of
3547         "plural-exp.h".
3549 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3551         [BZ #18822]
3552         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
3553         "getsourcefilter.h".
3554         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
3555         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
3556         "getsourcefilter.h".
3557         (__get_sol): Removed.
3559 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3561         [BZ #18822]
3562         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
3563         to ...
3564         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
3566 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3568         [BZ #18822]
3569         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
3570         attribute_hidden.
3572 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3574         [BZ #18822]
3575         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
3577 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3579         [BZ #18822]
3580         * include/search.h (__tdestroy): Add libc_hidden_proto.
3581         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
3583 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3585         [BZ #18822]
3586         * include/assert.h (__assert_fail_base): Add attribute_hidden.
3588 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3590         [BZ #18822]
3591         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
3592         attribute_hidden.
3594 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3596         [BZ #18822]
3597         * include/signal.h (__kill): Add libc_hidden_proto.
3598         (__sigblock): Likewise.
3599         (__sigprocmask): Likewise.
3600         (__sigaltstack): Likewise.
3601         * signal/kill.c (__kill): Add libc_hidden_def.
3602         * signal/sigblock.c (__sigblock): Likewise.
3603         * signal/sigprocmask.c (__sigprocmask): Likewise.
3604         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
3605         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
3606         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
3607         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
3608         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
3609         Likewise.
3610         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
3611         Likewise.
3612         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
3613         (__sigprocmask): Likewise.
3614         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
3615         Likewise.
3616         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
3617         (__sigprocmask): Likewise.
3618         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
3619         Likewise.
3621 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3623         [BZ #18822]
3624         * include/string.h (__strsep): Add libc_hidden_proto.
3625         * string/strsep.c (__strsep): Add libc_hidden_def.
3627 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3629         [BZ #18822]
3630         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
3631         attribute_hidden.
3632         (__spawni): Likewise.
3634 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3636         [BZ #18822]
3637         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
3638         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
3639         libc_hidden_def.
3641 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3643         [BZ #18822]
3644         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
3646 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3648         [BZ #18822]
3649         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
3650         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
3651         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3652         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
3653         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
3654         Likewise.
3655         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
3656         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
3658 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3660         [BZ #18822]
3661         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
3662         (__dcigettext): Likewise.
3664 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3666         [BZ #18822]
3667         * include/sys/sysinfo.h (__get_nprocs_conf): Add
3668         libc_hidden_proto.
3669         (__get_nprocs): Likewise.
3670         (__get_phys_pages): Likewise.
3671         (__get_avphys_pages): Likewise.
3672         (__get_child_max): Add attribute_hidden.
3673         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
3674         (__get_nprocs): Likewise.
3675         (__get_phys_pages): Likewise.
3676         (__get_avphys_pages): Likewise.
3677         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
3678         libc_hidden_def.
3679         (__get_nprocs): Likewise.
3680         (__get_phys_pages): Likewise.
3681         (__get_avphys_pages): Likewise.
3682         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
3683         libc_hidden_def.
3684         (__get_nprocs_conf): Likewise.
3685         (__get_phys_pages): Likewise.
3686         (__get_avphys_pages): Likewise.
3688 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3690         [BZ #18822]
3691         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
3692         attribute_hidden.
3693         (__netlink_close): Likewise.
3694         (__netlink_free_handle): Likewise.
3695         (__netlink_request): Likewise.
3697 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3699         [BZ #18822]
3700         * include/rpc/rpc.h (__rpc_thread_variables): Add
3701         attribute_hidden.
3702         (__rpc_thread_svc_cleanup): Likewise.
3703         (__rpc_thread_clnt_cleanup): Likewise.
3704         (__rpc_thread_key_cleanup): Likewise.
3706 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3708         [BZ #18822]
3709         * include/sys/uio.h (__readv): Add libc_hidden_proto.
3710         (__writev): Likewise.
3711         * misc/readv.c (__readv): Add libc_hidden_def.
3712         * misc/writev.c (__writev): Likewise.
3713         * sysdeps/posix/readv.c (__readv): Likewise.
3714         * sysdeps/posix/writev.c (__writev): Likewise.
3715         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
3716         (__readv): Likewise.
3717         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
3718         (__writev): Likewise.
3720 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3722         [BZ #18822]
3723         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
3724         (__regcomp): Add libc_hidden_proto.
3725         (__regexec): Likewise.
3726         (__regfree): Likewise.
3727         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
3728         (__regfree): Likewise.
3729         * posix/regexec.c (__regexec): Likewise.
3731 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3733         [BZ #18822]
3734         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
3735         (__getutent): Likewise.
3736         (__getutid): Likewise.
3737         (__getutline): Likewise.
3738         (__pututline): Likewise.
3739         (__getutent_r): Likewise.
3740         (__getutid_r): Likewise.
3741         (__getutline_r): Likewise.
3742         (__utmpname): Add attribute_hidden.
3743         (__setutent): Likewise.
3744         (__endutent): Likewise.
3745         * login/getutent.c (__getutent): Add libc_hidden_def.
3746         * login/getutent_r.c (__getutent_r): Likewise.
3747         (__pututline): Likewise.
3748         * login/getutid.c (__getutid): Likewise.
3749         * login/getutid_r.c (__getutid_r): Likewise.
3750         * login/getutline.c (__getutline): Likewise.
3751         * login/getutline_r.c (__getutline_r): Likewise.
3752         * login/updwtmp.c (__updwtmp): Likewise.
3754 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3756         [BZ #18822]
3757         * include/dirent.h (__opendir): Always add attribute_hidden.
3758         (__fdopendir): Likewise.
3759         (__closedir): Likewise.
3760         (__readdir): Likewise.
3761         (__readdir64): Add libc_hidden_proto.
3762         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
3763         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
3764         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
3765         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
3766         New alias.
3768 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3770         [BZ #18822]
3771         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
3772         * include/netdb.h (__gethostbyaddr_r): Likewise.
3773         (__gethostbyname_r): Likewise.
3774         (__gethostbyname2_r): Likewise.
3775         (__getnetbyaddr_r): Likewise.
3776         (__getnetbyname_r): Likewise.
3777         (__getservbyname_r): Likewise.
3778         (__getservbyport_r): Likewise.
3779         (__getprotobyname_r): Likewise.
3780         (__getprotobynumber_r): Likewise.
3781         (__getnetgrent_r): Likewise.
3782         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
3783         (__getrpcbynumber_r): Likewise.
3784         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
3786 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3788         [BZ #18822]
3789         * include/stdio.h (__fcloseall): Add attribute_hidden.
3790         (__getline): Likewise.
3791         (__path_search): Likewise.
3792         (__gen_tempname): Likewise.
3793         (__libc_message): Likewise.
3794         (__flockfile): Likewise.
3795         (__funlockfile): Likewise.
3796         (__fxprintf): Likewise.
3797         (__fxprintf_nocancel): Likewise.
3799 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3801         [BZ #18822]
3802         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
3803         (__sgetsgent_r): Likewise.
3805 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3807         [BZ #18822]
3808         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
3809         (__statfs64): Likewise.
3810         (__fstatfs64): Likewise.
3811         * include/sys/statvfs.h (__statvfs64): Likewise.
3812         (__fstatvfs64): Likewise.
3813         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
3814         (__statfs_filesize_max): Likewise.
3815         (__statfs_symlinks): Likewise.
3816         (__statfs_chown_restricted): Likewise.
3818 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3820         [BZ #18822]
3821         * include/time.h (__tzstring): Add attribute_hidden.
3822         (__tzfile_read): Likewise.
3823         (__tzfile_compute): Likewise.
3824         (__tzfile_default): Likewise.
3825         (__tzset_parse_tz): Likewise.
3826         (__offtime): Likewise.
3827         (__asctime_r): Likewise.
3828         (__tzset): Likewise.
3829         (__tz_convert): Likewise.
3830         (__getdate_r): Likewise.
3831         (__getclktck): Likewise.
3833 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3835         [BZ #18822]
3836         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
3837         (__nscd_unmap): Likewise.
3838         (__nscd_cache_search): Likewise.
3839         (__nscd_get_nl_timestamp): Likewise.
3840         (__nscd_getpwnam_r): Likewise.
3841         (__nscd_getpwuid_r): Likewise.
3842         (__nscd_getgrnam_r): Likewise.
3843         (__nscd_getgrgid_r): Likewise.
3844         (__nscd_gethostbyname_r): Likewise.
3845         (__nscd_gethostbyname2_r): Likewise.
3846         (__nscd_gethostbyaddr_r): Likewise.
3847         (__nscd_getai): Likewise.
3848         (__nscd_getgrouplist): Likewise.
3849         (__nscd_getservbyname_r): Likewise.
3850         (__nscd_getservbyport_r): Likewise.
3851         (__nscd_innetgr): Likewise.
3852         (__nscd_setnetgrent): Likewise.
3854 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3856         [BZ #18822]
3857         * include/gmp.h: Declare internal functions only if _ISOMAC is
3858         undefined.
3859         (__mpn_extract_double): Add attribute_hidden.
3860         (__mpn_extract_long_double): Likewise.
3861         (__mpn_extract_float128): Likewise.
3862         (__mpn_construct_float): Likewise.
3863         (__mpn_construct_double): Likewise.
3864         (__mpn_construct_long_double): Likewise.
3865         (__mpn_construct_float128): Likewise.
3866         (mpn_add_1): Likewise.
3867         (mpn_addmul_1): Likewise.
3868         (mpn_add_n): Likewise.
3869         (mpn_cmp): Likewise.
3870         (mpn_divrem): Likewise.
3871         (mpn_lshift): Likewise.
3872         (mpn_mul): Likewise.
3873         (mpn_mul_1): Likewise.
3874         (mpn_rshift): Likewise.
3875         (mpn_sub_1): Likewise.
3876         (mpn_submul_1): Likewise.
3877         (mpn_sub_n): Likewise.
3879 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3881         [BZ #18822]
3882         * include/wchar.h (__wcsnlen): Add attribute_hidden.
3883         (__wcscat): Likewise.
3884         (__btowc): Likewise.
3885         (__wcrtomb): Likewise.
3886         (__mbsrtowcs): Likewise.
3887         (__wcsrtombs): Likewise.
3888         (__mbsnrtowcs): Likewise.
3889         (__wcsnrtombs): Likewise.
3890         (__wcsncpy): Likewise.
3891         (__wcpncpy): Likewise.
3892         (__wmemcpy): Likewise.
3893         (__wmempcpy): Likewise.
3894         (__wmemmove): Likewise.
3895         (__wcschrnul): Likewise.
3896         (__vfwscanf): Likewise.
3897         (__vswprintf): Likewise.
3898         (__fwprintf): Likewise.
3899         (__vfwprintf): Likewise.
3901 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3903         [BZ #18822]
3904         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
3905         (__getgrgid_r): Likewise.
3906         (__getgrnam_r): Likewise.
3907         * include/pwd.h (__getpwuid_r): Likewise.
3908         (__getpwnam_r): Likewise.
3909         (__fgetpwent_r): Likewise.
3910         * include/shadow.h (__getspnam_r): Likewise.
3911         (__sgetspent_r): Likewise.
3912         (__fgetspent_r): Likewise.
3914 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3916         [BZ #18822]
3917         * include/unistd.h (__access): Add attribute_hidden.
3918         (__lseek64): Likewise.
3919         (__libc_pread64): Likewise.
3920         (__pipe2): Likewise.
3921         (__sleep): Likewise.
3922         (__chdir): Likewise.
3923         (__fchdir): Likewise.
3924         (__getcwd): Likewise.
3925         (__rmdir): Likewise.
3926         (__execvpe): Likewise.
3927         (__execve): Likewise.
3928         (__setsid): Likewise.
3929         (__getuid): Likewise.
3930         (__geteuid): Likewise.
3931         (__getgid): Likewise.
3932         (__getegid): Likewise.
3933         (__getgroups): Likewise.
3934         (__group_member): Likewise.
3935         (__ttyname_r): Likewise.
3936         (__isatty): Likewise.
3937         (__readlink): Likewise.
3938         (__unlink): Likewise.
3939         (__gethostname): Likewise.
3940         (__profil): Likewise.
3941         (__getdtablesize): Likewise.
3942         (__brk): Likewise.
3943         (__ftruncate): Likewise.
3944         (__ftruncate64): Likewise.
3946 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3948         [BZ #18822]
3949         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
3950         * argp/argp-fs-xinl.c: Likewise.
3951         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
3952         * argp/argp-parse.c: Include <argp.h>.
3953         * argp/argp-xinl.c: Likewise.
3954         * include/argp-fmtstream.h: New file.
3955         * include/argp.h (__argp_error): Add attribute_hidden.
3956         (__argp_failure): Likewise.
3957         (__argp_input): Likewise.
3958         (__argp_state_help): Likewise.
3960 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3962         [BZ #18822]
3963         * include/wchar.h (____wcstof_l_internal): New prototype.
3964         (____wcstod_l_internal): Likewise.
3965         (____wcstold_l_internal): Likewise.
3966         (____wcstol_l_internal): Likewise.
3967         (____wcstoul_l_internal): Likewise.
3968         (____wcstoll_l_internal): Likewise.
3969         (____wcstoull_l_internal): Likewise.
3970         (____wcstof128_l_internal): Likewise.
3971         * sysdeps/ieee754/float128/wcstof128.c
3972         (____wcstof128_l_internal): Removed.
3973         * sysdeps/ieee754/float128/wcstof128_l.c
3974         (____wcstof128_l_internal): Likewise.
3975         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
3976         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
3977         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
3978         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
3979         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
3980         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
3981         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
3982         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
3983         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
3984         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
3986 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3988         [BZ #18822]
3989         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
3990         instead of <sys/statvfs.h>.
3991         (__internal_statvfs): Removed.
3992         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
3993         instead of <sys/statvfs.h>.
3994         (__internal_statvfs64): Removed.
3995         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
3996         "internal_statvfs.h" instead of <sys/statvfs.h>.
3997         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
3998         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
3999         instead of <sys/statvfs.h>.
4000         (__internal_statvfs): Removed.
4001         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
4002         instead of <sys/statvfs.h>.
4003         (__internal_statvfs64): Removed.
4005 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4007         [BZ #18822]
4008         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
4009         (__gconv_close): Likewise.
4010         (__gconv): Likewise.
4011         (__gconv_find_transform): Likewise.
4012         (__gconv_lookup_cache): Likewise.
4013         (__gconv_compare_alias_cache): Likewise.
4014         (__gconv_load_cache): Likewise.
4015         (__gconv_get_path): Likewise.
4016         (__gconv_close_transform): Likewise.
4017         (__gconv_release_cache): Likewise.
4018         (__gconv_find_shlib): Likewise.
4019         (__gconv_release_shlib): Likewise.
4020         (__gconv_get_builtin_trans): Likewise.
4021         (__gconv_compare_alias): Likewise.
4022         * include/dlfcn.h (_dlerror_run): Likewise.
4023         * include/stdio.h (__fortify_fail_abort): Likewise.
4024         * include/time.h (__tz_compute): Likewise.
4025         (__strptime_internal): Likewise.
4026         * intl/gettextP.h (_nl_find_domain): Likewise.
4027         (_nl_load_domain): Likewise.
4028         (_nl_find_msg): Likewise.
4029         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
4030         (EXTRACT_PLURAL_EXPRESSION): Likewise.
4031         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
4032         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
4033         (__gai_find_request): Likewise.
4034         (__gai_remove_request): Likewise.
4035         (__gai_notify): Likewise.
4036         (__gai_notify_only): Likewise.
4037         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4038         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4039         (_dl_non_dynamic_init): Likewise.
4040         (_dl_aux_init): Likewise.
4041         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
4042         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4043         Likewise.
4044         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
4045         (__wcsmbs_clone_conv): Likewise.
4046         (__wcsmbs_named_conv): Likewise.
4048 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4050         [BZ #18822]
4051         * include/stdlib.h (__random): Add attribute_hidden.
4052         (__random_r): Likewise.
4053         (__srandom_r): Likewise.
4054         (__initstate_r): Likewise.
4055         (__setstate_r): Likewise.
4056         (__erand48_r): Likewise.
4057         (__nrand48_r): Likewise.
4058         (__jrand48_r): Likewise.
4059         (__srand48_r): Likewise.
4060         (__seed48_r): Likewise.
4061         (__lcong48_r): Likewise.
4062         (__drand48_iterate): Likewise.
4063         (__setenv): Likewise.
4064         (__unsetenv): Likewise.
4065         (__clearenv): Likewise.
4066         (__ptsname_r): Likewise.
4067         (__posix_openpt): Likewise.
4068         (__add_to_environ): Likewise.
4069         (__realpath): Add libc_hidden_proto.
4070         (__ecvt_r): Likewise.
4071         (__fcvt_r): Likewise.
4072         (__qecvt_r): Likewise.
4073         (__qfcvt_r): Likewise.
4074         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
4075         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
4077 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4079         [BZ #18822]
4080         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
4081         * include/time.h (__mktime_internal): Likewise.
4082         * libio/iolibio.h (__fopen_internal): Likewise.
4084 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
4086         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
4087         pointer in frame.
4088         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
4089         Correct offset used to restore PIC register.
4091 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
4093         [BZ libc/22165]
4094         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
4095         code to load address of __getcontext_ret when generating PIC code.
4097 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
4099         * elf/Makefile (tests-static-internal): Add
4100         tst-tls1-static-non-pie.
4101         (LDFLAGS-tst-tls1-static-non-pie): New.
4102         * elf/tst-tls1-static-non-pie.c: New file.
4104 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4106         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
4107         (asinh): Define using libm_alias_double.
4108         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
4109         (cbrt): Define using libm_alias_double.
4110         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
4111         <libm-alias-double.h>.
4112         (copysign): Define using libm_alias_double.
4113         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
4114         (erf): Define using libm_alias_double.
4115         (erfc): Likewise.
4116         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
4117         (expm1): Define using libm_alias_double.
4118         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
4119         (fabs): Define using libm_alias_double.
4120         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
4121         libm_alias_double.
4122         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
4123         <libm-alias-double.h>.
4124         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
4125         libm_alias_double.
4126         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
4127         <libm-alias-double.h>.
4128         (getpayload): Define using libm_alias_double.
4129         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
4130         <libm-alias-double.h>.
4131         (llrint): Define using libm_alias_double.
4132         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
4133         (lrint): Define using libm_alias_double.
4134         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
4135         <libm-alias-double.h>.
4136         (nextup): Define using libm_alias_double.
4137         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
4138         <libm-alias-double.h>.
4139         (roundeven): Define using libm_alias_double.
4140         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
4141         libm_alias_double.
4142         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
4143         <libm-alias-double.h>.
4144         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
4145         using libm_alias_double.
4146         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
4147         (cos): Define using libm_alias_double.
4148         (sin): Likewise.
4149         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
4150         <libm-alias-double.h>.
4151         (sincos): Define using libm_alias_double.
4152         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
4153         (tanh): Define using libm_alias_double.
4154         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
4155         <libm-alias-double.h>.
4156         (totalorder): Define using libm_alias_double.
4157         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
4158         <libm-alias-double.h>.
4159         (totalordermag): Define using libm_alias_double.
4160         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
4161         libm_alias_double.
4162         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
4163         libm_alias_double.
4164         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
4165         <libm-alias-double.h>.
4166         (getpayload): Define using libm_alias_double.
4167         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
4168         <libm-alias-double.h>.
4169         (roundeven): Define using libm_alias_double.
4170         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
4171         <libm-alias-double.h>.
4172         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
4173         <libm-alias-double.h>.
4174         (totalorder): Define using libm_alias_double.
4175         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
4176         <libm-alias-double.h>.
4177         (totalordermag): Define using libm_alias_double.
4178         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
4179         libc compat symbol here.
4180         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
4181         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
4182         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
4183         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
4184         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
4185         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
4186         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
4187         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
4188         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
4189         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
4191 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4193         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
4194         _dl_relocate_static_pie instead of _dl_start to compute load
4195         address in static PIE.  Return 0 if _DYNAMIC is undefined for
4196         static executable.
4198 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4200         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
4201         _DYNAMIC is undefined for static executable.
4203 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4205         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
4207 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4209         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4211 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4213         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
4214         (__ieee754_lgamma_r): Use fabs rather than __fabs.
4215         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4216         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4217         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
4218         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
4219         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4220         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
4221         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
4222         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4223         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4224         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
4225         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4226         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4227         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4228         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4229         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
4231 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4233         * math/bits/cmathcalls.h (cimag): Remove inline.
4234         (creal): Remove inline.
4235         (conj): Remove inline.
4237 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4239         * math/Makefile (type-float-routines): Add e_powf_log2_data.
4240         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
4241         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
4242         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
4243         (issignalingf_inline): Likewise.
4244         (POWF_LOG2_TABLE_BITS): Likewise.
4245         (POWF_LOG2_POLY_ORDER): Likewise.
4246         (POWF_SCALE_BITS): Likewise.
4247         (POWF_SCALE): Likewise.
4248         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
4249         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
4250         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
4252 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4254         * math/Makefile (type-float-routines): Add e_log2f_data.
4255         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
4256         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
4257         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
4258         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
4259         * sysdeps/i386/fpu/e_log2f_data.c: New file.
4260         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
4261         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
4263 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4265         * math/Makefile (type-float-routines): Add e_logf_data.
4266         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
4267         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
4268         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
4269         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
4270         * sysdeps/i386/fpu/e_logf_data.c: New file.
4271         * sysdeps/ia64/fpu/e_logf_data.c: New file.
4272         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
4274 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
4276         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
4277         undefined _DYNAMIC in PIE libc.a.
4278         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4279         Likewse.
4281 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4283         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
4284         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
4285         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
4286         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
4287         (__signbit): Remove.
4288         (__signbitl): Remove.
4289         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
4290         (__signbit): Remove.
4291         (__signbitl): Remove.
4292         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
4293         (__signbit): Remove.
4294         (__signbitl): Remove.
4295         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
4296         (__signbit): Remove.
4297         (__signbitl): Remove.
4298         * sysdeps/tile/bits/mathinline.h: Delete file.
4299         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
4300         (__signbit): Remove.
4301         (__signbitl): Remove.
4303 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4305         * math/math.h: Improve handling of C99 isgreater macros.
4306         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
4307         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
4308         * sysdeps/powerpc/bits/mathinline.h: Likewise.
4309         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4310         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
4312 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4314         * sysdeps/aarch64/libm-test-ulps: Update.
4316 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
4318         [BZ #22225]
4319         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4320         math_opt_barrier on argument when doing arithmetic on it.
4321         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4322         Likewise.  Use math_force_eval not math_opt_barrier after
4323         arithmetic.
4324         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
4325         math_opt_barrier on argument when doing arithmetic on it.
4326         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4327         Likewise.
4329 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
4331         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
4332         libc_hidden_def.
4333         (__freeifaddrs): Likewise.
4335 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4337         * include/dirent.h (__dirfd): New declaration.
4338         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
4339         alias.
4340         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
4341         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
4342         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
4343         * include/unistd.h (__revoke): New declaration.
4344         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
4345         alias.
4346         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
4347         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
4348         revoke.
4349         * include/dirent.h (__seekdir): New declaration.
4350         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
4351         redefine as weak alias.
4352         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
4353         of seekdir.
4354         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
4355         and use libc_hidden_def on them.
4356         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
4357         them.
4358         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
4359         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
4360         instead of getifaddrs and freeifaddrs.
4362 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4364         [BZ #18822]
4365         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
4366         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
4367         (__dso_handle): Remove declaration.
4368         * dlfcn/tstatexit.c (__dso_handle): Removed.
4369         (main): Don't check __dso_handle.
4370         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
4371         (main): Don't check __dso_handle.
4372         * include/dso_handle.h: New file.
4373         * malloc/mtrace.c: Include <dso_handle.h>.
4374         (mtrace): Pass __dso_handle directly.
4375         * nptl/pthread_atfork.c: Include <dso_handle.h>.
4376         (__dso_handle): Remove declaration.
4377         (__pthread_atfork): Pass __dso_handle directly.
4378         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
4379         (__dso_handle): Removed.
4380         * posix/wordexp-test.c: Include <dso_handle.h>.
4381         (__dso_handle): Remove declaration.
4382         (__app_register_atfork): Pass __dso_handle directly.
4383         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
4384         (__dso_handle): Remove declaration.
4385         (at_quick_exit): Pass __dso_handle directly.
4386         * stdlib/atexit.c: Include <dso_handle.h>.
4387         (__dso_handle): Remove declaration.
4388         (atexit): Pass __dso_handle directly.
4389         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
4390         (__dso_handle): Removed.
4392 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4394         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
4395         using VDSO.
4397 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
4399         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
4400         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
4401         values to correct default value for given type.
4403 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4405         [BZ #22101]
4406         * elf/Makefile (tests): Add tst-debug1.
4407         ($(objpfx)tst-debug1): New.
4408         ($(objpfx)tst-debug1.out): Likewise.
4409         ($(objpfx)tst-debug1mod1.so): Likewise.
4410         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
4411         with p_filesz == 0.
4412         * elf/tst-debug1.c: New file.
4414 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4416         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
4417         Define using __ifunc.
4419 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4421         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
4422         exp2f() values.
4424 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4426         [BZ #22156]
4427         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
4429 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4431         * resolv/Makefile (tests-internal): Fix typo in comment.
4433 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4435         * resolv/nss_dns/dns-host.c: Fix typo in comment.
4437 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4439         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
4440         Use an union instead of a max_align_t array for __space,
4441         so that __space is the same size on all platforms.
4442         * malloc/scratch_buffer_grow_preserve.c
4443         (__libc_scratch_buffer_grow_preserve): Likewise.
4445         [BZ #22183]
4446         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
4447         version to 2.
4448         * posix/Makefile (routines): Add glob-lstat-compat and
4449         glob64-lstat-compat.
4450         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
4451         * posix/glob-lstat-compat.c: New file.
4452         * posix/glob64-lstat-compat.c: Likewise.
4453         * posix/tst-glob_lstat_compat.c: Likewise.
4454         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
4455         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
4456         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
4457         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
4458         Likewise.
4459         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
4460         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
4461         * posix/glob.c (glob_lstat): New function.
4462         (glob): Rename to __glob and add versioned symbol to 2.27.
4463         (glob_in_dir): Use glob_lstat.
4464         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
4465         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4466         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
4467         2.27.
4468         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
4469         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
4470         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
4471         gl_lstat on glob call.
4472         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
4473         and glob64 symbols.
4474         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4475         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4476         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4477         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4478         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4479         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4480         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4481         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4482         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
4483         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4484         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4485         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4487         Likewise.
4488         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
4489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
4490         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4491         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4492         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4493         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4494         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4495         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
4496         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
4497         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
4498         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4499         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4501 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
4503         * configure.ac (AS): Require binutils 2.25 or later.
4504         * configure: Regenerated.
4506 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4508         [BZ #22207]
4509         * stdlib/test-atexit-race-common.c (do_test): Minimize required
4510         VM size.
4512 2017-09-25  DJ Delorie  <dj@redhat.com>
4514         [BZ #22161]
4515         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
4516         resetting timeout.
4518 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
4520         * sysdeps/ieee754/dbl-64/sincos32.h
4521         [SINCCOS32_H]: Remove define.
4522         [SINCOS32_H]: Define.
4524 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4526         * math/Versions (expf): New libm symbol at GLIBC_2.27.
4527         (exp2f): Likewise.
4528         * math/w_exp2f.c: New file.
4529         * math/w_expf.c: New file.
4530         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
4531         * math/w_expf_compat.c (__expf_compat): Likewise.
4532         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
4533         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4534         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4535         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4536         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4537         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4538         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4539         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4540         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4541         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4542         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4543         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4544         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4545         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4547         Likewise.
4548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4549         Likewise.
4550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4551         Likewise.
4552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4553         Likewise.
4554         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4555         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4556         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4557         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4558         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4559         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4560         Likewise.
4561         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4562         Likewise.
4563         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4564         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4565         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4567 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4569         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
4570         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
4571         (roundtoint, converttoint): Likewise.
4572         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
4573         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
4574         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
4575         * sysdeps/ieee754/flt-32/math_config.h: New file.
4576         * sysdeps/ieee754/flt-32/math_errf.c: New file.
4577         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
4578         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
4579         * sysdeps/i386/fpu/math_errf.c: New file.
4580         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
4581         * sysdeps/ia64/fpu/math_errf.c: New file.
4582         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
4583         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
4585 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4587         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
4588         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
4589         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
4590         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
4591         to make sure that these symbols are defined.
4592         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
4593         of <limits.h>
4594         (__need_NULL): Do not define.
4595         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
4596         alignment.
4597         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
4598         CMGROUP_MAX, cmsgcred): Do not define.
4599         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
4600         NULL.
4601         * bits/socket.h: Likewise.
4602         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
4603         __gettimeofday instead of gettimeofday.
4604         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
4605         instead of settimeofday.
4607 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
4609         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
4610         (asinhf): Define using libm_alias_float.
4611         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
4612         (atanf): Define using libm_alias_float.
4613         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
4614         (cbrtf): Define using libm_alias_float.
4615         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
4616         (ceilf): Define using libm_alias_float.
4617         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
4618         <libm-alias-float.h>.
4619         (copysignf): Define using libm_alias_float.
4620         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
4621         (cosf): Define using libm_alias_float.
4622         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
4623         (erff): Define using libm_alias_float.
4624         (erfcf): Likewise.
4625         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
4626         (expm1f): Define using libm_alias_float.
4627         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
4628         (fabsf): Define using libm_alias_float.
4629         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
4630         (floorf): Define using libm_alias_float.
4631         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
4632         (frexpf): Define using libm_alias_float.
4633         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
4634         libm_alias_float.
4635         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
4636         <libm-alias-float.h>.
4637         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
4638         libm_alias_float.
4639         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
4640         <libm-alias-float.h>.
4641         (getpayloadf): Define using libm_alias_float.
4642         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
4643         <libm-alias-float.h>.
4644         (llrintf): Define using libm_alias_float.
4645         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
4646         <libm-alias-float.h>.
4647         (llroundf): Define using libm_alias_float.
4648         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
4649         (logbf): Define using libm_alias_float.
4650         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
4651         (lrintf): Define using libm_alias_float.
4652         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
4653         (lroundf): Define using libm_alias_float.
4654         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
4655         (modff): Define using libm_alias_float.
4656         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
4657         <libm-alias-float.h>.
4658         (nearbyintf): Define using libm_alias_float.
4659         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
4660         <libm-alias-float.h>.
4661         (nextafterf): Define using libm_alias_float.
4662         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
4663         <libm-alias-float.h>.
4664         (nextupf): Define using libm_alias_float.
4665         * sysdeps/ieee754/flt-32/s_remquof.c: Include
4666         <libm-alias-float.h>.
4667         (remquof): Define using libm_alias_float.
4668         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
4669         (rintf): Define using libm_alias_float.
4670         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
4671         <libm-alias-float.h>.
4672         (roundevenf): Define using libm_alias_float.
4673         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
4674         (roundf): Define using libm_alias_float.
4675         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
4676         using libm_alias_float.
4677         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
4678         <libm-alias-float.h>.
4679         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
4680         Define using libm_alias_float.
4681         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
4682         <libm-alias-float.h>.
4683         (sincosf): Define using libm_alias_float.
4684         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
4685         (sinf): Define using libm_alias_float.
4686         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
4687         (tanf): Define using libm_alias_float.
4688         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
4689         (tanhf): Define using libm_alias_float.
4690         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
4691         <libm-alias-float.h>.
4692         (totalorderf): Define using libm_alias_float.
4693         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
4694         <libm-alias-float.h>.
4695         (totalordermagf): Define using libm_alias_float.
4696         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
4697         (truncf): Define using libm_alias_float.
4698         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
4699         libm_alias_float.
4700         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
4701         libm_alias_float.
4703 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4705         [BZ #22146]
4706         math/math.h: Let fpclassify use the builtin in C++ mode, even
4707         when optimazing for size.
4709 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
4711         * csu/Makefile (generated): Do not add version-info.h.
4712         (before-compile): Likewise.
4713         (all-Banner-files): Remove variable.
4714         ($(objpfx)version-info.h): Remove rule.
4715         * csu/version.c (banner): Do not include "version-info.h".
4716         * libidn/Banner: Remove.
4717         * manual/contrib.texi (Simon Josefsson): New entry.
4719 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4721         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4722         Remove conditionals on LDBL_MANT_DIG.
4723         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4724         (__ieee754_lgammal_r): Likewise.
4726 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4728         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
4729         _Float128 and L().
4730         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
4731         _Float128 and L(). Replace _Float128 with long double and L(x)
4732         with xL, throughout the file.
4733         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4734         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4735         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4736         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4738 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4740         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
4741         sysdeps/ieee754/ldbl-128ibm.
4742         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
4743         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
4744         of including it.  Keep _Float128 and L() intact.  These will be
4745         reviewed by a separate patch.
4746         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4747         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4748         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4749         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4751 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4753         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
4754         (__finitef128): Define to __redirect___finitef128.
4755         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
4756         (__isinff128): Define to __redirect___isinff128.
4757         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
4758         (__isnanf128): Define to __redirect___isnanf128.
4760 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4762         * sysdeps/powerpc/powerpc64le/Makefile
4763         (CFLAGS-tst-strtod-nan-locale.c): New variable.
4764         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
4766 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
4767             Carlos O'Donell  <carlos@redhat.com>
4769         [BZ #22180]
4770         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
4771         * stdlib/test-dlclose-exit-race.c: New file.
4772         * stdlib/test-dlclose-exit-race-helper.c: New file.
4773         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
4775 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
4777         * crypt/Banner: Remove file.
4778         * nptl/Banner: Likewise.
4779         * resolv/Banner: Likewise.
4780         * soft-fp/Banner: Likewise.
4781         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
4782         ($(objpfx)version.d): Remove dependency on banner.h.
4783         ($(objpfx)version.os): Likewise.
4784         * nptl/version.c (banner): Do not include banner.h.
4785         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
4786         Jelinek and BIND code.
4788 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4789             Carlos O'Donell  <carlos@redhat.com>
4791         * support/xdlfcn.h: New file.
4792         * support/xdlfcn.c: New file.
4793         * support/Makefile (libsupport-routines): Add xdlfcn.
4794         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
4796 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
4798         [BZ #20142]
4799         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4800         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
4801         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
4802         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
4803         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
4804         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
4805         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
4806         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
4808 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4809             Ricky Zhou  <rickyz@google.com>
4810             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
4812         [BZ #14333]
4813         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
4814         Remove atomics.
4815         (__new_exitfn): Fail registration when we finished at_exit processing.
4816         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
4817         * stdlib/on_exit.c (__on_exit): Likewise.
4818         * stdlib/exit.c (__exit_funcs_done): New variable.
4819         (__run_exit_handlers): Use __exit_funcs_lock.
4820         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
4821         declarations.
4822         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
4823         (test-cxa_atexit-race, test-on_exit-race): New tests.
4824         * stdlib/test-atexit-race-common.c: New file.
4825         * stdlib/test-atexit-race.c: New file.
4826         * stdlib/test-at_quick_exit-race.c: New file.
4827         * stdlib/test-cxa_atexit-race.c: New file.
4828         * stdlib/test-on_exit-race.c: New file.
4830 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4832         * benchtests/Makefile: Add exp2f and log2f benchmarks.
4833         * benchtests/exp2f-inputs: Copy of expf-inputs.
4834         * benchtests/log2f-inputs: Copy of logf-inputs.
4836 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
4838         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
4839         Explicitly take address of first element of array arguments in
4840         call to INLINE_SYSCALL.
4842 2017-09-19  Andreas Schwab  <schwab@suse.de>
4844         [BZ #22134]
4845         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
4846         execveat first.
4847         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
4848         unimplemented.
4849         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
4850         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
4851         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4852         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
4853         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4854         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4855         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4856         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4857         * posix/Makefile (tests): Add tst-fexecve.
4858         * posix/tst-fexecve.c: New file.
4860 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4862         * benchtests/Makefile: Add logf benchmark.
4863         * benchtests/logf-inputs: Add reduced trace from wrf_r.
4865 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4867         * benchtests/Makefile: Add expf benchmark.
4868         * benchtests/expf-inputs: Add reduced trace from wrf_r.
4870 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4872         * csu/Makefile: Add -funwind-tables to libc-start.c.
4873         * debug/Makefile: Add -funwind-tables to backtrace.c.
4874         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
4875         * sysdeps/arm/Makefile: Likewise.
4876         * sysdeps/i386/Makefile: Likewise.
4877         * sysdeps/m68k/Makefile: Likewise.
4878         * sysdeps/mips/Makefile: Likewise.
4879         * sysdeps/nios2/Makefile: Likewise.
4880         * sysdeps/sh/Makefile: Likewise.
4881         * sysdeps/sparc/Makefile: Likewise.
4883 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
4885         * benchtests/Makefile (bench-math): Add trunc and truncf.
4886         (CFLAGS-bench-trunc.c): New variable.
4887         (CFLAGS-bench-truncf.c): Likewise.
4888         * benchtests/trunc-inputs: New file.
4889         * benchtests/truncf-inputs: Likewise.
4891 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4893         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
4895 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
4897         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
4898         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
4899         redefine.
4900         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
4901         (exp10l): Define as weak alias.
4902         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
4903         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
4904         and redefine.
4905         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
4906         (remainderl): Define as weak alias.
4908         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
4909         (fmal): Define using libm_alias_ldouble.
4910         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
4911         (acoshl): Define using libm_alias_ldouble.
4912         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
4913         (acosl): Define using libm_alias_ldouble.
4914         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
4915         (asinl): Define using libm_alias_ldouble.
4916         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
4917         (atan2l): Define using libm_alias_ldouble.
4918         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
4919         (atanhl): Define using libm_alias_ldouble.
4920         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
4921         (coshl): Define using libm_alias_ldouble.
4922         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
4923         (exp10l): Define using libm_alias_ldouble.
4924         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
4925         (exp2l): Define using libm_alias_ldouble.
4926         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
4927         (expl): Define using libm_alias_ldouble.
4928         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
4929         (fmodl): Define using libm_alias_ldouble.
4930         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
4931         (hypotl): Define using libm_alias_ldouble.
4932         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
4933         (j0l): Define using libm_alias_ldouble.
4934         (y0l): Likewise.
4935         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
4936         (j1l): Define using libm_alias_ldouble.
4937         (y1l): Likewise.
4938         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
4939         (jnl): Define using libm_alias_ldouble.
4940         (ynl): Likewise.
4941         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
4942         (log10l): Define using libm_alias_ldouble.
4943         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
4944         (log2l): Define using libm_alias_ldouble.
4945         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
4946         (logl): Define using libm_alias_ldouble.
4947         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
4948         (powl): Define using libm_alias_ldouble.
4949         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
4950         (remainderl): Define using libm_alias_ldouble.
4951         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
4952         (sinhl): Define using libm_alias_ldouble.
4953         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
4954         (sqrtl): Define using libm_alias_ldouble.
4955         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
4956         (tgammal): Define using libm_alias_ldouble.
4957         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
4958         (exp10l): Do not use long_double_symbol here.
4959         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
4960         [LIBM_SVID_COMPAT] (remainderl): Likewise.
4961         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
4962         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
4963         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
4964         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
4965         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
4966         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
4967         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
4968         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
4969         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
4970         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
4971         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
4972         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
4973         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
4974         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
4975         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
4976         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
4977         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
4978         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
4979         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
4980         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
4982 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
4984         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
4985         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
4987 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4989         * io/read.c (read): Add libc_hidden_weak.
4990         * sysdeps/mach/hurd/read.c (read): Likewise.
4991         * io/write.c (write): Likewise.
4992         * sysdeps/mach/hurd/write.c (write): Likewise.
4993         * io/pread64.c (__pread64): Likewise.
4994         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
4995         * posix/pread64.c (__pread64): Add libc_hidden_def.
4997 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4999         * benchtests/scripts/compare_strings.py: New option -g.
5000         (draw_graph): Print a message that a graph is being generated.
5001         (process_results): Generate graph only if -g is passed.
5002         (main): Process option -g.
5004         * benchtests/scripts/compare_strings.py (process_results):
5005         Better spacing for output.
5007         * benchtests/scripts/compare_strings.py: Use argparse.
5008         * benchtests/README: Document existence of compare_strings.py.
5010 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5012         * math/s_fma.c: Include <libm-alias-double.h>.
5013         (fma): Define using libm_alias_double.
5014         * math/s_nextafter.c: Include <libm-alias-double.h>.
5015         (nextafter): Define using libm_alias_double.
5016         * math/w_acos_compat.c: Include <libm-alias-double.h>.
5017         (acos): Define using libm_alias_double.
5018         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
5019         (aocsh): Define using libm_alias_double.
5020         * math/w_asin_compat.c: Include <libm-alias-double.h>.
5021         (asin): Define using libm_alias_double.
5022         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
5023         (atan2): Define using libm_alias_double.
5024         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
5025         (atanh): Define using libm_alias_double.
5026         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
5027         (cosh): Define using libm_alias_double.
5028         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
5029         (exp10): Define using libm_alias_double.
5030         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
5031         (exp2): Define using libm_alias_double.
5032         * math/w_exp_compat.c: Include <libm-alias-double.h>.
5033         (exp): Define using libm_alias_double.
5034         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
5035         (fmod): Define using libm_alias_double.
5036         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
5037         (hypot): Define using libm_alias_double.
5038         * math/w_j0_compat.c: Include <libm-alias-double.h>.
5039         (j0): Define using libm_alias_double.
5040         (y0): Likewise.
5041         * math/w_j1_compat.c: Include <libm-alias-double.h>.
5042         (j1): Define using libm_alias_double.
5043         (y1): Likewise.
5044         * math/w_jn_compat.c: Include <libm-alias-double.h>.
5045         (jn): Define using libm_alias_double.
5046         (yn): Likewise.
5047         * math/w_log10_compat.c: Include <libm-alias-double.h>.
5048         (log10): Define using libm_alias_double.
5049         * math/w_log2_compat.c: Include <libm-alias-double.h>.
5050         (log2): Define using libm_alias_double.
5051         * math/w_log_compat.c: Include <libm-alias-double.h>.
5052         (log): Define using libm_alias_double.
5053         * math/w_pow_compat.c: Include <libm-alias-double.h>.
5054         (pow): Define using libm_alias_double.
5055         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
5056         (remainder): Define using libm_alias_double.
5057         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
5058         (sinh): Define using libm_alias_double.
5059         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
5060         (sqrt): Define using libm_alias_double.
5061         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
5062         (tgamma): Define using libm_alias_double.
5063         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
5064         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
5065         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
5066         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
5067         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
5068         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
5069         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
5070         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5071         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5072         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5073         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5074         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5075         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
5076         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5077         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5078         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5079         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5080         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5081         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5082         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5083         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5084         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5085         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5086         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5087         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5089         * math/e_acoshl.c: Remove.
5090         * math/e_acosl.c: Likewise.
5091         * math/e_asinl.c: Likewise.
5092         * math/e_atan2l.c: Likewise.
5093         * math/e_atanhl.c: Likewise.
5094         * math/e_coshl.c: Likewise.
5095         * math/e_expl.c: Likewise.
5096         * math/e_fmodl.c: Likewise.
5097         * math/e_gammal_r.c: Likewise.
5098         * math/e_hypotl.c: Likewise.
5099         * math/e_j0l.c: Likewise.
5100         * math/e_j1l.c: Likewise.
5101         * math/e_jnl.c: Likewise.
5102         * math/e_lgammal_r.c: Likewise.
5103         * math/e_log10l.c: Likewise.
5104         * math/e_log2l.c: Likewise.
5105         * math/e_logl.c: Likewise.
5106         * math/e_powl.c: Likewise.
5107         * math/e_rem_pio2l.c: Likewise.
5108         * math/e_sinhl.c: Likewise.
5109         * math/e_sqrtf128.c: Likewise.
5110         * math/e_sqrtl.c: Likewise.
5111         * math/k_cosl.c: Likewise.
5112         * math/k_sinl.c: Likewise.
5113         * math/k_tanl.c: Likewise.
5114         * math/s_asinhl.c: Likewise.
5115         * math/s_atanl.c: Likewise.
5116         * math/s_cbrtl.c: Likewise.
5117         * math/s_erfl.c: Likewise.
5118         * math/s_expm1l.c: Likewise.
5119         * math/s_log1pl.c: Likewise.
5120         * math/s_tanhl.c: Likewise.
5122 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5124         [BZ #21745]
5125         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
5126         [$(subdir) = math] (sysdep_calls): New variable.  Has the
5127         previous contents of sysdep_routines, but re-sorted..
5128         [$(subdir) = math] (sysdep_routines): Re-use the contents from
5129         sysdep_calls.
5130         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
5131         defined in sysdep_calls and replace by the respective m_* names.
5132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
5133         (compat_symbol): Undefine to avoid duplicated compat symbols in
5134         libc.
5136 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5138         * math/s_fmaf.c: Include <libm-alias-float.h>.
5139         (fmaf): Define using libm_alias_float.
5140         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
5141         (acosf): Define using libm_alias_float.
5142         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
5143         (acoshf): Define using libm_alias_float.
5144         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
5145         (asinf): Define using libm_alias_float.
5146         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
5147         (atan2f): Define using libm_alias_float.
5148         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
5149         (atanhf): Define using libm_alias_float.
5150         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
5151         (coshf): Define using libm_alias_float.
5152         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
5153         (exp10f): Define using libm_alias_float.
5154         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
5155         (fmodf): Define using libm_alias_float.
5156         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
5157         (hypotf): Define using libm_alias_float.
5158         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
5159         (j0f): Define using libm_alias_float.
5160         (y0f): Likewise.
5161         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
5162         (j1f): Define using libm_alias_float.
5163         (y1f): Likewise.
5164         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
5165         (jnf): Define using libm_alias_float.
5166         (ynf): Likewise.
5167         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
5168         (log10f): Define using libm_alias_float.
5169         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
5170         (log2f): Define using libm_alias_float.
5171         * math/w_logf_compat.c: Include <libm-alias-float.h>.
5172         (logf): Define using libm_alias_float.
5173         * math/w_powf_compat.c: Include <libm-alias-float.h>.
5174         (powf): Define using libm_alias_float.
5175         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
5176         (remainderf): Define using libm_alias_float.
5177         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
5178         (sinhf): Define using libm_alias_float.
5179         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
5180         (sqrtf): Define using libm_alias_float.
5181         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
5182         (tgammaf): Define using libm_alias_float.
5184 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5186         * include/math.h (roundeven): Change hidden_proto call to
5187         __roundeven.
5188         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
5189         alias.
5190         [NO_LONG_DOUBLE] (__j0l): New strong alias.
5191         (y0): Rename to __y0 and define as weak alias.
5192         [NO_LONG_DOUBLE] (__y0l): New strong alias.
5193         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
5194         alias.
5195         (y0f): Rename to __y0f and define as weak alias.
5196         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
5197         alias.
5198         [NO_LONG_DOUBLE] (__j1l): New strong alias.
5199         (y1): Rename to __y1 and define as weak alias.
5200         [NO_LONG_DOUBLE] (__y1l): New strong alias.
5201         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
5202         alias.
5203         (y1f): Rename to __y1f and define as weak alias.
5204         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
5205         alias.
5206         [NO_LONG_DOUBLE] (__jnl): New strong alias.
5207         (yn): Rename to __yn and define as weak alias.
5208         [NO_LONG_DOUBLE] (__ynl): New strong alias.
5209         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
5210         alias.
5211         (ynf): Rename to __ynf and define as weak alias.
5212         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
5213         (fromfp): Define as weak alias.
5214         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
5215         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
5216         (fromfpx): Define as weak alias.
5217         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
5218         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
5219         __getpayload and define as weak alias.
5220         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5221         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
5222         __roundeven and define as weak alias.
5223         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5224         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
5225         __setpayload.
5226         (setpayload): Define as weak alias.
5227         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
5228         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
5229         __setpayloadsig.
5230         (setpayloadsig): Define as weak alias.
5231         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
5232         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
5233         __totalorder and define as weak alias.
5234         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5235         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
5236         to __totalordermag and define as weak alias.
5237         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5238         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
5239         (ufromfp): Define as weak alias.
5240         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
5241         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
5242         __ufromfpx.
5243         (ufromfpx): Define as weak alias.
5244         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
5245         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
5246         Rename to __getpayload and define as weak alias.
5247         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5248         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
5249         Rename to __roundeven and define as weak alias.
5250         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5251         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
5252         Rename to __totalorder and define as weak alias.
5253         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5254         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
5255         (totalordermag): Rename to __totalordermag and define as weak
5256         alias.
5257         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5258         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
5259         macro.
5260         (__roundevenl): Likewise.
5261         (__totalorderl): Likewise.
5262         (__totalordermagl): Likewise
5263         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
5264         __fromfpf128.
5265         (fromfpf128): Define as weak alias.
5266         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
5267         __fromfpxf128.
5268         (fromfpxf128): Define as weak alias.
5269         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
5270         __setpayloadf128.
5271         (setpayloadf128): Define as weak alias.
5272         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
5273         __setpayloadsigf128.
5274         (setpayloadsigf128): Define as weak alias.
5275         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
5276         __ufromfpf128.
5277         (ufromfpf128): Define as weak alias.
5278         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
5279         __ufromfpxf128.
5280         (ufromfpxf128): Define as weak alias.
5281         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
5282         (fromfpf): Define as weak alias.
5283         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
5284         __fromfpxf.
5285         (fromfpxf): Define as weak alias.
5286         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
5287         __getpayloadf and define as weak alias.
5288         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
5289         __roundevenf and define as weak alias.
5290         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
5291         __setpayloadf.
5292         (setpayloadf): Define as weak alias.
5293         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
5294         __setpayloadsigf.
5295         (setpayloadsigf): Define as weak alias.
5296         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
5297         __totalorderf and define as weak alias.
5298         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
5299         Rename to __totalordermagf and define as weak alias.
5300         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
5301         __ufromfpf.
5302         (ufromfpf): Define as weak alias.
5303         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
5304         __ufromfpxf.
5305         (ufromfpxf): Define as weak alias.
5306         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
5307         __fromfpl.
5308         (fromfpl): Define as weak alias.
5309         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
5310         __fromfpxl.
5311         (fromfpxl): Define as weak alias.
5312         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
5313         to __getpayloadl and define as weak alias.
5314         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
5315         __roundevenl and define as weak alias.
5316         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
5317         __setpayloadl.
5318         (setpayloadl): Define as weak alias.
5319         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
5320         __setpayloadsigl.
5321         (setpayloadsigl): Define as weak alias.
5322         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
5323         to __totalorderl and define as weak alias.
5324         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
5325         Rename to __totalordermagl and define as weak alias.
5326         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
5327         __ufromfpl.
5328         (ufromfpl): Define as weak alias.
5329         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
5330         __ufromfpxl.
5331         (ufromfpxl): Define as weak alias.
5332         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
5333         __fromfpl.
5334         (fromfpl): Define as weak alias.
5335         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
5336         __fromfpxl.
5337         (fromfpxl): Define as weak alias.
5338         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
5339         Rename to __getpayloadl and define as weak alias.
5340         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
5341         to __roundevenl and define as weak alias.  Call __roundeven
5342         instead of roundeven.
5343         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
5344         __setpayloadl.
5345         (setpayloadl): Define as weak alias.
5346         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
5347         __setpayloadsigl.
5348         (setpayloadsigl): Define as weak alias.
5349         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
5350         Rename to __totalorderl and define as weak alias.
5351         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
5352         Rename to __totalordermagl and define as weak alias.
5353         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
5354         __ufromfpl.
5355         (ufromfpl): Define as weak alias.
5356         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
5357         __ufromfpxl.
5358         (ufromfpxl): Define as weak alias.
5359         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
5360         __fromfpl.
5361         (fromfpl): Define as weak alias.
5362         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
5363         __fromfpxl.
5364         (fromfpxl): Define as weak alias.
5365         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
5366         __getpayloadl and define as weak alias.
5367         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
5368         __roundevenl and define as weak alias.
5369         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
5370         __setpayloadl.
5371         (setpayloadl): Define as weak alias.
5372         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
5373         __setpayloadsigl.
5374         (setpayloadsigl): Define as weak alias.
5375         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
5376         __totalorderl and define as weak alias.
5377         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
5378         Rename to __totalordermagl and define as weak alias.
5379         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
5380         __ufromfpl.
5381         (ufromfpl): Define as weak alias.
5382         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
5383         __ufromfpxl.
5384         (ufromfpxl): Define as weak alias.
5386 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5388         * benchtests/bench-string.h (realloc_bufs): New function.
5389         (test_init): Call it.
5390         * benchtests/bench-memset-large.c (do_test): Likewise.
5391         * benchtests/bench-memset.c (do_test): Likewise.
5393         * benchtests/bench-memset-large.c: Print output in JSON
5394         format.
5395         * benchtests/bench-memset.c: Likewise.
5397 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5399         [BZ #21084]
5400         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
5401         * iconvdata/Makefile: Add IBM858.
5402         * iconvdata/gconv-modules: Likewise.
5403         * iconvdata/tst-tables.sh: Likewise.
5404         * iconvdata/ibm858.c: New file.
5405         * localedata/charmaps/IBM858: Likewise.
5407 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
5409         [BZ #22023]
5410         * locales/niu_NZ (LC_TIME): copy "niu_NU".
5411         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
5413 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5415         [BZ #22112]
5416         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
5417         and add tel_int_fmt.
5419 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5421         * sysdeps/generic/libm-alias-float128.h: New file.
5422         * sysdeps/generic/math-type-macros-float128.h: Include
5423         <libm-alias-float128.h>.
5424         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
5426 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5428         * sysdeps/generic/libm-alias-ldouble.h: New file.
5429         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
5430         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
5431         * sysdeps/generic/math-type-macros-ldouble.h: Include
5432         <libm-alias-ldouble.h>.
5433         [!declare_mgen_alias] (declare_mgen_alias): Define to use
5434         libm_alias_ldouble.
5436 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5438         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
5439         * math/w_exp_compat.c: ... here.
5440         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
5441         * math/w_expf_compat.c: ... here.
5442         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
5443         * math/w_expl_compat.c: ... here.
5444         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
5445         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
5446         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
5447         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5449 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5451         * math/w_scalbln_template.c (strong_alias): Do not undefine and
5452         redefine.
5453         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
5454         macro.
5455         (ldexpl): Only define as compat symbol for libc, not libm.
5456         (scalbnl): Define as compat symbol for libc here.
5457         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
5458         define for [IS_IN (libc)].
5459         (__ldexpl_2): Remove alias.
5460         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
5461         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
5462         name in long_double_symbol call.
5463         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
5464         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
5465         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
5466         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
5467         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
5468         Remove macro.
5469         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
5470         Define as compat symbol.
5472 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5474         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
5475         * sysdeps/unix/sysv/linux/alpha/Makefile
5476         [$(subdir) = csu] (sysdep_routines): Remove rule.
5478 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5480         * sysdeps/generic/libm-alias-double.h: New file.
5481         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
5482         * sysdeps/generic/math-type-macros-double.h: Include
5483         <libm-alias-double.h>.
5484         [declare_mgen_alias] (declare_mgen_alias): Define to use
5485         libm_alias_double.
5486         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
5487         (M_LIBM_NEED_COMPAT): Remove macro.
5488         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
5489         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
5490         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
5491         code.
5492         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5493         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5494         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5495         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5496         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5497         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5498         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5499         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5500         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5501         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5502         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5503         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5504         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5505         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5506         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5507         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5508         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5509         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5510         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5511         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5512         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5513         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5514         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5515         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5516         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5517         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5518         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5519         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
5520         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
5521         macro.
5522         (declare_mgen_alias): New macro.
5523         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
5524         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
5525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
5526         (M_LIBM_NEED_COMPAT): Remove macro.
5527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
5528         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
5529         <first-versions.h>.
5530         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
5531         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
5533 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
5535         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
5536         (declare_mgen_alias_2): Remove.
5537         * sysdeps/generic/math-type-macros-double.h
5538         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
5539         Likewise.
5540         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
5541         alias.
5542         (ldexp): Define with declare_mgen_alias.
5543         (scalbn): Likewise.
5545 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
5547         * grp/initgroups.c: Include config.h.
5548         (DEFAULT_CONFIG): New macro.
5549         (internal_getgrouplist): Use DEFAULT_CONFIG.
5550         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5551         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
5552         (DEFAULT_DEFCONFIG): New macro.
5553         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
5554         * nss/grp-lookup.c: Include config.h
5555         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
5556         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
5557         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
5558         * manual/nss.texi: Update default values section.
5560 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
5562         [BZ #21967]
5563         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
5564         New.
5565         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
5566         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
5567         Handle MathVec_Prefer_No_AVX512.
5568         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
5569         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
5570         is set.
5572 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5574         * posix/sched_primax.c (__sched_get_priority_max): Add
5575         libc_hidden_def.
5576         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
5577         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5578         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
5579         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
5580         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
5581         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
5582         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
5583         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
5584         Add aliases.
5586 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
5588         * sysdeps/generic/libm-alias-float.h: New file.
5589         * sysdeps/generic/math-type-macros-float.h: Include
5590         <libm-alias-float.h>.
5591         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
5593 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
5595         [BZ #22093]
5596         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
5597         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
5598         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
5599         (HWCAP_IMPORTANT): Likewise.
5600         (HWCAP_X86_64): New enum.
5601         (HWCAP_X86_AVX512_1): Updated.
5602         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
5603         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
5604         (modules-names): Add x86_64/tst-x86_64mod-1.
5605         (LDFLAGS-tst-x86_64mod-1.so): New.
5606         ($(objpfx)tst-x86_64-1): Likewise.
5607         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
5608         (tst-x86_64-1-clean): Likewise.
5609         * sysdeps/x86_64/tst-x86_64-1.c: New file.
5610         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
5612 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5614         * po/sv.po: Update translations.
5615         * po/fr.po: Likewise.
5617 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5619         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
5620         seconds.
5621         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
5622         seconds.
5623         * elf/rtld-Rules: Fix $(error) use.
5625 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
5627         [BZ #14925]
5628         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
5629         * locale/iso-639.def: Change “Bengali” to “Bangla”.
5630         * localedata/locales/bn_BD: “Bengali” was still used in some
5631         comments. Change it to “Bangla”.
5633 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
5635         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
5637 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
5639         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
5640         thunderx2t99p1 to list of cpu names.
5641         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
5642         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
5644 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
5646         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
5647         Use strcmp instead of tunable_is_name.
5649 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
5651         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5652         (F_GET_RW_HINT): New macro.
5653         [__USE_GNU] (F_SET_RW_HINT): Likewise.
5654         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
5655         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
5656         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
5657         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
5658         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
5659         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
5660         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
5661         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
5663         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5664         (F_ADD_SEALS): New macro.
5665         [__USE_GNU] (F_GET_SEALS): Likewise.
5666         [__USE_GNU] (F_SEAL_SEAL): Likewise.
5667         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
5668         [__USE_GNU] (F_SEAL_GROW): Likewise.
5669         [__USE_GNU] (F_SEAL_WRITE): Likewise.
5671 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5673         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5674         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5675         * posix/glob_internal.h (__glob_pattern_type):
5676         * posix/glob.c (glob):
5677         * posix/glob_pattern_p.c (__glob_pattern_p):
5678         Use them.
5680         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
5681         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5682         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
5683         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
5684         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
5686         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
5687         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
5688         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5689         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5690         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5691         * sysdeps/wordsize-64/glob.c: Likewise.
5692         * sysdeps/wordsize-64/glob64.c: Likewise.
5693         * sysdeps/wordsize-64/globfree.c: Likewise.
5694         * sysdeps/wordsize-64/globfree64.c: Likewise.
5695         * sysdeps/unix/sysv/linux/glob.c: New file.
5696         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
5697         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
5698         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
5699         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5700         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
5701         adds !GLOB_NO_OLD_VERSION as an extra condition.
5702         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
5703         using relative path instead of absolute one.
5704         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
5705         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
5706         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5707         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
5708         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
5709         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
5711         [BZ #1062]
5712         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
5713         (glob): Use the same scratch buffer for both getlogin_r and
5714         getpwnam_r.  Don’t require preallocation of the login name.  This
5715         simplifies storage allocation, and corrects the handling of
5716         long login names.
5718         [BZ #1062]
5719         * posix/glob.c (glob): Port recent patches to platforms
5720         lacking getpwnam_r.
5721         (glob): Fix longstanding misuse of errno after getpwnam_r, which
5722         returns an error number rather than setting errno.
5724         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
5725         instead of GCC extension.
5726         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
5727         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
5728         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
5730         [BZ #866]
5731         [BZ #1062]
5732         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
5733         * posix/bug-glob1.c: Remove file.
5734         * posix/tst-glob_symlinks.c: New file.
5735         * posix/glob.c (__lstat64): New macro.
5736         (is_dir): New function.
5737         (glob, glob_in_dir): Match symlinks even if they are dangling.
5738         (link_stat, link_exists_p): Remove.  All uses removed.
5740         [BZ #1062]
5741         [BZ #19971]
5742         * posix/glob.c (struct readdir_result): Remove skip_entry member.
5743         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5744         All uses removed.
5746         [BZ #1062]
5747         CVE-2017-15671
5748         * posix/Makefile (routines): Add globfree, globfree64, and
5749         glob_pattern_p.
5750         * posix/flexmember.h: New file.
5751         * posix/glob_internal.h: Likewise.
5752         * posix/glob_pattern_p.c: Likewise.
5753         * posix/globfree.c: Likewise.
5754         * posix/globfree64.c: Likewise.
5755         * sysdeps/gnu/globfree64.c: Likewise.
5756         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
5757         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5758         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
5759         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5760         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5761         * sysdeps/wordsize-64/globfree.c: Likewise.
5762         * sysdeps/wordsize-64/globfree64.c: Likewise.
5763         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
5764         [NDEBUG): Remove comments.
5765         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
5766         (dirent_type): New type.  Use uint_fast8_t not
5767         uint8_t, as C99 does not require uint8_t.
5768         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
5769         (struct readdir_result): Use dirent_type.  Do not define skip_entry
5770         unless it is needed; this saves a byte on platforms lacking d_ino.
5771         (readdir_result_type, readdir_result_skip_entry):
5772         New functions, replacing ...
5773         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5774          these functions, which were removed.  This makes the callers
5775         easier to read.  All callers changed.
5776         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5777         (size_add_wrapv, glob_use_alloca): New static functions.
5778         (glob, glob_in_dir): Check for size_t overflow in several places,
5779         and fix some size_t checks that were not quite right.
5780         Remove old code using SHELL since Bash no longer
5781         uses this.
5782         (glob, prefix_array): Separate MS code better.
5783         (glob_in_dir): Remove old Amiga and VMS code.
5784         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5785         separate files.
5786         (glob_in_dir): Do not rely on undefined behavior in accessing
5787         struct members beyond their bounds.  Use a flexible array member
5788         instead
5789         (link_stat): Rename from link_exists2_p and return -1/0 instead of
5790         0/1.  Caller changed.
5791         (glob): Fix memory leaks.
5792         * posix/glob64 (globfree64): Move to separate file.
5793         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
5794         (globfree64): Remove hidden alias.
5795         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
5796         oldglob.
5797         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
5798         separate file.
5799         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
5800         define.
5801         Move compat code to separate file.
5802         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
5803         separate file.
5805 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
5807         * resolv/tst-resolv-qtypes.c (domain): Changed to
5808         "const char domain[] =".
5810 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
5812         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
5813         version to 3.1.6.
5815         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
5816         (TCP_MD5SIG_EXT): Likewise.
5817         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
5818         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
5819         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
5821         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
5823 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
5825         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
5827 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
5829         [BZ #22100]
5830         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
5832 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5834         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
5835         before assuming that the file is empty.  Avoid testing buffer content
5836         when nread == 0.
5838 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5840         [BZ #18858]
5841         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5842         Remove define.
5843         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
5844         Likewise.
5845         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
5846         Likewise.
5847         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
5848         Likewise.
5849         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5850         Likewise.
5851         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
5852         Likewise.
5853         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
5854         Likewise.
5856 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5858         * malloc/dynarray_emplace_enlarge.c
5859         (__libc_dynarray_emplace_enlarge): Add missing else.
5861 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5863         [BZ #22096]
5864         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
5865         case of failure to obtain the global conf object.
5867 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5869         [BZ #22095]
5870         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
5871         dynarray allocation failure.
5873 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5875         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
5876         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
5877         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
5878         New functions.
5879         (response): Call them.  Add 'p', '6' flag processing.
5880         (test_reverse): New function.
5881         (test_get2_any): Call it.
5882         (test_no_inet6): Add 'p' test.
5883         (test_inet6): Likewise.
5885 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5887         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
5888         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
5889         the QNAME.
5890         (test_gai): Adjust query names.  Add additional tests.
5891         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
5892         test_get2.  Adjust query names.  Add additional tests.
5893         (test_no_inet6): New function, extracted from threadfunc.
5894         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
5895         Add additional tests.
5897 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
5899         [BZ #22070]
5900         * localedata/unicode-gen/utf8_gen.py: Set the width for
5901         characters with Prepended_Concatenation_Mark property to 1
5902         * localedata/charmaps/UTF-8: Updated using the improved script.
5904 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
5906         [BZ #21750]
5907         * localedata/unicode-gen/utf8_gen.py: Improve the script to
5908         use the range notation for all ranges of neighbouring characters
5909         with the same width.
5911 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
5913         * sysdeps/generic/math-type-macros-double.h: Include
5914         <math-svid-compat.h>.
5915         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5916         * sysdeps/generic/math-type-macros-float.h: Include
5917         <math-svid-compat.h>.
5918         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5919         * sysdeps/generic/math-type-macros-ldouble.h: Include
5920         <math-svid-compat.h>.
5921         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5922         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
5923         condition.
5924         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
5925         * math/w_acosf_compat.c: Likewise.
5926         * math/w_acosh_compat.c: Likewise.
5927         * math/w_acoshf_compat.c: Likewise.
5928         * math/w_acoshl_compat.c: Likewise.
5929         * math/w_acosl_compat.c: Likewise.
5930         * math/w_asin_compat.c: Likewise.
5931         * math/w_asinf_compat.c: Likewise.
5932         * math/w_asinl_compat.c: Likewise.
5933         * math/w_atan2_compat.c: Likewise.
5934         * math/w_atan2f_compat.c: Likewise.
5935         * math/w_atan2l_compat.c: Likewise.
5936         * math/w_atanh_compat.c: Likewise.
5937         * math/w_atanhf_compat.c: Likewise.
5938         * math/w_atanhl_compat.c: Likewise.
5939         * math/w_cosh_compat.c: Likewise.
5940         * math/w_coshf_compat.c: Likewise.
5941         * math/w_coshl_compat.c: Likewise.
5942         * math/w_exp10_compat.c: Likewise.
5943         * math/w_exp10f_compat.c: Likewise.
5944         * math/w_exp10l_compat.c: Likewise.
5945         * math/w_exp2_compat.c: Likewise.
5946         * math/w_exp2f_compat.c: Likewise.
5947         * math/w_exp2l_compat.c: Likewise.
5948         * math/w_fmod_compat.c: Likewise.
5949         * math/w_fmodf_compat.c: Likewise.
5950         * math/w_fmodl_compat.c: Likewise.
5951         * math/w_hypot_compat.c: Likewise.
5952         * math/w_hypotf_compat.c: Likewise.
5953         * math/w_hypotl_compat.c: Likewise.
5954         * math/w_j0_compat.c: Likewise.
5955         * math/w_j0f_compat.c: Likewise.
5956         * math/w_j0l_compat.c: Likewise.
5957         * math/w_j1_compat.c: Likewise.
5958         * math/w_j1f_compat.c: Likewise.
5959         * math/w_j1l_compat.c: Likewise.
5960         * math/w_jn_compat.c: Likewise.
5961         * math/w_jnf_compat.c: Likewise.
5962         * math/w_jnl_compat.c: Likewise.
5963         * math/w_lgamma_r_compat.c: Likewise.
5964         * math/w_lgammaf_r_compat.c: Likewise.
5965         * math/w_lgammal_r_compat.c: Likewise.
5966         * math/w_log10_compat.c: Likewise.
5967         * math/w_log10f_compat.c: Likewise.
5968         * math/w_log10l_compat.c: Likewise.
5969         * math/w_log2_compat.c: Likewise.
5970         * math/w_log2f_compat.c: Likewise.
5971         * math/w_log2l_compat.c: Likewise.
5972         * math/w_log_compat.c: Likewise.
5973         * math/w_logf_compat.c: Likewise.
5974         * math/w_logl_compat.c: Likewise.
5975         * math/w_pow_compat.c: Likewise.
5976         * math/w_powf_compat.c: Likewise.
5977         * math/w_powl_compat.c: Likewise.
5978         * math/w_remainder_compat.c: Likewise.
5979         * math/w_remainderf_compat.c: Likewise.
5980         * math/w_remainderl_compat.c: Likewise.
5981         * math/w_sinh_compat.c: Likewise.
5982         * math/w_sinhf_compat.c: Likewise.
5983         * math/w_sinhl_compat.c: Likewise.
5984         * math/w_sqrt_compat.c: Likewise.
5985         * math/w_sqrtf_compat.c: Likewise.
5986         * math/w_sqrtl_compat.c: Likewise.
5987         * math/w_tgamma_compat.c: Likewise.
5988         * math/w_tgammaf_compat.c: Likewise.
5989         * math/w_tgammal_compat.c: Likewise.
5990         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
5991         [LIBM_SVID_COMPAT].
5992         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
5993         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
5994         [LIBM_SVID_COMPAT].
5995         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
5996         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
5997         [LIBM_SVID_COMPAT].
5998         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
5999         * sysdeps/i386/fpu/w_sqrt.c: New file.
6000         * sysdeps/ia64/fpu/w_acos.c: Likewise.
6001         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
6002         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
6003         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
6004         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
6005         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
6006         * sysdeps/ia64/fpu/w_asin.c: Likewise.
6007         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
6008         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
6009         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
6010         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
6011         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
6012         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
6013         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
6014         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
6015         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
6016         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
6017         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
6018         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6019         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
6020         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
6021         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
6022         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
6023         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
6024         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
6025         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6026         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6027         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
6028         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
6029         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
6030         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
6031         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
6032         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
6033         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
6034         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
6035         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
6036         * sysdeps/ia64/fpu/w_log.c: Likewise.
6037         * sysdeps/ia64/fpu/w_log10.c: Likewise.
6038         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
6039         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
6040         * sysdeps/ia64/fpu/w_log2.c: Likewise.
6041         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
6042         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
6043         * sysdeps/ia64/fpu/w_logf.c: Likewise.
6044         * sysdeps/ia64/fpu/w_logl.c: Likewise.
6045         * sysdeps/ia64/fpu/w_pow.c: Likewise.
6046         * sysdeps/ia64/fpu/w_powf.c: Likewise.
6047         * sysdeps/ia64/fpu/w_powl.c: Likewise.
6048         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
6049         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
6050         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
6051         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
6052         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
6053         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
6054         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
6055         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
6056         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
6057         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
6058         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
6059         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
6060         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
6061         [LIBM_SVID_COMPAT].
6062         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6063         * sysdeps/ieee754/k_standard.c: Likewise.
6064         * sysdeps/ieee754/k_standardf.c: Likewise.
6065         * sysdeps/ieee754/k_standardl.c: Likewise.
6066         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6067         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6068         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6069         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
6070         long_double_symbol call on [LIBM_SVID_COMPAT].
6071         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6072         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6073         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6074         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6075         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6076         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6077         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6078         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6079         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6080         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6081         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6082         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
6083         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6084         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6085         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6086         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6087         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
6088         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6089         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6090         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6091         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
6092         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
6094 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
6096         * include/shlib-compat.h (TEST_COMPAT): New Macro.
6097         * malloc/tst-mallocstate.c: Convert from test-skeleton
6098         to test-driver.  Ifdef code using TEST_COMPAT macro.
6099         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
6100         * math/test-matherr.c: Likewise.
6102 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6104         [BZ #22086]
6105         * debug/pcprofiledump.c (main): Use byte-swapped mask when
6106         comparing word with byte-swapped constant.
6108 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
6110         [BZ #20498]
6111         * locale/iso-639.def: add Miskito.
6112         * localedata/SUPPORTED: Add miq_NI/UTF-8.
6113         * localedata/locales/miq_NI: New file.
6115 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6117         [BZ #18822]
6118         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
6119         (__mkdir): Likewise.
6120         * io/chmod.c (__chmod): Add libc_hidden_def.
6121         * io/mkdir.c (__mkdir): Likewise.
6122         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
6123         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
6124         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
6125         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
6127 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6129         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6130         version to 4.13.
6132         [BZ #22082]
6133         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
6134         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
6136 2017-09-04  Florian Weimer  <fweimer@redhat.com>
6138         * math/math.h: Issue warning if log is defined.
6140 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6142         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6143         kernel version to 4.13.
6145 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6147         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
6148         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
6149         parameter.
6150         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
6151         just <bits/types.h>.
6152         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
6153         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
6154         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
6155         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
6156         * misc/preadv2.c: Include <errno.h>.
6157         * misc/preadv64v2.c: Include <errno.h>.
6158         * misc/pwritev2.c: Include <errno.h>.
6159         * misc/pwritev64v2.c: Include <errno.h>.
6160         * sysdeps/posix/preadv2.c: Include <errno.h>.
6161         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
6162         Fix <unistd.h> inclusion.
6163         * sysdeps/posix/pwritev2.c: Include <errno.h>.
6164         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
6165         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
6166         __strtoul_internal): New functions.
6167         * sysdeps/posix/pause.c: Include <sigsetops.h>.
6168         * sysdeps/posix/system.c: Include <sigsetops.h>.
6169         * sysdeps/mach/hurd/i386/Makefile
6170         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
6171         [$(subdir) = csu] (sysdep-only-routines): Likewise.
6172         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
6173         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
6174         __feraiseexcept_renamed to feraiseexcept instead of
6175         __GI_feraiseexcept.
6176         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
6177         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
6178         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
6179         RWF_NOWAIT): Define to 0 if undefined already.
6180         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
6181         boils down to 0.
6182         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
6183         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
6185 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6187         * manual/math.texi (pow10): Do not document.
6188         (pow10f): Likewise.
6189         (pow10l): Likewise.
6190         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
6191         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
6192         * math/libm-test-exp10.inc (pow10_test): Remove.
6193         (do_test): Do not call pow10.
6194         * math/w_exp10_compat.c (pow10): Make into compat symbol.
6195         [NO_LONG_DOUBLE] (pow10l): Likewise.
6196         * math/w_exp10f_compat.c (pow10f): Likewise.
6197         * math/w_exp10l_compat.c (pow10l): Likewise.
6198         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
6199         (pow10): Make into compat symbol.
6200         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
6201         (pow10f): Make into compat symbol.
6202         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
6203         (pow10l): Make into compat symbol.
6204         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
6205         pow10.
6206         (CFLAGS-nldbl-pow10.c): Remove variable..
6207         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
6208         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
6209         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
6210         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
6211         Undefine and redefine.
6212         (pow10l): Make into compat symbol.
6213         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
6214         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6215         * sysdeps/arm/libm-test-ulps: Likewise.
6216         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
6217         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6218         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6219         * sysdeps/microblaze/libm-test-ulps: Likewise.
6220         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6221         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6222         * sysdeps/nios2/libm-test-ulps: Likewise.
6223         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6224         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6225         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6226         * sysdeps/sh/libm-test-ulps: Likewise.
6227         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6228         * sysdeps/tile/libm-test-ulps: Likewise.
6229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6231 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6233         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
6235 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6237         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
6238         "../ChangeLog.old/ChangeLog.8".
6239         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
6240         "../ChangeLog.old/ChangeLog.14".
6242 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6244         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
6245         Threads Library.
6247 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6249         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
6251 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6253         * csu/version.c (banner): Remove "by Roland McGrath et al.".
6254         * nptl/Banner: Remove "by Ulrich Drepper et al.".
6256 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6258         * stdlib/tst-atexit-common.c (do_test): Test support for at least
6259         32 atexit handlers.
6261 2017-09-01  Zack Weinberg  <zackw@panix.com>
6263         * math/math.h (HUGE_VAL): Improve commentary.
6265 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6266             Andreas Schwab  <schwab@suse.de>
6268         [BZ #21530]
6269         * include/stdio.h (__gen_tempfd): New function.
6270         * stdio-common/Makefile (routines): Add gentempfd.
6271         * stdio-common/gentempfd.c: New file.
6272         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
6273         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
6274         unnamed file first.
6276 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6278         [BZ #21915]
6279         [BZ #21922]
6280         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
6281         result to determine success or failure, not the errno value.
6282         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
6283         (tst-nss-files-hosts-erange): Link with -ldl.
6284         * nss/tst-nss-files-hosts-erange.c: New file.
6285         * nss/tst-resolv-basic.c (response): Handle nodata.example.
6286         (do_test): Add NO_DATA tests.
6287         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
6288         (do_test): Call it.
6290 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6292         [BZ #21922]
6293         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
6294         coming from gethostbyname2_r.
6296 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6298         * support/namespace.h (struct support_chroot_configuration): Add
6299         hosts, host_conf.
6300         (struct support_chroot): Add path_hosts, path_host_conf.
6301         * support/support_chroot.c (write_file): New function.
6302         (support_chroot_create): Call it to process /etc/resolv.conf,
6303         /etc/hosts, /etc/host.conf.
6304         (support_chroot_free): Update.
6306 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6308         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
6309         status indicates it is set.
6311 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6313         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
6314         function lookup failures more reliable.
6316 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6318         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
6319         (getcanonname): Likewise.
6320         (gaih_inet): Likewise.
6322 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6324         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
6325         (getcanonname): Likewise.
6326         (gaih_inet): Likewise.
6328 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6329             Richard Henderson <rth@twiddle.net>
6331         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
6332         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
6333         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
6334         (IREG_SIZE, OREG_SIZE): New macros.
6335         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
6336         (IREG_SIZE, OREG_SIZE): New macros.
6337         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
6338         (IREG_SIZE): New macro.
6339         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
6340         (IREG_SIZE): New macro.
6341         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
6342         New includes.
6343         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
6344         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6345         (__CONCATX): Handle exceptions correctly on large values that may
6346         set FE_INVALID.
6347         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
6348         Initialize if not already set.
6349         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6351 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6353         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
6354         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
6355         Likewise.
6356         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
6357         Likewise.
6358         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
6359         Likewise.
6360         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
6361         Likewise.
6362         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
6363         Likewise.
6364         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
6365         Likewise.
6366         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
6367         Likewise.
6368         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
6369         (NO_CANCELLATION): Likewise.
6370         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
6371         Likewise.
6372         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
6373         Likewise.
6374         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
6375         Likewise.
6376         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
6377         (NO_CANCELLATION): Likewise.
6378         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
6379         (NO_CANCELLATION): Likewise.
6380         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
6381         Likewise
6382         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
6383         Likewise.
6384         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
6385         Likewise.
6386         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
6387         Likewise.
6388         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
6389         hidden prototype.
6390         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
6391         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
6393 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6395         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
6396         in resolver call.
6398 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6400         * include/libc-symbols.h (internal_function): Remove.
6402 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6404         * stdlib/fmtmsg.c (internal_addseverity): Remove
6405         internal_function.
6407 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6409         * stdio-common/printf_fp.c (group_number): Remove
6410         internal_function.
6411         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
6413 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6415         * posix/fnmatch.c (internal_function): Remove definition.
6416         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
6417         * posix/regcomp.c (peek_token, init_word_char)
6418         (duplicate_node_closure, fetch_token, peek_token)
6419         (peek_token_bracket, build_range_exp, build_collating_symbol):
6420         Likewise.
6421         * posix/regex_internal.c (re_string_construct_common)
6422         (create_ci_newstate, create_cd_newstate, re_string_allocate)
6423         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
6424         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
6425         (re_string_translate_buffer, re_string_reconstruct)
6426         (re_string_peek_byte_case, re_string_fetch_byte_case)
6427         (re_string_destruct, re_string_context_at, re_node_set_alloc)
6428         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
6429         (re_node_set_add_intersect, re_node_set_init_union)
6430         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
6431         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
6432         (re_dfa_add_node, calc_state_hash, re_acquire_state)
6433         (re_acquire_state_context): Likewise.
6434         * posix/regex_internal.h (internal_function): Remove definition.
6435         (re_string_realloc_buffers, build_wcs_buffer)
6436         (build_wcs_upper_buffer, build_upper_buffer)
6437         (re_string_translate_buffer, re_string_context_at)
6438         (re_string_char_size_at, re_string_wchar_at)
6439         (re_string_elem_size_at): Likewise.
6440         * posix/regexec.c (match_ctx_init, match_ctx_clean)
6441         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
6442         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
6443         (re_search_internal, re_search_2_stub, re_search_stub)
6444         (re_copy_regs, prune_impossible_nodes, check_matching)
6445         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
6446         (free_fail_stack_return, sift_states_iter_mb)
6447         (sift_states_backward, build_sifted_states)
6448         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
6449         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
6450         (check_subexp_limits, sift_states_bkref, merge_state_array)
6451         (find_recover_state, transit_state, merge_state_with_log)
6452         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
6453         (transit_state_mb, transit_state_bkref, get_subexp)
6454         (get_subexp_sub, find_subexp_node, check_arrival)
6455         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
6456         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
6457         (check_node_accept_bytes, find_collation_sequence_value)
6458         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
6459         (acquire_init_state_context, check_halt_node_context)
6460         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
6461         (sub_epsilon_src_nodes): Likewise.
6462         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
6463         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
6464         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
6465         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
6466         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
6467         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
6468         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
6469         * sysdeps/posix/ttyname.c (getttyname): Likewise.
6470         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
6471         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
6472         (PREADV): Likewise.
6473         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
6474         (PREADV): Likewise.
6475         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
6476         (PWRITEV): Likewise.
6477         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
6478         (PWRITEV): Likewise.
6479         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
6480         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
6482 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6484         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
6485         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
6486         Remove internal_function.
6487         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
6488         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
6489         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
6490         (__deallocate_stack, __libc_pthread_init)
6491         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
6492         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
6493         (__libc_disable_asynccancel, __librt_disable_asynccancel):
6494         Likewise.
6495         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
6496         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
6497         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
6498         Likewise.
6499         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
6500         (__pthread_mutex_unlock_usercnt): Likewise.
6502 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6504         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
6505         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
6506         (fts_safe_changedir): Remove internal_function.
6507         * io/ftw.c (internal_function): Remove definition.
6508         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
6510 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6512         * inet/deadline.c (__deadline_current_time)
6513         (__deadline_from_timeval, __deadline_to_ms): Remove
6514         internal_function.
6515         * inet/getnameinfo.c (nrl_domainname): Likewise.
6516         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
6517         * inet/inet6_option.c (add_pad): Likewise.
6518         * inet/net-internal.h (__deadline_current_time)
6519         (__deadline_from_timeval, __deadline_to_ms): Likewise.
6520         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
6521         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
6522         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
6524 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
6526         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
6527         include <bits/nan.h>.
6528         * math/Makefile (headers): Remove bits/nan.h.
6529         * bits/nan.h: Remove.
6530         * sysdeps/ieee754/bits/nan.h: Likewise.
6531         * sysdeps/mips/bits/nan.h: Likewise.
6533         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
6534         not include <bits/inf.h>.
6535         * math/Makefile (headers): Remove bits/inf.h.
6536         * bits/inf.h: Remove.
6537         * sysdeps/ieee754/bits/inf.h: Likewise.
6539         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
6540         bits/huge_vall.h or bits/huge_val_flt128.h.
6541         (HUGE_VAL): Define directly here.
6542         [__USE_ISOC99] (HUGE_VALF): Likewise.
6543         [__USE_ISOC99] (HUGE_VALL): Likewise.
6544         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6545         (HUGE_VAL_F128): Likewise.
6546         * math/Makefile (headers): Remove bits/huge_val.h,
6547         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
6548         * bits/huge_val.h: Remove.
6549         * bits/huge_val_flt128.h: Likewise.
6550         * bits/huge_valf.h: Likewise.
6551         * bits/huge_vall.h: Likewise.
6552         * sysdeps/ia64/bits/huge_vall.h: Likewise.
6553         * sysdeps/ieee754/bits/huge_val.h: Likewise.
6554         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
6555         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
6556         * sysdeps/sh/bits/huge_val.h: Likewise.
6557         * sysdeps/sparc/bits/huge_vall.h: Likewise.
6558         * sysdeps/x86/bits/huge_vall.h: Likewise.
6560 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6562         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
6563         internal_function.
6564         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
6565         Likewise.
6566         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
6567         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
6568         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
6569         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
6570         * elf/dl-fini.c (_dl_sort_fini): Likewise.
6571         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
6572         * elf/dl-libc.c (dlerror_run): Likewise.
6573         * elf/dl-load.c (add_name_to_object, decompose_rpath)
6574         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
6575         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
6576         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
6577         Likewise.
6578         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
6579         (_dl_higher_prime_number, _dl_strtoul): Likewise.
6580         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
6581         * elf/dl-profile.c (_dl_start_profile): Likewise.
6582         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
6583         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
6584         Likewise.
6585         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
6586         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
6587         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
6588         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
6589         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
6590         (_dl_allocate_tls_storage): Likewise.
6591         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
6592         (_dl_check_all_versions): Likewise.
6593         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
6594         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
6595         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
6596         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6597         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
6598         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
6599         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
6600         internal_function from __dl_start.
6601         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
6602         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
6603         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
6604         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
6605         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
6606         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
6607         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
6608         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
6609         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
6610         (_dl_next_ld_env_entry, _dl_important_hwcaps)
6611         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
6612         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
6613         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
6614         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
6615         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
6616         Likewise.
6617         (struct rtld_global_ro): Remove internal_function from the
6618         _dl_lookup_symbol_x member.
6619         (_dl_symbol_value): Remove.  No longer defined anywhere.
6620         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
6621         internal_function.
6622         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6623         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
6624         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
6625         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
6626         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
6627         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
6628         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
6629         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
6630         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
6631         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
6632         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6633         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
6635 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6637         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
6638         Remove internal_function.
6639         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
6640         Likewise.
6641         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
6642         Likewise.
6644 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6646         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
6647         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
6648         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
6650 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6652         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
6653         (__gai_enqueue_request): Remove internal_function.
6654         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
6655         (__gai_remove_request, __gai_notify, __gai_notify_only)
6656         (__gai_sigqueue): Likewise.
6657         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
6658         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
6659         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
6660         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
6661         Likewise.
6663 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6665         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
6666         * include/dirent.h (__opendirat, __getdents, __getdents64)
6667         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
6668         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
6669         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6670         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
6671         Likewise.
6672         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
6674 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6676         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
6677         internal_function.
6678         (GETCWD_RETURN_TYPE): Likewise.
6680 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6682         * include/time.h (__tz_compute, __strptime_internal): Remove
6683         internal_function.
6684         * time/strptime_l.c (__strptime_internal): Likewise.
6685         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
6687 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6689         * iconv/gconv.c (__gconv): Remove internal_function.
6690         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
6691         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
6692         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
6693         (__gconv_release_cache): Likewise.
6694         * iconv/gconv_close.c (__gconv_close): Likewise.
6695         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
6696         (read_conf_file, __gconv_get_path): Likewise.
6697         * iconv/gconv_db.c (derivation_lookup, add_derivation)
6698         (__gconv_release_step, gen_steps, increment_counter)
6699         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
6700         (__gconv_close_transform, free_modules_db): Likewise.
6701         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
6702         Likewise.
6703         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
6704         (__gconv_find_transform, __gconv_lookup_cache)
6705         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
6706         (__gconv_close_transform, __gconv_release_cache)
6707         (__gconv_loaded_object, __gconv_release_shlib)
6708         (__gconv_compare_alias): Likewise.
6709         * iconv/gconv_open.c (__gconv_open): Likewise.
6710         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
6711         * iconv/iconvconfig.c (add_module): Likewise.
6712         * intl/dcigettext.c (plural_lookup, guess_category_value)
6713         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
6714         * intl/eval-plural.h (plural_eval): Likewise.
6715         * intl/finddomain.c (_nl_find_domain): Likewise.
6716         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
6717         (_nl_load_domain, _nl_find_msg): Likewise.
6718         (internal_function): Remove definition.
6719         * intl/loadinfo.h (internal_function): Likewise.
6720         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
6721         internal_function.
6722         * intl/localealias.c (internal_function): Remove definition.
6723         (read_alias_file): Remove internal_function.
6724         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
6725         * intl/plural-exp.h (internal_function): Remove definition.
6726         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
6727         internal_function.
6728         * intl/plural.c: Regenerate.
6729         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
6730         * locale/coll-lookup.c (__collidx_table_lookup)
6731         (__collseq_table_lookup): Likewise.
6732         * locale/coll-lookup.h (__collidx_table_lookup)
6733         (__collseq_table_lookup): Likewise.
6734         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
6735         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6736         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
6737         (_nl_unload_locale): Likewise.
6738         * locale/localeinfo.h (struct __locale_data): Remove
6739         internal_function from cleanup member.
6740         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
6741         (_nl_remove_locale, _nl_load_locale_from_archive)
6742         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
6743         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
6744         (_nl_cleanup_time): Remove internal_function.
6745         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
6746         (_nl_parse_alt_digit): Likewise.
6747         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
6748         (_nl_select_era_entry): Likewise.
6749         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6750         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6751         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6752         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6753         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6755 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6757         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
6758         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
6759         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
6760         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
6761         Likewise.
6762         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
6763         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
6764         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
6765         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
6766         Likewise.
6767         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
6769 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6771         * misc/getttyent.c (skip, value): Remove internal_function.
6772         * misc/syslog.c (openlog_internal): Likewise.
6773         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
6775 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6777         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
6778         (__nss_rewrite_field): Remove internal_function.
6779         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6780         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6781         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6782         * nss/nsswitch.c (nss_parse_file, nss_getline)
6783         (nss_parse_service_list, nss_new_service): Likewise.
6784         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
6785         * nss/valid_field.c (__nss_valid_field): Likewise.
6786         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
6788 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6790         * malloc/arena.c (__malloc_fork_lock_parent)
6791         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
6792         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
6793         internal_function from defintions.
6794         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
6795         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
6796         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
6797         internal_function from declarations.
6798         * malloc/malloc.c (internal_function): Do not define.
6799         (mem2mem_check): Remove internal_function from declaration.
6800         (munmap_chunk, mremap_chunk): Remove internal_function.
6801         * malloc/mtrace.c (tr_where): Likewise.
6803 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6805         * include/rpc/pmap_clnt.h (__get_socket): Remove
6806         internal_function.
6807         * sunrpc/auth_des.c (synchronize): Likewise.
6808         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
6809         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
6810         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
6811         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
6812         (key_call): Likewise.
6813         * sunrpc/pm_getport.c (__get_socket): Likewise.
6814         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
6815         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
6816         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
6817         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
6818         (invalidate): Likewise.
6819         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
6820         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
6821         (set_input_fragment, get_input_bytes): Likewise.
6823 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6825         * malloc/malloc.c (_int_free): Remove locked variable and related
6826         asserts.
6828 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
6830         [BZ #22051]
6831         * Makerules (build-module-helper-objlist): Filter out
6832         $(elf-objpfx)sofini.os.
6833         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
6834         needed.
6836 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6838         * libio/fcloseall.c: Assume weak_alias is defined.
6839         * libio/feof.c: Likewise.
6840         * libio/fileno.c: Likewise.
6841         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
6842         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6843         definitions.
6844         (_IO_file_open): Call __open directly.
6845         (_IO_new_file_sync): Assume ESPIPE is defined.
6846         (_IO_file_seekoff_maybe_mmap): Call __read directly.
6847         (_IO_new_file_write): Call __write directly.
6848         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
6849         * libio/ftello64.c (__ftello64): Assume EIO is defined.
6850         * libio/genops.c: Assume _LIBC is defined.
6851         (save_for_backup): Remove internal_function.
6852         * libio/getc.c: Assume weak_alias is defined.
6853         * libio/getwc.c: Likewise.
6854         * libio/iofclose.c: Assume _LIBC is defined.
6855         * libio/iofdopen.c: Likewise.
6856         (_IO_fcntl): Remove macro definition.
6857         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
6858         Call __fcntl directly.
6859         * libio/iofflush.c: Assume weak_alias is defined.
6860         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
6861         defined.
6862         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
6863         * libio/iofgets.c: Likewise.
6864         * libio/iofopen.c: Assume _LIBC is defined.
6865         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
6866         * libio/iofputs.c: Assume weak_alias is defined.
6867         * libio/iofread.c: Likewise.
6868         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
6869         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
6870         * libio/ioftell.c: Assume weak_alias is defined.
6871         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
6872         * libio/iofwide.c: Assume _LIBC is defined.
6873         (_IO_fwide): Drop SHARED conditional because it is implied by
6874         SHLIB_COMPAT.
6875         * libio/iofwrite.c: Assume weak_alias is defined.
6876         * libio/iogetdelim.c: Likewise.
6877         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
6878         * libio/iogetwline.c (wmemcpy): Remove macro definition.
6879         (_IO_getwline): Call __wmemcpy directly.
6880         * libio/iopopen.c: Assume _LIBC is defined.
6881         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6882         (_IO_close): Remove macro definitions.
6883         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
6884         _exit directly.
6885         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
6886         directly.
6887         * libio/ioputs.c: Assume weak_alias is defined.
6888         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
6889         * libio/iosetbuffer.c: Assume weak_alias is defined.
6890         * libio/iosetvbuf.c: Likewise.
6891         * libio/ioungetc.c: Likewise.
6892         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
6893         libc_hidden_def, libc_hidden_weak, NULL are defined.
6894         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
6895         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
6896         defined.
6897         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6898         definitions.
6899         (_IO_old_file_init_internal): Drop SHARED conditional because it
6900         is implied by SHLIB_COMPAT.
6901         (_IO_old_file_fopen): Call __open directly.
6902         (_IO_old_file_sync): Assume ESPIPE is defined.
6903         (_IO_old_file_write): Call __write directly.
6904         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
6905         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
6906         Call __fcntl directly.
6907         * libio/oldiofgetpos.c: Assume weak_alias is defined.
6908         (_IO_old_fgetpos): Assume EIO is defined.
6909         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
6910         (_IO_old_fgetpos64): Assume EIO is defined.
6911         * libio/oldiofsetpos.c: Assume weak_alias is defined.
6912         (_IO_old_fsetpos): Assume EIO is defined.
6913         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
6914         (_IO_old_fsetpos64): Assume EIO is defined.
6915         * libio/oldiopopen.c:  Assume _LIBC is defined.
6916         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6917         (_IO_close): Remove macro definitions.
6918         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
6919         directly.
6920         (_IO_old_proc_close): Call __close, __waitpid directly.
6921         * libio/put.c: Assume weak_alias is defined.
6922         * libio/stdfiles.c: Assume _LIBC is defined.
6923         * libio/stdio.c: Likewise.
6924         * libio/wfileops.c: Likewise.
6925         (_IO_wfile_sync): Assume ESPIPE is defined.
6926         * libio/wgenops.c: Assume _LIBC is defined.
6927         (save_for_wbackup): Remove internal_function.
6929 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6931         * malloc/malloc.c (top_check): Change return type to void.  Remove
6932         internal_function.
6933         * malloc/hooks.c (top_check): Likewise.
6934         (malloc_check, realloc_check, memalign_check): Adjust.
6936 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
6938         [BZ #21457]
6939         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6940         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
6941         sigcontext and namespace requirements.
6942         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6943         * sysdeps/m68k/sys/ucontext.h: Likewise.
6944         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
6945         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
6946         <bits/sigcontext.h>.
6947         (__ctx): Define earlier.
6948         (mcontext_t): Define structure contents rather than using struct
6949         sigcontext.
6950         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
6951         __glibc_reserved1 instead of __reserved.
6952         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
6953         <bits/sigcontext.h>.
6954         (__ctx): Define earlier.
6955         (mcontext_t): Define structure contents rather than using struct
6956         sigcontext.
6957         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
6958         mcontext_t instead of struct sigcontext.
6959         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
6960         <bits/sigcontext.h>.
6961         (__ctx): Define earlier.
6962         (mcontext_t): Define structure contents rather than using struct
6963         sigcontext.
6964         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
6965         <bits/sigcontext.h>.
6966         (__ctx): Define earlier.
6967         (mcontext_t): Define structure contents rather than using struct
6968         sigcontext.
6969         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
6970         mcontext_t instead of struct sigcontext.
6971         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
6972         mcontext_t instead of struct sigcontext.
6973         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
6974         <bits/sigcontext.h>.
6975         (__ctx): New macro.
6976         (struct __ia64_fpreg_mcontext): New type.
6977         (mcontext_t): Define structure contents rather than using struct
6978         sigcontext.
6979         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
6980         (uc_sigmask): Define using __ctx.
6981         (uc_stack): Likewise.
6982         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
6983         <bits/sigcontext.h>.
6984         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6985         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
6986         <bits/sigcontext.h>.
6987         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
6988         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
6989         <bits/sigcontext.h>.
6990         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
6991         <bits/sigcontext.h>.
6992         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
6993         <bits/sigcontext.h>.
6994         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
6995         <bits/sigcontext.h>.
6996         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
6997         <bits/sigcontext.h>.
6998         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
6999         <bits/sigcontext.h>.
7000         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
7001         <bits/sigcontext.h>.
7002         (__ctx): Define earlier.
7003         (mcontext_t): Define structure contents rather than using struct
7004         sigcontext.
7005         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
7006         <bits/sigcontext.h>.  Include <bits/types.h>.
7007         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
7008         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
7009         (test-xfail-XPG42/ucontext.h/conform): Likewise.
7010         (test-xfail-UNIX98/signal.h/conform): Likewise.
7011         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
7012         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
7013         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
7014         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
7015         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7016         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7017         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7018         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7019         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7021 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7023         * malloc/dynarray_emplace_enlarge.c
7024         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
7025         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7026         * malloc/tst-dynarray.c (test_long_overflow): New function.
7027         (do_test): Call it.
7029 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7031         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
7032         (set_arena_corrupt): Remove definitions.
7033         (mtrim): Do not check for corrupt arena.
7034         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
7035         Likewise.
7037 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7039         [BZ #21754]
7040         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
7041         check_action.
7042         (ptmalloc_init): Do not set or use check_action.
7043         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
7044         call to malloc_printerr.  Remove return statement.
7045         (free_check): Likewise.  Remove arena unlock.
7046         (top_check): Update comment.  Adjust call to malloc_printerr.
7047         Remove heap repair code.
7048         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
7049         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
7050         (sysmalloc): Adjust call to malloc_printerr.
7051         (munmap_chunk, __libc_realloc): Likewise.  Remove return
7052         statement.
7053         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
7054         Remove errout label and corresponding gotos.
7055         (_int_free): Likewise.  Remove arena unlock.
7056         (do_set_mallopt_check): Do not set check_action.
7057         (malloc_printerr): Adjust parameter list.  Do not mark arena as
7058         corrupt.
7059         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
7060         comment.
7061         * manual/probes.texi (Memory Allocation Probes): Remove
7062         memory_mallopt_check_action.
7064 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
7066         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
7067         Use pointer to uint64_t instead of long int for sp.
7069 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7071         [BZ #21754]
7072         * malloc/malloc.c (malloc_printerr): Always terminate the process,
7073         without printing a backtrace.  Do not leak any information in the
7074         error message.
7075         * manual/memory.texi (Heap Consistency Checking): Update.
7076         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
7078 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7080         Do not scale NPTL tests with available number of CPUs.
7081         * nptl/tst-cond16.c (count): Set to constant value of 8.
7082         * nptl/tst-cond18.c (count): Likewise.
7084 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7086         [BZ #22035]
7087         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
7088         Define to take a second argument that is a macro that
7089         concatentates a suffix, not the suffix itself.
7090         (__CONCAT_d): New macro.
7091         (__CONCAT_f): Likewise.
7092         (__CONCAT_l): Likewise.
7094 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
7096         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
7097         by child.
7099 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7100             Aurelien Jarno  <aurelien@aurel32.net>
7101             Maciej W. Rozycki  <macro@imgtec.com>
7103         [BZ #21956]
7104         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
7105         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
7106         `mips16-syscall6' and `mips16-syscall7'.
7107         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
7108         (CFLAGS-mips16-syscall7.c): Remove.
7109         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
7110         Remove `__mips16_syscall5', `__mips16_syscall6' and
7111         `__mips16_syscall7'.
7112         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
7113         (__mips16_syscall0): Rename `__mips16_syscall_return' to
7114         `__mips_syscall_return'.
7115         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
7116         (__mips16_syscall1): Likewise.
7117         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
7118         (__mips16_syscall2): Likewise.
7119         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
7120         (__mips16_syscall3): Likewise.
7121         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
7122         (__mips16_syscall4): Likewise.
7123         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
7124         Remove.
7125         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
7126         Remove.
7127         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
7128         Remove.
7129         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
7130         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
7131         `__mips16_syscall5'.  Remove prototype.
7132         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
7133         `__mips16_syscall6'.  Remove prototype.
7134         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
7135         `__mips16_syscall7'.  Remove prototype.
7136         (__nomips16, __mips16_syscall_return): Move to...
7137         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
7138         (__nomips16, __mips_syscall_return): ... here.
7139         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
7140         `__mips16_syscall_return' to `__mips_syscall_return'.
7141         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
7142         `internal_syscall##nr'.
7143         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
7144         `internal_syscall##nr'.
7145         (FORCE_FRAME_POINTER): Remove.
7146         (__mips_syscall5): New prototype.
7147         (internal_syscall5): Rewrite to call `__mips_syscall5'.
7148         (__mips_syscall6): New prototype.
7149         (internal_syscall6): Rewrite to call `__mips_syscall6'.
7150         (__mips_syscall7): New prototype.
7151         (internal_syscall7): Rewrite to call `__mips_syscall7'.
7152         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
7153         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
7154         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
7155         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
7156         (sysdep_routines): Add libc-do-syscall.
7157         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
7158         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
7160 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7162         [BZ #21672]
7163         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
7164         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
7165         (advise_stack_range): New function.
7166         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
7167         stack non required to advise_stack_range at allocatestack.c
7169 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7171         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
7173 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7175         [BZ #22026]
7176         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
7177         __end_fct.  Mangle __end_fct after setting it to NULL.
7178         * iconv/Makefile (tests): Add tst-gconv-init-failure.
7179         (modules-names, modules-names-tests): Add
7180         tst-gconv-init-failure-mod.
7181         (gconv-modules): New target.
7182         (tst-gconv-init-failure-mod.so): Link against libsupport.
7183         (tst-gconv-init-failure): Depend on gconv-modules,
7184         tst-gconv-init-failure-mod.so.
7185         * iconv/tst-gconv-init-failure-mod.c: New file.
7186         * iconv/tst-gconv-init-failure.c: Likewise.
7187         * iconv/test-gconv-modules: Likewise.
7189 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7191         [BZ #22025]
7192         * iconv/gconv_db.c (free_derivation): Remove redundant
7193         parentheses.
7194         (gen_steps): Unconditionally mangle __btowc_fct after
7195         initialization.
7196         (increment_counter): Likewise.  Do not call init_fct for internal
7197         modules.
7199 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7201         [BZ #22028]
7202         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7203         (_MSUF_): Remove macro.
7204         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
7205         Likewise.
7206         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7207         (__REDIRFROM_X): New macro.
7208         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
7209         Likewise.
7210         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
7211         (__REDIRTO_X): Likewise.
7212         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
7213         arguments.
7214         (__MATH_REDIRCALL_2): Likewise.
7215         (__MATH_REDIRCALL_INTERNAL): Likewise.
7216         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7217         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
7218         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
7219         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7220         * math/test-finite-macros.c: New file.
7221         * math/Makefile (tests): Add test-finite-macros.
7222         (CFLAGS-test-finite-macros.c): New variable.
7224 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
7225             Jeff Law  <law@redhat.com>
7227         [BZ #22025]
7228         Mangle NULL pointers in iconv/gconv.
7229         * iconv/gconv_cache.c (find_module): Demangle init_fct before
7230         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
7231         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
7232         is non-NULL before demangling the end_fct.  Check for NULL
7233         end_fct after demangling.
7234         (__gconv_release_step): Demangle the end_fct before checking
7235         it for NULL.   Remove assert on __shlibc_handle != NULL.
7236         (gen_steps): Don't check btowc_fct for NULL before mangling.
7237         Demangle init_fct before checking for NULL.
7238         (increment_counter): Likewise.
7239         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
7240         end_fct for NULL before mangling.
7241         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
7242         for NULL.
7244 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
7246         [BZ #21971]
7247         * locale/iso-639.def: add Morisyen.
7249 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7251         [BZ #21930]
7252         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
7253         (iszero): New C++ implementation that does not use
7254         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
7255         signaling nans are enabled, since __builtin_types_compatible_p
7256         is a C-only feature.
7257         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
7258         defined, include ieee754_float128.h for access to the union and
7259         member ieee854_float128.ieee.
7260         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
7261         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
7262         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7263         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
7264         options of test-math-zero on powerpc64le.
7266 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
7268         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
7269         Change double to float.
7271 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
7273         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
7274         unconditional.
7275         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
7276         conditional code; define contents only for [LIBM_SVID_COMPAT].
7278 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7280         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
7281         (abi-lp64_be-options): Remove.
7282         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
7283         (abi-hard-options): Likewise.
7284         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
7285         (abi-o32_hard-options, abi-o32_soft_2008-options)
7286         (abi-o32_hard_2008-options, abi-n32_soft-options)
7287         (abi-n32_hard-options, abi-n32_soft_2008-options)
7288         (abi-n32_hard_2008-options, abi-n64_soft-options)
7289         (abi-n64_hard-options, abi-n64_soft_2008-options)
7290         (abi-n64_hard_2008-options): Likewise.
7291         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
7292         (abi-64-v1-options, abi-64-v2-options): Likewise.
7293         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
7294         (abi-64-options): Likewise.
7295         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
7296         (abi-64-options): Likewise.
7297         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
7298         (abi-64-options): Likewise.
7299         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
7300         (abi-64-options, abi-x32-options): Likewise.
7302 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7304         Store supported list of SYS_* system calls in the source tree.
7305         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7306         (bits/syscall.h): Generate from list file.
7307         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
7308         [$(subdir) = misc] (tests): Add tst-syscall-list.
7309         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
7310         [$(subdir) = misc] (tst-syscall-list-macros.list)
7311         [$(subdir) = misc] (tst-syscall-list-nr.list)
7312         (tst-syscall-list-sys.list): Helper targets for new
7313         tst-syscall-list test.
7314         [$(subdir) = misc] (tst-syscall-list.out): Run test script
7315         tst-syscall-list.sh.
7316         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
7317         target. Do not include bits/syscall.d.
7318         [$(subdir) = misc] (generated): Do not update.
7319         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
7320         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
7321         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
7322         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
7324 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
7326         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
7327         (tst-cxa_atexit, tst-on_exit): Likewise.
7328         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
7329         tst-cxa_atexit, and tst-on_exit.
7330         * stdlib/tst-atexit-common.c: New file.
7331         * stdlib/tst-atexit.c: New file.
7332         * stdlib/tst-at_quick_exit.c: New file.
7333         * stdlib/tst-cxa_atexit.c: New file.
7334         * stdlib/tst-on_exit.c: New file.
7336 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7338         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
7339         * mach/stack_chk_fail_local.c: New file.
7340         * hurd/stack_chk_fail_local.c: New file.
7341         * mach/Machrules ($(interface-library)-routines): Add
7342         stack_chk_fail_local.
7343         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
7344         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
7345         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
7346         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
7347         * hurd/Makefile (CFLAGS-hurdstartup.o,
7348         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
7350 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
7352         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
7353         (index_cpu_*, index_arch_*): Removed.
7355 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7357         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
7358         Use uint64_t instead of unsigned long.
7360 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
7362         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
7363         [__HAVE_DISTINCT_FLOAT128].
7365         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
7366         of <bits/math-finite.h>.
7367         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
7368         inclusion of <bits/math-finite.h>.
7369         * math/bits/math-finite.h (__REDIRTO_X): Do not define
7370         conditionally on [__MATH_DECLARING_LDOUBLE && defined
7371         __NO_LONG_DOUBLE_MATH].
7372         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
7373         (__MATH_REDIRCALL_2): Likewise.
7374         (__MATH_REDIRCALL_INTERNAL): Likewise.
7375         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7376         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
7377         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7379         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
7380         Remove file.
7381         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
7382         Likewise.
7383         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
7384         Likewise.
7385         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
7386         Likewise.
7387         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
7388         Likewise.
7389         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
7390         Likewise.
7391         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
7392         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
7393         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
7394         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
7395         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
7396         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
7397         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
7398         w_sqrtf_compat-ppc32.
7400 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7402         * math/math.h [defined __cplusplus] (issignaling): In the long
7403         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
7404         is not defined.  Call __issignaling, otherwise.
7406 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7408         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
7409         syscall definitions and replace __builtin_expect with __glibc_likely.
7410         * sysdeps/unix/syscall-template.S: Update comment about cancellable
7411         syscall.
7412          (SYSCALL_CANCELLABLE): Removedefinition
7413         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
7414         definition.
7415         (PSEUDO_END): Likewise.
7416         [IS_IN (libpthread)] (CENABLE): Likewise.
7417         [IS_IN (libpthread)] (CDISABLE): Likewise.
7418         [IS_IN (libc)] (CENABLE): Likewise.
7419         [IS_IN (libc)] (CENABLE): Likewise.
7420         [IS_IN (librt)] (CDISABLE): Likewise.
7421         [IS_IN (librt)] (CDISABLE): Likewise.
7422         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7423         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
7424         definition.
7425         (PSEUDO_END): Likewise.
7426         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
7427         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
7428         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7429         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7430         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7431         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7432         (CENABLE): Likewise.
7433         (CDISABLE): Likewise.
7434         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7435         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
7436         defintion.
7437         (PSEUDO_END): Likewise.
7438         [IS_IN (libpthread)] (CENABLE): Likewise.
7439         [IS_IN (libpthread)] (CDISABLE): Likewise.
7440         [IS_IN (libc)] (CENABLE): Likewise.
7441         [IS_IN (libc)] (CENABLE): Likewise.
7442         [IS_IN (librt)] (CDISABLE): Likewise.
7443         [IS_IN (librt)] (CDISABLE): Likewise.
7444         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7445         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
7446         definition.
7447         (PSEUDO_END): Likewise.
7448         [IS_IN (libpthread)] (CENABLE): Likewise.
7449         [IS_IN (libpthread)] (CDISABLE): Likewise.
7450         [IS_IN (libc)] (CENABLE): Likewise.
7451         [IS_IN (libc)] (CENABLE): Likewise.
7452         [IS_IN (librt)] (CDISABLE): Likewise.
7453         [IS_IN (librt)] (CDISABLE): Likewise.
7454         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7455         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
7456         definition.
7457         (PSEUDO_END): Likewise.
7458         [IS_IN (libpthread)] (CENABLE): Likewise.
7459         [IS_IN (libpthread)] (CDISABLE): Likewise.
7460         [IS_IN (libc)] (CENABLE): Likewise.
7461         [IS_IN (libc)] (CENABLE): Likewise.
7462         [IS_IN (librt)] (CDISABLE): Likewise.
7463         [IS_IN (librt)] (CDISABLE): Likewise.
7464         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7465         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
7466         definition.
7467         (PSEUDO_END): Likewise.
7468         [IS_IN (libpthread)] (CENABLE): Likewise.
7469         [IS_IN (libpthread)] (CDISABLE): Likewise.
7470         [IS_IN (libc)] (CENABLE): Likewise.
7471         [IS_IN (libc)] (CENABLE): Likewise.
7472         [IS_IN (librt)] (CDISABLE): Likewise.
7473         [IS_IN (librt)] (CDISABLE): Likewise.
7474         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7475         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
7476         definition.
7477         (PSEUDO_END): Likewise.
7478         [IS_IN (libpthread)] (CENABLE): Likewise.
7479         [IS_IN (libpthread)] (CDISABLE): Likewise.
7480         [IS_IN (libc)] (CENABLE): Likewise.
7481         [IS_IN (libc)] (CENABLE): Likewise.
7482         [IS_IN (librt)] (CDISABLE): Likewise.
7483         [IS_IN (librt)] (CDISABLE): Likewise.
7484         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7485         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
7486         definition.
7487         (PSEUDO_END): Likewise.
7488         [IS_IN (libpthread)] (CENABLE): Likewise.
7489         [IS_IN (libpthread)] (CDISABLE): Likewise.
7490         [IS_IN (libc)] (CENABLE): Likewise.
7491         [IS_IN (libc)] (CENABLE): Likewise.
7492         [IS_IN (librt)] (CDISABLE): Likewise.
7493         [IS_IN (librt)] (CDISABLE): Likewise.
7494         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7495         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
7496         Remove definition.
7497         (PSEUDO_END): Likewise.
7498         [IS_IN (libpthread)] (CENABLE): Likewise.
7499         [IS_IN (libpthread)] (CDISABLE): Likewise.
7500         [IS_IN (libc)] (CENABLE): Likewise.
7501         [IS_IN (libc)] (CENABLE): Likewise.
7502         [IS_IN (librt)] (CDISABLE): Likewise.
7503         [IS_IN (librt)] (CDISABLE): Likewise.
7504         (SINGLE_THREAD_P): Likewise.
7505         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
7506         definition.
7507         (PSEUDO_END): Likewise.
7508         [IS_IN (libpthread)] (CENABLE): Likewise.
7509         [IS_IN (libpthread)] (CDISABLE): Likewise.
7510         [IS_IN (libc)] (CENABLE): Likewise.
7511         [IS_IN (libc)] (CENABLE): Likewise.
7512         [IS_IN (librt)] (CDISABLE): Likewise.
7513         [IS_IN (librt)] (CDISABLE): Likewise.
7514         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7515         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
7516         definition.
7517         (PSEUDO_END): Likewise.
7518         [IS_IN (libpthread)] (CENABLE): Likewise.
7519         [IS_IN (libpthread)] (CDISABLE): Likewise.
7520         [IS_IN (libc)] (CENABLE): Likewise.
7521         [IS_IN (libc)] (CENABLE): Likewise.
7522         [IS_IN (librt)] (CDISABLE): Likewise.
7523         [IS_IN (librt)] (CDISABLE): Likewise.
7524         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7525         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
7526         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
7527         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
7528         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
7529         definition.
7530         (PSEUDO_END): Likewise.
7531         [IS_IN (libpthread)] (CENABLE): Likewise.
7532         [IS_IN (libpthread)] (CDISABLE): Likewise.
7533         [IS_IN (libc)] (CENABLE): Likewise.
7534         [IS_IN (libc)] (CENABLE): Likewise.
7535         [IS_IN (librt)] (CDISABLE): Likewise.
7536         [IS_IN (librt)] (CDISABLE): Likewise.
7537         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7538         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
7539         definition.
7540         (PSEUDO_END): Likewise.
7541         [IS_IN (libpthread)] (CENABLE): Likewise.
7542         [IS_IN (libpthread)] (CDISABLE): Likewise.
7543         [IS_IN (libc)] (CENABLE): Likewise.
7544         [IS_IN (libc)] (CENABLE): Likewise.
7545         [IS_IN (librt)] (CDISABLE): Likewise.
7546         [IS_IN (librt)] (CDISABLE): Likewise.
7547         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7548         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
7549         definition.
7550         (PSEUDO_END): Likewise.
7551         [IS_IN (libpthread)] (CENABLE): Likewise.
7552         [IS_IN (libpthread)] (CDISABLE): Likewise.
7553         [IS_IN (libc)] (CENABLE): Likewise.
7554         [IS_IN (libc)] (CENABLE): Likewise.
7555         [IS_IN (librt)] (CDISABLE): Likewise.
7556         [IS_IN (librt)] (CDISABLE): Likewise.
7557         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7558         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
7559         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
7560         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
7561         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
7562         definition.
7563         (PSEUDO_END): Likewise.
7564         [IS_IN (libpthread)] (CENABLE): Likewise.
7565         [IS_IN (libpthread)] (CDISABLE): Likewise.
7566         [IS_IN (libc)] (CENABLE): Likewise.
7567         [IS_IN (libc)] (CENABLE): Likewise.
7568         [IS_IN (librt)] (CDISABLE): Likewise.
7569         [IS_IN (librt)] (CDISABLE): Likewise.
7570         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7571         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
7572         definition.
7573         (PSEUDO_END): Likewise.
7574         [IS_IN (libpthread)] (CENABLE): Likewise.
7575         [IS_IN (libpthread)] (CDISABLE): Likewise.
7576         [IS_IN (libc)] (CENABLE): Likewise.
7577         [IS_IN (libc)] (CENABLE): Likewise.
7578         [IS_IN (librt)] (CDISABLE): Likewise.
7579         [IS_IN (librt)] (CDISABLE): Likewise.
7580         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7582 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7584         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
7586 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
7588         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7590 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
7592         [BZ #21982]
7593         * string/stratcliff.c (do_test): Declare size, nchars, inner,
7594         middle and outer with size_t instead of int.  Repleace %d and
7595         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
7596         "MAX (outer, nchars - 64)" to support unsigned outer and
7597         nchars.  Also exit loop when outer == 0.
7599 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7601         * include/fcntl.h (__fcntl_nocancel): Remove definition.
7602         * include/signal.h (__sigsuspend_nocancel): Likewise.
7603         * include/time.h (__nanosleep_nocancel): Likewise.
7604         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
7605         * login/utmp_file.c: Include non cancellable syscall header.
7606         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
7607         prototype.
7609 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
7611         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
7612         .byte sequences with AVX512F instructions.
7613         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
7614         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
7615         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
7616         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
7617         Likewise.
7618         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
7619         Likewise.
7621 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7622             Steve Ellcey  <sellcey@cavium.com>
7624         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
7625         Use PTR_REG macro in cmp instruction.
7627 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7629         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
7630         Change the return type of the ifunc resolver to match the return
7631         type of the target function.
7633 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7635         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
7636         (preadv64): Likewise.
7637         (pwrite64(: Likewise.
7638         (pwritev64): Likewise.
7640         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
7641         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
7642         (LOAD_ARGS_0): Likewise.
7643         (LOAD_ARGS_1): Likewise.
7644         (LOAD_ARGS_2): Likewise.
7645         (LOAD_ARGS_3): Likewise.
7646         (LOAD_ARGS_4): Likewise.
7647         (LOAD_ARGS_5): Likewise.
7648         (LOAD_ARGS_6): Likewise.
7649         (LOAD_REGS_0): Likewise.
7650         (LOAD_REGS_1): Likewise.
7651         (LOAD_REGS_2): Likewise.
7652         (LOAD_REGS_3): Likewise.
7653         (LOAD_REGS_4): Likewise.
7654         (LOAD_REGS_5): Likewise.
7655         (LOAD_REGS_6): Likewise.
7656         (ASM_ARGS_0): Likewise.
7657         (ASM_ARGS_1): Likewise.
7658         (ASM_ARGS_2): Likewise.
7659         (ASM_ARGS_3): Likewise.
7660         (ASM_ARGS_4): Likewise.
7661         (ASM_ARGS_5): Likewise.
7662         (ASM_ARGS_6): Likewise.
7663         (LOAD_ARGS_TYPES_1): Likewise.
7664         (LOAD_ARGS_TYPES_2): Likewise.
7665         (LOAD_ARGS_TYPES_3): Likewise.
7666         (LOAD_ARGS_TYPES_4): Likewise.
7667         (LOAD_ARGS_TYPES_5): Likewise.
7668         (LOAD_ARGS_TYPES_6): Likewise.
7669         (LOAD_REGS_TYPES_1): Likewise.
7670         (LOAD_REGS_TYPES_2): Likewise.
7671         (LOAD_REGS_TYPES_3): Likewise.
7672         (LOAD_REGS_TYPES_4): Likewise.
7673         (LOAD_REGS_TYPES_5): Likewise.
7674         (LOAD_REGS_TYPES_6): Likewise.
7675         (TYPEFY): New define.
7676         (ARGIFY): Likewise.
7677         (internal_syscall0): Likewise.
7678         (internal_syscall1): Likewise.
7679         (internal_syscall2): Likewise.
7680         (internal_syscall3): Likewise.
7681         (internal_syscall4): Likewise.
7682         (internal_syscall5): Likewise.
7683         (internal_syscall6): Likewise.
7684         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
7685         (INTERNAL_SYSCALL_NCS): Remove define.
7686         (internal_syscall1): Add define.
7688 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7690         * math/w_remainder_compat.c: Remove duplicate inclusion of
7691         math-svid-compat.h.
7692         * math/w_remainderf_compat.c: Likewise.
7693         * math/w_remainderl_compat.c: Likewise.
7695 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7697         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7699 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
7701         [BZ #21684]
7702         * math/tgmath.h (__floating_type): Simplify definitions.
7703         (__real_integer_type): New macro.
7704         (__complex_integer_type): Likewise.
7705         (__expr_is_real): Likewise.
7706         (__tgmath_real_type_sub): Update comment to describe handling of
7707         complex types.
7708         (__tgmath_complex_type_sub): New macro.
7709         (__tgmath_complex_type): Likewise.
7710         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7711         (__TGMATH_CF128): Use __expr_is_real.
7712         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
7713         __expr_is_real.
7714         (__TGMATH_BINARY_REAL_IMAG): Likewise.
7715         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
7716         * math/gen-tgmath-tests.py (Type.create_type): Create complex
7717         integer types.
7719 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7721         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
7722         macro.
7723         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
7724         alias.
7725         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
7726         Likewise.
7728         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
7729         nanosleep_not_cancel with __nanosleep_nocancel.
7730         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
7731         (__nanosleep_nocancel): New macro.
7732         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
7733         function.
7734         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
7735         macro.
7736         (__nanosleep_nocancel): New prototype.
7738         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
7739         pause_not_cancel with __pause_nocancel.
7740         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
7741         (__pause_nocancel): New macro.
7742         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
7743         macro.
7744         (__pause_nocancel): New prototype.
7745         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
7747 2017-08-22  Martin Sebor  <msebor@redhat.com>
7749         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
7750         to return a pointer to the same type as the target function.
7752 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
7754         [BZ #18822]
7755         [BZ #21986]
7756         * include/printf.h (__printf_fphex): Add attribute_hidden.
7757         (__guess_grouping): New prototype.
7758         * stdio-common/printf_fp.c (__guess_grouping): Removed.
7759         * stdio-common/reg-printf.c (__register_printf_specifier): Add
7760         libc_hidden_proto and libc_hidden_def.
7761         * stdlib/strfmon_l.c (__guess_grouping): Removed.
7762         (__vstrfmon_l): Remove the third argument passed to
7763         __guess_grouping.
7765 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7767         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
7768         definition for issignaling that does not rely on __MATH_TG,
7769         since __MATH_TG uses __builtin_types_compatible_p, which is only
7770         available in C mode.
7771         (CFLAGS-test-math-issignaling.cc): New variable.
7772         * math/Makefile [CXX] (tests): Add test-math-issignaling.
7773         * math/test-math-issignaling.cc: New test for C++ implementation
7774         of type-generic issignaling.
7775         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7776         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
7777         options of test-math-issignaling on powerpc64le.
7779 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
7781         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7782         building libc.a.
7783         (hidden_proto): Likewise.
7784         (hidden_tls_proto): Likewise.
7785         (__hidden_proto): Likewise.
7787 2017-08-22  Florian Weimer  <fweimer@redhat.com>
7789         math: Statically link tests of internal functionality.
7790         * math/Makefile (tests): Remove atest-exp, atest-sincos,
7791         atest-exp2.
7792         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
7793         (gmp-objs): Remove assignment.
7794         (atest-exp, atest-sincos, atest-exp2): Remove targets.
7796 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
7798         [BZ #21987]
7799         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
7800         and copy to ...
7801         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
7802         ... here.
7803         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
7804         ... and here.
7806         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
7807         variable definitions above inclusion of ../Rules.
7809 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
7811         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
7812         case calling __builtin_unreachable.
7814 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7816         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
7817         __waitpid_nocancel.
7818         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
7819         (__waitpid_nocancel): New macro.
7820         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
7821         macro.
7822         (__waitpid_nocancel): Replace macro with a function.
7823         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
7824         function.
7826         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
7827         __fcntl_nocancel.
7828         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
7829         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
7831         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
7832         __writev_nocancel_nostatus.
7833         (write_call_graph): Likewise.
7834         (write_bb_counts): Likewise.
7835         * resolv/herror.c (herror): Likewise.
7836         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
7837         macro.
7838         (__writev_nocancel_nostatus): New macro.
7839         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
7840         Remove macro.
7841         (__writev_nocancel_nostatus): New function.
7843 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
7845         Revert:
7846         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7848         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7849         building libc.a.
7850         (hidden_proto): Likewise.
7851         (hidden_tls_proto): Likewise.
7852         (__hidden_proto): Likewise.
7854         [BZ #21973]
7855         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
7856         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
7857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
7858         Likewise.
7859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
7860         Likewise.
7861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
7862         Likewise.
7863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
7864         Likewise.
7865         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
7866         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
7867         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
7868         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
7869         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
7870         GLIBC_2.0 sqrtl symbol.
7872         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
7873         [__USE_MISC] (_LIB_VERSION): Likewise.
7874         [__USE_MISC] (struct exception): Likewise.
7875         [__USE_MISC] (matherr): Likewise.
7876         [__USE_MISC] (DOMAIN): Likewise.
7877         [__USE_MISC] (SING): Likewise.
7878         [__USE_MISC] (OVERFLOW): Likewise.
7879         [__USE_MISC] (UNDERFLOW): Likewise.
7880         [__USE_MISC] (TLOSS): Likewise.
7881         [__USE_MISC] (PLOSS): Likewise.
7882         [__USE_MISC] (HUGE): Likewise.
7883         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
7884         * math/math-svid-compat.h: New file.
7885         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
7886         and matherrl.
7887         * include/math.h [!_ISOMAC] (__matherr): Remove.
7888         * manual/arith.texi (FP Exceptions): Do not document matherr.
7889         * math/Makefile (tests): Change test-matherr to test-matherr-3.
7890         (tests-internal): New variable.
7891         (install-lib): Do not add libieee.a.
7892         (non-lib.a): Likewise.
7893         (extra-objs): Do not add libieee.a and ieee-math.o.
7894         (CPPFLAGS-s_lib_version.c): Remove variable.
7895         ($(objpfx)libieee.a): Remove rule.
7896         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
7897         * math/ieee-math.c: Remove.
7898         * math/libm-test-support.c (matherr): Remove.
7899         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
7900         and license notices.  Include <math-svid-compat.h> and
7901         <shlib-compat.h>.
7902         (matherr): Undefine as macro.  Use compat_symbol_reference.
7903         (_LIB_VERSION): Likewise.
7904         * math/test-matherr-2.c: New file.
7905         * math/test-matherr-3.c: Likewise.
7906         * sysdeps/generic/math_private.h (__kernel_standard): Remove
7907         declaration.
7908         (__kernel_standard_f): Likewise.
7909         (__kernel_standard_l): Likewise.
7910         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
7911         <math_private.h>.  Include <math-svid-compat.h>.
7912         (_LIB_VERSION): Undefine as macro.
7913         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
7914         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
7915         [LIBM_SVID_COMPAT], use compat_symbol.
7916         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
7917         <math_private.h>.  Include <math-svid-compat.h>.
7918         (matherr): Undefine as macro.
7919         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
7920         compat_symbol.
7921         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
7922         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
7923         compat_symbol_reference.
7924         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
7925         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
7926         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
7927         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
7928         (MATHERR_D): Remove declaration.
7929         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
7930         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
7931         [LIBM_BUILD] (pmatherrf): Likewise.
7932         [LIBM_BUILD] (pmatherr): Likewise.
7933         [LIBM_BUILD] (pmatherrl): Likewise.
7934         (DOMAIN): Likewise.
7935         (SING): Likewise.
7936         (OVERFLOW): Likewise.
7937         (UNDERFLOW): Likewise.
7938         (TLOSS): Likewise.
7939         (PLOSS): Likewise.
7940         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
7941         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
7942         compat_symbol.
7943         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
7944         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
7945         compat_symbol.
7946         * math/lgamma-compat.h: Include <math-svid-compat.h>.
7947         * math/w_acos_compat.c: Likewise.
7948         * math/w_acosf_compat.c: Likewise.
7949         * math/w_acosh_compat.c: Likewise.
7950         * math/w_acoshf_compat.c: Likewise.
7951         * math/w_acoshl_compat.c: Likewise.
7952         * math/w_acosl_compat.c: Likewise.
7953         * math/w_asin_compat.c: Likewise.
7954         * math/w_asinf_compat.c: Likewise.
7955         * math/w_asinl_compat.c: Likewise.
7956         * math/w_atan2_compat.c: Likewise.
7957         * math/w_atan2f_compat.c: Likewise.
7958         * math/w_atan2l_compat.c: Likewise.
7959         * math/w_atanh_compat.c: Likewise.
7960         * math/w_atanhf_compat.c: Likewise.
7961         * math/w_atanhl_compat.c: Likewise.
7962         * math/w_cosh_compat.c: Likewise.
7963         * math/w_coshf_compat.c: Likewise.
7964         * math/w_coshl_compat.c: Likewise.
7965         * math/w_exp10_compat.c: Likewise.
7966         * math/w_exp10f_compat.c: Likewise.
7967         * math/w_exp10l_compat.c: Likewise.
7968         * math/w_exp2_compat.c: Likewise.
7969         * math/w_exp2f_compat.c: Likewise.
7970         * math/w_exp2l_compat.c: Likewise.
7971         * math/w_fmod_compat.c: Likewise.
7972         * math/w_fmodf_compat.c: Likewise.
7973         * math/w_fmodl_compat.c: Likewise.
7974         * math/w_hypot_compat.c: Likewise.
7975         * math/w_hypotf_compat.c: Likewise.
7976         * math/w_hypotl_compat.c: Likewise.
7977         * math/w_j0_compat.c: Likewise.
7978         * math/w_j0f_compat.c: Likewise.
7979         * math/w_j0l_compat.c: Likewise.
7980         * math/w_j1_compat.c: Likewise.
7981         * math/w_j1f_compat.c: Likewise.
7982         * math/w_j1l_compat.c: Likewise.
7983         * math/w_jn_compat.c: Likewise.
7984         * math/w_jnf_compat.c: Likewise.
7985         * math/w_jnl_compat.c: Likewise.
7986         * math/w_lgamma_main.c: Likewise.
7987         * math/w_lgamma_r_compat.c: Likewise.
7988         * math/w_lgammaf_main.c: Likewise.
7989         * math/w_lgammaf_r_compat.c: Likewise.
7990         * math/w_lgammal_main.c: Likewise.
7991         * math/w_lgammal_r_compat.c: Likewise.
7992         * math/w_log10_compat.c: Likewise.
7993         * math/w_log10f_compat.c: Likewise.
7994         * math/w_log10l_compat.c: Likewise.
7995         * math/w_log2_compat.c: Likewise.
7996         * math/w_log2f_compat.c: Likewise.
7997         * math/w_log2l_compat.c: Likewise.
7998         * math/w_log_compat.c: Likewise.
7999         * math/w_logf_compat.c: Likewise.
8000         * math/w_logl_compat.c: Likewise.
8001         * math/w_pow_compat.c: Likewise.
8002         * math/w_powf_compat.c: Likewise.
8003         * math/w_powl_compat.c: Likewise.
8004         * math/w_remainder_compat.c: Likewise.
8005         * math/w_remainderf_compat.c: Likewise.
8006         * math/w_remainderl_compat.c: Likewise.
8007         * math/w_scalb_compat.c: Likewise.
8008         * math/w_scalbf_compat.c: Likewise.
8009         * math/w_scalbl_compat.c: Likewise.
8010         * math/w_sinh_compat.c: Likewise.
8011         * math/w_sinhf_compat.c: Likewise.
8012         * math/w_sinhl_compat.c: Likewise.
8013         * math/w_sqrt_compat.c: Likewise.
8014         * math/w_sqrtf_compat.c: Likewise.
8015         * math/w_sqrtl_compat.c: Likewise.
8016         * math/w_tgamma_compat.c: Likewise.
8017         * math/w_tgammaf_compat.c: Likewise.
8018         * math/w_tgammal_compat.c: Likewise.
8019         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
8020         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
8021         * sysdeps/ieee754/k_standard.c: Likewise.
8022         * sysdeps/ieee754/k_standardf.c: Likewise.
8023         * sysdeps/ieee754/k_standardl.c: Likewise.
8024         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
8025         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
8026         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
8027         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8028         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8029         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8030         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8031         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8032         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8034         Likewise.
8035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8036         Likewise.
8037         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
8038         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8039         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8040         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8042 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8044         [BZ #21864]
8045         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
8046         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
8047         Move before inclusion of ../Rules.
8049 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8051         [BZ #21972]
8052         * assert/assert.h (assert): Use static_cast (bool) for C++.
8053         Use the ternary operator in the warning branch for GNU C.
8054         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
8055         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
8056         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
8057         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
8058         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
8060 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8062         [BZ #18822]
8063         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8064         (__syscall_clock_gettime): Add attribute_hidden.
8065         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
8066         (__start_context): Likewise.
8068 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8070         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8071         building libc.a.
8072         (hidden_proto): Likewise.
8073         (hidden_tls_proto): Likewise.
8074         (__hidden_proto): Likewise.
8076 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8078         * include/libc-symbols.h (attribute_hidden): Enable hidden
8079         visibility in libc.a compiled with PIE.
8081 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8083         [BZ #18822]
8084         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
8085         Add attribute_hidden.
8087 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8089         [BZ #21864]
8090         * Makerules (all-nonlib): Add $(others-extras).
8091         * catgets/Makefile (others-extras): New.
8092         * elf/Makefile (others-extras): Likewise.
8093         * nss/Makefile (others-extras): Likewise.
8095 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8097         [BZ #18822]
8098         * csu/libc-start.c (__libc_multiple_libcs): Removed.
8099         * elf/dl-open.c: Include <libc-internal.h>.
8100         (__libc_multiple_libcs): Removed.
8101         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
8102         <hp-timing.h>.
8103         * include/libc-internal.h (__libc_multiple_libcs): New.
8104         * misc/sbrk.c: Include <libc-internal.h>.
8105         (__libc_multiple_libcs): Removed.
8107 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8109         [BZ #18822]
8110         * grp/initgroups.c (__nss_group_database): Removed.
8111         (__nss_initgroups_database): Likewise.
8112         * nscd/gai.c (__nss_hosts_database): Likewise.
8113         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
8114         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
8115         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
8116         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
8117         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
8118         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
8119         attribute_hidden.
8120         * nss/nsswitch.c (__nss_database_custom): Define only if
8121         USE_NSCD is defined.
8122         (__nss_configure_lookup): Use __nss_database_custom only if
8123         USE_NSCD is defined.
8124         * nss/nsswitch.h (__nss_database_custom): Declare only if
8125         USE_NSCD is defined.  Add attribute_hidden.
8126         (__nss_setent): Add attribute_hidden.
8127         (__nss_endent): Likewise.
8128         (__nss_getent_r): Likewise.
8129         (__nss_getent): Likewise.
8130         (DEFINE_DATABASE): Declare __nss_##arg##_database.
8132 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8134         [BZ #18822]
8135         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
8136         libc_hidden_proto and libc_hidden_def.
8138 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8140         [BZ #18822]
8141         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
8142         Add libc_hidden_proto.
8143         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
8144         Add libc_hidden_def.
8146 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8148         [BZ #21974]
8149         * gmon/Makefile (routines): Remove bb_init_func and
8150         bb_exit_func.
8151         (elide-routines.os): Removed.
8152         * gmon/bb_exit_func.c: Likewise.
8153         * gmon/bb_init_func.c: Likewise.
8154         * include/sys/gmon.h (__bb): Likewise.
8155         (__bb_init_func): Likewise.
8156         (__bb_exit_func): Likewise.
8157         * sysdeps/alpha/bb_init_func.S: Likewise.
8159 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8161         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
8162         * include/setjmp.h (____longjmp_chk): Here.  Add
8163         attribute_hidden.
8165 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8167         [BZ #18822]
8168         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
8169         attribute_hidden.
8170         (__strspn_sse2): Likewise.
8172 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8174         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
8175         (close_not_cancel_no_status): Likewise.
8176         (__close_nocancel): New macro.
8177         (__close_nocancel_nostatus): Likewise.
8178         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
8179         macro.
8180         (close_not_cancel): Likewise.
8181         (close_not_cancel_no_status): Likewise.
8182         (__close_nocancel): New prototype.
8183         (__close_nocancel_nostatus): New function.
8184         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
8185         * catgets/open_catalog.c (__open_catalog): Replace
8186         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
8187         * gmon/gmon.c (write_gmon): Likewise.
8188         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8189         * intl/loadmsgcat.c (close): Likewise.
8190         * io/ftw.c (open_dir_stream): Likewise.
8191         (ftw_startup): Likewise.
8192         * libio/fileops.c (_IO_file_open): Likewise.
8193         (_IO_file_close_mmap): Likewise.
8194         (_IO_file_close): Likewise.
8195         * libio/iopopen.c (_IO_dup2): Likewise.
8196         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8197         * locale/loadlocale.c (_nl_load_locale): Likewise.
8198         * login/utmp_file.c (pututline_file): Likewise.
8199         (endutent_file): Likewise.
8200         * misc/daemon.c (daemon): Likewise.
8201         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8202         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8203         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8204         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8205         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8206         * nscd/nscd_helper.c (open_socket): Likewise.
8207         (__nscd_open_socket): Likewise.
8208         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8209         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
8210         (__nscd_innetgr): Likewise.
8211         * nss/nss_db/db-open.c (internal_setent): Likewise.
8212         * resolv/res-close.c (__res_iclose): Likewise.
8213         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
8214         * sysdeps/posix/closedir.c (__closedir): Likewise.
8215         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
8216         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8217         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8218         (opendir_tail): Likewise.
8219         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8220         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
8221         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8222         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8223         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8224         (gethostid): Likewise.
8225         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8226         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8227         Likewise.
8228         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8229         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
8230         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8231         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8232         Likewise.
8233         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
8234         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
8235         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8236         Likewise.
8237         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
8238         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8239         Likewise.
8240         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8241         Likewise.
8242         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8243         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8244         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8245         __close_nocancel.
8247         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
8248         (openat_not_cancel_3): Likewise.
8249         (openat64_not_cancel_3): Likewise).
8250         (openat_not_cancel_3): Likewise).
8251         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
8252         macro.
8253         (openat_not_cancel_3): Likewise.
8254         (openat64_not_cancel): Likewise.
8255         (openat64_not_cancel_3): Likewise.
8256         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
8257         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
8258         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
8259         __open{64}_nocancel.
8260         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8261         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8262         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8264 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8266         [BZ #18822]
8267         * include/argz.h (__argz_create_sep): New function prototype.
8268         (__argz_append): Likewise.
8269         (__argz_add): Likewise.
8270         (__argz_add_sep): Likewise.
8271         (__argz_delete): Likewise.
8272         (__argz_insert): Likewise.
8273         (__argz_replace): Likewise.
8274         * string/argz.h (__argz_create_sep): Removed.
8275         (__argz_append): Likewise.
8276         (__argz_add): Likewise.
8277         (__argz_add_sep): Likewise.
8278         (__argz_delete): Likewise.
8279         (__argz_insert): Likewise.
8280         (__argz_replace): Likewise.
8282 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8284         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
8285         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
8286         (GNU_PROPERTY_STACK_SIZE): Likewie.
8287         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
8288         (GNU_PROPERTY_LOPROC): Likewise.
8289         (GNU_PROPERTY_HIPROC): Likewise.
8290         (GNU_PROPERTY_LOUSER): Likewise.
8291         (GNU_PROPERTY_HIUSER): Likewise.
8292         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
8293         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
8294         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
8295         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
8296         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
8297         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
8298         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
8299         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
8300         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
8301         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
8302         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
8303         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
8304         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
8305         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
8306         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
8307         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
8308         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
8309         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
8310         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
8311         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
8312         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
8313         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
8314         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
8316 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8318         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
8319         in C++ mode.
8321 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8323         [BZ #21930]
8324         * math/math.h (isinf): Check if in C or C++ mode before using
8325         __builtin_types_compatible_p, since this is a C mode feature.
8327 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8329         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
8330         (__write_nocancel): New macro.
8331         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
8332         Rewrite as a function prototype.
8333         (write_not_cancel): Remove macro.
8334         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
8335         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
8336         (write_gmon): Likewise.
8337         * libio/fileops.c (_IO_new_file_write): Likewise.
8338         * login/utmp_file.c (pututline_file): Likewise.
8339         (updwtmp_file): Likewise.
8340         * stdio-common/psiginfo.c (psiginfo): Likewise.
8341         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8342         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8343         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8344         Likewise.
8345         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8346         Likewise.
8348         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
8349         (__read_nocancel): New macro.
8350         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8351         __read_nocancel.
8352         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
8353         macro.
8354         (__read_nocancel): New prototype.
8355         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
8356         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
8357         with __read_nocancel.
8358         * intl/loadmsgcat.c (read): Likewise.
8359         * libio/fileops.c (_IO_file_read): Likewise.
8360         * locale/loadlocale.c (_nl_load_locale): Likewise.
8361         * login/utmp_file.c (getutent_r_file): Likewise.
8362         (internal_getut_r): Likewise.
8363         (getutline_r_file): Likewise.
8364         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8365         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
8366         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8367         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8368         Likewise.
8369         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
8370         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8371         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8372         Likewise.
8373         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8374         Likewise.
8375         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8376         Likewise.
8377         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8378         Likewise.
8379         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8381 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8383         [BZ #21966]
8384         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
8385         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
8386         usable.
8388 2017-08-17  DJ Delorie  <dj@redhat.com>
8390         * bug17079.c: Update to new test harness.
8391         * test-digits-dots.c: Likewise.
8392         * test-netdb.c: Likewise.
8393         * tst-field.c: Likewise.
8394         * tst-nss-getpwent.c: Likewise.
8395         * tst-nss-static.c: Likewise.
8396         * tst-nss-test1.c: Likewise.
8397         * tst-nss-test2.c: Likewise.
8398         * tst-nss-test3.c: Likewise.
8399         * tst-nss-test4.c: Likewise.
8400         * tst-nss-test5.c: Likewise.
8402 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8404         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
8405         (open_not_cancel_2): Likewise.
8406         (open_nocancel): New macro.
8407         (open64_nocancel): Likewise.
8408         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
8409         (open_not_cancel_2): Likewise.
8410         (__open_nocancel): New prototype.
8411         (__open64_nocancel): Likewise.
8412         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8413         __open_nocancel.
8414         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
8415         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
8416         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
8417         with __open_nocancel.
8418         * csu/check_fds.c (check_one_fd): Likewise.
8419         * gmon/gmon.c (write_gmon): Likewise.
8420         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
8421         * intl/loadmsgcat.c (open): Likewise.
8422         * libio/fileops.c (_IO_file_open): Likewise.
8423         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8424         * locale/loadlocale.c (_nl_load_locale): Likewise.
8425         * login/utmp_file.c (setutent_file): Likewise.
8426         * misc/daemon.c (daemon): Likewise.
8427         * nss/nss_db/db-open.c (internal_setent): Likewise.
8428         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8429         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
8430         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8431         (__opendir): Likewise.
8432         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8433         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8434         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8435         (gethostid): Likewise.
8436         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8437         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8438         Likewise.
8439         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8440         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
8441         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8442         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8443         Likewise.
8444         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8445         Likewise.
8446         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8447         Likewise.
8448         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
8449         Likewise.
8450         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8451         Likewise.
8452         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8453         Likewise.
8454         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8455         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8457 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
8459         * benchtests/bench-skeleton.c (main): Add support for
8460         latency benchmarking.
8461         * benchtests/scripts/bench.py: Add support for latency benchmarking.
8463 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
8465         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
8466         the startup object.
8468 2017-08-17  Florian Weimer  <fweimer@redhat.com>
8470         * include/sys/socket.h (__opensock): Remove internal_function.
8471         * socket/opensock.c (__opensock): Likewise.
8472         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
8474 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
8476         [BZ #21944]
8477         * signal/bits/types/__sigval_t.h: New file.
8478         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
8479         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
8480         and define sigval_t using __sigval_t.
8481         * include/bits/types/__sigval_t.h: New file.
8482         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
8483         instead of <bits/types/__sigval_t.h>.
8484         (struct sigevent): Use __sigval_t instead of sigval_t.
8485         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
8486         instead of <bits/types/__sigval_t.h>.
8487         (siginfo_t): Use __sigval_t instead of sigval_t.
8488         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
8489         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
8490         (struct sigevent): Use __sigval_t instead of sigval_t.
8491         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
8492         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
8493         (siginfo_t): Use __sigval_t instead of sigval_t.
8494         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
8496 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8498         * NEWS: Remove "[Add new features here]" for 2.27.
8500 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
8502         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
8503         libc.so.
8505 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8507         * NEWS: Mention x86-64 FMA optimization.
8509 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8511         [BZ #21912]
8512         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8513         Add e_expf-fma.
8514         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
8515         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
8516         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
8518 2017-08-16  Andreas Schwab  <schwab@suse.de>
8520         [BZ #16750]
8521         CVE-2009-5064
8522         * elf/ldd.bash.in: Never run file directly.
8524 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
8526         [BZ #21955]
8527         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
8528         (L(SP_INF_0)): Likewise.
8530 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8532         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
8533         run-built-tests.
8535 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8537         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
8538         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
8539         BROKEN_THREAD_SIGNALS code.
8540         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
8541         request_list): Remove caller_pid member used for
8542         BROKEN_THREAD_SIGNALS.
8543         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
8544         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
8545         Remove BROKEN_THREAD_SIGNALS support.
8546         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8547         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
8549 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8551         * gmon/Makefile (tests): Add tst-gmon.
8552         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
8553         Set.
8554         (tests-special): Add tst-gmon-prof.out.
8555         (tst-gmon.out): Depend on clean-tst-gmon-data.
8556         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
8557         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
8558         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
8559         startup object.
8560         * aclocal.m4 (GPROF): Set and substitute.
8561         * config.amke.in (GPROF): Set.
8562         * configure: Regenerate.
8564 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
8566         * elf/elf.h A (NT_PPC_TAR): New macro.
8567         (NT_PPC_PPR): Likewise.
8568         (NT_PPC_DSCR): Likewise.
8569         (NT_PPC_EBB): Likewise.
8570         (NT_PPC_PMU): Likewise.
8571         (NT_PPC_TM_CGPR): Likewise.
8572         (NT_PPC_TM_CFPR): Likewise.
8573         (NT_PPC_TM_CVMX): Likewise.
8574         (NT_PPC_TM_CVSX): Likewise.
8575         (NT_PPC_TM_SPR): Likewise.
8576         (NT_PPC_TM_CTAR): Likewise.
8577         (NT_PPC_TM_CPPR): Likewise.
8578         (NT_PPC_TM_CDSCR): Likewise.
8580 2017-08-15  Florian Weimer  <fweimer@redhat.com>
8582         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
8583         regparm (2) instead of internal_function.
8584         (_MCOUNT_DECL): Adjust.
8586 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
8588         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
8589         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
8591 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
8593         * conform/data/sys/wait.h-data (si_value): Do not expect for
8594         XPG42.
8596 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8598         [BZ #21962]
8599         NSS: Create stubs for accidentally exported lookup functions.
8600         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
8601         Remove declaration.
8602         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8603         (ether_hostton): Call __nss_ethers_lookup2 instead.
8604         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
8605         (ether_ntohost): Call __nss_ethers_lookup2 instead.
8606         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
8607         (setup): Call __nss_netgroup_lookup2 instead.
8608         * nss/Makefile (routines): Add compat-lookup.
8609         * nss/Versions (GLIBC_2.27): Add symbol version.
8610         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
8611         (DB_COMPAT_FCT): Remove.
8612         * nss/compat-lookup.c: New file.
8613         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
8614         from databases.def.
8615         * nss/service-lookup.c (NO_COMPAT): Remove definition.
8616         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
8617         (netname2user): Call __nss_publickey_lookup2 instead.
8618         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
8619         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
8620         instead.
8622 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8623             Sergei Trofimovich  <slyfox@inbox.ru>
8625         [BZ #21908]
8626         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
8627         Rename to MMAP2_PAGE_UNIT.
8628         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
8629         __OFF_T_MATCHES_OFF64_T is not defined.
8630         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
8631         uint64_t.
8632         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
8633         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
8635 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8637         i386: Do not set internal_function.
8638         * config.h.in (USE_REGPARMS, internal_function): Remove.
8639         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
8640         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
8642 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8644         * elf/dl-init.c (_dl_init): Remove internal_function.
8645         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
8646         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
8648 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8650         * elf/rtld.c (_dl_start): Remove internal_function.
8651         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
8652         _dl_start.
8654 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8656         * elf/dl-fini.c (_dl_fini): Remove internal_function
8657         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
8659 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
8661         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
8662         (bit_cpu_SHSTK): Likewise.
8663         (index_cpu_IBT): Likewise.
8664         (index_cpu_SHSTK): Likewise.
8665         (reg_IBT): Likewise.
8666         (reg_SHSTK): Likewise.
8667         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
8668         Handle index_cpu_IBT and index_cpu_SHSTK.
8670 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
8672         [BZ #19982]
8673         * po/fr.po: Fix spelling mistake.
8675 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8677         * elf/dl-addr.c (_dl_addr): Remove internal_function.
8678         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
8679         (_dl_catch_error, _dl_receive_error): Likewise.
8680         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
8681         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
8682         (_dl_deallocate_tls): Likewise.
8683         * include/dlfcn.h (_dl_addr): Likewise.
8684         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
8685         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
8686         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
8687         Likewise.
8689 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8691         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
8692         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
8693         internal_function.
8694         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
8696 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8698         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
8699         internal_function.
8700         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
8701         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
8702         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
8703         internal_function from _dl_make_stack_executable_hook member.
8704         (_dl_make_stack_executable): Remove internal_function.
8705         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
8706         Likewise.
8707         * sysdeps/unix/sysv/linux/dl-execstack.c
8708         (_dl_make_stack_executable): Likewise.
8710 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8712         * sysdeps/unix/sysv/linux/netlinkaccess.h
8713         (__netlink_assert_response): Remove internal_function.
8714         * sysdeps/unix/sysv/linux/netlink_assert_response.c
8715         (__netlink_assert_response): Likewise.
8717 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8719         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
8720         internal_function.
8721         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
8723 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8725         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
8726         internal_function.
8727         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
8728         * inet/netgroup.h (__internal_setnetgrent)
8729         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8730         * inet/getnetgrent_r.c (__internal_setnetgrent)
8731         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8732         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
8733         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
8734         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
8735         * nss/nsswitch.h (db_lookup_function): Likewise.
8737 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8739         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
8740         Remove internal_function.
8741         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
8742         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
8743         message argument on the stack.
8744         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
8745         Likeweise.
8747 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
8749         Adapt test case data to the changes in the thousands
8750         separators.
8752         [BZ #20756]
8753         * localedata/tst-langinfo.sh: Adapt test case data.
8754         * stdlib/tst-strfmon_l.c: Likewise.
8755         * stdlib/tst-strtod4.c: Likewise.
8756         * stdlib/tst-strtod5i.c: Likewise.
8758 2017-08-11  Florian Weimer  <fweimer@redhat.com>
8760         [BZ #21242]
8761         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
8762         Suppress pedantic warning resulting from statement expression.
8763         (__ASSERT_FUNCTION): Add missing __extension__.
8765 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8767         * benchtests/bench-memmove-large.c: Print output in JSON
8768         format.
8769         * benchtests/bench-memmove.c: Likewise.
8771         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
8772         * benchtests/bench-memchr.c (do_one_test): Likewise.
8773         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
8774         * benchtests/bench-memcpy.c (do_one_test): Likewise.
8775         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
8776         * benchtests/bench-memmove.c (do_one_test): Likewise.
8777         * benchtests/bench-memset-large.c (do_one_test): Likewise.
8778         * benchtests/bench-memset.c (do_one_test): Likewise.
8779         * benchtests/bench-string.h (test_init): Remove memsets.
8781 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
8783         * manual/lang.texi
8784         (Computing the Width of an Integer Data Type): Rename section to
8785         "Width of an Integer Type".  Remove inaccurate statement regarding
8786         lack of C language facilities for determining width of integer
8787         types, and reorder content to improve flow and context of
8788         discussion.
8790 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
8792         * lang.texi (va_copy): Change standard from ISO to C99.
8793         (__va_copy): Add standard and header annotation.
8794         Update description for clarity of origins and current use.
8796 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8798         [BZ #21941]
8799         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
8800         xssqrtqp requires operands to be in Vector Registers
8801         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
8802         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
8803         (__ieee754_sqrtf128): Likewise.
8805 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
8807         * sysdeps/aarch64/memcmp.S (memcmp):
8808         Rewrite of optimized memcmp.
8810 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8812         Introduce ld.so exceptions.
8813         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
8814         (_dl_exception_create, _dl_exception_create_format)
8815         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
8816         (_dl_catch_exception): Declare.
8817         (_dl_catch_error): Update comment.
8818         * elf/dl-error-skeleton.c (struct catch): Replace objname,
8819         errstring, malloced members with exception member.
8820         (_dl_out_of_memory): Remove.
8821         (fatal_error): New function, extracted from _dl_signal_error.
8822         (_dl_signal_exception, _dl_signal_cexception): New functions.
8823         (_dl_signal_error): Call _dl_exception_create to allocate an
8824         exception object.
8825         (_dl_catch_exception): New function, based on _dl_catch_error.
8826         (_dl_catch_error): Implement using _dl_catch_exception.
8827         * elf/dl-exception.c: New file.
8828         * elf/Makefile (dl-routines): Add dl-exception.
8829         (elide-routines.os): Likewise.
8830         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
8831         _dl_exception_create_format, _dl_exception_free.
8832         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
8833         _dl_signal_exception.
8834         * elf/dl-lookup.c (make_string): Remove.
8835         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
8836         _dl_signal_cexception, _dl_exception_free.
8837         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
8838         _dl_signal_exception.
8839         * elf/dl-sym.c (do_sym): Likewise.
8840         * elf/dl-version.c (make_string): Remove.
8841         (match_symbol): Use _dl_exception_create_format,
8842         _dl_signal_cexception, _dl_exception_free.
8843         (_dl_check_map_versions): Likewise.
8844         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
8845         _dl_catch_exception.
8846         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8847         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8848         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8849         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8850         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8851         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8852         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8853         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
8854         Likewise.
8855         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8857         (ld.so): Likewise.
8858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8859         (ld.so): Likewise.
8860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8861         Likewise.
8862         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8863         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8864         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
8865         Likewise.
8866         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
8867         Likewise.
8868         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8870 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8872         * inet/net-internal.h (__inet6_scopeid_pton): Remove
8873         attribute_hidden, internal_function.
8874         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
8875         internal_function.
8877 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8879         * malloc/malloc.c (get_max_fast): Reimplement as an inline
8880         function which calls __builtin_unreachable.
8882 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
8884         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
8885         Indian monetary formatting
8886         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
8887         test cases.
8889 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
8891         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
8892         Fix typo in comment.
8894         [BZ #21928]
8895         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
8896         PTRACE_SEIZE_DEVEL): Remove.
8897         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
8898         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8899         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8900         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8901         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8903 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
8905         * posix/bits/types.h (__qaddr_t): Remove.
8907         [BZ #21457]
8908         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
8909         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8910         __glibc_reserved1.
8911         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
8912         (ucontext_t): Use __ctx with uc_flags.
8913         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
8914         (__ctxt): Likewise.
8915         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8916         __glibc_reserved1.
8917         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
8918         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8919         __glibc_reserved1.
8920         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
8921         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8922         __glibc_reserved1.
8923         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
8924         macro.
8925         (ucontext_t): Use __ctx with uc_flags.
8926         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
8927         (ucontext_t): Use __ctx with uc_flags.
8928         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
8929         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
8930         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
8931         (ucontext_t): Use __ctx with uc_flags.
8932         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
8933         undefine further down.
8934         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8935         __glibc_reserved1.
8936         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
8937         undefine further down.
8938         (ucontext_t): Use __ctx with uc_flags.
8939         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
8940         undefine further down.
8941         (ucontext_t): Use __ctx with uc_flags.
8942         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
8943         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
8944         Rename uc_pad to __glibc_reserved1.
8945         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
8946         undefine further down.
8947         (ucontext_t): Use __ctx with uc_flags.
8948         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
8949         further down.
8950         (ucontext_t): Use __ctx with uc_flags.
8951         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
8952         __ctx with uc_flags.
8953         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
8954         (ucontext_t): Use __ctx with uc_flags.
8955         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
8956         __ctx with uc_flags.
8958 2017-08-09  Florian Weimer  <fweimer@redhat.com>
8960         [BZ #21932]
8961         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
8962         before early return.
8964 2017-08-09  Andreas Schwab  <schwab@suse.de>
8966         [BZ #21041]
8967         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
8968         renamed alias.
8970         [BZ #21041]
8971         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
8972         tst-compat-forwarder.
8973         (modules-names): Add tst-compat-forwarder-mod.
8974         ($(objpfx)tst-compat-forwarder): Depend on
8975         $(objpfx)tst-compat-forwarder-mod.so.
8976         * nptl/tst-compat-forwarder.c: New file.
8977         * nptl/tst-compat-forwarder-mod.c: New file.
8979 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8981         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
8982         comments.
8984         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
8985         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8986         memcpy_falkor.
8987         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
8988         Bump.
8989         (__libc_ifunc_impl_list): Add __memcpy_falkor.
8990         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
8991         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
8992         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
8993         Add falkor.
8994         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
8995         New macro.
8997 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8999         [BZ #759]
9000         * manual/setjmp.texi (getcontex): Document uc_stack value
9001         compatibility differences.
9003 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
9005         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
9006         (old_malloc_hook): Likewise.
9007         (old_memalign_hook): Likewise.
9008         (old_realloc_hook): Likewise.
9009         (struct hdr): Likewise.
9010         (flood): Likewise.
9011         (freehook): Likewise.
9012         (mallochook): Likewise.
9013         (memalignhook): Likewise.
9014         (reallochook): Likewise.
9015         (mprobe): Likewise.
9016         * malloc/mtrace.c (mallwatch): Likewise.
9017         (tr_old_free_hook): Likewise.
9018         (tr_old_malloc_hook): Likewise.
9019         (tr_old_realloc_hook): Likewise.
9020         (tr_old_memalign_hook): Likewise.
9021         (tr_where): Likewise.
9022         (lock_and_info): Likewise.
9023         (tr_freehook): Likewise.
9024         (tr_mallochook): Likewise.
9025         (tr_reallochook): Likewise.
9026         (tr_memalignhook): Likewise.
9027         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
9028         * misc/mmap.c (__mmap): Likewise.
9029         * misc/mmap64.c (__mmap64): Likewise.
9030         * misc/mprotect.c (__mprotect): Likewise.
9031         * misc/msync.c (msync): Likewise.
9032         * misc/munmap.c (__munmap): Likewise.
9033         * posix/posix_madvise.c (posix_madvise): Likewise.
9034         * socket/send.c (__send): Likewise.
9035         * socket/sendto.c (__sendto): Likewise.
9036         * socket/setsockopt.c (__setsockopt): Likewise.
9037         * string/memcmp.c (__ptr_t): Remove macro.
9038         (MEMCMP): Use void * instead of ptr_t.
9039         * string/memrchr.c (__ptr_t): Remove macro.
9040         (__memrchr): Use void * instead of ptr_t.
9041         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
9042         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9043         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9044         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
9045         * sysdeps/mach/msync.c (msync): Likewise.
9046         * sysdeps/mach/munmap.c (__munmap): Likewise.
9047         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
9048         Likewise.
9049         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9050         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
9051         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
9052         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
9053         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
9054         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
9055         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
9056         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
9057         Likewise.
9058         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
9059         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
9060         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
9061         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
9062         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
9063         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
9064         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
9065         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
9066         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
9067         Likewise.
9068         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
9069         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
9070         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
9071         (MEMCMP): Use void * instead of ptr_t.
9072         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
9073         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
9075 2017-08-08  Florian Weimer  <fweimer@redhat.com>
9077         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
9078         return statement.
9080 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
9082         [BZ #21913]
9083         * csu/libc-tls.c: Include <startup.h> first.
9084         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
9085         * elf/dl-tunables.c: Include <startup.h> first.
9086         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
9087         * sysdeps/generic/startup.h: New file.
9088         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
9089         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
9090         (I386_USE_SYSENTER): New.  Defined to 0.
9092 2017-08-08  Andreas Schwab  <schwab@suse.de>
9094         [BZ #21041]
9095         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
9096         * nptl/pt-system.c (system): Likewise.
9098 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9100         [BZ #21780]
9101         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
9102         EOPNOTSUPP.
9103         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9104         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9105         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
9106         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9107         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9108         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9109         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9111 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
9113         [BZ #21899]
9114         * bits/sigaction.h (struct sigaction): Define sa_handler and
9115         sa_sigaction using union 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/alpha/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/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/hppa/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/ia64/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/mips/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.
9160         (SA_RESETHAND): Likewise.
9161         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
9162         (struct sigaction): Define sa_handler and sa_sigaction using union
9163         also for [__USE_XOPEN_EXTENDED].
9164         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9165         [__USE_XOPEN_EXTENDED].
9166         (SA_RESTART): Likewise.
9167         (SA_NODEFER): Likewise.
9168         (SA_RESETHAND): Likewise.
9169         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
9170         (struct sigaction): Define sa_handler and sa_sigaction using union
9171         also for [__USE_XOPEN_EXTENDED].
9172         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9173         [__USE_XOPEN_EXTENDED].
9174         (SA_RESTART): Likewise.
9175         (SA_NODEFER): Likewise.  Define directly rather than as alias.
9176         (SA_RESETHAND): Likewise.
9177         (SA_INTERRUPT): Define only for [__USE_MISC].
9178         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
9179         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
9180         [__USE_MISC].
9181         (SA_STACK): Define only for [__USE_MISC].
9182         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
9183         (struct sigaction): Define sa_handler and sa_sigaction using union
9184         also for [__USE_XOPEN_EXTENDED].
9185         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9186         [__USE_XOPEN_EXTENDED].
9187         (SA_RESTART): Likewise.
9188         (SA_NODEFER): Likewise.
9189         (SA_RESETHAND): Likewise.
9190         (SA_NOPTRACE): Define only for [__USE_MISC].
9192         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
9193         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
9194         (struct catalog_info): Likewise.
9195         * inet/htontest.c (lo): Likewise.
9196         (foo): Likewise.
9197         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9198         * inet/inet_net.c (inet_network): Likewise.
9199         * inet/inet_netof.c (inet_netof): Likewise.
9200         * inet/rcmd.c (__ivaliduser): Likewise.
9201         (iruserok): Likewise.
9202         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
9203         * locale/programs/locale-spec.c (locale_special): Likewise.
9204         * nis/nis_findserv.c (struct findserv_req): Likewise.
9205         (__nis_findfastest_with_timeout): Likewise.
9206         * nss/test-netdb.c (test_network): Likewise.
9207         * resolv/inet_neta.c (inet_neta): Likewise.
9208         * resolv/ns_date.c (ns_datetosecs): Likewise.
9209         (SECS_PER_DAY): Likewise.
9210         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
9211         Likewise.
9212         * resolv/res_comp.c (__putlong): Likewise.
9213         (__putshort): Likewise.
9214         (_getlong): Likewise.
9215         (_getshort): Likewise.
9216         * resolv/res_debug.c (p_time): Likewise.
9217         (precsize_ntoa): Likewise.
9218         (precsize_aton): Likewise.
9219         (latlon2ul): Likewise.
9220         (loc_aton): Likewise.
9221         (loc_ntoa): Likewise.
9222         * resolv/res_hconf.c (struct netaddr): Likewise.
9223         (_res_hconf_reorder_addrs): Likewise.
9224         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
9225         (clnttcp_control): Likewise.
9226         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9227         (clntudp_control): Likewise.
9228         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
9229         (clntunix_control): Likewise.
9230         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
9231         * sunrpc/rpc/auth.h (union des_block): Likewise.
9232         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
9233         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
9234         (xdrrec_create): Likewise.
9235         (xdrrec_endofrecord): Likewise.
9236         (flush_out): Likewise.
9237         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
9238         (xdrstdio_putlong): Likewise.
9239         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
9240         Likewise.
9242         * misc/sys/cdefs.h (__long_double_t): Remove.
9243         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
9244         instead of __long_double_t,
9245         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
9247 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9249         * benchtests/scripts/compare_strings.py: Avoid display error when
9250         running on a text terminal.
9252         * benchtests/scripts/compare_strings.py (main): Add an
9253         optional -base option.
9254         (process_results): New argument base_func.
9256         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
9257         hardcoding memcpy.
9258         * benchtests/bench-memcpy-large.c (test_name): Likewise.
9259         * benchtests/bench-memcpy-random.c (test_name): Likewise.
9261 2017-08-07  Andreas Schwab  <schwab@suse.de>
9263         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
9264         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
9265         * intl/Makefile ($(objpfx)tst-gettext.out)
9266         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
9267         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
9268         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
9269         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
9270         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
9271         * posix/Makefile ($(objpfx)globtest.out)
9272         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
9273         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
9274         ($(objpfx)tst-printf.out): Likewise.
9275         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
9276         ($(objpfx)tst-setcontext3.out): Likewise.
9278 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
9280         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9281         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
9282         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
9283         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
9284         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
9285         and mptan-fma.
9286         (CFLAGS-doasin-fma.c): New.
9287         (CFLAGS-dosincos-fma.c): Likewise.
9288         (CFLAGS-e_asin-fma.c): Likewise.
9289         (CFLAGS-e_atan2-fma.c): Likewise.
9290         (CFLAGS-e_exp-fma.c): Likewise.
9291         (CFLAGS-e_log-fma.c): Likewise.
9292         (CFLAGS-e_pow-fma.c): Likewise.
9293         (CFLAGS-halfulp-fma.c): Likewise.
9294         (CFLAGS-mpa-fma.c): Likewise.
9295         (CFLAGS-mpatan-fma.c): Likewise.
9296         (CFLAGS-mpatan2-fma.c): Likewise.
9297         (CFLAGS-mpexp-fma.c): Likewise.
9298         (CFLAGS-mplog-fma.c): Likewise.
9299         (CFLAGS-mpsqrt-fma.c): Likewise.
9300         (CFLAGS-mptan-fma.c): Likewise.
9301         (CFLAGS-s_atan-fma.c): Likewise.
9302         (CFLAGS-sincos32-fma.c): Likewise.
9303         (CFLAGS-slowexp-fma.c): Likewise.
9304         (CFLAGS-slowpow-fma.c): Likewise.
9305         (CFLAGS-s_sin-fma.c): Likewise.
9306         (CFLAGS-s_tan-fma.c): Likewise.
9307         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
9308         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
9309         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
9310         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
9311         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
9312         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
9313         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
9314         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
9315         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
9316         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
9317         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
9318         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
9319         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
9320         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
9321         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
9322         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
9323         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
9324         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
9325         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
9326         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
9327         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
9328         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
9329         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
9330         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
9331         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9332         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9333         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9334         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
9335         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9336         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9337         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9339 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
9341         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
9342         (min_of_type_f): New macro.
9343         (min_of_type_): Likewise.
9344         (min_of_type_l): Likewise.
9345         (min_of_type_f128): Likewise.
9346         (min_of_type): Define using __MATH_TG and taking an expression
9347         argument.
9348         (math_check_force_underflow): Pass expression instead of type to
9349         min_of_type.
9350         (math_check_force_underflow_nonneg): Likewise.
9352 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9354         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
9355         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
9356         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
9358 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9360         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9361         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
9362         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
9363         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
9364         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
9365         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
9366         memcpy_chk-nonshared, mempcpy_chk-nonshared,
9367         memmove_chk-nonshared and memset_chk-nonshared
9368         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
9369         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
9370         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
9371         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
9372         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
9373         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
9374         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
9375         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
9376         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
9377         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
9378         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
9379         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
9380         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
9381         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
9382         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
9383         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
9384         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
9385         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
9386         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
9387         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
9388         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
9389         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
9390         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
9391         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
9392         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
9393         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
9394         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
9395         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
9396         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
9397         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
9398         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
9399         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
9400         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
9401         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9402         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9403         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
9404         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
9405         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
9406         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
9407         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
9408         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
9409         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
9410         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
9411         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
9412         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
9413         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
9414         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
9415         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
9416         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
9417         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
9418         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
9419         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
9420         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
9421         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
9422         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
9423         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
9424         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
9425         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
9426         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
9427         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
9428         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
9429         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
9430         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
9431         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
9432         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
9433         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
9434         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
9435         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
9436         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
9437         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
9438         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
9439         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9440         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9441         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9442         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9443         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9444         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9445         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9446         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9447         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9448         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9449         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9450         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9451         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9452         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
9453         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
9454         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9455         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
9456         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9457         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9458         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9459         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9460         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9461         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9462         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
9463         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
9464         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
9465         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
9466         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9467         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
9468         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9469         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9470         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9471         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9472         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9473         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9474         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9475         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9477 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9479         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
9480         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
9481         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
9482         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
9483         svml_d_log2_core-sse2, svml_d_log4_core-sse,
9484         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
9485         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
9486         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
9487         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
9488         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
9489         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
9490         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
9491         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
9492         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
9493         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
9494         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
9495         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
9496         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
9497         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
9498         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
9499         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
9500         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
9501         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
9502         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
9503         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
9504         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
9505         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
9506         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
9507         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
9508         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
9509         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
9510         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
9511         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
9512         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
9513         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
9514         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
9515         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
9516         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
9517         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
9518         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
9519         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
9520         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
9521         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
9522         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
9523         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
9524         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
9525         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
9526         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
9527         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
9528         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
9529         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
9530         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
9531         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
9532         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
9533         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
9534         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
9535         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
9536         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
9537         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
9538         ...
9539         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
9540         Don't include <sysdep.h> nor <init-arch.h>.
9541         (_ZGVbN2v_cos): Removed.
9542         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
9543         ...
9544         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
9545         Don't include <sysdep.h> nor <init-arch.h>.
9546         (_ZGVdN4v_cos): Removed.
9547         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
9548         ...
9549         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
9550         Don't include <sysdep.h> nor <init-arch.h>.
9551         (_ZGVeN8v_cos): Removed.
9552         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
9553         ...
9554         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
9555         Don't include <sysdep.h> nor <init-arch.h>.
9556         (_ZGVbN2v_exp): Removed.
9557         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
9558         ...
9559         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
9560         Don't include <sysdep.h> nor <init-arch.h>.
9561         (_ZGVdN4v_exp): Removed.
9562         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
9563         ...
9564         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
9565         Don't include <sysdep.h> nor <init-arch.h>.
9566         (_ZGVeN8v_exp): Removed.
9567         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
9568         ...
9569         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
9570         Don't include <sysdep.h> nor <init-arch.h>.
9571         (_ZGVbN2v_log): Removed.
9572         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
9573         ...
9574         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
9575         Don't include <sysdep.h> nor <init-arch.h>.
9576         (_ZGVdN4v_log): Removed.
9577         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
9578         ...
9579         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
9580         Don't include <sysdep.h> nor <init-arch.h>.
9581         (_ZGVeN8v_log): Removed.
9582         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
9583         ...
9584         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
9585         Don't include <sysdep.h> nor <init-arch.h>.
9586         (_ZGVbN2vv_pow): Removed.
9587         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
9588         ...
9589         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
9590         Don't include <sysdep.h> nor <init-arch.h>.
9591         (_ZGVdN4vv_pow): Removed.
9592         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
9593         ...
9594         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
9595         Don't include <sysdep.h> nor <init-arch.h>.
9596         (_ZGVeN8vv_pow): Removed.
9597         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
9598         ...
9599         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
9600         Don't include <sysdep.h> nor <init-arch.h>.
9601         (_ZGVbN2v_sin): Removed.
9602         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
9603         ...
9604         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
9605         Don't include <sysdep.h> nor <init-arch.h>.
9606         (_ZGVbN4v_sin): Removed.
9607         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
9608         ...
9609         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
9610         Don't include <sysdep.h> nor <init-arch.h>.
9611         (_ZGVbN8v_sin): Removed.
9612         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
9613         ...
9614         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
9615         Don't include <sysdep.h> nor <init-arch.h>.
9616         (_ZGVbN2vvv_sincos): Removed.
9617         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
9618         ...
9619         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
9620         Don't include <sysdep.h> nor <init-arch.h>.
9621         (_ZGVdN4vvv_sincos): Removed.
9622         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
9623         ...
9624         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
9625         Don't include <sysdep.h> nor <init-arch.h>.
9626         (_ZGVeN8vvv_sincos): Removed.
9627         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
9628         ...
9629         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
9630         Don't include <sysdep.h> nor <init-arch.h>.
9631         (_ZGVeN16v_cosf): Removed.
9632         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
9633         ...
9634         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
9635         Don't include <sysdep.h> nor <init-arch.h>.
9636         (_ZGVbN4v_cosf): Removed.
9637         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
9638         ...
9639         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
9640         Don't include <sysdep.h> nor <init-arch.h>.
9641         (_ZGVdN8v_cosf): Removed.
9642         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
9643         ...
9644         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
9645         Don't include <sysdep.h> nor <init-arch.h>.
9646         (_ZGVeN16v_expf): Removed.
9647         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
9648         ...
9649         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
9650         Don't include <sysdep.h> nor <init-arch.h>.
9651         (_ZGVbN4v_expf): Removed.
9652         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
9653         ...
9654         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
9655         Don't include <sysdep.h> nor <init-arch.h>.
9656         (_ZGVdN8v_expf): Removed.
9657         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
9658         ...
9659         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
9660         Don't include <sysdep.h> nor <init-arch.h>.
9661         (_ZGVeN16v_logf): Removed.
9662         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
9663         ...
9664         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
9665         Don't include <sysdep.h> nor <init-arch.h>.
9666         (_ZGVbN4v_logf): Removed.
9667         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
9668         ...
9669         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
9670         Don't include <sysdep.h> nor <init-arch.h>.
9671         (_ZGVdN8v_logf): Removed.
9672         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
9673         ...
9674         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
9675         Don't include <sysdep.h> nor <init-arch.h>.
9676         (_ZGVeN16vv_powf): Removed.
9677         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
9678         ...
9679         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
9680         Don't include <sysdep.h> nor <init-arch.h>.
9681         (_ZGVbN4vv_powf): Removed.
9682         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
9683         ...
9684         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
9685         Don't include <sysdep.h> nor <init-arch.h>.
9686         (_ZGVdN8vv_powf): Removed.
9687         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
9688         ...
9689         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
9690         Don't include <sysdep.h> nor <init-arch.h>.
9691         (_ZGVeN16vvv_sincosf): Removed.
9692         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
9693         ...
9694         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
9695         Don't include <sysdep.h> nor <init-arch.h>.
9696         (_ZGVbN4vvv_sincosf): Removed.
9697         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
9698         ...
9699         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
9700         Don't include <sysdep.h> nor <init-arch.h>.
9701         (_ZGVdN8vvv_sincosf): Removed.
9702         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
9703         ...
9704         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
9705         Don't include <sysdep.h> nor <init-arch.h>.
9706         (_ZGVeN16v_sinf): Removed.
9707         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
9708         ...
9709         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
9710         Don't include <sysdep.h> nor <init-arch.h>.
9711         (_ZGVbN4v_sinf): Removed.
9712         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
9713         ...
9714         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
9715         Don't include <sysdep.h> nor <init-arch.h>.
9716         (_ZGVdN8v_sinf): Removed.
9718 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9720         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9721         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
9722         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
9723         s_rint-sse4_1 and s_rintf-sse4_1.
9724         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
9725         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9726         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9727         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9728         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9729         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
9730         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
9731         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9732         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9733         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
9734         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
9735         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9736         (__ceil): Removed.
9737         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
9738         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
9739         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9740         (__ceilf): Removed.
9741         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
9742         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
9743         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9744         (__floor): Removed.
9745         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
9746         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
9747         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9748         (__floorf): Removed.
9749         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
9750         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
9751         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9752         (__nearbyint): Removed.
9753         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
9754         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
9755         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9756         (__nearbyintf): Removed.
9757         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
9758         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
9759         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9760         (__rint): Removed.
9761         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
9762         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
9763         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9764         (__rintf): Removed.
9766 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9768         * sysdeps/i386/start.S (_start): Check Check PIC instead of
9769         SHARED.  Avoid dynamic relocation against main in static PIE.
9771 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9773         [BZ #21815]
9774         * elf/Makefile (CFLAGS-tst-prelink.c): New.
9775         (LDFLAGS-tst-prelink): Likewise.
9777 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9779         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
9780         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
9781         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
9782         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9783         (INTERNAL_SYSCALL_NCS): Likewise.
9784         (LOADARGS_1): Likewise.
9785         (LOADARGS_5): Likewise.
9786         (RESTOREARGS_1): Likewise.
9787         (RESTOREARGS_5): Likewise.
9789 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9791         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
9792         (MEMPCPY_SYMBOL): Likewise.
9793         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
9794         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
9795         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
9796         in libc.a.
9797         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9798         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
9799         Likewise.
9800         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
9801         (__hidden_ver1): Don't use in libc.a.
9802         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
9803         (__mempcpy): Don't create a weak alias in libc.a.
9804         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
9805         libc.a.
9806         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
9807         (__hidden_ver1): Don't use in libc.a.
9809 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9811         * config.make.in (have-insert): New.
9812         * configure.ac (libc_cv_insert): New.  Set to yes if linker
9813         supports INSERT in linker script.
9814         (AC_SUBST(libc_cv_insert): New.
9815         * configure: Regenerated.
9816         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
9817         if $(have-insert) == yes.
9819 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9821         * elf/Makefile (tests): Add vismain only if
9822         $(have-protected-data) == yes.
9823         (tests-pie): Likewise.
9825 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9827         [BZ #21871]
9828         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
9829         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
9831 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9833         [BZ #21790]
9834         * sysdeps/i386/i586/memset.S
9835         (__memset_zero_constant_len_parameter): Removed.
9836         * sysdeps/i386/i686/memset.S
9837         (__memset_zero_constant_len_parameter): Likewise.
9838         * sysdeps/i386/i686/multiarch/memset_chk.S
9839         (__memset_zero_constant_len_parameter): Likewise.
9840         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
9841         Likewise.
9843 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
9845         * stdlib/getentropy.c (getentropy): Change return type to int.
9847 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
9849         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
9851 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
9853         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
9854         u_intN_t.
9855         * math/s_nexttowardf.c (__nexttowardf): Likewise.
9856         * sysdeps/generic/math_private.h (ieee_double_shape_type):
9857         Likewise.
9858         (ieee_float_shape_type): Likewise.
9859         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
9860         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
9861         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
9862         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9863         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
9864         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
9865         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
9866         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
9867         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9868         Likewise.
9869         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
9870         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9871         (__ieee754_yn): Likewise.
9872         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
9873         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
9874         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
9875         Likewise.
9876         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
9877         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
9878         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
9879         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
9880         (__erfc): Likewise.
9881         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
9882         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
9883         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
9884         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
9885         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
9886         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
9887         Likewise.
9888         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
9889         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
9890         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9891         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
9892         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
9893         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
9894         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
9895         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
9896         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
9897         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
9898         (__issignaling): Likewise.
9899         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
9900         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
9901         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9902         Likewise.
9903         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
9904         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
9905         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
9906         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
9907         Likewise.
9908         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
9909         Likewise.
9910         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
9911         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
9912         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
9913         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
9914         (__erfcf): Likewise.
9915         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
9916         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
9917         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
9918         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
9919         Likewise.
9920         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
9921         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
9922         Likewise.
9923         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9924         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
9925         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9926         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
9927         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
9928         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
9929         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
9930         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
9931         Likewise.
9932         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
9933         Likewise.
9934         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
9935         Likewise.
9936         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
9937         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9938         Likewise.
9939         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9940         Likewise.
9941         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9942         (__ieee754_ynl): Likewise.
9943         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9944         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
9945         Likewise.
9946         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
9947         Likewise.
9948         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
9949         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
9950         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9951         Likewise.
9952         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
9953         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
9954         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
9955         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
9956         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
9957         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
9958         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
9959         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
9960         Likewise.
9961         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
9962         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
9963         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
9964         Likewise.
9965         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9966         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
9967         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9968         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
9969         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
9970         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
9971         Likewise.
9972         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
9973         Likewise.
9974         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9975         Likewise.
9976         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9977         Likewise.
9978         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
9979         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
9980         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9981         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
9982         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
9983         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
9984         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
9985         Likewise.
9986         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9987         Likewise.
9988         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9989         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
9990         Likewise.
9991         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
9992         (__ieee754_remainderl): Likewise.
9993         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9994         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9995         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
9996         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
9997         Likewise.
9998         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
9999         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10000         Likewise.
10001         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
10002         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
10003         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10004         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10005         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
10006         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10007         Likewise.
10008         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10009         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10010         (__ieee754_y0l): Likewise.
10011         (pzero): Likewise.
10012         (qzero): Likewise.
10013         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10014         (__ieee754_y1l): Likewise.
10015         (pone): Likewise.
10016         (qone): Likewise.
10017         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10018         (__ieee754_ynl): Likewise.
10019         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10020         (__ieee754_lgammal_r): Likewise.
10021         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
10022         Likewise.
10023         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10024         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
10025         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10026         (__erfcl): Likewise.
10027         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
10028         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
10029         Likewise.
10030         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10031         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
10032         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10033         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
10034         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
10035         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10036         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10037         Likewise.
10038         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
10039         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
10040         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
10041         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
10042         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10043         Likewise.
10044         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
10045         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
10046         Likewise.
10047         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
10048         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
10049         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
10050         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
10051         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10053 2017-08-03  Florian Weimer  <fweimer@redhat.com>
10055         [BZ #21885]
10056         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
10057         on memory allocation failure.
10059 2017-08-03  Alan Modra  <amodra@gmail.com>
10061         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
10062         tst-tlsopt-powerpc.c with function name change and no test harness.
10063         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
10064         Call tls_get_addr_opt_test.
10065         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
10066         (modules-names): Add mod-tlsopt-powerpc.
10067         (mod-tlsopt-powerpc.so-no-z-defs): Define.
10068         (tst-tlsopt-powerpc): Depend on .so.
10069         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
10070         define.  Expand use in TLS_GD and TLS_LD.
10072 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10074         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
10075         function.
10076         * sysdeps/posix/shm_open.c: Include <pthread.h>.
10078 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10080         [BZ #21686]
10081         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
10082         comparing size with that of double.
10083         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10084         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10085         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10086         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10087         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10088         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
10089         unsigned __int128 types.
10091 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
10093         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
10094         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
10095         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
10096         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
10097         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
10099 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10101         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
10103 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10105         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
10106         of SHARED.
10107         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
10108         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10109         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10110         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10111         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10112         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10113         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10115 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10117         [BZ #21685]
10118         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
10119         bit-field expressions passed to sizeof or typeof.
10120         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10121         (__TGMATH_F128): Likewise.
10122         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10123         (__TGMATH_CF128): Likewise.
10124         (__TGMATH_UNARY_REAL_ONLY): Likewise.
10125         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
10126         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
10127         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
10128         (__TGMATH_BINARY_REAL_ONLY): Likewise.
10129         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10130         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10131         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10132         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10133         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
10134         (__TGMATH_UNARY_REAL_IMAG): Likewise.
10135         (__TGMATH_UNARY_IMAG): Likewise.
10136         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10137         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10138         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
10139         type.
10140         (define_vars_for_type): Handle bit_field type specially.
10141         (Tests.__init__): Declare structure with bit-field element.
10143 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10145         [BZ #21791]
10146         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
10147         (MEMCPY_CHK): Define only if SHARED is defined.
10148         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
10149         Likewise.
10150         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
10151         Likewise.
10153 See ChangeLog.18 for earlier changes.