Revert __dirfd PLT avoidance for now
[glibc.git] / ChangeLog
blobcbc98364a049aead015fd9be4a8c1ca664b761ee
1 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
4         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
5         macros.
6         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
7         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
8         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
9         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
10         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
11         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13         * htl/Makefile: Bump licence to LGPL 2.1+.
14         * htl/alloca_cutoff.c: Likewise.
15         * htl/cthreads-compat.c: Likewise.
16         * htl/lockfile.c: Likewise.
17         * htl/pt-alloc.c: Likewise.
18         * htl/pt-cancel.c: Likewise.
19         * htl/pt-cleanup.c: Likewise.
20         * htl/pt-create.c: Likewise.
21         * htl/pt-dealloc.c: Likewise.
22         * htl/pt-detach.c: Likewise.
23         * htl/pt-exit.c: Likewise.
24         * htl/pt-getattr.c: Likewise.
25         * htl/pt-initialize.c: Likewise.
26         * htl/pt-internal.h: Likewise.
27         * htl/pt-join.c: Likewise.
28         * htl/pt-self.c: Likewise.
29         * htl/pt-setcancelstate.c: Likewise.
30         * htl/pt-setcanceltype.c: Likewise.
31         * htl/pt-sigmask.c: Likewise.
32         * htl/pt-spin-inlines.c: Likewise.
33         * htl/pt-testcancel.c: Likewise.
34         * htl/pt-yield.c: Likewise.
35         * htl/tests/test-1.c: Likewise.
36         * htl/tests/test-10.c: Likewise.
37         * htl/tests/test-11.c: Likewise.
38         * htl/tests/test-12.c: Likewise.
39         * htl/tests/test-13.c: Likewise.
40         * htl/tests/test-14.c: Likewise.
41         * htl/tests/test-15.c: Likewise.
42         * htl/tests/test-16.c: Likewise.
43         * htl/tests/test-17.c: Likewise.
44         * htl/tests/test-2.c: Likewise.
45         * htl/tests/test-3.c: Likewise.
46         * htl/tests/test-4.c: Likewise.
47         * htl/tests/test-5.c: Likewise.
48         * htl/tests/test-6.c: Likewise.
49         * htl/tests/test-7.c: Likewise.
50         * htl/tests/test-8.c: Likewise.
51         * htl/tests/test-9.c: Likewise.
52         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
53         * sysdeps/htl/bits/cancelation.h: Likewise.
54         * sysdeps/htl/bits/pthread-np.h: Likewise.
55         * sysdeps/htl/bits/pthread.h: Likewise.
56         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
57         * sysdeps/htl/bits/semaphore.h: Likewise.
58         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
59         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
60         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
61         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
62         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
63         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
64         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
65         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
66         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
67         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
68         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
69         * sysdeps/htl/old_pt-atfork.c: Likewise.
70         * sysdeps/htl/pt-atfork.c: Likewise.
71         * sysdeps/htl/pt-attr-destroy.c: Likewise.
72         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
73         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
74         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
75         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
76         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
77         * sysdeps/htl/pt-attr-getscope.c: Likewise.
78         * sysdeps/htl/pt-attr-getstack.c: Likewise.
79         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
80         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
81         * sysdeps/htl/pt-attr-init.c: Likewise.
82         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
83         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
84         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
85         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
86         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
87         * sysdeps/htl/pt-attr-setscope.c: Likewise.
88         * sysdeps/htl/pt-attr-setstack.c: Likewise.
89         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
90         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
91         * sysdeps/htl/pt-attr.c: Likewise.
92         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
93         * sysdeps/htl/pt-barrier-init.c: Likewise.
94         * sysdeps/htl/pt-barrier-wait.c: Likewise.
95         * sysdeps/htl/pt-barrier.c: Likewise.
96         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
97         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
98         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
99         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
100         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
101         * sysdeps/htl/pt-cond-destroy.c: Likewise.
102         * sysdeps/htl/pt-cond-init.c: Likewise.
103         * sysdeps/htl/pt-cond-signal.c: Likewise.
104         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
105         * sysdeps/htl/pt-cond-wait.c: Likewise.
106         * sysdeps/htl/pt-cond.c: Likewise.
107         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
108         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
109         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
110         * sysdeps/htl/pt-condattr-init.c: Likewise.
111         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
112         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
113         * sysdeps/htl/pt-destroy-specific.c: Likewise.
114         * sysdeps/htl/pt-equal.c: Likewise.
115         * sysdeps/htl/pt-getconcurrency.c: Likewise.
116         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
117         * sysdeps/htl/pt-getschedparam.c: Likewise.
118         * sysdeps/htl/pt-getspecific.c: Likewise.
119         * sysdeps/htl/pt-init-specific.c: Likewise.
120         * sysdeps/htl/pt-key-create.c: Likewise.
121         * sysdeps/htl/pt-key-delete.c: Likewise.
122         * sysdeps/htl/pt-key.h: Likewise.
123         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
124         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
125         * sysdeps/htl/pt-mutex-init.c: Likewise.
126         * sysdeps/htl/pt-mutex-lock.c: Likewise.
127         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
128         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
129         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
130         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
131         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
132         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
133         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
134         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
135         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
136         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
137         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
138         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
139         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
140         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
141         * sysdeps/htl/pt-mutexattr.c: Likewise.
142         * sysdeps/htl/pt-once.c: Likewise.
143         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
144         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
145         * sysdeps/htl/pt-rwlock-init.c: Likewise.
146         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
147         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
148         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
149         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
150         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
151         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
152         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
153         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
154         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
155         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
156         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
157         * sysdeps/htl/pt-setconcurrency.c: Likewise.
158         * sysdeps/htl/pt-setschedparam.c: Likewise.
159         * sysdeps/htl/pt-setschedprio.c: Likewise.
160         * sysdeps/htl/pt-setspecific.c: Likewise.
161         * sysdeps/htl/pt-spin.c: Likewise.
162         * sysdeps/htl/pt-startup.c: Likewise.
163         * sysdeps/htl/pthread.h: Likewise.
164         * sysdeps/htl/sem-close.c: Likewise.
165         * sysdeps/htl/sem-destroy.c: Likewise.
166         * sysdeps/htl/sem-getvalue.c: Likewise.
167         * sysdeps/htl/sem-init.c: Likewise.
168         * sysdeps/htl/sem-open.c: Likewise.
169         * sysdeps/htl/sem-post.c: Likewise.
170         * sysdeps/htl/sem-timedwait.c: Likewise.
171         * sysdeps/htl/sem-trywait.c: Likewise.
172         * sysdeps/htl/sem-unlink.c: Likewise.
173         * sysdeps/htl/sem-wait.c: Likewise.
174         * sysdeps/hurd/htl/pt-kill.c: Likewise.
175         * sysdeps/i386/htl/pt-machdep.h: Likewise.
176         * sysdeps/mach/htl/pt-block.c: Likewise.
177         * sysdeps/mach/htl/pt-spin.c: Likewise.
178         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
179         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
180         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
181         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
182         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
183         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
184         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
185         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
186         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
187         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
188         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
189         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
190         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
191         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
192         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
193         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
194         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
195         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
196         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
197         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
198         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
199         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
200         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
201         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
202         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
203         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
204         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
205         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
206         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
207         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
208         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
209         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
210         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
211         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
212         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
213         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
214         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
215         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
216         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
217         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
218         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
219         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
220         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
222         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
223         * README: Remove the mention of out-of-tree patches needed for
224         GNU/Hurd.
226         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
227         (UTIME_NOW, UTIME_OMIT): Define macros.
229         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
230         instead of pthread_detach.
231         (__cthread_fork): Call __pthread_create instead of pthread_create.
232         (__cthread_keycreate): Call __pthread_key_create instead of
233         pthread_key_create.
234         (__cthread_getspecific): Call __pthread_getspecific instead of
235         pthread_getspecific.
236         (__cthread_setspecific): Call __pthread_setspecific instead of
237         pthread_setspecific.
238         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
239         __pthread_mutex_unlock instead of pthread_mutex_lock and
240         pthread_mutex_unlock.
241         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
242         ___pthread_get_cleanup_stack.
243         (__pthread_get_cleanup_stack): New strong alias.
244         * htl/pt-create.c: Include <pthreadP.h>.
245         (entry_point): Call __pthread_exit instead of pthread_exit.
246         (pthread_create): Rename to __pthread_create.
247         (pthread_create): New strong alias.
248         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
249         (pthread_detach): New strong alias.
250         (__pthread_detach): Call __pthread_cond_broadcast instead of
251         pthread_cond_broadcast.
252         * htl/pt-exit.c (__pthread_exit): Call __pthread_setcancelstate
253         instead of pthread_setcancelstate.
254         * htl/pt-testcancel.c: Include <pthreadP.h>.
255         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
256         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
257         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
258         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
259         pthread_attr_getstacksize.
260         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
261         Rename to __pthread_attr_getstackaddr.
262         (pthread_attr_getstackaddr): New strong alias.
263         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
264         Rename to __pthread_attr_getstacksize.
265         (pthread_attr_getstacksize): New strong alias.
266         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
267         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
268         (pthread_attr_setstack): New strong alias.
269         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
270         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
271         pthread_attr_getstacksize, pthread_attr_setstacksize and
272         pthread_attr_setstackaddr.
273         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
274         Rename to __pthread_attr_setstackaddr.
275         (pthread_attr_setstackaddr): New strong alias.
276         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
277         Rename to __pthread_attr_setstacksize.
278         (pthread_attr_setstacksize): New strong alias.
279         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
280         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
281         pthread_exit.
282         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
283         (__pthread_key_create): New hidden def.
284         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
285         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
286         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
287         __pthread_exit, __pthread_key_create, __pthread_getspecific,
288         __pthread_setspecific, __pthread_setcancelstate,
289         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
290         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
291         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
292         declarations.
293         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
294         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
295         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
296         (pthread_attr_setstackaddr): New strong alias.
297         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
298         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
299         (pthread_attr_setstacksize): New strong alias.
300         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
301         (call_exit): Call __pthread_exit instead of pthread_exit.
302         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
303         (_pthread_mutex_init): New hidden definition.
304         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
305         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
306         instead of pthread_attr_init and pthread_attr_setstack.
308         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
309         __vm_deallocate instead of vm_allocate and vm_deallocate.
310         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
311         setenv.
312         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
313         of geteuid.
314         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
315         strdup.
316         * hurd/siginfo.c: Include <libioP.h>.
317         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
318         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
319         munmap.
320         * mach/devstream.c: Include <libioP.h>.
321         (dealloc_ref): Call __mach_port_deallocate instead of
322         mach_port_deallocate.
323         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
324         Call __mach_port_deallocate instead of mach_port_deallocate.
325         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
326         pathconf.
327         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
328         munmap.
329         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
330         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
331         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
332         of munmap.
333         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
334         of close.
335         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
336         instead of sysconf.
337         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
338         __clock_gettime instead of clock_gettime.
339         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
340         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
341         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
342         * sysdeps/unix/bsd/stty.c (stty): Likewise.
343         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
344         tcgetattr.
345         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
346         __clock_gettime and __nanosleep instead of clock_gettime and
347         nanosleep.
349 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
350             Amos Jeffries  <squid3@treenet.co.nz>
351             David Michael  <fedora.dm0@gmail.com>
352             Marco Gerards  <marco@gnu.org>
353             Marcus Brinkmann  <marcus@gnu.org>
354             Neal H. Walfield  <neal@gnu.org>
355             Pino Toscano  <toscano.pino@tiscali.it>
356             Richard Braun  <rbraun@sceen.net>
357             Roland McGrath  <roland@gnu.org>
358             Samuel Thibault  <samuel.thibault@ens-lyon.org>
359             Thomas DiModica  <ricinwich@yahoo.com>
360             Thomas Schwinge  <tschwinge@gnu.org>
362         * htl: New directory.
363         * sysdeps/htl: New directory.
364         * sysdeps/hurd/htl: New directory.
365         * sysdeps/i386/htl: New directory.
366         * sysdeps/mach/htl: New directory.
367         * sysdeps/mach/hurd/htl: New directory.
368         * sysdeps/mach/hurd/i386/htl: New directory.
369         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
370         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
371         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
373 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
375         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
376         signals in thread created for runing timers.
378 2018-04-01  Florian Weimer  <fweimer@redhat.com>
380         * support/support_format_addrinfo.c (support_format_addrinfo):
381         Include unknown error number in formatted result.
383 2018-03-29  Florian Weimer  <fweimer@redhat.com>
385         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
386         capture SIGBUS.
388 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
390         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
391         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
392         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
393         (__ASSUME_CLONE_BACKWARDS): Define.
395 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
397         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
398         early when linux sentinel value is set.
400 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
402         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
404 2018-03-27  Andreas Schwab  <schwab@suse.de>
406         [BZ #23005]
407         * resolv/res_send.c (__res_context_send): Return ENOMEM if
408         allocation of private copy of nsaddr_list fails.
410 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
412         [BZ #16552]
413         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
414         * sysdeps/unix/sysv/linux/umount.c: ... here.
415         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
416         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
417         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
418         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
420         * sysdeps/unix/sysv/linux/umount.S: Likewise.
421         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
423 2018-03-26  Andreas Schwab  <schwab@suse.de>
425         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
426         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
427         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
428         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
429         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
430         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
431         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
432         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
433         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
434         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
435         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
436         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
437         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
438         (R_RISCV_NUM): Define.
440 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
442         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
443         TLS declaration of errno.
444         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
445         __libc_setup_tls.
446         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
447         (ARCH_SETUP_TLS): Likewise.
448         * sysdeps/mach/hurd/libc-start.h: New file copied from
449         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
450         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
451         instead of __libc_setup_tls.
452         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
453         __libc_setup_tls before initializing libpthread and running _hurd_init
454         which starts the signal thread.
455         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
456         Declare function.
457         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
459 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
461         [BZ #22998]
462         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
463         after it is defined.
465 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
466             Max Horn  <max@quendi.de>
468         [BZ #22644]
469         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
470         branch conditions.
471         * string/test-memmove.c (do_test2): New testcase.
473 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
475         * sysdeps/generic/frame.h: Remove file.
476         * sysdeps/arm/frame.h: Likewise.
477         * sysdeps/hppa/frame.h: Likewise.
478         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
479         macro.
480         (GET_FRAME): Likewise.
481         (GET_STACK): Likewise.
482         (CALL_SIGHANDLER): Likewise.
483         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
484         Likewise.
485         (GET_FRAME): Likewise.
486         (GET_STACK): Likewise.
487         (CALL_SIGHANDLER): Likewise.
488         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
489         (SIGCONTEXT_EXTRA_ARGS): Likewise.
490         (GET_FRAME): Likewise.
491         (GET_STACK): Likewise.
492         (CALL_SIGHANDLER): Likewise.
493         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
494         (SIGCONTEXT_EXTRA_ARGS): Likewise.
495         (GET_FRAME): Likewise.
496         (GET_STACK): Likewise.
497         (ADVANCE_STACK_FRAME): Likewise.
498         (CALL_SIGHANDLER): Likewise.
499         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
500         (SIGCONTEXT_EXTRA_ARGS): Likewise.
501         (GET_FRAME): Likewise.
502         (GET_STACK): Likewise.
503         (CALL_SIGHANDLER): Likewise.
504         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
505         (SIGCONTEXT_EXTRA_ARGS): Likewise.
506         (GET_FRAME): Likewise.
507         (GET_STACK): Likewise.
508         (CALL_SIGHANDLER): Likewise.
509         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
510         (SIGCONTEXT_EXTRA_ARGS): Likewise.
511         (GET_FRAME): Likewise.
512         (GET_STACK): Likewise.
513         (CALL_SIGHANDLER): Likewise.
514         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
515         (SIGCONTEXT_EXTRA_ARGS): Likewise.
516         (GET_FRAME): Likewise.
517         (GET_STACK): Likewise.
518         (CALL_SIGHANDLER): Likewise.
519         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
520         (SIGCONTEXT_EXTRA_ARGS): Likewise.
521         (GET_FRAME): Likewise.
522         (GET_STACK): Likewise.
523         (CALL_SIGHANDLER): Likewise.
524         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
525         (SIGCONTEXT_EXTRA_ARGS): Likewise.
526         (GET_FRAME): Likewise.
527         (GET_STACK): Likewise.
528         (CALL_SIGHANDLER): Likewise.
529         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
530         (SIGCONTEXT_EXTRA_ARGS): Likewise.
531         (GET_FRAME): Likewise.
532         (GET_STACK): Likewise.
533         (CALL_SIGHANDLER): Likewise.
534         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
535         (SIGCONTEXT_EXTRA_ARGS): Likewise.
536         (GET_FRAME): Likewise.
537         (GET_STACK): Likewise.
538         (CALL_SIGHANDLER): Likewise.
539         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
540         (SIGCONTEXT_EXTRA_ARGS): Likewise.
541         (GET_FRAME): Likewise.
542         (GET_STACK): Likewise.
543         (CALL_SIGHANDLER): Likewise.
544         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
545         (SIGCONTEXT_EXTRA_ARGS): Likewise.
546         (FIRST_FRAME_POINTER): Likewise.
547         (ADVANCE_STACK_FRAME): Likewise.
548         (GET_STACK): Likewise.
549         (GET_FRAME): Likewise.
550         (CALL_SIGHANDLER): Likewise.
551         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
552         (SIGCONTEXT_EXTRA_ARGS): Likewise.
553         (ADVANCE_STACK_FRAME): Likewise.
554         (GET_STACK): Likewise.
555         (GET_FRAME): Likewise.
556         (CALL_SIGHANDLER): Likewise.
557         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
558         (SIGCONTEXT_EXTRA_ARGS): Likewise.
559         (GET_FRAME): Likewise.
560         (GET_STACK): Likewise.
561         (CALL_SIGHANDLER): Likewise.
562         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
563         (SIGCONTEXT_EXTRA_ARGS): Likewise.
564         (GET_FRAME): Likewise.
565         (GET_STACK): Likewise.
566         (CALL_SIGHANDLER): Likewise.
568 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
570         * sysdeps/x86_64/backtrace.c: Move to ....
571         * debug/backtrace.c: ... here.
572         * sysdeps/aarch64/backtrace.c: Remove file.
573         * sysdeps/alpha/backtrace.c: Likewise.
574         * sysdeps/hppa/backtrace.c: Likewise.
575         * sysdeps/ia64/backtrace.c: Likewise.
576         * sysdeps/mips/backtrace.c: Likewise.
577         * sysdeps/nios2/backtrace.c: Likewise.
578         * sysdeps/riscv/backtrace.c: Likewise.
579         * sysdeps/sh/backtrace.c: Likewise.
580         * sysdeps/tile/backtrace.c: Likewise.
582 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
584         [BZ #22987]
585         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
586         function.
587         (fdimf): Likewise.
588         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
590         [BZ #17343]
591         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
592         possibly overflowing computations.
594 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
596         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
597         values from Linux-specific section now that it is in the GNU section.
598         * sysdeps/gnu/errlist.c: Regenerate.
600 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
602         * math/Makefile (libm-narrow-fns): Add sub.
603         (libm-test-funcs-narrow): Likewise.
604         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
605         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
606         * math/gen-auto-libm-tests.c (test_functions): Add sub.
607         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
608         (NARROW_SUB_ROUND_TO_ODD): Likewise.
609         (NARROW_SUB_TRIVIAL): Likewise.
610         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
611         macro.
612         (__dsubl): Likewise.
613         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
614         dsub.
615         (CFLAGS-nldbl-dsub.c): New variable.
616         (CFLAGS-nldbl-fsub.c): Likewise.
617         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
618         __nldbl_dsubl.
619         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
620         prototype.
621         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
622         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
623         * math/auto-libm-test-in: Add tests of sub.
624         * math/auto-libm-test-out-narrow-sub: New generated file.
625         * math/libm-test-narrow-sub.inc: New file.
626         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
627         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
628         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
629         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
630         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
631         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
632         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
633         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
634         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
635         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
636         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
637         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
638         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
639         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
640         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
641         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
642         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
643         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
644         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
645         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
646         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
647         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
648         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
649         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
650         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
651         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
652         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
653         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
654         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
655         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
656         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
657         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
662         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
663         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
664         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
665         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
666         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
667         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
668         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
669         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
670         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
671         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
673 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
675         [BZ #20079]
676         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
678 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
680         * benchtests/bench-timing.h (attribute_hidden): Undefine.
682 2018-03-18  Richard Braun  <rbraun@sceen.net>
684         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
685         thread reference.
687 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
689         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
690         (__libc_cleanup_fct): Define function.
691         (__libc_cleanup_region_start, __libc_cleanup_region_end,
692         __libc_cleanup_end): Rewrite implementation using
693         __attribute__ ((__cleanup__)).
694         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
695         * hurd/Makefile (routines): Add hurdlock.
696         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
697         interface.
698         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
699         * hurd/hurdpid.c: Include <lowlevellock.h>
700         (_S_msg_proc_newids): Use lll_wait to synchronize.
701         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
702         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
703         * mach/Makefile (lock-headers): Remove machine-lock.h.
704         * mach/lock-intern.h: Include <lowlevellock.h> instead of
705         <machine-lock.h>.
706         (__spin_lock_t): New type.
707         (__SPIN_LOCK_INITIALIZER): New macro.
708         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
709         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
710         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
711         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
712         (__mutex_init): Initialize with lll.
713         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
714         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
715         needing lll.
716         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
717         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
718         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
719         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
720         (__setpgid): Use lll for synchronization.
721         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
722         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
723         instead of <cthreads.h>.
724         (_IO_lock_inexpensive): New macro
725         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
726         (__libc_lock_self0): New declaration.
727         (__libc_lock_owner_self): New macro.
728         (__libc_key_t): Remove type.
729         (_LIBC_LOCK_INITIALIZER): New macro.
730         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
731         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
732         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
733         __libc_lock_define_initialized_recursive,
734         __rtld_lock_define_initialized_recursive,
735         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
736         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
737         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
738         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
739         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
740         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
741         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
742         New macros.
743         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
744         * hurd/hurdlock.c: New file.
745         * hurd/hurdlock.h: New file.
746         * mach/lowlevellock.h: New file
748 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
750         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
751         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
752         when opening a symlink with O_NOFOLLOW.
753         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
754         path when flags contains O_NOFOLLOW.
755         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
756         if flags contains O_DIRECTORY and the result is a directory.
757         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
758         oneself when the pointer given in D is nul (as set by ext2fs).
759         * sysdeps/mach/hurd/mlockall.c: New file.
760         * sysdeps/mach/hurd/munlockall.c: New file.
762 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
764         * hurd/hurdsig.c: Include <pthread.h>.
765         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
766         get the signal thread stack layout.
767         * hurd/Makefile (headers): Remove threadvar.h.
768         (inline-headers): Remove threadvar.h.
769         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
770         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
771         __hurd_threadvar_max, __hurd_errno_location.
772         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
773         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
774         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
775         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
776         unless TLS is not initialized yet, in which case we do not need a
777         critical section yet anyway.
778         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
779         <machine-sp.h>.
780         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
781         declarations.
782         (__hurd_threadvar_index): Remove enum.
783         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
784         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
785         inlines.
786         (__hurd_reply_port0): New variable declaration.
787         (__hurd_local_reply_port): New macro.
788         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
789         (interrupted_reply_port_location): Add thread_t parameter.  Use it
790         with THREAD_TCB to access thread-local variables.
791         (_hurdsig_abort_rpcs): Pass ss->thread to
792         interrupted_reply_port_location.
793         (_hurd_internal_post_signal): Likewise.
794         (_hurdsig_init): Use presence of cthread_fork instead of
795         __hurd_threadvar_stack_mask to start signal thread by hand.
796         Remove signal thread threadvar initialization.
797         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
798         * hurd/sigunwind.c: Include <hurd/threadvar.h>
799         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
800         of threadvar.
801         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
802         __libc_lock_self0.
803         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
804         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
805         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
806         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
807         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
808         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
809         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
810         define variables.
811         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
812         <hurd/threadvar.h>.
813         [IS_IN(rtld)] (rtld_errno): New variable.
814         [IS_IN(rtld)] (__errno_location): New weak function.
815         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
816         * sysdeps/mach/hurd/errno.c: Remove file.
817         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
818         (__fork): Remove THREADVAR_SPACE macro and its use.
819         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
820         variable.
821         (init): Do not initialize threadvar.
822         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
823         symbol.
824         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
825         __hurd_local_reply_port instead of threadvar.
826         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
827         _hurd_sigstate fields.
828         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
829         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
830         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
831         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
832         instead of threadvar.
833         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
834         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
835         (use_threadvar, global_reply_port): Remove variables.
836         (__hurd_reply_port0): New variable.
837         (__mig_get_reply_port): Use __hurd_local_reply_port and
838         __hurd_reply_port0 instead of threadvar.
839         (__mig_dealloc_reply_port): Likewise.
840         (__mig_init): Do not initialize threadvar.
841         * sysdeps/mach/hurd/profil.c: Fix comment.
842         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
843         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
844         cthread_keycreate, cthread_getspecific, cthread_setspecific to
845         __cthread_fork, __cthread_detach, __pthread_getattr_np,
846         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
847         __cthread_setspecific.
848         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
849         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
850         __cthread_t instead of cthread_fork, cthread_detach,
851         pthread_getattr_np, pthread_attr_getstack.
852         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
853         __cthread_keycreate.
854         (cthread_getspecific): Rename to __cthread_getspecific.
855         (cthread_setspecific): Rename to __cthread_setspecific.
856         (__libc_getspecific): Use __cthread_getspecific instead of
857         cthread_getspecific.
858         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
859         __cthread_keycreate instead of cthread_keycreate.
860         (__libc_setspecific): Use __cthread_setspecific instead of
861         cthread_setspecific.
862         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
863         Likewise.
864         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
865         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
866         testing whether it is defined.
868 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
870         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
871         Define macro.
872         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
873         * sysdeps/mach/i386/thread_state.h
874         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
875         i386_THREAD_STATE.
876         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
877         i386_THREAD_STATE.
878         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
880         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
881         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
883         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
884         macros.
885         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
886         descriptor instead of creating a new one.
887         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
889         * mach/setup-thread.c: Include <ldsodefs.h>.
890         (__mach_setup_thread): Call _dl_allocate_tls, pass
891         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
892         MACHINE_THREAD_STATE_FLAVOR, before getting
893         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
894         MACHINE_THREAD_STATE_FLAVOR with the result.
895         * hurd/hurdfault.c (_hurdsig_fault_init): Call
896         MACHINE_THREAD_STATE_FIX_NEW.
897         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
898         too.  Add original thread parameter.
900 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
902         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
903         Remove inline function.
905         * sysdeps/i386/fpu/libm-test-ulps: Update.
906         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
908 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
910         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
911         commit.
913 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
915         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
916         (__sincos_code): Remove define and undefine.
917         [__FAST_MATH__] (__sincos): Remove inline function.
918         [__FAST_MATH__] (__sincosf): Remove inline function.
919         [__FAST_MATH__] (__sincosl): Remove inline function.
920         (__atan2l): Remove inline functions.
921         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
922         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
923         function.
924         (floor): Remove inline function.
925         (ceil): Likewise.
926         [__FAST_MATH__] (__ldexp_code): Remove macro.
927         [__FAST_MATH__] (ldexp): Remove inline function.
928         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
929         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
930         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
931         [__USE_ISOC99] (__lrint_code): Remove macro.
932         [__USE_ISOC99] (__llrint_code): Likewise.
933         [__USE_ISOC99] (lrintf): Remove inline function.
934         [__USE_ISOC99] (lrint): Likewise.
935         [__USE_ISOC99] (lrintl): Likewise.
936         [__USE_ISOC99] (llrint): Likewise.
937         [__USE_ISOC99] (llrintf): Likewise.
938         [__USE_ISOC99] (llrintl): Likewise.
940 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
942         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
943         (__ieee754_sqrtf): Remove.
944         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
945         (__ieee754_sqrtf): Remove.
946         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
947         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
948         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
949         (__ieee754_sqrtf): Remove.
950         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
951         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
952         (sqrtf): Remove.
953         (sqrtl): Remove.
954         (__ieee754_sqrt): Remove.
955         (__ieee754_sqrtf): Remove.
956         (__ieee754_sqrtl): Remove.
957         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
958         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
959         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
960         (__ieee754_sqrtf): Remove.
961         (__ieee754_sqrtl): Remove.
963 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
965         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
966         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
967         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
968         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
969         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
970         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
971         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
972         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
973         Likewise.
974         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
975         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
976         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
977         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
978         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
979         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
980         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
981         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
982         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
983         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
984         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
985         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
986         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
987         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
988         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
989         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
990         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
991         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
992         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
993         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
994         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
995         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
996         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
997         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
998         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
999         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
1000         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1001         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
1002         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
1003         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
1004         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
1005         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
1006         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
1007         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
1008         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
1009         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1010         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
1011         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
1012         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
1013         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
1015 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
1017         * include/math.h (sqrt): Declare with asm redirect.
1018         (sqrtf): Likewise.
1019         (sqrtl): Likewise.
1020         (sqrtf128): Likewise.
1021         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
1022         nonlib and libnldbl with -fmath-errno.
1023         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
1024         * math/w_sqrt_template.c: Likewise.
1025         * math/w_sqrtf_compat.c: Likewise.
1026         * math/w_sqrtl_compat.c: Likewise.
1027         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
1028         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
1029         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
1030         complex.h.
1032 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
1034         * benchtests/Makefile: Define _ISOMAC.
1035         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
1036         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
1037         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
1038         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
1039         * benchtests/bench-timing.h: Define attribute_hidden.
1041 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1043         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
1044         mov + lsr.
1046 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
1048         [BZ #22963]
1049         * localedata/locales/cs_CZ (mon): Rename to...
1050         (alt_mon): This.
1051         (mon): Import from CLDR (genitive case).
1053 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
1055         [BZ #22937]
1056         * localedata/locales/el_CY (abmon): Rename to...
1057         (ab_alt_mon): This.
1058         (abmon): Import from CLDR (abbreviated genitive case).
1059         * localedata/locales/el_GR (abmon): Rename to...
1060         (ab_alt_mon): This.
1061         (abmon): Import from CLDR (abbreviated genitive case).
1063 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
1065         [BZ #22932]
1066         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
1068 2018-03-15  Robert Buj  <robert.buj@gmail.com>
1070         [BZ #22848]
1071         * localedata/locales/ca_ES (abmon): Rename to...
1072         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
1073         (mon): Rename to...
1074         (alt_mon): This.
1075         (abmon): Import from CLDR (genitive case, month names preceded by
1076         "de" or "d’").
1077         (mon): Likewise.
1078         (abday): Synchronize with CLDR.
1079         (d_t_fmt): Likewise.
1080         (d_fmt): Likewise.
1081         (am_pm): Likewise.
1083         (LC_TIME): Improve indentation.
1084         (LC_TELEPHONE): Likewise.
1085         (LC_NAME): Likewise.
1086         (LC_ADDRESS): Likewise.
1088 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
1090         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
1091         (lrintf): Remove definitions used only with old GCC.
1092         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
1093         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
1094         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
1095         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
1096         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
1097         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
1098         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
1099         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
1100         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
1101         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
1102         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
1103         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
1104         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
1105         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
1106         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
1107         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
1108         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
1109         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
1110         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
1111         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
1112         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
1113         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
1114         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
1115         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
1116         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
1117         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
1118         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
1119         [__FAST_MATH__] (__M_SQRT2): Remove macro.
1121 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1123         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
1124         instruction to unbreak builds with binutils 2.26 and older.
1126 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1128         * sysdeps/aarch64/strncmp.S (count): New macro.
1129         (strncmp): Store misaligned length in SRC1 in COUNT.
1130         (mutual_align): Adjust.
1131         (misaligned8): Load dword at a time when it is safe.
1133 2018-03-12  Zack Weinberg  <zackw@panix.com>
1135         [BZ #1190]
1136         [BZ #19476]
1137         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
1138         if the _IO_EOF_SEEN bit is already set; update commentary.
1139         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
1140         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
1142         * support/support_openpty.c, support/tty.h: New files.
1143         * support/Makefile (libsupport-routines): Add support_openpty.
1145         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
1146         New test cases.
1147         * libio/Makefile (tests): Add tst-fgetc-after-eof.
1148         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
1150 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
1152         * po/pt_BR.po: Update translations.
1154 2018-03-12  David Michael <fedora.dm0@gmail.com>
1156         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
1157         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
1158         get a port to the startup server.
1160 2018-03-11  Zack Weinberg  <zackw@panix.com>
1162         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
1163         before nldbl-compat.h.
1165 2018-03-10  Zack Weinberg  <zackw@panix.com>
1167         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
1168         math.h or math_private.h.
1170         * sysdeps/alpha/fpu/s_isnan.c
1171         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
1172         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
1173         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
1174         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
1175         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
1176         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
1177         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
1178         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
1179         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
1180         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
1181         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
1182         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
1183         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
1184         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
1185         Include math_private.h.
1187         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
1188         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
1189         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
1190         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
1191         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
1192         * sysdeps/powerpc/power7/fpu/s_logb.c:
1193         Include math.h and math_private.h.
1195         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
1196         uses of $at in .set noat / .set at.
1198 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
1200         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
1201         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
1202         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
1203         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
1204         Likewise.
1206 2018-03-09  Florian Weimer  <fweimer@redhat.com>
1208         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
1209         in comment.
1211 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
1213         [BZ #22919]
1214         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
1215         Add nop before __startcontext, add explaining comments.
1217 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1219         [BZ #22926]
1220         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
1221         empty for __SPE__.
1222         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
1223         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
1224         Do not build hardware transactional code for __SPE__.
1225         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
1226         (__lll_trylock_elision): Likewise.
1227         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
1228         (__lll_unlock_elision): Likewise.
1230         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
1231         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
1232         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
1233         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
1234         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
1235         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
1236         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
1237         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
1238         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
1239         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
1240         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
1241         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
1242         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
1243         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
1244         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
1245         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
1246         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
1247         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
1248         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
1249         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
1250         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
1251         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1252         (__ASSUME_CLONE_BACKWARDS): Define.
1253         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
1254         __clone2 if __NR_clone2 is defined.
1255         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
1256         (__ASSUME_CLONE_BACKWARDS): Likewise.
1257         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1258         (__ASSUME_CLONE_BACKWARDS): Likewise.
1259         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
1260         (__ASSUME_CLONE2): Likewise.
1261         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1262         (__ASSUME_CLONE_BACKWARDS3): Likewise.
1263         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
1264         variants and the define architecture can use.
1265         (__ASSUME_CLONE_DEFAULT): Define as default.
1266         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1267         (__ASSUME_CLONE_BACKWARDS): Likewise.
1268         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1269         (__ASSUME_CLONE_BACKWARDS): Likewise.
1270         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1271         (__ASSUME_CLONE_BACKWARDS2): Likewise.
1273 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1275         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
1277         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
1278         time.
1280         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
1281         (do_test_limit): Likewise.
1283         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
1284         for every implementation.
1285         (do_test): Likewise.
1287         * benchtests/bench-strncmp.c: Convert output to json.
1289 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1291         * io/futimens.c: Add missing start-of-file descriptive comment.
1292         * io/utime.c: Likewise.
1293         * misc/futimesat.c: Likewise.
1294         * misc/utimes.c: Likewise.
1295         * sysdeps/mach/hurd/futimesat.c: Likewise.
1296         * sysdeps/mach/hurd/utimes.c: Likewise.
1297         * sysdeps/posix/utime.c: Likewise.
1298         * sysdeps/posix/utimes.c: Likewise.
1299         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1300         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
1301         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
1302         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
1304 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1306         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
1307         hurd_futimes.
1308         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
1309         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
1310         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
1311         (__futimens): Move implementation to...
1312         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
1313         utime_tvalue_from_tspec): ... new helper functions.
1314         (hurd_futimens): New function.
1315         * sysdeps/mach/hurd/futimesat.c: New file.
1316         * sysdeps/mach/hurd/utimensat.c: New file.
1318 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
1320         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
1321         UTIME_OMIT): New macros.
1322         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
1323         before reverting to converting time spec to time value and calling
1324         __file_utimes.
1325         * sysdeps/mach/hurd/utime-helper.c: New file.
1326         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
1327         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
1328         reverting to utime_tvalue_from_tval and __file_utimes.
1329         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
1330         (__lutimes): Just call hurd_futimens after lookup.
1331         * sysdeps/mach/hurd/utimes.c: Likewise.
1333 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1335         * bits/sigaction.h: Add include guard.
1336         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
1337         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
1338         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
1339         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
1340         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
1341         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
1342         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1343         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
1344         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
1346 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
1348         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
1349         -Wmaybe-uninitialized for -Os.
1350         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
1351         this disabling.
1353 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1355         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
1356         __INO_T_MATCHES_INO64_T is defined.
1357         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
1358         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
1359         of definition.
1360         * dirent/alphasort64.c: Likewise.
1361         * dirent/scandir.c: Likewise.
1362         * dirent/scandir64-tail.c: Likewise.
1363         * dirent/scandir64.c: Likewise.
1364         * dirent/scandirat.c: Likewise.
1365         * dirent/scandirat64.c: Likewise.
1366         * dirent/versionsort.c: Likewise.
1367         * dirent/versionsort64.c: Likewise.
1368         * include/dirent.h: Likewise.
1370         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
1371         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
1372         for socketpair endpoint.
1373         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
1374         WRITE_BUFFER_SIZE as buffer size for sending socket.
1375         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
1376         issue on system where send is implemented with sendto syscall.
1377         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
1378         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
1379         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
1380         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
1382         [BZ #21269]
1383         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
1384         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
1385         sa_restorer for vDSO case.
1386         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
1388 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1390         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
1391         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
1392         * hurd/hurd/ioctl.h: Include <mach/port.h>
1393         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
1394         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
1395         <mach/mach_types.h> and <mach/message.h>.
1396         (headers): Move mach/param.h to bits/mach/param.h.
1397         * sysdeps/mach/i386/mach/param.h: Move file to ...
1398         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
1399         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
1400         of <mach/param.h>.
1401         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
1402         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
1403         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
1404         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
1405         trivial, for C++ conformity.
1406         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
1407         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
1408         Process mig output through $(migheadersed).
1409         * hurd/Makefile (migheadersed): Define variable.
1410         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
1411         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
1412         headers.
1413         * hurd/hurd.h: Include <bits/types/sigset_t.h>
1414         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
1415         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
1416         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
1417         <bits/types/sigset_t.h>.
1418         [!defined __USE_GNU]: Do not #error out.
1419         (struct hurd_sigstate): Use _NSIG instead of NSIG.
1420         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
1421         Include <stddef.h> and <bits/types/sigset_t.h>
1422         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
1423         instead of sighandler_t.
1424         * stdlib/errno.h (error_t): Move definition to...
1425         * bits/types/error_t.h: ... new header.
1426         * stdlib/Makefile (headers): Add bits/types/error_t.h.
1427         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
1428         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
1429         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
1430         * hurd/hurd.h: Include <bits/types/error_t.h>
1431         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
1432         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
1433         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
1434         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
1435         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
1436         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
1437         * sysdeps/mach/hurd/futimens.c: New file.
1439 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
1441         [BZ #22918]
1442         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
1443         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
1444         * nscd/gai.c (__nss_hosts_database): Readd definition.
1445         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
1446         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
1447         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
1449 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
1451         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
1452         (ifunc_one): Likewise.
1454 2018-03-01  DJ Delorie  <dj@delorie.com>
1456         [BZ #22342]
1457         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
1458         key value.
1460 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
1462         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
1463         `match_pid' parameter.
1464         (td_ta_thr_iter): Update accordingly.
1466 2018-03-01  Florian Weimer  <fweimer@redhat.com>
1468         * nptl/Makefile (install-lib-ldscripts): Remove.
1469         (install): Remove rule.
1470         ($(inst_libdir)/libpthread.so): Likewise.
1472 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
1474         [BZ #22896]
1475         * localedata/locales/an_ES: update month and day names,
1476         improve d_fmt, improve postal_fmt, add country_post,
1477         add country_isbn
1479 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
1481         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
1482         Ukrainian instead of Bulgarian.
1484 2018-03-01  Florian Weimer  <fweimer@redhat.com>
1486         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
1487         reference.
1489 2018-03-01  Florian Weimer  <fweimer@redhat.com>
1491         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
1492         * nptl/Makefile (routines): Add pthread_atfork.
1493         (static-only-routines): Set to pthread_atfork.
1494         (libpthread-routines): Remove pthread_atfork.
1495         (libpthread-static-only-routines): Remove.
1496         (install): Update comment.
1497         (libpthread.so): Do not install libpthread_nonshared.a.
1498         (tests): Do not link with libpthread_nonshared.a.
1499         (generated): Remove libpthread_nonshared.a.
1500         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
1501         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
1502         with libpthread_nonshared.a.
1504 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
1506         [BZ #22902]
1507         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
1508         (libc_feholdexcept_setroundf128): New macro.
1509         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
1511         [BZ #15105]
1512         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
1513         libc_hidden_def.
1514         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
1515         * include/inttypes.h: New file.
1517 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
1519         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
1520         -Os in two more places.
1522 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1524         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
1525         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
1526         be sorted correctly at the moment because of a bug.
1528 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1530         [BZ #22550] - es_ES locale (and other es_* locales): collation should
1531         treat ñ as a primary different character, sync the collation
1532         for Spanish with CLDR.
1533         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
1534         * localedata/Makefile: Add new test files.
1535         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
1536         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
1537         collation order.
1538         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
1539         * localedata/am_ET.UTF-8.in: New test file.
1540         * localedata/az_AZ.UTF-8.in: Likewise.
1541         * localedata/be_BY.UTF-8.in: Likewise.
1542         * localedata/ber_DZ.UTF-8.in: Likewise.
1543         * localedata/ber_MA.UTF-8.in: Likewise.
1544         * localedata/bg_BG.UTF-8.in: Likewise.
1545         * localedata/br_FR.UTF-8.in: Likewise.
1546         * localedata/cmn_TW.UTF-8.in: Likewise.
1547         * localedata/crh_UA.UTF-8.in: Likewise.
1548         * localedata/csb_PL.UTF-8.in: Likewise.
1549         * localedata/cv_RU.UTF-8.in: Likewise.
1550         * localedata/cy_GB.UTF-8.in: Likewise.
1551         * localedata/dz_BT.UTF-8.in: Likewise.
1552         * localedata/eo.UTF-8.in: Likewise.
1553         * localedata/es_ES.UTF-8.in: Likewise.
1554         * localedata/fa_IR.UTF-8.in: Likewise.
1555         * localedata/fi_FI.UTF-8.in: Likewise.
1556         * localedata/fil_PH.UTF-8.in: Likewise.
1557         * localedata/fur_IT.UTF-8.in: Likewise.
1558         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
1559         * localedata/ha_NG.UTF-8.in: Likewise.
1560         * localedata/ig_NG.UTF-8.in: Likewise.
1561         * localedata/ik_CA.UTF-8.in: Likewise.
1562         * localedata/kk_KZ.UTF-8.in: Likewise.
1563         * localedata/ku_TR.UTF-8.in: Likewise.
1564         * localedata/ky_KG.UTF-8.in: Likewise.
1565         * localedata/ln_CD.UTF-8.in: Likewise.
1566         * localedata/mi_NZ.UTF-8.in: Likewise.
1567         * localedata/ml_IN.UTF-8.in: Likewise.
1568         * localedata/mn_MN.UTF-8.in: Likewise.
1569         * localedata/mr_IN.UTF-8.in: Likewise.
1570         * localedata/mt_MT.UTF-8.in: Likewise.
1571         * localedata/nb_NO.UTF-8.in: Likewise.
1572         * localedata/om_KE.UTF-8.in: Likewise.
1573         * localedata/os_RU.UTF-8.in: Likewise.
1574         * localedata/ps_AF.UTF-8.in: Likewise.
1575         * localedata/ro_RO.UTF-8.in: Likewise.
1576         * localedata/ru_RU.UTF-8.in: Likewise.
1577         * localedata/sc_IT.UTF-8.in: Likewise.
1578         * localedata/se_NO.UTF-8.in: Likewise.
1579         * localedata/sq_AL.UTF-8.in: Likewise.
1580         * localedata/sv_SE.UTF-8.in: Likewise.
1581         * localedata/szl_PL.UTF-8.in: Likewise.
1582         * localedata/tg_TJ.UTF-8.in: Likewise.
1583         * localedata/tk_TM.UTF-8.in: Likewise.
1584         * localedata/tt_RU.UTF-8.in: Likewise.
1585         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
1586         * localedata/ug_CN.UTF-8.in: Likewise.
1587         * localedata/uz_UZ.UTF-8.in: Likewise.
1588         * localedata/vi_VN.UTF-8.in: Likewise.
1589         * localedata/yi_US.UTF-8.in: Likewise.
1590         * localedata/yo_NG.UTF-8.in: Likewise.
1591         * localedata/zh_CN.UTF-8.in: Likewise.
1592         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
1593         file and fix bugs in the collation.
1594         * localedata/locales/az_AZ: Likewise.
1595         * localedata/locales/be_BY: Likewise.
1596         * localedata/locales/ber_DZ: Likewise.
1597         * localedata/locales/ber_MA: Likewise.
1598         * localedata/locales/bg_BG: Likewise.
1599         * localedata/locales/br_FR: Likewise.
1600         * localedata/locales/br_FR@euro: Likewise.
1601         * localedata/locales/ca_ES: Likewise.
1602         * localedata/locales/cns11643_stroke: Likewise.
1603         * localedata/locales/crh_UA: Likewise.
1604         * localedata/locales/cs_CZ: Likewise.
1605         * localedata/locales/csb_PL: Likewise.
1606         * localedata/locales/cv_RU: Likewise.
1607         * localedata/locales/cy_GB: Likewise.
1608         * localedata/locales/da_DK: Likewise.
1609         * localedata/locales/dz_BT: Likewise.
1610         * localedata/locales/en_CA: Likewise.
1611         * localedata/locales/eo: Likewise.
1612         * localedata/locales/es_CU: Likewise.
1613         * localedata/locales/es_EC: Likewise.
1614         * localedata/locales/es_ES: Likewise.
1615         * localedata/locales/es_US: Likewise.
1616         * localedata/locales/et_EE: Likewise.
1617         * localedata/locales/fa_IR: Likewise.
1618         * localedata/locales/fi_FI: Likewise.
1619         * localedata/locales/fil_PH: Likewise.
1620         * localedata/locales/fur_IT: Likewise.
1621         * localedata/locales/gez_ER@abegede: Likewise.
1622         * localedata/locales/ha_NG: Likewise.
1623         * localedata/locales/hr_HR: Likewise.
1624         * localedata/locales/hsb_DE: Likewise.
1625         * localedata/locales/hu_HU: Likewise.
1626         * localedata/locales/ig_NG: Likewise.
1627         * localedata/locales/ik_CA: Likewise.
1628         * localedata/locales/is_IS: Likewise.
1629         * localedata/locales/iso14651_t1_pinyin: Likewise.
1630         * localedata/locales/kk_KZ: Likewise.
1631         * localedata/locales/ku_TR: Likewise.
1632         * localedata/locales/ky_KG: Likewise.
1633         * localedata/locales/ln_CD: Likewise.
1634         * localedata/locales/lt_LT: Likewise.
1635         * localedata/locales/lv_LV: Likewise.
1636         * localedata/locales/mi_NZ: Likewise.
1637         * localedata/locales/ml_IN: Likewise.
1638         * localedata/locales/mn_MN: Likewise.
1639         * localedata/locales/mr_IN: Likewise.
1640         * localedata/locales/mt_MT: Likewise.
1641         * localedata/locales/nb_NO: Likewise.
1642         * localedata/locales/om_KE: Likewise.
1643         * localedata/locales/os_RU: Likewise.
1644         * localedata/locales/pl_PL: Likewise.
1645         * localedata/locales/ps_AF: Likewise.
1646         * localedata/locales/ro_RO: Likewise.
1647         * localedata/locales/ru_RU: Likewise.
1648         * localedata/locales/ru_UA: Likewise.
1649         * localedata/locales/sc_IT: Likewise.
1650         * localedata/locales/se_NO: Likewise.
1651         * localedata/locales/si_LK: Likewise.
1652         * localedata/locales/sq_AL: Likewise.
1653         * localedata/locales/sv_FI: Likewise.
1654         * localedata/locales/sv_FI@euro: Likewise.
1655         * localedata/locales/sv_SE: Likewise.
1656         * localedata/locales/szl_PL: Likewise.
1657         * localedata/locales/tg_TJ: Likewise.
1658         * localedata/locales/ti_ER: Likewise.
1659         * localedata/locales/tk_TM: Likewise.
1660         * localedata/locales/tl_PH: Likewise.
1661         * localedata/locales/tr_TR: Likewise.
1662         * localedata/locales/tt_RU: Likewise.
1663         * localedata/locales/tt_RU@iqtelif: Likewise.
1664         * localedata/locales/ug_CN: Likewise.
1665         * localedata/locales/uk_UA: Likewise.
1666         * localedata/locales/uz_UZ: Likewise.
1667         * localedata/locales/uz_UZ@cyrillic: Likewise.
1668         * localedata/locales/vi_VN: Likewise.
1669         * localedata/locales/yi_US: Likewise.
1670         * localedata/locales/yo_NG: Likewise.
1672 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1674         * gen-locales.mk: Make test files which contain @ modifiers in their
1675         name work.
1676         * localedata/gen-locale.sh: Likewise.
1678 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1680         * posix/tst-fnmatch.input: Fix results for range expressions
1681         for non C locales.
1682         * posix/tst-regexloc.c: Do not use a range expression for
1683         de_DE.ISO-8859-1 locale.
1685 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1687         * posix/bug-regex5.c: Fix test case because with the new
1688         iso14651_t1_common file, the da_DK locale now has 6 collating elements
1689         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
1690         file.
1692 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1694         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
1695         downloaded from ISO, the collation order of @-. and space has changed.
1696         Therefore, this test file needed to be adapted.
1697         * localedata/fr_CA.UTF-8.in: Likewise.
1698         * localedata/fr_FR.UTF-8.in: Likewise.
1699         * localedata/uk_UA.UTF-8.in: Likewise.
1701 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1703         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
1704         order of ȥ in the new iso14651_t1_common file.
1705         * localedata/pl_PL.UTF-8.in: Likewise.
1707 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1709         * localedata/locales/iso14651_t1_common: Add sections for various
1710         scripts to the iso14651_t1_common file.
1712 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1714         * localedata/locales/iso14651_t1_common: Use the code point of a
1715         character in the fourth collation level instead of IGNORE for all
1716         entries which have IGNORE on all 4 levels.
1718 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1720         * localedata/locales/iso14651_t1_common: Add some convenient collation
1721         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
1722         rules similar to those in CLDR.
1724 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1726         * localedata/locales/iso14651_t1_common: The new version of this
1727         file downloaded from ISO contained several syntax errors which
1728         are fixed by this patch.
1730 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1732         * localedata/locales/iso14651_t1_common: replace all <U.....>
1733         with <U000.....> because glibc understands only 4 digit or 8 digit
1735 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1737         * localedata/locales/iso14651_t1_common: Necessary changes
1738         to make the file downloaded from ISO usable by glibc.
1740 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1742         [BZ #14095]
1743         * localedata/locales/iso14651_t1_common: Update file to
1744         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
1746 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1748         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
1749         of <nptl/pthreadP.h>
1750         (thread_attr_compare): Move function to...
1751         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
1752         * sysdeps/nptl/timer_routines.h: ... new header.
1753         * sysdeps/mach/hurd/gai_misc.h: New file.
1755 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
1757         * string/strcoll_l.c: Include <libc-diag.h>.
1758         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
1759         declarations of seq1 and seq2.
1761         [BZ #15105]
1762         * stdlib/atoi.c (atoi): Use libc_hidden_def.
1763         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
1765 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
1767         [BZ #22433]
1768         [BZ #22807]
1769         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
1770         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
1771         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
1772         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
1773         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
1774         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
1776 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1778         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
1779         macros used in __ptrace_request.
1781 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1783         [BZ #22792]
1784         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
1785         to $(CC).
1786         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
1787         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
1788         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
1789         <tcb-offsets.h>.
1791 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
1793         [BZ #15105]
1794         * ctype/ctype.c (tolower): Use libc_hidden_def.
1795         (toupper): Likewise.
1796         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
1797         [!_ISOMAC] (toupper): Likewise.
1799 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
1801         * localedata/Makefile: Remove --quiet argument when
1802         installing locales
1804 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
1806         [BZ #17438]
1807         * localedata/locales/pt_BR (LC_TIME): use / instead of -
1808         in d_fmt.
1809         * localedata/locales/pt_PT (LC_TIME): likewise
1811 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
1813         [BZ #22646]
1814         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
1815         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
1816         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
1818 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1820         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1822         * nptl/Makefile (routines): Remove unregister-atfork.
1823         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
1824         (fork_handler_alloc): Remove function.
1825         (fork_handlers, fork_handler_init): New variables.
1826         (__fork_lock): Rename to atfork_lock.
1827         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
1828         to use a dynamic array to add/remove atfork handlers.
1829         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1830         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
1831         Remove declaration.
1832         (fork_handler): Remove next, refcntr, and need_signal member.
1833         (__run_fork_handler_type): New enum.
1834         (__run_fork_handlers): New prototype.
1835         * nptl/register-atfork.c: Remove file.
1836         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
1838         * sysdeps/nptl/nptl-signals.h: Move to ...
1839         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
1840         comments.
1841         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
1842         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
1843         unnecessary check for SIGTIMER.
1844         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
1845         remove unnecessary removal of SIGTIMER.
1846         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
1847         include-signals.h rename.
1848         * nptl/pthreadP.h: Likewise.
1849         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
1850         __is_internal_signal instead of __nptl_is_internal_signal.
1852 2018-02-22  Andrew Waterman <andrew@sifive.com>
1854         [BZ # 22884]
1855         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
1856         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
1857         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
1858         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
1860 2018-02-22  DJ Delorie  <dj@delorie.com>
1862         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
1864 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1866         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
1867         do_misaligned, not misaligned8.
1869 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
1871         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1872         Add memcpy_thunderx2.
1873         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
1874         Increment to 4.
1875         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
1876         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
1877         and IS_THUNDERX2PA checks.
1878         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
1879         Use macro to set name appropriately.
1880         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
1881         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
1882         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
1883         New macro.
1884         (IS_THUNDERX2): New macro.
1886 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
1888         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1890 2018-02-21  Zack Weinberg  <zackw@panix.com>
1892         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
1893         Define here, unconditionally.
1894         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
1895         * libio/libioP.h: Remove #if 0 blocks.
1896         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
1897         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
1898         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
1900         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
1901         Assume weak_alias is always defined.
1903         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
1904         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
1905         Remove #if 0 and #ifdef TODO blocks.
1906         Assume text_set_element is always defined.
1908         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
1909         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
1910         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
1912         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
1913         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
1914         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
1915         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
1916         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
1917         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
1918         Reformat bit flags for _flags field to make occupancy clearer.
1919         Update commentary.
1920         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
1921         Keep definitions consistent with those in libio/libio.h.
1923         * libio/libio.h (_IO_file_flags): Remove macro.
1924         All uses changed to _flags.
1926         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
1927         (__HAVE_COLUMN, _IO_BE): Don't define.
1928         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
1929         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
1930         * libio/libioP.h (EOF): Don't define.
1931         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
1932         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
1933         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
1934         testing _IO_UNIFIED_JUMPTABLES.
1936         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
1937         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
1938         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
1939         (_IO_size_t): Delete; all uses changed to size_t.
1940         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
1941         (_IO_off_t): Delete; all uses changed to off_t.
1942         (_IO_off64_t): Delete; all uses changed to off64_t.
1943         (_IO_pid_t): Delete; all uses changed to pid_t.
1944         (_IO_uid_t): Delete; all uses changed to uid_t.
1945         (_IO_wint_t): Delete; all uses changed to wint_t.
1946         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
1947         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
1948         (_IO_cookie_io_functions_t): Delete; all uses changed to
1949         cookie_io_functions_t.
1950         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
1951         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
1952         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
1953         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
1955         * libio/iofopncook.c: Remove unnecessary forward declarations.
1956         * libio/iolibio.h: Correct outdated commentary.
1957         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
1958         * stdio-common/fxprintf.c (__fxprintf_nocancel):
1959         Remove unnecessary casts.
1960         * stdio-common/getline.c: Use _IO_getdelim directly.
1961         Don't redefine ssize_t.
1962         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
1963         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
1964         Remove outdated comments.
1965         * stdio-common/vfscanf.c: Don't redefine va_list.
1967         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
1968         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
1969         Remove preprocessor conditionals on _LIBC and __USE_GNU,
1970         which are always true, and __cplusplus, which is always false.
1972 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
1974         [BZ #15105]
1975         [BZ #19463]
1976         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
1977         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
1978         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
1979         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
1980         libc_hidden_proto.
1981         [!_ISOMAC] (putc_unlocked): Likewise.
1982         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
1983         define inline if [__USE_EXTERN_INLINES].
1984         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
1985         putc_unlocked.
1987         [BZ #15105]
1988         [BZ #19463]
1989         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
1990         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
1991         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
1992         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
1993         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
1994         getc_unlocked.
1995         * time/tzfile.c (__tzfile_read): Likewise.
1997 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
1999         [BZ #22517]
2000         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
2002 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
2004         * io/fcntl.h: Fix a typo in a comment.
2006 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
2008         [BZ #22862]
2009         * include/features.h: Add _ISOC11_SOURCE to test for whether to
2010         define _DEFAULT_SOURCE.
2011         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
2013 2018-02-21  Florian Weimer  <fweimer@redhat.com>
2015         [BZ #20890]
2016         * elf/cache.c (save_cache): Call fsync on temporary file before
2017         renaming it.
2018         (save_aux_cache): Call fdatasync on temporary file before renaming
2019         it.
2021 2018-02-21  Florian Weimer  <fweimer@redhat.com>
2023         [BZ #22787]
2024         * include/caller.h: Remove file.
2025         * elf/dl-caller.c: Likewise.
2026         * elf/Makefile (dl-routines): Remove dl-caller.
2027         (shared-only-routines): Do not add dl-caller.
2028         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
2029         __check_caller.
2030         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
2031         member.
2032         (dl_open_worker): Do not call __check_caller.
2033         (_dl_open): Do not set caller_dl_open member.
2034         * elf/rtld.c (_rtld_global_ro): Do not initialize
2035         _dl_check_caller member.
2036         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
2037         _dl_check_caller member.
2038         (_dl_check_caller): Remove declaration.
2039         * sysdeps/unix/sysv/linux/dl-execstack.c
2040         (_dl_make_stack_executable): Do not call __check_caller.
2042 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2044         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
2045         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
2047 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
2049         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
2050         description.
2052 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
2054         [BZ #16335]
2055         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
2056         of 199606L, 200112L, and 200809L.
2057         (_XOPEN_SOURCE): Document special values of 600 and 700.
2058         (_ISOC11_SOURCE): Document macro.
2059         (_ATFILE_SOURCE): Likewise.
2060         (_FORTIFY_SOURCE): Likewise.
2062 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
2064         [BZ #15105]
2065         [BZ #19463]
2066         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
2067         and define as weak alias of __ferror_unlocked.  Use
2068         libc_hidden_weak.
2069         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
2070         libc_hidden_proto.
2071         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
2072         function if [__USE_EXTERN_INLINES].
2073         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
2074         ferror_unlocked.
2076 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
2078         [BZ #6889]
2079         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
2081 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
2083         [BZ #22818]
2084         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
2085         the GLIBC_2.1 version.
2087 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
2089         [BZ #21508]
2090         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
2091         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
2092         intl/tst-gettext-de.po from po/de.po by removing the
2093         POT-Creation-Date line.
2094         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
2095         ../po/de.po.
2096         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
2097         ../po/de.po.
2099 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2101         * mach/Makefile (headers): Add mach/param.h.
2102         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
2103         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
2104         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
2105         (__ptsname_r): Move implementation to...
2106         (__ptsname_internal): ... new function.  Add filling the STP
2107         structure.
2109 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
2111         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
2112         idouble to 1 ULP.
2114 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
2116         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
2117         syntax.
2119 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
2121         * nptl/Makefile (tst-mutex8-ENV): Delete.
2122         * nptl/tst-mutex8.c (check_type):
2123         Add runtime check if mutex will be elided.
2125 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
2127         [BZ #20980]
2128         [BZ #21234]
2129         * manual/install.texi (Configuring and compiling): Describe
2130         passing CC and CFLAGS on configure command line, not as
2131         environment variables.  Use @code markup on those variables.
2132         Specify what options go in CC and what go in CFLAGS.  Note the
2133         requirement to compile with optimization.
2134         * INSTALL: Regenerated.
2136         [BZ #18124]
2137         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
2138         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
2139         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
2140         __sigprocmask instead of sigprocmask.
2141         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
2142         Likewise.
2143         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
2144         __sigsetjmp and sigprocmask.
2146         [BZ #15105]
2147         * include/argz.h (argz_next): Use libc_hidden_proto.
2148         (__argz_next): Likewise.
2149         * string-argz-next.c (__argz_next): Use libc_hidden_def.
2150         (argz_next): Use libc_hidden_weak.
2152         [BZ #15105]
2153         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
2154         libc_hidden_proto.
2155         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
2156         libc_hidden_def.
2158         [BZ #15105]
2159         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
2160         libc_hidden_proto.
2161         * libio/iofputs.c (fputs): Use libc_hidden_weak.
2163         [BZ #15105]
2164         [BZ #19463]
2165         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
2166         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
2167         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
2168         (__feof_unlocked): New declaration, and inline function if
2169         [__USE_EXTERN_INLINES].
2170         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
2171         instead of feof_unlocked.
2172         * intl/localealias.c [_LIBC] (FEOF): Likewise.
2173         * nss/nsswitch.c (nss_parse_file): Likewise.
2174         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
2175         Likewise.
2176         * time/getdate.c (__getdate_r): Likewise.
2177         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
2178         Define as macro to call __feof_unlocked.
2180 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
2182         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
2184 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
2186         * math/Makefile: Remove mpexp.c and mplog.c
2187         * sysdeps/i386/fpu/mpexp.c: Delete file.
2188         * sysdeps/i386/fpu/mplog.c: Likewise.
2189         * sysdeps/ia64/fpu/mpexp.c: Likewise.
2190         * sysdeps/ia64/fpu/mplog.c: Likewise.
2191         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
2192         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
2193         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
2194         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2195         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
2196         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
2197         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
2198         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
2199         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
2200         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
2201         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
2202         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
2203         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
2204         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
2205         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
2206         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
2208 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
2210         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2212 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2214         * sysdeps/sh/libm-test-ulps: Update.
2216 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2218         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
2219         idouble to 1 ULP.
2221 2018-02-12  Zack Weinberg  <zackw@panix.com>
2223         [BZ #19239]
2224         * posix/sys/types.h: Don't include sys/sysmacros.h.
2225         * misc/sys/sysmacros.h: Remove the conditional deprecation
2226         warnings for the macros defined by this header.
2228 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2230         * manual/probes.texi: Remove slowexp probes.
2231         * math/Makefile: Remove slowexp.
2232         * sysdeps/generic/math_private.h (__slowexp): Remove.
2233         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
2234         document error bounds.
2235         * sysdeps/i386/fpu/slowexp.c: Remove.
2236         * sysdeps/ia64/fpu/slowexp.c: Remove.
2237         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
2238         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
2239         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
2240         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
2241         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
2242         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
2243         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
2244         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
2245         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
2246         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
2247         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
2249 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
2251         [BZ #13932]
2252         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
2253         * benchtests/pow-inputs: Update comment for slow path cases.
2254         * manual/probes.texi (slowpow_p10): Delete removed probe.
2255         (slowpow_p10): Likewise.
2256         * math/Makefile: Remove halfulp.c and slowpow.c.
2257         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
2258         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
2259         (__halfulp): Remove.
2260         (__slowpow): Remove.
2261         * sysdeps/i386/fpu/halfulp.c: Delete file.
2262         * sysdeps/i386/fpu/slowpow.c: Likewise.
2263         * sysdeps/ia64/fpu/halfulp.c: Likewise.
2264         * sysdeps/ia64/fpu/slowpow.c: Likewise.
2265         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
2266         improve comments and add error analysis.
2267         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
2268         (power1): Remove function:
2269         (log1): Remove error argument, add error analysis.
2270         (my_log2): Remove function.
2271         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
2272         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2273         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
2274         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
2275         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
2276         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
2277         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
2278         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
2279         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
2280         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
2281         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
2282         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
2283         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
2284         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
2286 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2288         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
2289         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
2291 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
2293         [BZ #22433]
2294         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
2295         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
2296         and PTRACE_SETHBPREGS.
2298 2018-02-10  Zack Weinberg  <zackw@panix.com>
2300         [BZ #22830]
2301         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
2302         correctly.
2303         * malloc/tst-malloc-stats-cancellation.c: New test case.
2304         * malloc/Makefile: Add new test case.
2306 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
2308         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
2310 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
2312         * math/Makefile (libm-narrow-fns): Add add.
2313         (libm-test-funcs-narrow): Likewise.
2314         * math/Versions (GLIBC_2.28): Add narrowing add functions.
2315         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
2316         * math/gen-auto-libm-tests.c (test_functions): Add add.
2317         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
2318         (NARROW_ADD_ROUND_TO_ODD): Likewise.
2319         (NARROW_ADD_TRIVIAL): Likewise.
2320         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
2321         macro.
2322         (__daddl): Likewise.
2323         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
2324         dadd.
2325         (CFLAGS-nldbl-dadd.c): New variable.
2326         (CFLAGS-nldbl-fadd.c): Likewise.
2327         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
2328         __nldbl_daddl.
2329         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
2330         prototype.
2331         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
2332         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
2333         * math/auto-libm-test-in: Add tests of add.
2334         * math/auto-libm-test-out-narrow-add: New generated file.
2335         * math/libm-test-narrow-add.inc: New file.
2336         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
2337         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
2338         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
2339         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
2340         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
2341         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
2342         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
2343         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
2344         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
2345         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
2346         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
2347         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
2348         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
2349         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
2350         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
2351         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2352         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
2353         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2354         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2355         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
2356         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2357         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2358         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2359         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2360         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2361         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2362         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2363         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2364         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2365         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2366         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2367         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
2369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
2370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
2371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
2372         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
2373         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2374         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2375         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2376         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2377         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2378         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
2379         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
2380         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2381         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2383         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
2384         (f128-pairs): New variable.
2385         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
2386         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
2387         to CFLAGS.
2388         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
2389         Also make tests add $(f128-loader-link) to gnulib-tests.
2391 2018-02-09  DJ Delorie  <dj@redhat.com>
2393         [BZ #22827]
2394         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
2395         64-bit ELF type for 64-bit ELF objects.
2397 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
2399         * math/libm-test-driver.c (snan_tests_arg): New variable.
2400         * math/libm-test-support.h (snan_tests_arg): New declaration.
2401         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
2403         * math/Makefile (test-type-pairs): New variable.
2404         (test-type-pairs-f64xf128-yes): Likewise.
2405         (tests): Add test-narrow-macros.
2406         (libm-test-funcs-narrow): New variable.
2407         (libm-test-c-narrow): Likewise.
2408         (generated): Add $(libm-test-c-narrow).
2409         (libm-tests-base-narrow): New variable.
2410         (libm-tests-narrow): Likewise.
2411         (libm-tests): Add $(libm-tests-narrow).
2412         (libm-tests-for-type): Handle $(libm-tests-narrow).
2413         (libm-test-c-narrow-obj): New variable.
2414         ($(libm-test-c-narrow-obj)): New rule.
2415         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
2416         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
2417         $(o-iterator) to set dependencies and CFLAGS.
2418         * math/gen-auto-libm-tests.c: Document use for narrowing
2419         functions.
2420         (output_for_one_input_case): Take argument NARROW.
2421         (generate_output): Likewise.  Update call to
2422         output_for_one_input_case.
2423         (main): Take --narrow option.  Update call to generate_output.
2424         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
2425         (apply_lit): Update call to _apply_lit.
2426         (apply_arglit): New function.
2427         (parse_args): Handle "a" arguments.
2428         (parse_auto_input): Handle format names using ":".
2429         * math/README.libm-test: Document "a" parameter type.
2430         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
2431         (ARG_TYPE_TRUE_MIN): Likewise.
2432         (ARG_TYPE_MAX): Likwise.
2433         (ARG_MIN_EXP): Likewise.
2434         (ARG_MAX_EXP): Likewise.
2435         (ARG_MANT_DIG): Likewise.
2436         (TEST_COND_arg_ibm128): Likewise.
2437         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
2438         (TEST_COND_arg_fmt): New macro.
2439         (init_max_error): Update prototype.
2440         * math/libm-test-support.c (test_ibm128): New variable.
2441         (init_max_error): Take argument testing_ibm128 and set test_ibm128
2442         instead of using [TEST_COND_ibm128] conditional.
2443         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
2444         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
2445         [TEST_NARROW] (TEST_MSG): New definition.
2446         (arg_plus_zero): New macro.
2447         (arg_minus_zero): Likewise.
2448         (arg_plus_infty): Likewise.
2449         (arg_minus_infty): Likewise.
2450         (arg_qnan_value_pl): Likewise.
2451         (arg_qnan_value): Likewise.
2452         (arg_snan_value_pl): Likewise.
2453         (arg_snan_value): Likewise.
2454         (arg_max_value): Likewise.
2455         (arg_min_value): Likewise.
2456         (arg_min_subnorm_value): Likewise.
2457         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
2458         (RUN_TEST_LOOP_aa_f): New macro.
2459         (TEST_SUFF): New macro.
2460         (TEST_SUFF_STR): Likewise.
2461         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
2462         (TEST_COND_any_ibm128): New macro.
2463         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
2464         this_func.  Update call to init_max_error.
2465         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
2466         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
2467         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
2468         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
2469         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
2470         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
2471         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
2472         * math/test-math-scalar.h (TEST_NARROW): Likewise.
2473         * math/test-math-vector.h (TEST_NARROW): Likewise.
2474         * math/test-arg-double.h: New file.
2475         * math/test-arg-float128.h: Likewise.
2476         * math/test-arg-float32x.h: Likewise.
2477         * math/test-arg-float64.h: Likewise.
2478         * math/test-arg-float64x.h: Likewise.
2479         * math/test-arg-ldouble.h: Likewise.
2480         * math/test-math-narrow.h: Likewise.
2481         * math/test-narrow-macros.c: Likewise.
2482         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
2483         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
2484         test-narrow-macros-ldbl-64.
2485         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
2487         * math/bits/mathcalls-narrow.h: New file.
2488         * include/bits/mathcalls-narrow.h: Likewise.
2489         * math/math-narrow.h: Likewise.
2490         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
2491         (__MATHCALL_NARROW_ARGS_2): Likewise.
2492         (__MATHCALL_NARROW_ARGS_3): Likewise.
2493         (__MATHCALL_NARROW_NORMAL): Likewise.
2494         (__MATHCALL_NARROW_REDIR): Likewise.
2495         (__MATHCALL_NARROW): Likewise.
2496         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
2497         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
2498         defined.
2499         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2500         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
2501         (libm-narrow-fns): New variable.
2502         (libm-narrow-types-basic): Likewise.
2503         (libm-narrow-types-ldouble-yes): Likewise.
2504         (libm-narrow-types-float128-yes): Likewise.
2505         (libm-narrow-types-float128-alias-yes): Likewise.
2506         (libm-narrow-types): Likewise.
2507         (libm-routines): Add narrowing functions.
2508         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
2509         (libc_feholdexcept_setroundf128): New macro.
2510         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
2511         * sysdeps/ieee754/float128/float128_private.h: Include
2512         <math/math-narrow.h>.
2513         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
2514         Undefine and redefine.
2515         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
2516         (libm_alias_float_ldouble): Undefine and redefine.
2517         (libm_alias_double_ldouble): Likewise.
2519         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
2521 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
2523         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
2524         FPCR/FPSR.
2526 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
2528         * manual/creature.texi: Convert references to gcc.info to gcc.
2529         * manual/stdio.texi: Likewise.
2530         * manual/string.texi: Likewise.
2532 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
2534         [BZ #17979]
2535         * posix/bits/types.h (__int_least8_t): New typedef.
2536         (__uint_least8_t): Likewise.
2537         (__int_least16_t): Likewise.
2538         (__uint_least16_t): Likewise.
2539         (__int_least32_t): Likewise.
2540         (__uint_least32_t): Likewise.
2541         (__int_least64_t): Likewise.
2542         (__uint_least64_t): Likewise.
2543         * sysdeps/generic/stdint.h (int_least8_t): Define using
2544         __int_least8_t.
2545         (int_least16_t): Define using __int_least16_t.
2546         (int_least32_t): Define using __int_least32_t.
2547         (int_least64_t): Define using __int_least64_t.
2548         (uint_least8_t): Define using __uint_least8_t.
2549         (uint_least16_t): Define using __uint_least16_t.
2550         (uint_least32_t): Define using __uint_least32_t.
2551         (uint_least64_t): Define using __uint_least64_t.
2552         * wcsmbs/uchar.h: Include <bits/types.h>.
2553         (char16_t): Define using __uint_least16_t conditional only on
2554         [!__USE_ISOCXX11].
2555         (char32_t): Define using __uint_least32_t conditional only on
2556         [!__USE_ISOCXX11].
2557         * wcsmbs/test-char-types.c: New file.
2558         * wcsmbs/Makefile (tests): Add test-char-types.
2560         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
2561         version to 4.0.1.
2563 2018-02-07  Zack Weinberg  <zackw@panix.com>
2565         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
2566         Delete all contents except for definitions of _G_HAVE_MMAP and
2567         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
2568         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
2569         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
2570         change as above.
2572         * libio/libio.h: Don't include bits/_G_config.h here.
2573         Include stddef.h with __need_wchar_t defined.  Include
2574         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
2575         Define _IO_iconv_t here, directly.
2576         Don't define _IO_HAVE_ST_BLKSIZE.
2577         * libio/libioP.h: Include _G_config.h here.  Move include of
2578         shlib-compat.h up with rest of includes.  Simplify conditionals
2579         controlling definition of _IO_JUMPS_OFFSET.
2581         * csu/init.c: Remove always-true #if around entire file.
2582         Don't include stdio.h.  Set _IO_stdin_used to hardwired
2583         constant 0x20001, and update commentary.
2584         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
2585         Replace all uses of _G_va_list with __gnuc_va_list.
2586         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
2587         instead of #if _IO_HAVE_ST_BLKSIZE.
2588         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
2589         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
2590         not #ifdef.
2592         * libio/bits/libio.h: Move back to libio/libio.h and adjust
2593         multiple-include guard to match.
2594         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
2595         into this file.
2596         Remove preprocessor conditionals that are always true and/or
2597         redundant to other preprocessor conditionals in the same nest.
2598         Include shlib-compat.h unconditionally.
2599         Error out if _LIBC is not defined, or if _ISOMAC is defined,
2600         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
2601         defined after including stdio.h.
2602         Use __BEGIN_DECLS/__END_DECLS.
2604         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
2605         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
2606         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
2608 2018-02-07  Zack Weinberg  <zackw@panix.com>
2610         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
2611         New single-type headers split from _G_config.h.
2612         * libio/bits/types/cookie_io_functions_t.h
2613         * libio/bits/types/struct_FILE.h
2614         New single-type headers split from libio.h.
2616         * libio/Makefile: Install the above new headers.  Don't install
2617         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
2618         bits/libio-ldbl.h.
2619         * libio/_G_config.h, libio/libio.h: Delete file.
2621         * libio/bits/libio.h: Remove improper-inclusion guard.
2622         Include stdio.h and don't repeat anything that it does.
2623         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
2624         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
2625         __io_read_fn as cookie_read_function_t,
2626         __io_write_fn as cookie_write_function_t,
2627         __io_seek_fn as cookie_seek_function_t,
2628         __io_close_fn as cookie_close_function_t,
2629         and _IO_cookie_io_functions_t as cookie_io_functions_t.
2630         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
2631         here, in the "compatibility defines" section.  Remove an #if 0
2632         block.  Use the "body" macros from bits/types/struct_FILE.h to
2633         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
2634         and _IO_ferror_unlocked.
2635         Move prototypes of __uflow and __overflow...
2637         * libio/stdio.h: ...here.  Don't include bits/libio.h.
2638         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
2639         directly from stdarg.h.  Include bits/types/__fpos_t.h,
2640         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
2641         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
2642         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
2643         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
2644         cookie_io_functions_t, not _IO_cookie_io_functions_t;
2645         __ssize_t, not _IO_ssize_t.  Unconditionally define
2646         BUFSIZ as 8192 and EOF as (-1).
2648         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
2649         macros from bits/types/struct_FILE.h instead of _IO_* macros
2650         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
2651         instead of _IO_ssize_t.
2652         * libio/bits/stdio2.h: Similarly.
2654         * libio/iolibio.h: Add multiple-include guard.
2655         Include bits/libio.h after stdio.h.
2656         * libio/libioP.h: Add multiple-include guard.
2657         Include stdio.h and bits/libio.h before iolibio.h.
2659         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
2660         * include/bits/types/cookie_io_functions_t.h
2661         * include/bits/types/struct_FILE.h: New wrappers.
2663         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
2664         Get definitions of _G_fpos_t and _G_fpos64_t from
2665         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
2666         respectively.  Remove improper-inclusion guards.
2668         * conform/data/stdio.h-data: Update expectations of va_list.
2669         * scripts/check-installed-headers.sh: Remove special case for
2670         libio.h and _G_config.h.
2672 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
2674         [BZ #15105]
2675         [BZ #19463]
2676         * include/sys/sysmacros.h [!_ISOMAC]
2677         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
2678         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
2679         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
2680         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
2681         libc_hidden_proto.
2682         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
2683         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
2684         Likewise.
2685         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
2686         Undefine and redefine to add use __gnu_dev_ prefix.
2687         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
2688         Likewise.
2689         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
2690         and define as hidden inline function.
2691         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
2692         Likewise.
2693         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
2694         Likewise.
2695         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
2696         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
2697         (gnu_dev_minor): Likewise.
2698         (gnu_dev_makedev): Likewise.
2699         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
2700         makedev.
2701         * posix/wordexp.c (exec_comm_child): Likewise.
2702         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
2703         instead of minor and __gnu_dev_major instead of major.
2704         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
2705         __gnu_dev_major instead of major.
2706         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
2707         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
2708         instead of gnu_dev_minor.
2709         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
2710         (SLAVE_P): Likewise.
2711         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
2712         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
2713         instead of major.
2715         [BZ #21313]
2716         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
2717         in another place.
2718         * locale/weightwc.h (findidx): Likewise.
2720 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
2722         * manual/probes.texi (slowlog): Delete documentation of removed probe.
2723         (slowlog_inexact): Likewise
2724         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
2725         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
2727 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
2729         [BZ #22797]
2730         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
2731         missing second underscore to parameter name.
2733 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
2735         [BZ #14508]
2736         [BZ #15512]
2737         [BZ #17082]
2738         [BZ #20530]
2739         * bits/byteswap.h: Update file comment.  Do not include
2740         <bits/byteswap-16.h>.
2741         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
2742         constant.
2743         (__bswap_16): Define as inline function.
2744         (__bswap_constant_32): Reformat definition.
2745         (__bswap_32): Always define as inline function, not macro, using
2746         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
2747         otherwise __bswap_constant_32.
2748         (__bswap_constant_64): Reformat definition.  Do not use
2749         __extension__ here.
2750         (__bswap_64): Always define as inline function, not macro.  Use
2751         __extension__ on function definition.  Use __builtin_bswap64 if
2752         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
2753         * string/test-endian-file-scope.c: New file.
2754         * string/test-endian-sign-conversion.c: Likewise.
2755         * string/Makefile (headers): Remove bits/byteswap-16.h.
2756         (tests): Add test-endian-file-scope and
2757         test-endian-sign-conversion.
2758         (CFLAGS-test-endian-sign-conversion.c): New variable.
2759         * bits/byteswap-16.h: Remove file.
2760         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
2761         * sysdeps/ia64/bits/byteswap.h: Likewise.
2762         * sysdeps/m68k/bits/byteswap.h: Likewise.
2763         * sysdeps/s390/bits/byteswap-16.h: Likewise.
2764         * sysdeps/s390/bits/byteswap.h: Likewise.
2765         * sysdeps/tile/bits/byteswap.h: Likewise.
2766         * sysdeps/x86/bits/byteswap-16.h: Likewise.
2767         * sysdeps/x86/bits/byteswap.h: Likewise.
2769         [BZ #17721]
2770         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
2771         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
2772         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
2773         199901L] (__restrict): Define to restrict.
2775         [BZ #19667]
2776         * string/testcopy.c: Include <support/support.h>.  Do not include
2777         <malloc.h>.  Use <support/test-driver.c>.
2778         (main): Rename to do_test.  Make static.  Use xmalloc instead of
2779         malloc.
2781         [BZ #13575]
2782         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
2783         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
2784         (SSIZE_MAX): Define to INT_MAX.
2785         * posix/test-ssize-max.c: New file.
2786         * posix/Makefile (tests): Add test-ssize-max.
2788         [BZ #19668]
2789         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
2790         <support/support.h>.  Do not include <malloc.h>.
2791         (query_auxv): Use xmalloc instead of malloc.
2793         [BZ #14553]
2794         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
2795         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
2796         instead of loff_t.
2798 2018-02-06  Florian Weimer <fweimer@redhat.com>
2800         [BZ #18023]
2801         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
2802         Use scratch_buffer instead of extend_alloca.
2804 2018-02-06  Zack Weinberg  <zackw@panix.com>
2806         * libio/stdio.h: Don't define getc or putc as macros.
2807         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
2808         not _IO_getc and _IO_putc.
2810         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
2811         * stdio-common/tstgetln.c: Don't redefine ssize_t.
2813 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
2815         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
2816         (TCP_FASTOPEN_NO_COOKIE): Likewise.
2818         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
2820         [BZ #14890]
2821         * elf/elf.h (NT_PRFPREG): New macro.
2822         (NT_S390_VXRS_LOW): Likewise.
2823         (NT_S390_VXRS_HIGH): Likewise.
2824         (NT_S390_GS_CB): Likewise.
2825         (NT_S390_GS_BC): Likewise.
2826         (NT_S390_RI_CB): Likewise.
2828         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
2829         (MAP_SYNC): New macro.
2830         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
2831         Likewise.
2832         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
2833         (MAP_SYNC): Likewise.
2834         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
2835         (MAP_SYNC): Likewise.
2836         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
2837         (MAP_SYNC): Likewise.
2838         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
2839         (MAP_SYNC): Likewise.
2840         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
2841         (MAP_SYNC): Likewise.
2842         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
2843         (MAP_SYNC): Likewise.
2844         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
2845         Likewise.
2846         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
2847         Likewise.
2849         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
2850         (MAP_SHARED_VALIDATE): New macro.
2851         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
2852         (MAP_SHARED_VALIDATE): Likewise.
2854 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2856         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
2857         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
2858         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2860 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2862         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
2863         (DT_NUM): Updated to 35.
2865 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2867         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
2868         __builtin_expect with __glibc_likely and __glibc_unlikely.
2869         (elf_machine_rela): Likewise.
2870         (elf_machine_lazy_rel): Likewise.
2872 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2874         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
2875         __builtin_expect with __glibc_likely and __glibc_unlikely.
2876         (elf_machine_lazy_rel): Likewise.
2878 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2880         [BZ #22638]
2881         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
2882         SHARED.
2883         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
2885 2018-02-05  Andreas Schwab  <schwab@suse.de>
2887         [BZ #22761]
2888         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
2889         string.
2891 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2893         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
2894         not check against PTHREAD_STACK_MIN.
2896 2018-02-02  Sean McKean  <smckean83@gmail.com>
2898         [BZ #22735]
2899         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
2901 2018-02-02  Florian Weimer  <fweimer@redhat.com>
2903         [BZ #22753]
2904         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
2905         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
2906         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
2907         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
2908         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
2909         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
2910         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
2911         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
2912         * manual/llio.texi (Scatter-Gather): Mention offset -1.
2913         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
2914         * misc/tst-preadvwritev2.c (do_test): Call it.
2915         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
2917 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2919         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
2921         * benchtests/bench-memcmp.c: Print json instead of plain text.
2923         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
2924         every test run.
2926 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
2928         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2929         version to 4.15.
2930         (s390_sthyi): New syscall.
2932         * sysdeps/generic/ldbl-classify-compat.h: New file.
2933         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
2934         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
2935         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
2936         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
2937         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
2938         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
2939         * sysdeps/ieee754/dbl-64/s_finite.c: Include
2940         <ldbl-classify-compat.h>.
2941         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2942         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
2943         <ldbl-classify-compat.h>.
2944         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2945         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
2946         <ldbl-classify-compat.h>.
2947         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2948         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
2949         <ldbl-classify-compat.h>.
2950         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2951         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
2952         <ldbl-classify-compat.h>.
2953         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2954         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
2955         <ldbl-classify-compat.h>.
2956         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2957         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
2958         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
2959         * sysdeps/m68k/coldfire/math_private.h: Remove file.
2960         * sysdeps/microblaze/math_private.h: Likewise.
2961         * sysdeps/nios2/math_private.h: Likewise.
2962         * sysdeps/sh/math_private.h: Likewise.
2964         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
2965         * sysdeps/m68k/coldfire/math_private.h: ... here.
2966         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
2967         * sysdeps/tile/math_private.h: Likewise.
2968         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
2969         Remove macro.
2970         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
2971         Likewise.
2973         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
2974         Remove macro.
2975         (libc_fetestexcept): Likewise.
2976         (libc_feupdateenv_test): Likewise.
2977         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
2978         (libc_fetestexcept): Likewise.
2979         (libc_feupdateenv_test): Likewise.
2980         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
2981         (libc_fetestexcept): Likewise.
2982         (libc_feupdateenv_test): Likewise.
2983         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
2984         (libc_fetestexcept): Likewise.
2985         (libc_feupdateenv_test): Likewise.
2987         * sysdeps/generic/math_private.h
2988         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
2989         New inline function.
2990         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
2991         Likewise.
2993         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
2994         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
2995         * sysdeps/generic/math_private.h
2996         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
2997         inline function.
2998         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
2999         Likewise.
3000         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
3001         Likewise.
3002         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
3003         Likewise.
3004         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
3005         Likewise.
3006         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
3007         Likewise.
3008         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
3009         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
3010         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
3011         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
3012         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
3013         (__fegetenv): Likewise.
3014         (fesetenv): Likewise.
3015         (__fesetenv): Likewise.
3016         (feupdateenv): Likewise.
3017         (__feupdateenv): Likewise.
3018         (fegetround): Likewise.
3019         (__fegetround): Likewise.
3020         (fesetround): Likewise.
3021         (__fesetround): Likewise.
3023         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
3024         (feraiseexcept): New macro.
3025         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
3026         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
3027         Remove macro.
3028         (__feraiseexcept): Likewise.
3029         (feclearexcept): Likewise.
3030         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
3031         (__feraiseexcept): Likewise.
3032         (feclearexcept): Likewise.
3033         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
3034         (__feraiseexcept): Likewise.
3035         (feclearexcept): Likewise.
3036         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
3037         (__feraiseexcept): Likewise.
3038         (feclearexcept): Likewise.
3039         (fetestexcept): Likewise.
3041         * sysdeps/m68k/coldfire/math-tests.h: New file.
3043         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
3044         * sysdeps/m68k/bits/fenv.h: ... here.
3045         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
3046         not define.
3047         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
3048         Likewise.
3049         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
3050         Likewise.
3051         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
3052         Likewise.
3053         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
3054         Likewise.
3055         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
3056         Define to 0.
3057         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
3058         (__FE_UNDEFINED): New enum constant.
3059         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
3060         Do not define.
3061         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
3062         Likewise.
3063         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
3064         Likewise.
3065         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
3066         to match generic bits/fenv.h.
3067         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
3068         Do not define.
3070         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
3071         packed on bits.
3072         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
3073         * soft-fp/half.h (union _FP_UNION_H): Likewise.
3074         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
3075         * soft-fp/single.h (union _FP_UNION_S): Likewise.
3077 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
3078             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
3079             Joseph Myers  <joseph@codesourcery.com>
3081         [BZ #21314]
3082         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
3083         (__log1p): Disable -Wmaybe-uninitialized for -Os around
3084         computation using c.
3085         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
3086         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
3087         computation using c.
3089 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
3091         * version.h (RELEASE): Set to "development".
3092         (VERSION): Set to "2.27.9000".
3093         * NEWS (2.28): New section.
3095         * version.h (RELEASE): Set to "stable".
3096         (VERSION): Set to "2.27".
3097         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
3099         * NEWS: Add the list of bugs fixed in 2.27.
3101 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3103         * stdlib/test-atexit-race-common.c (do_test): Check stack size
3104         against PTHREAD_STACK_MIN.
3106 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
3108         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
3109         New entries.
3110         (Rafal Luzynski, Andreas Schwab): Update.
3112 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
3114         [BZ #10871]
3115         * NEWS: List the languages which actually use the alternative
3116         months feature in this release.  Also explain that "alt_mon" and
3117         "ab_alt_mon" are optional.
3119 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
3121         [BZ #22765]
3122         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
3124 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
3126         * manual/install.texi (Tools for Compilation): Update the newest
3127         versions of gcc, binutils, texinfo, gawk, bison, and sed.
3128         * INSTALL: Regenerated.
3130 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3132         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
3133         instead of __builtin_expect.
3135 2018-01-30  Florian Weimer  <fweimer@redhat.com>
3137         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
3138         data.
3139         * nss/tst-nss-getpwent.c (do_test): Likewise.
3141 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
3143         [BZ #10871]
3144         * localedata/locales/hr_HR (mon): Rename to...
3145         (alt_mon): This.
3146         (mon): Import from CLDR (genitive case).
3147         (d_t_fmt): Update the comment.
3149 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
3151         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
3152         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
3153         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
3155 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3157         * mach/Versions: Fix version when __mach_host_self_ was added.
3158         * hurd/Versions: Fix version when _hurd_exec_paths was added.
3159         * sysdeps/mach/hurd/i386/ld.abilist: New file.
3160         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
3161         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
3162         * sysdeps/mach/hurd/i386/libc.abilist: New file.
3163         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
3164         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
3165         * sysdeps/mach/hurd/i386/libm.abilist: New file.
3166         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
3167         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
3168         * sysdeps/mach/hurd/i386/librt.abilist: New file.
3169         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
3170         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
3171         || to respect codestyle.
3172         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
3173         (do_test_bz20181): Rename accordingly.
3174         * malloc/malloc.c: Include <assert.h>.
3175         (assert): Do not define.
3176         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
3177         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
3178         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
3179         * sysdeps/mach/hurd/hp-timing.h: New file.
3180         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
3182 2018-01-29  Darius Rad  <darius@bluespec.com>
3184         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
3186 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
3188         * sysdeps/init_array/crti.S (.section .init_array): Add
3189         PREINIT_FUNCTION when defined.
3190         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
3191         * config.h.in: Regenerate.
3192         * manual/platform.texi: Add RISC-V documenation for
3193         __riscv_flush_icache.
3194         * sysdeps/riscv/__longjmp.S: New file.
3195         * sysdeps/riscv/backtrace.c: Likewise.
3196         * sysdeps/riscv/bits/endian.h: Likewise.
3197         * sysdeps/riscv/bits/setjmp.h: Likewise.
3198         * sysdeps/riscv/bits/wordsize.h: Likewise.
3199         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
3200         * sysdeps/riscv/bsd-setjmp.c: Likewise.
3201         * sysdeps/riscv/dl-trampoline.S: Likewise.
3202         * sysdeps/riscv/gccframe.h: Likewise.
3203         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
3204         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
3205         * sysdeps/riscv/machine-gmon.h: Likewise.
3206         * sysdeps/riscv/memusage.h: Likewise.
3207         * sysdeps/riscv/setjmp.S: Likewise.
3208         * sysdeps/riscv/sys/asm.h: Likewise.
3209         * sysdeps/riscv/tls-macros.h: Likewise.
3210         * sysdeps/riscv/dl-tls.h: New file.
3211         * sysdeps/riscv/libc-tls.c: Likewise.
3212         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
3213         * sysdeps/riscv/nptl/tls.h: Likewise.
3214         * sysdeps/riscv/stackinfo.h: Likewise.
3215         * sysdeps/riscv/bits/fenv.h: New file.
3216         * sysdeps/riscv/e_sqrtl.c: Likewise.
3217         * sysdeps/riscv/fpu_control.h: Likewise.
3218         * sysdeps/riscv/math-tests.h: Likewise.
3219         * sysdeps/riscv/nofpu/Implies: Likewise.
3220         * sysdeps/riscv/sfp-machine.h: Likewise.
3221         * sysdeps/riscv/tininess.h: Likewise.
3222         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
3223         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
3224         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
3225         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
3226         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
3227         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
3228         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
3229         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
3230         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
3231         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
3232         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
3233         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
3234         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
3235         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
3236         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
3237         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
3238         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
3239         * sysdeps/riscv/rvd/s_finite.c: Likewise.
3240         * sysdeps/riscv/rvd/s_fma.c: Likewise.
3241         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
3242         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
3243         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
3244         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
3245         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
3246         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
3247         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
3248         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
3249         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
3250         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
3251         * sysdeps/riscv/rvf/fegetround.c: Likewise.
3252         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
3253         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
3254         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
3255         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
3256         * sysdeps/riscv/rvf/fesetround.c: Likewise.
3257         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
3258         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
3259         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
3260         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
3261         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
3262         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
3263         * sysdeps/riscv/rvf/math_private.h: Likewise.
3264         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
3265         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
3266         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
3267         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
3268         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
3269         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
3270         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
3271         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
3272         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
3273         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
3274         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
3275         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
3276         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
3277         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
3278         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
3279         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
3280         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
3281         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
3282         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
3283         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
3284         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
3285         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
3286         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
3287         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
3288         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
3289         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
3290         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
3291         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
3292         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
3293         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
3294         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
3295         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
3296         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
3297         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
3298         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
3299         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
3300         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
3301         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
3302         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
3303         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
3304         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
3305         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
3306         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
3307         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
3308         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
3309         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
3310         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
3311         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
3312         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
3313         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
3314         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
3315         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
3316         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
3317         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
3318         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
3319         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
3320         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
3321         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
3322         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
3323         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
3324         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
3325         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
3326         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3327         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
3328         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
3329         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
3330         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
3331         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
3332         * sysdeps/riscv/Implies: New file.
3333         * sysdeps/riscv/Makefile: Likewise.
3334         * sysdeps/riscv/configure: Likewise.
3335         * sysdeps/riscv/configure.ac: Likewise.
3336         * sysdeps/riscv/nptl/Makefile: Likewise.
3337         * sysdeps/riscv/preconfigure: Likewise.
3338         * sysdeps/riscv/rv64/Implies-after: Likewise.
3339         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
3340         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
3341         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
3342         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
3343         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
3344         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
3345         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
3346         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
3347         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
3348         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
3349         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
3350         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
3351         (Config): Likewise.
3353 2018-01-29  Florian Weimer  <fweimer@redhat.com>
3355         [BZ #22701]
3356         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
3357         libnsl_hidden_proto.
3358         * include/rpcsvc/yp.h (yp_xdrall): Declare with
3359         libnsl_hidden_proto.
3360         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
3361         * nis/Makefile (libnsl-routines): Add nss-default only for
3362         build-obsolete-nsl.
3363         * nis/nis_defaults.c (__nis_default_ttl): Add
3364         libnsl_hidden_nolink_def.
3365         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
3366         declaration.
3367         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
3368         * nis/ypclnt.c (yp_maplist): Likewise.
3370 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
3372         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3373         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
3375 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
3377         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
3378         clean -dxfq for git updates when replacing sources.
3380         * scripts/build-many-glibcs.py (Config.build_gcc): Use
3381         --disable-libcilkrts unconditionally, not just for the final GCC
3382         build for Hurd.
3384         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3385         version to 4.15.
3387 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
3389         [BZ #10871]
3390         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
3391         case).
3393 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
3395         [BZ #10871]
3396         * localedata/locales/be_BY (mon): Rename to...
3397         (alt_mon): This, then synchronize with CLDR (nominative case).
3398         (abmon): Rename to...
3399         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
3400         (mon): Import from CLDR (genitive case).
3401         (abmon): Likewise.
3402         * localedata/locales/be_BY@latin (mon): Rename to...
3403         (alt_mon): This.
3404         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
3406         * localedata/locales/be_BY@latin (lang_name): Reworded to
3407         "biełaruskaja mova".
3409 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
3411         [BZ #10871]
3412         * localedata/locales/el_CY (mon): Renamed to...
3413         (alt_mon): This.
3414         (mon): Import from CLDR (genitive case).
3415         * localedata/locales/el_GR: Likewise.
3417 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
3419         [BZ #10871]
3420         * localedata/locales/ru_RU (mon): Rename to...
3421         (alt_mon): This.
3422         (abmon): Rename to...
3423         (ab_alt_mon): This.
3424         (mon): Import from CLDR (genitive case).
3425         (abmon): Copy from the old content except the 5th month which is
3426         now in the genitive case, even when abbreviated.
3427         * localedata/locales/ru_UA: Likewise.
3428         * time/tst-strptime.c (day_tests): Add an actual example of
3429         a difference between %b and %Ob in Russian.
3431 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3433         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
3434         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
3435         a `c' variable.
3436         * resolv/res-close.c: Include <stdlib.h>.
3437         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
3438         <sys/wait.h>, <time.h>, <sys/uio.h>.
3439         (NOT_CANCEL_H): Add inclusion guard.
3440         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
3441         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
3442         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
3443         return 0.
3444         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
3445         vm_address_t * to ElfW(Addr) * for dl_main parameter.
3446         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
3447         instead of void *.
3448         * sysdeps/pthread/timer_create.c (timer_create): Do not use
3449         timer_ptr2id to cast struct timer_node * to void *.
3450         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
3451         --disable-libcilkrts to gcc configure.
3452         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
3453         and make them the default for now.
3454         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
3455         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
3456         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
3457         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
3458         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
3459         MACH_IPC_COMPAT.
3460         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
3461         __task_terminate would ever return successfully.
3462         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
3463         to global scope.
3464         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
3465         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
3466         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
3467         critical section to make code simpler and avoid warning.
3468         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
3469         critical section to make code simpler and avoid warning.
3470         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
3471         const char * instead of char *.
3472         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
3473         __hurd_file_name_split, hurd_file_name_split,
3474         __hurd_directory_name_split, hurd_directory_name_split,
3475         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
3476         hurd_file_name_path_lookup): Make lookup function parameter take a
3477         const char *name instead of char *name.
3478         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
3479         __hurd_directory_name_split): Likewise.
3480         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3481         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
3482         * sysdeps/mach/hurd/check_native.c: New file.
3483         * sysdeps/mach/hurd/check_pf.c: New file.
3484         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
3485         (__freeifaddrs): Define macro to freeifaddrs.
3486         * sysdeps/mach/hurd/libhurduser.abilist: New file.
3487         * sysdeps/mach/libmachuser.abilist: New file.
3488         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
3489         (do_test_bz20181): Rename accordingly.
3490         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
3491         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
3492         <sys/mount.h>.
3493         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
3494         version only if __USE_EXTERN_INLINES is defined.
3495         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
3496         __hurd_sockfail): Likewise.
3497         (_hurd_fd_get): Always declare functions, and provide inline versions
3498         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
3499         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
3500         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
3501         _hurd_port_set): Always declare functions, and provide inline versions
3502         only if __USE_EXTERN_INLINES and _LIBC are defined and
3503         IS_IN(libc).
3504         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
3505         _hurd_critical_section_unlock): Likewise.
3506         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
3507         * __hurd_threadvar_location): Likewise.
3508         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
3509         _hurd_userlink_clear): Likewise.
3510         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
3511         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
3512         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
3513         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
3514         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
3515         __spin_lock_locked): Likewise.
3516         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
3517         __spin_lock_locked): Likewise.
3518         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
3519         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
3520         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
3521         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
3522         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
3523         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
3524         _POSIX_NO_TRUNC): Define to 0.
3525         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
3526         check size against PTHREAD_STACK_MIN.
3527         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
3528         IS_IN(libpthread)]: Include <sigsetops.h>.
3529         * mach/Makefile (user-interfaces): Add mach/gnumach.
3530         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
3531         * sysdeps/mach/configure (mach_interface_list): Regenerate.
3532         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
3533         instead of invalid -1.
3534         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
3535         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
3536         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
3537         <net/ppp_defs.h>.
3539 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
3541         * hurd/fcntl-internal.h: New file.
3543 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
3545         * sysdeps/hppa/fpu/libm-test-ulps: Update.
3547         * sysdeps/alpha/fpu/libm-test-ulps: Update.
3549 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
3551         [BZ #22701]
3552         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
3553         Build only shared objects.
3555 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
3557         * README: Update for hppa.
3559 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
3561         * sysdeps/sparc/fpu/libm-test-ulps: Update
3562         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
3564 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
3566         Revert:
3568         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
3570         [BZ #22563]
3571         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
3572         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
3573         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
3574         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
3575         to feature_1.
3577         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
3579         [BZ #22563]
3580         * bits/types/__cancel_jmp_buf_tag.h: New file.
3581         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
3582         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
3583         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
3584         * nptl/Makefile (headers): Add
3585         bits/types/__cancel_jmp_buf_tag.h.
3586         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
3587         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
3588         * sysdeps/nptl/pthread.h: Include
3589         <bits/types/__cancel_jmp_buf_tag.h>.
3590         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
3591         __cancel_jmp_buf.
3592         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
3594 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
3596         [BZ #10871]
3597         * localedata/locales/uk_UA (mon): Renamed to...
3598         (alt_mon): This.
3599         (alt_digits): "0" removed and then renamed to...
3600         (mon): This.
3601         (date_fmt): Definition changed not to use the alternative
3602         digits hack.
3604 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
3606         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
3607         FLAG_RISCV_FLOAT_ABI_DOUBLE.
3608         * elf/elf.h (EF_RISCV_RVC): New define.
3609         (EF_RISCV_FLOAT_ABI): Likewise.
3610         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
3611         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
3612         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
3613         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
3614         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
3615         define.
3616         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
3618 2018-01-25  Andreas Schwab  <schwab@suse.de>
3620         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
3621         single quotes.
3622         * sysdeps/gnu/configure: Regenerate.
3623         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
3624         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
3625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
3626         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
3627         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
3628         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
3629         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
3630         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
3632 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3634         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
3635         URL, and run autoconf, make it the default for now.
3637 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
3639         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
3640         soft-float ColdFire configuration.
3642         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
3643         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
3644         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
3646         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
3647         MicroBlaze file.
3649         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
3650         ....
3651         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
3652         ... here.
3653         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
3654         New file.
3656         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
3657         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
3658         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
3659         file.
3661 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3663         [BZ #22742]
3664         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
3665         Rename to __reserved and add comment.
3666         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
3667         Rename to __reserved.
3669 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
3671         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
3672         i686-gnu configurations.
3673         (Context.run_builds): Include mig, gnumach and hurd in components
3674         considered.
3675         (Context.checkout): Add mig, gnumach and hurd to components.
3676         (Context.checkout_tar): Add URL mappings for mig, gnumach and
3677         hurd.
3678         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
3679         (Config.build): Install gnumach headers, build mig and install
3680         hurd headers for 'gnu' OS.
3681         (Config.install_gnumach_headers): New function.
3682         (Config.install_hurd_headers): Likewise.
3683         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
3684         when building for 'gnu' OS.
3686 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
3688         * manual/tunables.texi (Hardware Capability Tunables): Fix
3689         spelling.
3691 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
3693         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
3694         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
3695         (ALTMON_11, ALTMON_12): Improve documentation.
3696         * manual/time.texi (strftime): Likewise.
3698 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
3700         [BZ #10871]
3701         * localedata/locales/pl_PL: Alternative month names added,
3702         primary month names are genitive now.
3703         * time/tst-strptime.c (day_tests): Actually use a genitive case
3704         of a month name in Polish language.
3706 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
3708         [BZ #10871]
3709         * manual/locale.texi: Document ALTMON_1..12 constants for
3710         nl_langinfo.  Specify when to use ALTMON instead of MON.
3711         * manual/time.texi (strftime, strptime): Document GNU extension
3712         permitting O modifier with %B and %b.  Specify when to use
3713         %OB instead of %B.
3715 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
3717         [BZ #10871]
3718         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
3719         names, define them as the same as abbreviated month names explicitly.
3720         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
3721         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
3722         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
3723         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
3724         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
3725         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
3726         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
3727         _NL_WABALTMON_12): New enum constants.
3728         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
3729         wab_alt_mon, and ab_alt_mon_defined members.
3730         (time_output): Output ab_alt_mon and wab_alt_mon members.
3731         (time_read): Read them, initialize them as copies of abmon and wabmon
3732         respectively if they are missing, initialize ab_alt_mon_defined.
3733         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
3734         * locale/programs/locfile-kw.h: Regenerate.
3735         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
3736         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
3737         and ru_RU.UTF-8.
3738         * time/strftime_l.c (a_altmonth, aam_len): New macros.
3739         [!COMPILE_WIDE] (ABALTMON_1): New macro.
3740         (__strftime_internal): Handle %Ob and %Oh formats.
3741         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
3742         (__strptime_internal): Handle %Ob and %Oh formats.
3743         * time/tst-strptime.c (day_tests): Add more tests to parse different
3744         forms of month names including the new %Ob format specifier.
3746 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
3748         [BZ #10871]
3749         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
3750         define them as the same as primary full month names explicitly.
3751         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
3752         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
3753         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
3754         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
3755         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
3756         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
3757         _NL_WALTMON_12): New enum constants.
3758         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
3759         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
3760         macros.
3761         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
3762         walt_mon, and alt_mon_defined members.
3763         (time_output): Output alt_mon and walt_mon members.
3764         (time_read): Read them, initialize them as copies of mon and wmon
3765         respectively if they are missing, initialize alt_mon_defined.
3766         * locale/programs/locfile-kw.gperf (alt_mon): Define.
3767         * locale/programs/locfile-kw.h: Regenerate.
3768         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
3769         * localedata/tst-langinfo.c (map): Add tests for the new constants
3770         ALTMON_1 .. ALTMON_12.
3771         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
3772         and pl_PL.UTF-8.
3773         * time/strftime_l.c (f_altmonth): New macro.
3774         (__strftime_internal): Handle %OB format.
3775         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
3776         (__strptime_internal): Handle %OB format.
3777         * time/tst-strptime.c (day_tests): Add tests to parse different forms
3778         of month names including the new %OB format specifier.
3780 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3782         [BZ #22685]
3783         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
3784         from ABORT_TRANSACTION.
3785         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
3786         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
3787         ABORT_TRANSACTION_IMPL): Likewise.
3788         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
3789         Linux code, but remove the code that aborts transactions.
3791 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3793         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
3795 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
3797         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
3798         in date: "2004-14-09" should be "2004-09-14".
3799         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
3800         "2003-15-09" should be "2003-09-15".
3802 2018-01-18  Arjun Shankar  <arjun@redhat.com>
3804         [BZ #22343]
3805         [BZ #22774]
3806         CVE-2018-6485
3807         CVE-2018-6551
3808         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
3809         after padding.
3810         (_int_memalign): check for integer overflow before calling
3811         _int_malloc.
3812         * malloc/tst-malloc-too-large.c: New test.
3813         * malloc/Makefile: Add tst-malloc-too-large.
3815 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
3817         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
3818         in date: "2017-24-07" should be "2017-07-24".
3819         * localedata/locales/mai_IN: Likewise.
3820         * localedata/locales/mai_NP: Likewise.
3822 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
3824         * po/ru.po: Update translations.
3826 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
3828         [BZ #22719]
3829         * sysdeps/hppa/backtrace.c: New file.
3831 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
3833         [BZ #22715]
3834         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
3835         align La_x86_64_retval to VEC_SIZE.
3837 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
3839         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
3840         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
3842 2018-01-16  Florian Weimer  <fweimer@redhat.com>
3844         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
3845         Move tst-thread-exit-clobber ...
3846         [$(CXX)] (tests-unsupported): ... to here.
3848 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3850         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
3851         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
3852         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
3853         (_dl_aarch64_cap_flags): Update.
3854         (_DL_HWCAP_COUNT): Update.
3856 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3858         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
3859         (_DL_HWCAP_LAST): Remove.
3860         (_DL_HWCAP_COUNT): Move to ...
3861         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
3862         (_DL_HWCAP_COUNT): ... here.
3864 2018-01-16  Florian Weimer  <fweimer@redhat.com>
3866         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
3867         mode with GNU extensions.
3869 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
3871         * elf/elf.h (NT_ARM_SVE): Define.
3873 2018-01-15  Florian Weimer  <fweimer@redhat.com>
3875         [BZ #22636]
3876         * nptl/tst-minstack-throw.cc: New file.
3877         * nptl/Makefile (tests): Add tst-minstack-throw.
3878         (LDLIBS-tst-minstack-throw): Link with libstdc++.
3879         [!CXX] (tests-unsupported): Add tst-minstack-throw.
3881 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
3883         * scripts/build-many-glibcs.py (Context.checkout): Default
3884         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
3885         version to 1.1.0.
3887 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
3889         [BZ #22707]
3890         * elf/elf.h (DF_1_STUB): Define.
3891         (DF_1_PIE): Define.
3893 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3895         [BZ #22697]
3896         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3897         Do not add 0.5 to integer or out-of-range arguments.
3899 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
3901         * po/bg.po: Update translations.
3902         * po/cs.po: Likewise.
3903         * po/de.po: Likewise.
3904         * po/ko.po: Likewise.
3905         * po/pl.po: Likewise.
3906         * po/sv.po: Likewise.
3907         * po/uk.po: Likewise.
3908         * po/vi.po: Likewise.
3910 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3912         * aarch64/start.S (_start): Use __wrap_main.
3913         (__wrap_main): New local symbol.
3915 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
3917         [BZ #22679]
3918         CVE-2018-1000001
3919         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
3920         generic_getcwd if the path returned by getcwd syscall is not absolute.
3921         * io/tst-getcwd-abspath.c: New test.
3922         * io/Makefile (tests): Add tst-getcwd-abspath.
3924 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
3926         * malloc/malloc.c (malloc_consolidate): Add size check.
3928 2018-01-12  Florian Weimer  <fweimer@redhat.com>
3930         * support/write_message.c (write_message): Preserve errno.
3931         * support/check.c (print_failure): Likewise.
3932         * support/support_test_verify_impl.c (support_test_verify_impl):
3933         Likewise.
3934         * support/support_test_compare_failure.c
3935         (support_test_compare_failure): Likewise.
3937 2018-01-12  Florian Weimer  <fweimer@redhat.com>
3939         [BZ #22701]
3940         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
3941         Prevent installation of libnsl.so.
3942         (libnsl-inhibit-o): Do not build (or install) static libraries.
3944 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
3946         [BZ #22657]
3947         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
3948         before the day number which may produce a double space.
3949         (date_fmt): Likewise.
3951 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
3953         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
3954         instead of fegetenv.
3956 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
3958         [BZ #22702]
3959         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
3960         comment to say exceptions are discarded.
3961         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
3962         __fegetenv.
3963         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
3964         be enabled.
3966 2018-01-11  Florian Weimer  <fweimer@redhat.com>
3968         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
3969         and error message.
3971 2018-01-11  Florian Weimer  <fweimer@redhat.com>
3973         [BZ #22636]
3974         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
3975         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
3977 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
3979         [BZ #22693]
3980         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
3981         negative arguments in test for NaN or infinity argument.
3983 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
3985         * po/libc.pot: Regenerate.
3987 2018-01-10  Florian Weimer  <fweimer@redhat.com>
3989         [BZ #22636]
3990         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
3991         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
3993 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3995         * hurd/hurd/fd.h: Include <fcntl.h>
3996         (__hurd_at_flags): New function.
3997         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
3998         with call to __hurd_at_flags.
3999         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
4000         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
4001         __faccessat
4002         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
4003         (__access_noerrno): Use __faccessat_common instead of access_common.
4004         (__access): Likewise.
4005         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
4006         with a call to __faccessat.
4007         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
4008         (__faccessat_common): ... this. Move implementation of __access into it when
4009         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
4010         reauthenticate_cwdir_at helper to implement AT mechanism.
4011         (__faccessat_noerrno): New function, just calls __faccessat_common.
4012         (__faccessat): New function, just calls __faccessat_common.
4013         (faccessat): Define weak alias.
4015 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
4017         [BZ #22691]
4018         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4019         (CFLAGS-s_fmaxmagl.c): New variable.
4020         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
4022         [BZ #22690]
4023         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
4024         long int for arguments of possibly overflowing addition or
4025         subtraction.
4026         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
4028 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
4030         [BZ #22688]
4031         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4032         (CFLAGS-e_remainderl.c): New variable.
4034         [BZ #22687]
4035         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
4036         variable.
4037         (CFLAGS-s_cacoshl.c): Likewise.
4038         (CFLAGS-s_casinhl.c): Likewise.
4039         (CFLAGS-s_catanl.c): Likewise.
4040         (CFLAGS-s_catanhl.c): Likewise.
4041         (CFLAGS-s_cexpl.c): Likewise.
4042         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
4043         (CFLAGS-s_csinhl.c): Likewise.
4044         (CFLAGS-s_clogl.c): Likewise.
4045         (CFLAGS-s_clog10l.c): Likewise.
4046         (CFLAGS-s_csinl.c): Likewise.
4047         (CFLAGS-s_csqrtl.c): Likewise.
4049 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
4050 2017-01-09  Svante Signell  <svante.signell@gmail.com>
4052         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
4053         (_hurd_exec_paths): New function.
4054         * hurd/hurd.h (_hurd_exec): Deprecate function.
4055         (_hurd_exec_paths): Declare function.
4056         * hurd/Versions: Export _hurd_exec_paths.
4057         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
4058         (__execve): Use __getcwd to build absolute path, and use
4059         _hurd_exec_paths instead of _hurd_exec.
4060         * sysdeps/mach/hurd/spawni.c: Likewise.
4061         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
4062         _hurd_exec.
4064 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
4066         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
4067         test instead of failing in case of ENOENT returned by posix_openpt.
4069 2018-01-08  Florian Weimer  <fweimer@redhat.com>
4071         resolv: Support binary labels in test framework.
4072         * support/resolv_test.c (struct to_be_freed): Remove.
4073         (struct compressed_name): New.
4074         (allocate_compressed_name, ascii_tolower)
4075         (compare_compressed_name): New functions.
4076         (struct resolv_response_builder): Update type of
4077         compression_offsets for use with tsearch.  Rempve to_be_freed.
4078         (response_push_pointer_to_free): Remove function.
4079         (resolv_response_add_name): Rewrite using struct compressed_name
4080         and tsearch instead of hsearch_r.
4081         (response_builder_allocate): Remove initialization of
4082         compression_offsets.
4083         (response_builder_free): Update for removal of to_be_freed.  Use
4084         tdestroy instead of hdestroy_r.
4085         * resolv/Makefile (tests): Add tst-resolv-binary.
4086         (tst-resolv-binary): Link with -lresolv -lpthread.
4088 2018-01-08  Florian Weimer  <fweimer@redhat.com>
4090         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
4091         time.  Pass positive flag instead of negative flag to
4092         support_test_compare_failure.
4093         (support_test_compare_failure): Change negative parameter to
4094         positive.
4095         * support/support_test_compare_failure.c (report)
4096         (support_test_compare_failure): Likewise.
4097         * support/tst-test_compare.c (return_ssize_t, return_int): New.
4098         (do_test): Check int/size_t, ssize_t/size_t comparisons.
4100 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4102         [BZ #22637]
4103         * nptl/descr.h (stackblock, stackblock_size): Update comments.
4104         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
4105         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
4106         stacksize.
4107         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
4109 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
4111         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4112         Add s_sincosf-sse2 and s_sincosf-fma.
4113         (CFLAGS-s_sincosf-fma.c): New.
4114         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
4115         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4116         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
4117         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
4118         __sincosf is defined.
4120 2018-01-08  Florian Weimer  <fweimer@redhat.com>
4122         * nptl/tst-thread-exit-clobber.cc: New file.
4123         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
4124         C++11 mode.
4125         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
4126         (tests): Add tst-thread-exit-clobber.
4127         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
4129 2018-01-08  Florian Weimer  <fweimer@redhat.com>
4131         * support/check.h (support_static_assert): Define.
4132         (TEST_COMPARE): Use it.
4134 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
4136         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
4137         [!__RLIM_T_MATCHES_RLIM64_T]
4138         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
4139         __getrlimit64. Add libc_hidden_weak.
4141 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
4143         * elf/elf.h (R_RISCV_NONE): New define.
4144         (R_RISCV_32): Likewise.
4145         (R_RISCV_64): Likewise.
4146         (R_RISCV_RELATIVE): Likewise.
4147         (R_RISCV_COPY): Likewise.
4148         (R_RISCV_JUMP_SLOT): Likewise.
4149         (R_RISCV_TLS_DTPMOD32): Likewise.
4150         (R_RISCV_TLS_DTPMOD64): Likewise.
4151         (R_RISCV_TLS_DTPREL32): Likewise.
4152         (R_RISCV_TLS_DTPREL64): Likewise.
4153         (R_RISCV_TLS_TPREL32): Likewise.
4154         (R_RISCV_TLS_TPREL64): Likewise.
4155         * Makerules (make-link-multidir): Make directories before linking into
4156         them.
4157         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
4158         define.
4159         (VDSO_HASH_LINUX_4_15): Likewise.
4160         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
4161         in subdirectories of lib.
4162         * nptl/Makefile (/librt.so): Always depend on
4163         "$(shared-thread-library)".
4165 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4167         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
4168         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
4169         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
4170         (___tls_get_addr).
4171         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
4172         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
4173         "-O2 -march=i686".
4174         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
4175         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
4176         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
4177         * sysdeps/gnu/glob-lstat-compat.c: New file.
4178         * sysdeps/gnu/glob64-lstat-compat.c: New file.
4179         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
4181 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4183         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
4184         Reserve 16 chars to reloc_addr before calling _itoa_word.
4186 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
4188         [BZ #22678]
4189         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
4190         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
4192         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
4193         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
4195         * resource/tst-getrlimit.c: Add copyright header.
4197 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
4198             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4200         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
4201         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
4202         Define __GI_getrlimit64 as weak alias of __getrlimit64.
4203         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
4204         instead.
4205         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
4206         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
4207         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
4208         RLIM64_INFINITY): Fix values to match the kernel ones.
4209         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
4210         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
4211         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
4212         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
4213         getrlimit64@@GLIBC_2_27.
4214         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
4215         and setrlimit64.
4216         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
4217         getrlimit, setrlimit, getrlimit64 and setrlimit64.
4218         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
4219         setrlimit, getrlimit64 and setrlimit64.
4221 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
4223         [BZ #22648]
4224         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
4225         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
4227 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
4229         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
4230         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
4231         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
4233 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4235         [BZ #15479]
4236         [BZ #22666]
4237         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
4238         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
4240         [BZ #15479]
4241         [BZ #22665]
4242         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
4243         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
4244         * sysdeps/alpha/fpu/s_floor.c: Likewise.
4245         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
4247 2018-01-04  Florian Weimer  <fweimer@redhat.com>
4249         [BZ #22667]
4250         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
4251         Align the stack before calling exit.
4252         * stdlib/tst-makecontext-align.c: New file.
4253         * stdlib/Makefile (tests): Add tst-makecontext-align.
4255 2018-01-04  Florian Weimer  <fweimer@redhat.com>
4257         Add support for calling dlvsym from libc.so.
4258         * include/dlfcn.h (__libc_dlvsym): Declare.
4259         * elf/Makefile (tests-static-internal): Add
4260         tst-libc_dlvsym-static.
4261         (tests-internal): Add tst-libc_dlvsym.
4262         (modules-names): Add tst-libc_dlvsym-dso.
4263         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
4264         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
4265         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
4266         object tst-libc_dlvsym-dso.so needs to be built before running
4267         these tests.
4268         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
4269         * elf/Versions: Export __libc_dlvsym.
4270         * elf/dl-libc.c (struct do_dlvsym_args): New.
4271         (do_dlvsym, __libc_dlvsym): New functions.
4272         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
4273         (_dl_open_hook2): New variable.
4274         (__libc_register_dl_open_hook): Set it.
4275         * elf/tst-libc_dlvsym-dso.c: New file.
4276         * elf/tst-libc_dlvsym-static.c: Likewise.
4277         * elf/tst-libc_dlvsym.c: Likewise.
4278         * elf/tst-libc_dlvsym.h: Likewise.
4280 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4282         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
4283         include <sys/mount.h>.
4285 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
4287         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
4288         Add __NO_MATH_ERRNO__ check.
4290 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
4292         * sysdeps/mips/mips32/libm-test-ulps: Update.
4293         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4295 2018-01-02  Florian Weimer  <fweimer@redhat.com>
4297         * misc/tst-pselect.c: Add copyright header.
4299 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
4301         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
4302         comment.
4303         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
4304         comment.
4305         (settrlimit): Rename into setrlimit.
4306         (__sttrlimit): Rename into __setrlimit.
4308         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
4309         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
4310         never defined in that case.
4312 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
4314         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4316         * sysdeps/arm/libm-test-ulps: Update.
4318         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
4319         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
4321 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4323         * NEWS: Add cosf and sincosf to list of optimized functions.
4325 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
4327         [BZ #22660]
4328         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
4329         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
4330         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
4331         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
4333 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
4335         [BZ #22433]
4336         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
4338         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
4339         making a copy of it.
4341 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
4343         * manual/texinfo.tex: Update to version 2017-12-26.21 with
4344         trailing whitespace removed.
4345         * scripts/config.guess: Update to version 2018-01-01.
4346         * scripts/config.sub: Update to version 2018-01-01.
4347         * scripts/move-if-change: Update from gnulib.
4349         * NEWS: Update copyright dates.
4350         * catgets/gencat.c (print_version): Likewise.
4351         * csu/version.c (banner): Likewise.
4352         * debug/catchsegv.sh: Likewise.
4353         * debug/pcprofiledump.c (print_version): Likewise.
4354         * debug/xtrace.sh (do_version): Likewise.
4355         * elf/ldconfig.c (print_version): Likewise.
4356         * elf/ldd.bash.in: Likewise.
4357         * elf/pldd.c (print_version): Likewise.
4358         * elf/sotruss.sh: Likewise.
4359         * elf/sprof.c (print_version): Likewise.
4360         * iconv/iconv_prog.c (print_version): Likewise.
4361         * iconv/iconvconfig.c (print_version): Likewise.
4362         * locale/programs/locale.c (print_version): Likewise.
4363         * locale/programs/localedef.c (print_version): Likewise.
4364         * login/programs/pt_chown.c (print_version): Likewise.
4365         * malloc/memusage.sh (do_version): Likewise.
4366         * malloc/memusagestat.c (print_version): Likewise.
4367         * malloc/mtrace.pl: Likewise.
4368         * manual/libc.texinfo: Likewise.
4369         * nptl/version.c (banner): Likewise.
4370         * nscd/nscd.c (print_version): Likewise.
4371         * nss/getent.c (print_version): Likewise.
4372         * nss/makedb.c (print_version): Likewise.
4373         * posix/getconf.c (main): Likewise.
4374         * scripts/test-installation.pl: Likewise.
4375         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4377         * All files with FSF copyright notices: Update copyright dates
4378         using scripts/update-copyrights.
4379         * locale/programs/charmap-kw.h: Regenerated.
4380         * locale/programs/locfile-kw.h: Likewise.
4382 2017-12-31  Zack Weinberg  <zackw@panix.com>
4384         * libio/bits/libio-ldbl.h: Correct check for improper
4385         inclusion.  Add own multiple include guard.
4387 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
4388             Dmitry V. Levin  <ldv@altlinux.org>
4390         [BZ #22625]
4391         CVE-2017-16997
4392         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
4393         string token expansion. Check for NULL pointer or empty string possibly
4394         returned by expand_dynamic_string_token.
4395         (decompose_rpath): Check for empty path after dynamic string
4396         token expansion.
4398 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
4400         [BZ #22433]
4401         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
4403         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
4404         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
4405         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
4406         and PTRACE_SYSCALL.
4407         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
4408         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
4409         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
4410         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
4411         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
4412         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
4414         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
4415         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
4416         __ptrace_peeksiginfo_flags, ptrace): Move to ...
4417         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
4418         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4419         bits/ptrace-shared.h.
4420         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
4421         <bits/ptrace-shared.h>.
4422         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
4423         __ptrace_peeksiginfo_flags, ptrace): Remove.
4424         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
4425         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
4426         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
4427         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
4428         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
4430 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
4432         [BZ #17804]
4433         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
4434         end of the loop. Improve comments.
4436 2017-12-29  Zack Weinberg  <zackw@panix.com>
4438         [BZ #22615]
4439         * manual/errno.texi (Checking for Errors): Explicitly say that errno
4440         might be set on success.
4442 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
4444         [BZ #22611]
4445         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
4446         is unchanged on success.
4448 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
4450         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
4451         updated.
4452         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
4453         expand_dynamic_string_token): Likewise.
4454         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
4455         is_path argument.
4457         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
4458         contains ':'.
4460         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
4461         is set and name contains ':', and all code depending on these checks.
4463 2017-12-24  Zack Weinberg  <zackw@panix.com>
4465         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
4466         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
4467         respectively.
4468         * libio/libio.h: Rename the original version of this file to
4469         libio/bits/libio.h.  Error out if not included by stdio.h or the
4470         stub libio.h.
4471         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
4472         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
4473         if not included by bits/libio.h or the stub _G_config.h.
4474         * sysdeps/unix/sysv/linux/_G_config.h: Move to
4475         sysdeps/unix/sysv/linux/bits.  Error out if not included by
4476         bits/libio.h or the stub _G_config.h.
4477         * libio/stdio.h: Include bits/libio.h, not libio.h.
4478         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
4479         well as libio.h and _G_config.h.
4481         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
4482         * libio/strfile.h, stdio-common/vfscanf.c
4483         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
4484         Include stdio.h, not _G_config.h nor libio.h.
4485         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
4486         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
4488         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
4490 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
4492         [BZ #22347]
4493         * stdlib/getrandom.c (getrandom): Fix comment.
4494         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
4496 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
4498         [BZ #21161]
4499         * manual/arith.texi (strtoul): Fix a typo.
4501         [BZ #22596]
4502         * manual/arith.texi (finite): Fix the description of the return
4503         value.
4505 2017-12-22  Eric Blake  <ebb9@byu.net>
4507         Avoid gcc warnings on cygwin
4508         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
4509         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
4510         Avoid unused variable.
4512 2017-12-22  Florian Weimer  <fweimer@redhat.com>
4514         * io/Makefile (routines): Add copy_file_range.
4515         (tests): Add tst-copy_file_range.
4516         (tests-static, tests-internal): Add tst-copy_file_range-compat.
4517         * io/Versions (GLIBC_2.27): Export copy_file_range.
4518         * io/copy_file_range-compat.c: New file.
4519         * io/copy_file_range.c: Likewise.
4520         * io/tst-copy_file_range-compat.c: Likewise.
4521         * io/tst-copy_file_range.c: Likewise.
4522         * manual/llio.texi (Copying File Data): New section.
4523         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
4524         * support/Makefile (libsupport-routines): Add support-xfstat,
4525         xftruncate, xlseek.
4526         * support/support-xfstat.c: New file.
4527         * support/xftruncate.c: Likewise.
4528         * support/xlseek.c: Likewise.
4529         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
4530         * sysdeps/unix/sysv/linux/**.abilist: Update.
4531         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
4533 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4535         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
4536         disable-multi-arch variant to aarch64-linux-gnu.
4538 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
4540         * manual/texinfo.tex: Update to version 2017-12-18.20 with
4541         trailing whitespace removed.
4542         * scripts/config.guess: Update to version 2017-12-17.
4543         * scripts/config.sub: Update to version 2017-11-23.
4544         * scripts/install-sh: Update to version 2017-09-23.17.
4545         * scripts/move-if-change: Update to version 2017-09-13 06:45.
4547 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4549         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
4550         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
4551         * sysdeps/tile/_mcount.S (__mcount): Likewise.
4552         * sysdeps/tile/crti.S (_init, _fini): Likewise.
4553         * sysdeps/tile/crtn.S: Likewise.
4554         * sysdeps/tile/dl-start.S (_start): Likewise.
4555         * sysdeps/tile/dl-trampoline.S: Likewise.
4556         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
4557         * sysdeps/tile/start.S (_start): Likewise.
4558         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
4559         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
4560         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
4561         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
4562         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
4563         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
4564         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
4566         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
4567         comment.
4568         * sysdeps/tile/preconfigure: Remove tilegx folder.
4569         * sysdeps/tile/tilegx/Implies: Move definitions to ...
4570         * sysdeps/tile/Implies: ... here.
4571         * sysdeps/tile/tilegx/Makefile: Move rules to ...
4572         * sysdeps/tile/Makefile: ... here.
4573         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
4574         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
4575         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
4576         * sysdeps/tile/bits/wordsize.h: ... here.
4577         * sysdeps/tile/tilegx/*: Move to ...
4578         * sysdeps/tile/*: ... here.
4579         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
4580         * sysdeps/tile/tilegx32/Implies: ... here.
4581         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
4582         * sysdeps/tile/tilegx64/Implies: ... here.
4583         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
4584         to ...
4585         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
4586         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
4587         * sysdeps/unix/sysv/linux/tile/*: ... here.
4588         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
4589         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
4590         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
4591         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
4593         * README: Remove tilepro-*-linux-gnu from supported architecture.
4594         * scripts/build-many-glibcs.py: Likewise.
4595         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
4596         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
4597         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
4598         elf_machine_matches_host, elf_machine_dynamic,
4599         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
4600         howto, elf_machine_rela): Likewise.
4601         * sysdeps/tile/dl-start.S (_start): Likewise.
4602         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
4603         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
4604         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
4605         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
4606         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
4607         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
4608         Likewise.
4609         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
4610         * sysdeps/tile/preconfigure: Likewise.
4611         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
4612         POINTER_CHK_GUARD): Likewise.
4613         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
4614         * sysdeps/tile/start.S (_start): Likewise.
4615         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
4616         Likewise.
4617         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
4618         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
4619         CMOVNEZ): Remove.
4620         * sysdeps/unix/sysv/linux/tile/bits/environments.h
4621         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
4622         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
4623         Likewise.
4624         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
4625         * sysdeps/tile/tilepro/Implies: Remove file.
4626         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
4627         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
4628         * sysdeps/tile/tilepro/memchr.c: Likewise.
4629         * sysdeps/tile/tilepro/memcpy.S: Likewise.
4630         * sysdeps/tile/tilepro/memset.c: Likewise.
4631         * sysdeps/tile/tilepro/memusage.h: Likewise.
4632         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
4633         * sysdeps/tile/tilepro/strchr.c: Likewise.
4634         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
4635         * sysdeps/tile/tilepro/strlen.c: Likewise.
4636         * sysdeps/tile/tilepro/strrchr.c: Likewise.
4637         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
4638         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
4639         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
4640         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
4641         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
4642         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
4643         Likewise.
4644         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
4645         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
4646         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
4647         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
4648         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4649         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
4650         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
4651         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
4652         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
4653         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
4654         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
4655         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
4656         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
4657         tilepro mention in comment.
4659         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
4660         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
4661         * nptl/pthread_join_common.c: New file: common function used on
4662         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
4663         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
4664         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
4665         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
4666         (cleanup): Move definition to pthread_join_common.c.
4667         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
4668         Remove superflous checks.
4669         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
4670         Likewise.
4672 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4674         * sysdeps/aarch64/libm-test-ulps: Update.
4676 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4678         * sysdeps/aarch64/memset.S (MEMSET): Define.
4680 2017-12-20  Florian Weimer  <fweimer@redhat.com>
4682         [BZ #22635]
4683         nptl: Provide full implementation of pthread_self in libc.so.
4684         * nptl/Makefile (routines): Add pthread_self.
4685         (libpthread-routines): Replace pthread_self with
4686         compat-pthread_self.
4687         * nptl/forward.c (pthread_self): Remove.
4688         * nptl/nptl-init.c (pthread_functions): Do not initialize
4689         ptr_pthread_self.
4690         * nptl/pthread_self.c (pthread_self): Remove weak alias.
4691         * nptl/compat-pthread_self.c: New file.
4692         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
4693         Remove ptr_pthread_self.
4695 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
4697         * posix/regcomp.c: Fix spelling in comments.
4698         * posix/regex.h: Likewise.
4699         * posix/regex_internal.c: Likewise.
4700         * posix/regexec.c: Likewise.
4702 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4704         [BZ #22377]
4705         * math/Makefile [C++] (tests): Add test for iseqsig.
4706         * math/math.h [C++] (iseqsig): New implementation, which does
4707         not rely on __MATH_TG/__builtin_types_compatible_p.
4708         * math/test-math-iseqsig.cc: New file.
4709         * sysdeps/powerpc/powerpc64le/Makefile
4710         (CFLAGS-test-math-iseqsig.cc): New variable.
4712 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
4714         * elf/dl-load.c (is_trusted_path): Remove.
4715         (fillin_rpath): Remove check_trusted argument and its use,
4716         all callers changed.
4718 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
4720         [BZ #22630]
4721         * Makeconfig (link-pie-before-libc): Replace -pie with
4722         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
4723         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
4724         (tst-dlopen-aout-no-pie): New.
4725         (LDFLAGS-tst-prelink): Removed.
4726         (tst-prelink-no-pie): New.
4727         (LDFLAGS-tst-main1): Removed.
4728         (tst-main1-no-pie): New.
4729         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
4730         (tst-gmon-no-pie): New.
4732 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
4734         * manual/install.texi: Document that --enable-static-pie
4735         implies PIE.
4736         * INSTALL: Regenerated.
4738 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4740         [BZ #21309]
4741         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
4742         unsigned.
4744 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
4746         Revert:
4748         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
4750         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4752         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
4754         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
4755         <errno.h>.  Include "eexp.tbl".
4756         (half): New constant.
4757         (one): Likewise.
4758         (__ieee754_exp): Rewrite.
4759         (__slowexp): Remove prototype.
4760         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
4761         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
4762         * sysdeps/i386/fpu/slowexp.c: Likewise.
4763         * sysdeps/ia64/fpu/slowexp.c: Likewise.
4764         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
4765         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
4766         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
4767         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
4768         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
4769         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
4770         comment.
4771         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
4772         (CPPFLAGS-slowexp.c): Remove variable.
4773         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4774         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
4775         (CFLAGS-slowexp-fma.c): Remove variable.
4776         (CFLAGS-slowexp-fma4.c): Likewise.
4777         (CFLAGS-slowexp-avx.c): Likewise.
4778         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
4779         define as macro.
4780         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
4781         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
4782         * math/Makefile (type-double-routines): Remove slowexp.
4783         * manual/probes.texi (slowexp_p6): Remove.
4784         (slowexp_p32): Likewise.
4786 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4788         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4789         arithmetic.
4791         * lib/glob.c (glob): Do not pass NULL to mempcpy.
4793 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
4795         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4797 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
4799         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
4800         <errno.h>.  Include "eexp.tbl".
4801         (half): New constant.
4802         (one): Likewise.
4803         (__ieee754_exp): Rewrite.
4804         (__slowexp): Remove prototype.
4805         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
4806         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
4807         * sysdeps/i386/fpu/slowexp.c: Likewise.
4808         * sysdeps/ia64/fpu/slowexp.c: Likewise.
4809         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
4810         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
4811         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
4812         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
4813         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
4814         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
4815         comment.
4816         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
4817         (CPPFLAGS-slowexp.c): Remove variable.
4818         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4819         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
4820         (CFLAGS-slowexp-fma.c): Remove variable.
4821         (CFLAGS-slowexp-fma4.c): Likewise.
4822         (CFLAGS-slowexp-avx.c): Likewise.
4823         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
4824         define as macro.
4825         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
4826         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
4827         * math/Makefile (type-double-routines): Remove slowexp.
4828         * manual/probes.texi (slowexp_p6): Remove.
4829         (slowexp_p32): Likewise.
4831 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4832             James Clarke <jrtc27@jrtc27.com>
4834         [BZ #22603]
4835         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
4836         addition.
4838 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4840         [BZ #22605]
4841         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
4842         code.
4844 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
4846         [BZ #22563]
4847         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
4848         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
4849         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
4850         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
4851         to feature_1.
4853 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
4855         [BZ #22563]
4856         * bits/types/__cancel_jmp_buf_tag.h: New file.
4857         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
4858         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
4859         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
4860         * nptl/Makefile (headers): Add
4861         bits/types/__cancel_jmp_buf_tag.h.
4862         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
4863         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
4864         * sysdeps/nptl/pthread.h: Include
4865         <bits/types/__cancel_jmp_buf_tag.h>.
4866         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
4867         __cancel_jmp_buf.
4868         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
4870 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
4872         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
4873         --enable-static-pie variants to x86_64, x32 and i686.
4875 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
4877         [BZ #22631]
4878         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
4879         argument for attrubutes.  All callers changed.
4880         (__inline_mathop1): Likewise.  All callers changed.
4881         (__inline_mathop): Likewise.  All callers changed.
4882         [__USE_MISC] (scalbn): Use __inline_forward instead of
4883         __inline_forward_c.
4884         [__USE_ISOC99] (scalbln): Likewise.
4885         [__USE_ISOC99] (nearbyint): Likewise.
4886         [__USE_ISOC99] (lrint): Likewise.
4887         [__USE_MISC] (scalbnf): Likewise.
4888         [__USE_ISOC99] (scalblnf): Likewise.
4889         [__USE_ISOC99] (nearbyintf): Likewise.
4890         [__USE_ISOC99] (lrintf): Likewise.
4891         [__USE_MISC] (scalbnl): Likewise.
4892         [__USE_ISOC99] (scalblnl): Likewise.
4893         [__USE_ISOC99] (nearbyintl): Likewise.
4894         [__USE_ISOC99] (lrintl): Likewise.
4895         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
4896         __inline_mathop and __m81_defun changed.
4898         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
4899         CPU or FPU for ARM hard-float configurations.
4901 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
4903         * nptl/tst-attr3.c: Include <libc-diag.h>.
4904         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
4906         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
4908         * string/tester.c (test_strncat): Also disable -Warray-bounds
4909         warnings for two tests.
4911 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
4913         [BZ #22614]
4914         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
4915         $(cc-pie-default) == yes.
4916         * config.make.in (cc-pie-default): New.
4917         * configure.ac (libc_cv_pie_default): Renamed to ...
4918         (libc_cv_cc_pie_default): This.
4919         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
4920         * configure: Regenerated.
4922 2017-12-18  Florian Weimer  <fweimer@redhat.com>
4924         [BZ #20204]
4925         ld.so: Harden dl-libc/libdl hooks.
4926         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
4927         (rtld_active): New function.
4928         * dlfcn/dladdr.c (__dladdr): Call it.
4929         * dlfcn/dladdr1.c (__dladdr1): Likewise.
4930         * dlfcn/dlclose.c (__dlcose): Likewise.
4931         * dlfcn/dlerror.c (__dlerror): Likewise.
4932         * dlfcn/dlinfo.c (__dlinfo): Likewise.
4933         * dlfcn/dlmopen.c (__dlmopen): Likewise.
4934         * dlfcn/dlopen.c (__dlopen): Likewise.
4935         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
4936         * dlfcn/dlsym.c (__dlsym): Likewise.
4937         * dlfcn/dlvsym.c (__dlvsym): Likewise.
4938         * libio/vtables.c (_IO_vtable_check): Likewise.
4939         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
4940         (__libc_dlclose): Likewise.
4941         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
4942         assignment.
4944 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
4946         [BZ #22446]
4947         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
4948         buffers for readlink input and output.
4950 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
4952         [BZ #22624]
4953         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
4954         inhibit_stack_protector.
4956         [BZ #22624]
4957         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
4958         inhibit_stack_protector.
4960 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
4962         [BZ #22627]
4963         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
4964         code and invocation.
4966 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4968         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
4970 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
4972         [BZ #22505]
4973         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
4975 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4977         * sysdeps/s390/fpu/libm-test-ulps: Update.
4979 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4981         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4983 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4985         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
4986         constants to s_sincosf.h file.
4987         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4988         * sysdeps/ieee754/flt-32/s_sincosf.c: New
4989         implementation.
4990         * sysdeps/ieee754/flt-32/s_sincosf.h:
4991         New file.
4993 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
4995         [BZ #14681]
4996         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
4997         before mtrace.
4999 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5001         [BZ #19574]
5002         * INSTALL: Regenerated.
5003         * Makeconfig (real-static-start-installed-name): New.
5004         (pic-default): Updated for --enable-static-pie.
5005         (pie-default): New for --enable-static-pie.
5006         (default-pie-ldflag): Likewise.
5007         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
5008         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
5009         Replace $(static-start-installed-name) with
5010         $(real-static-start-installed-name).
5011         (+prectorT): Updated for --enable-static-pie.
5012         (+postctorT): Likewise.
5013         (CFLAGS-.o): Add $(pie-default).
5014         (CFLAGS-.op): Likewise.
5015         * NEWS: Mention --enable-static-pie.
5016         * config.h.in (ENABLE_STATIC_PIE): New.
5017         * configure.ac (--enable-static-pie): New configure option.
5018         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
5019         (have-static-pie): Likewise.
5020         Enable static PIE if linker supports --no-dynamic-linker.
5021         (ENABLE_STATIC_PIE): New AC_DEFINE.
5022         (enable-static-pie): New LIBC_CONFIG_VAR.
5023         * configure: Regenerated.
5024         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
5025         gr$(start-installed-name) for --enable-static-pie.
5026         (extra-objs): Likewise.
5027         (install-lib): Likewise.
5028         (extra-objs): Add static-reloc.o and static-reloc.os
5029         ($(objpfx)$(start-installed-name)): Also depend on
5030         $(objpfx)static-reloc.o.
5031         ($(objpfx)r$(start-installed-name)): New.
5032         ($(objpfx)g$(start-installed-name)): Also depend on
5033         $(objpfx)static-reloc.os.
5034         ($(objpfx)gr$(start-installed-name)): New.
5035         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
5036         in libc.a.
5037         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
5038         initimage.
5039         * csu/static-reloc.c: New file.
5040         * elf/Makefile (routines): Add dl-reloc-static-pie.
5041         (elide-routines.os): Likewise.
5042         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
5043         (tst-tls1-static-non-pie-no-pie): New.
5044         * elf/dl-reloc-static-pie.c: New file.
5045         * elf/dl-support.c (_dl_get_dl_main_map): New function.
5046         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
5047         STATIC_PIE_BOOTSTRAP.
5048         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
5049         * gmon/Makefile (tests): Add tst-gmon-static-pie.
5050         (tests-static): Likewise.
5051         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
5052         (tst-gmon-static-no-pie): New.
5053         (CFLAGS-tst-gmon-static-pie.c): Likewise.
5054         (CRT-tst-gmon-static-pie): Likewise.
5055         (tst-gmon-static-pie-ENV): Likewise.
5056         (tests-special): Likewise.
5057         ($(objpfx)tst-gmon-static-pie.out): Likewise.
5058         (clean-tst-gmon-static-pie-data): Likewise.
5059         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
5060         * gmon/tst-gmon-static-pie.c: New file.
5061         * manual/install.texi: Document --enable-static-pie.
5062         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
5063         (_dl_get_dl_main_map): Likewise.
5064         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
5065         * sysdeps/x86_64/configure.ac: Likewise.
5066         * sysdeps/i386/configure: Regenerated.
5067         * sysdeps/x86_64/configure: Likewise.
5068         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
5069         (ASFLAGS-.op): Likewise.
5071 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
5073         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
5074         * posix/tst-mmap-offset.c (fname): Use /tmp.
5075         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
5077 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
5079         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
5081 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
5083         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
5084         errno.
5086 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
5088         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
5089         --with-float=hard for arm-linux-gnueabihf configurations.
5091         [BZ #14121]
5092         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
5093         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
5094         ($(mo-installed)): Use $(objpfx)%.mo.
5095         (realclean): Remove rule.
5097         * po/Makefile (linguas): Remove rule and dependencies.
5098         (linguas.mo): Likewise.
5099         (.PHONY): Do not depend on linguas and linguas.mo.
5100         (podir): Remove variable.
5101         (pofiles): Likewise.
5102         [$(pofiles)] (%.po): Remove rule.
5104         * sysdeps/sparc/sparc32/Makefile
5105         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
5106         start-of-line whitespace in argument of echo.
5107         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
5108         with whitespace.  Generate __wrap_.udiv alias.
5109         * sysdeps/sparc/sparc32/rem.S: Regenerated.
5110         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
5111         * sysdeps/sparc/sparc32/udiv.S: Likewise.
5112         * sysdeps/sparc/sparc32/urem.S: Likewise.
5114 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5116         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
5117         for aligned inputs.
5119 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5121         * benchtests/bench-strcmp.c: Print output in JSON format.
5123         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
5125 2017-12-14  Florian Weimer  <fweimer@redhat.com>
5127         [BZ #22607]
5128         CVE-2017-1000409
5129         * elf/dl-load.c (_dl_init_paths): Compute number of components in
5130         the expanded path string.
5132 2017-12-14  Florian Weimer  <fweimer@redhat.com>
5134         [BZ #22606]
5135         CVE-2017-1000408
5136         * elf/dl-load.c (system_dirs): Update comment.
5137         (nsystem_dirs_len): Use array_length.
5138         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
5140 2017-12-14  Florian Weimer  <fweimer@redhat.com>
5142         Simplify compiling most of support/ outside of glibc.
5143         * support/check_addrinfo.c: Include <string.h>.
5144         * support/check_dns_packet.c: Likewise.
5145         * support/check_hostent.c: Likewise.
5146         * support/support_can_chroot.c: Include <support/xunistd.h>.
5147         * support/support_format_addrinfo.c: Include <stdlib.h>
5148         * support/support_format_dns_packet.c: Include <stdbool.h>.
5149         * support/support_format_hostent.c: Include <stdlib.h>.
5150         * support/support_format_netent.c: Likewise.
5151         * support/support_write_string.c: Include <support/xunistd.h>.
5152         * support/xdlfcn.c: Include <stddef.h>.
5154 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
5156         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
5158 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
5159             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5161         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
5162         (sysdeps_routines): Add memset-niagara7.
5163         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
5164         Likewise.
5165         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
5166         file.
5167         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
5168         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
5169         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
5170         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
5171         Add niagara7 option.
5172         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
5173         memset.
5175         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
5176         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
5177         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
5178         Likewise.
5179         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
5180         New file.
5181         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
5182         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
5183         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
5184         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
5185         and __memmove_niagara7.
5186         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
5187         Add niagara7 option.
5188         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
5189         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
5190         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
5191         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
5192         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
5194 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
5196         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
5197         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
5198         * sysdeps/sparc/sparc64/memmove.S: Likewise.
5199         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
5201         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
5202         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
5203         _dl_sparc_cap_flags array.
5204         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
5206 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5208         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
5209         time whenever possible.
5211 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
5213         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
5214         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
5216 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
5218         * soft-fp/fmadf4.c: Move to ....
5219         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
5220         * soft-fp/fmasf4.c: Move to ....
5221         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
5222         * soft-fp/fmatf4.c: Move to ....
5223         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
5224         * sysdeps/ieee754/soft-fp/Makefile: New file.
5225         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
5226         * sysdeps/arm/preconfigure: Regenerated.
5227         * sysdeps/arm/nofpu/Implies: New file.
5228         * sysdeps/arm/s_fma.c: Remove file.
5229         * sysdeps/arm/s_fmaf.c: Likewise.
5230         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
5231         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
5232         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
5233         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
5234         * sysdeps/microblaze/s_fma.c: Remove file.
5235         * sysdeps/microblaze/s_fmaf.c: Likewise.
5236         * sysdeps/mips/mips32/nofpu/Implies: New file.
5237         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
5238         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
5239         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
5240         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
5241         * sysdeps/mips/ieee754/s_fma.c: Remove file.
5242         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
5243         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
5244         implementation.
5245         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
5246         * sysdeps/nios2/s_fma.c: Remove file.
5247         * sysdeps/nios2/s_fmaf.c: Likewise.
5248         * sysdeps/sh/nofpu/Implies: New file.
5249         * sysdeps/sh/s_fma.c: Remove file.
5250         * sysdeps/sh/s_fmaf.c: Likewise.
5251         * sysdeps/tile/Implies: Add ieee754/soft-fp.
5252         * sysdeps/tile/s_fma.c: Remove file.
5253         * sysdeps/tile/s_fmaf.c: Likewise.
5255 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
5257         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5258         Add s_cosf-sse2 and s_cosf-fma.
5259         (CFLAGS-s_cosf-fma.c): New.
5260         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
5261         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
5262         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
5264 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
5266         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
5268 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5270         * libio/Makefile (tests): Add tst-bz22415.
5271         (tst-bz22415-ENV): New rule.
5272         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
5273         (tests-special): Add tst-bz22415-mem.out.
5274         ($(objpfx)tst-bz22415-mem.out): New rule.
5275         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
5276         in case of a successful seek operation.
5277         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
5278         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
5279         buffer is required.
5280         * libio/tst-bz22415.c: New test.
5282         * sysdeps/ia64/fpu/libm-test-ulps: Update.
5284 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
5286         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
5287         __IPC_64 to 0 to avoid IPC_64 being set.
5289 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5291         [BZ #22593]
5292         * math/bits/mathcalls.h (nextafter): Remove const.
5293         (nexttoward): Likewise.
5295 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
5297         * configure.ac (--with-fp): Remove configure option.
5298         (with_fp_cond): New variable.
5299         (libc_cv_with_fp): New configure test.  Use this variable instead
5300         of with_fp.
5301         * configure: Regenerated.
5302         * config.make.in (with-fp): Use @libc_cv_with_fp@.
5303         * manual/install.texi (Configuring and compiling): Remove
5304         --without-fp.
5305         * INSTALL: Regenerated.
5306         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
5307         * sysdeps/mips/preconfigure (with_fp_cond): Define.
5308         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
5309         * sysdeps/sh/preconfigure (with_fp_cond): Define.
5310         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
5311         use --without-fp to configure glibc.
5313 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
5315         * manual/locale.texi (nl_langinfo): Fix a typo.
5317 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
5319         [BZ #22588]
5320         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
5322 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
5324         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
5325         (CFLAGS-argp-parse.c): Likewise.
5326         (CFLAGS-argp-fmtstream.c): Likewise.
5327         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
5328         (CPPFLAGS-sha512-crypt.c): Likewise.
5329         (CPPFLAGS-md5-crypt.c): Likewise.
5330         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
5331         (CFLAGS-stack_chk_fail_local.c): Likewise.
5332         (CFLAGS-backtrace.c): Likewise.
5333         (CFLAGS-sprintf_chk.c): Likewise.
5334         (CFLAGS-snprintf_chk.c): Likewise.
5335         (CFLAGS-vsprintf_chk.c): Likewise.
5336         (CFLAGS-vsnprintf_chk.c): Likewise.
5337         (CFLAGS-asprintf_chk.c): Likewise.
5338         (CFLAGS-vasprintf_chk.c): Likewise.
5339         (CFLAGS-obprintf_chk.c): Likewise.
5340         (CFLAGS-dprintf_chk.c): Likewise.
5341         (CFLAGS-vdprintf_chk.c): Likewise.
5342         (CFLAGS-printf_chk.c): Likewise.
5343         (CFLAGS-fprintf_chk.c): Likewise.
5344         (CFLAGS-vprintf_chk.c): Likewise.
5345         (CFLAGS-vfprintf_chk.c): Likewise.
5346         (CFLAGS-gets_chk.c): Likewise.
5347         (CFLAGS-fgets_chk.c): Likewise.
5348         (CFLAGS-fgets_u_chk.c): Likewise.
5349         (CFLAGS-fread_chk.c): Likewise.
5350         (CFLAGS-fread_u_chk.c): Likewise.
5351         (CFLAGS-swprintf_chk.c): Likewise.
5352         (CFLAGS-vswprintf_chk.c): Likewise.
5353         (CFLAGS-wprintf_chk.c): Likewise.
5354         (CFLAGS-fwprintf_chk.c): Likewise.
5355         (CFLAGS-vwprintf_chk.c): Likewise.
5356         (CFLAGS-vfwprintf_chk.c): Likewise.
5357         (CFLAGS-fgetws_chk.c): Likewise.
5358         (CFLAGS-fgetws_u_chk.c): Likewise.
5359         (CFLAGS-read_chk.c): Likewise.
5360         (CFLAGS-pread_chk.c): Likewise.
5361         (CFLAGS-pread64_chk.c): Likewise.
5362         (CFLAGS-recv_chk.c): Likewise.
5363         (CFLAGS-recvfrom_chk.c): Likewise.
5364         (CFLAGS-tst-longjmp_chk.c): Likewise.
5365         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
5366         (CFLAGS-tst-longjmp_chk2.c): Likewise.
5367         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
5368         (CFLAGS-tst-longjmp_chk3.c): Likewise.
5369         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
5370         (CFLAGS-tst-chk1.c): Likewise.
5371         (CFLAGS-tst-chk2.c): Likewise.
5372         (CFLAGS-tst-chk3.c): Likewise.
5373         (CFLAGS-tst-chk4.cc): Likewise.
5374         (CFLAGS-tst-chk5.cc): Likewise.
5375         (CFLAGS-tst-chk6.cc): Likewise.
5376         (CFLAGS-tst-lfschk1.c): Likewise.
5377         (CFLAGS-tst-lfschk2.c): Likewise.
5378         (CFLAGS-tst-lfschk3.c): Likewise.
5379         (CFLAGS-tst-lfschk4.cc): Likewise.
5380         (CFLAGS-tst-lfschk5.cc): Likewise.
5381         (CFLAGS-tst-lfschk6.cc): Likewise.
5382         (CFLAGS-tst-ssp-1.c): Likewise.
5383         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
5384         (CFLAGS-scandir64.c): Likewise.
5385         (CFLAGS-scandir-tail.c): Likewise.
5386         (CFLAGS-scandir64-tail.c): Likewise.
5387         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
5388         (CFLAGS-dl-tunables.c): Likewise.
5389         (CFLAGS-dl-runtime.c): Likewise.
5390         (CFLAGS-dl-lookup.c): Likewise.
5391         (CFLAGS-dl-iterate-phdr.c): Likewise.
5392         (CFLAGS-vismain.c): Likewise.
5393         (CFLAGS-tst-linkall-static.c): Likewise.
5394         (CFLAGS-tst-linkall-static.c): Likewise.
5395         (CPPFLAGS-dl-load.c): Likewise.
5396         (CFLAGS-ldconfig.c): Likewise.
5397         (CFLAGS-dl-cache.c): Likewise.
5398         (CFLAGS-cache.c): Likewise.
5399         (CFLAGS-rtld.c): Likewise.
5400         (CFLAGS-multiload.c): Likewise.
5401         (CFLAGS-filtmod1.c): Likewise.
5402         (CFLAGS-tst-align.c): Likewise.
5403         (CFLAGS-tst-align2.c): Likewise.
5404         (CFLAGS-tst-alignmod.c): Likewise.
5405         (CFLAGS-tst-alignmod2.c): Likewise.
5406         (CPPFLAGS-tst-execstack.c): Likewise.
5407         (CFLAGS-tst-ptrguard1-static.c): Likewise.
5408         (CFLAGS-tst-latepthreadmod.c): Likewise.
5409         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
5410         (CFLAGS-getgrnam_r.c): Likewise.
5411         (CFLAGS-getgrent_r.c): Likewise.
5412         (CFLAGS-getgrent.c): Likewise.
5413         (CFLAGS-fgetgrent.c): Likewise.
5414         (CFLAGS-fgetgrent_r.c): Likewise.
5415         (CFLAGS-putgrent.c): Likewise.
5416         (CFLAGS-initgroups.c): Likewise.
5417         (CFLAGS-getgrgid.c): Likewise.
5418         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
5419         (CFLAGS-getsgent.c): Likewise.
5420         (CFLAGS-fgetsgent.c): Likewise.
5421         (CFLAGS-fgetsgent_r.c): Likewise.
5422         (CFLAGS-putsgent.c): Likewise.
5423         (CFLAGS-getsgnam.c): Likewise.
5424         (CFLAGS-getsgnam_r.c): Likewise.
5425         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
5426         (CFLAGS-iconv_charmap.c): Likewise.
5427         (CFLAGS-dummy-repertoire.c): Likewise.
5428         (CFLAGS-charmap.c): Likewise.
5429         (CFLAGS-linereader.c): Likewise.
5430         (CFLAGS-simple-hash.c): Likewise.
5431         (CFLAGS-gconv_conf.c): Likewise.
5432         (CFLAGS-iconvconfig.c): Likewise.
5433         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
5434         (CFLAGS-gethstbyad.c): Likewise.
5435         (CFLAGS-gethstbynm_r.c): Likewise.
5436         (CFLAGS-gethstbynm.c): Likewise.
5437         (CFLAGS-gethstbynm2_r.c): Likewise.
5438         (CFLAGS-gethstbynm2.c): Likewise.
5439         (CFLAGS-gethstent_r.c): Likewise.
5440         (CFLAGS-gethstent.c): Likewise.
5441         (CFLAGS-rcmd.c): Likewise.
5442         (CFLAGS-getnetbynm_r.c): Likewise.
5443         (CFLAGS-getnetbynm.c): Likewise.
5444         (CFLAGS-getnetbyad_r.c): Likewise.
5445         (CFLAGS-getnetbyad.c): Likewise.
5446         (CFLAGS-getnetent_r.c): Likewise.
5447         (CFLAGS-getnetent.c): Likewise.
5448         (CFLAGS-getaliasent_r.c): Likewise.
5449         (CFLAGS-getaliasent.c): Likewise.
5450         (CFLAGS-getrpcent_r.c): Likewise.
5451         (CFLAGS-getrpcent.c): Likewise.
5452         (CFLAGS-getservent_r.c): Likewise.
5453         (CFLAGS-getservent.c): Likewise.
5454         (CFLAGS-getprtent_r.c): Likewise.
5455         (CFLAGS-getprtent.c): Likewise.
5456         (CFLAGS-either_ntoh.c): Likewise.
5457         (CFLAGS-either_hton.c): Likewise.
5458         (CFLAGS-getnetgrent.c): Likewise.
5459         (CFLAGS-getnetgrent_r.c): Likewise.
5460         (CFLAGS-tst-checks-posix.c): Likewise.
5461         (CFLAGS-tst-sockaddr.c): Likewise.
5462         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
5463         (CFLAGS-tst-translit.c): Likewise.
5464         (CFLAGS-tst-gettext2.c): Likewise.
5465         (CFLAGS-tst-codeset.c): Likewise.
5466         (CFLAGS-tst-gettext3.c): Likewise.
5467         (CFLAGS-tst-gettext4.c): Likewise.
5468         (CFLAGS-tst-gettext5.c): Likewise.
5469         (CFLAGS-tst-gettext6.c): Likewise.
5470         * io/Makefile (CFLAGS-open.c): Likewise.
5471         (CFLAGS-open64.c): Likewise.
5472         (CFLAGS-creat.c): Likewise.
5473         (CFLAGS-creat64.c): Likewise.
5474         (CFLAGS-fcntl.c): Likewise.
5475         (CFLAGS-poll.c): Likewise.
5476         (CFLAGS-ppoll.c): Likewise.
5477         (CFLAGS-lockf.c): Likewise.
5478         (CFLAGS-statfs.c): Likewise.
5479         (CFLAGS-fstatfs.c): Likewise.
5480         (CFLAGS-statvfs.c): Likewise.
5481         (CFLAGS-fstatvfs.c): Likewise.
5482         (CFLAGS-fts.c): Likewise.
5483         (CFLAGS-fts64.c): Likewise.
5484         (CFLAGS-ftw.c): Likewise.
5485         (CFLAGS-ftw64.c): Likewise.
5486         (CFLAGS-lockf.c): Likewise.
5487         (CFLAGS-posix_fallocate.c): Likewise.
5488         (CFLAGS-posix_fallocate64.c): Likewise.
5489         (CFLAGS-fallocate.c): Likewise.
5490         (CFLAGS-fallocate64.c): Likewise.
5491         (CFLAGS-read.c): Likewise.
5492         (CFLAGS-write.c): Likewise.
5493         (CFLAGS-test-stat.c): Likewise.
5494         (CFLAGS-test-lfs.c): Likewise.
5495         * libio/Makefile (CFLAGS-fileops.c): Likewise.
5496         (CFLAGS-fputc.c): Likewise.
5497         (CFLAGS-fputwc.c): Likewise.
5498         (CFLAGS-freopen64.c): Likewise.
5499         (CFLAGS-freopen.c): Likewise.
5500         (CFLAGS-fseek.c): Likewise.
5501         (CFLAGS-fseeko64.c): Likewise.
5502         (CFLAGS-fseeko.c): Likewise.
5503         (CFLAGS-ftello64.c): Likewise.
5504         (CFLAGS-ftello.c): Likewise.
5505         (CFLAGS-fwide.c): Likewise.
5506         (CFLAGS-genops.c): Likewise.
5507         (CFLAGS-getc.c): Likewise.
5508         (CFLAGS-getchar.c): Likewise.
5509         (CFLAGS-getwc.c): Likewise.
5510         (CFLAGS-getwchar.c): Likewise.
5511         (CFLAGS-iofclose.c): Likewise.
5512         (CFLAGS-iofflush.c): Likewise.
5513         (CFLAGS-iofgetpos64.c): Likewise.
5514         (CFLAGS-iofgetpos.c): Likewise.
5515         (CFLAGS-iofgets.c): Likewise.
5516         (CFLAGS-iofgetws.c): Likewise.
5517         (CFLAGS-iofputs.c): Likewise.
5518         (CFLAGS-iofputws.c): Likewise.
5519         (CFLAGS-iofread.c): Likewise.
5520         (CFLAGS-iofsetpos64.c): Likewise.
5521         (CFLAGS-iofsetpos.c): Likewise.
5522         (CFLAGS-ioftell.c): Likewise.
5523         (CFLAGS-iofwrite.c): Likewise.
5524         (CFLAGS-iogetdelim.c): Likewise.
5525         (CFLAGS-iogetline.c): Likewise.
5526         (CFLAGS-iogets.c): Likewise.
5527         (CFLAGS-iogetwline.c): Likewise.
5528         (CFLAGS-ioputs.c): Likewise.
5529         (CFLAGS-ioseekoff.c): Likewise.
5530         (CFLAGS-ioseekpos.c): Likewise.
5531         (CFLAGS-iosetbuffer.c): Likewise.
5532         (CFLAGS-iosetvbuf.c): Likewise.
5533         (CFLAGS-ioungetc.c): Likewise.
5534         (CFLAGS-ioungetwc.c): Likewise.
5535         (CFLAGS-oldfileops.c): Likewise.
5536         (CFLAGS-oldiofclose.c): Likewise.
5537         (CFLAGS-oldiofgetpos64.c): Likewise.
5538         (CFLAGS-oldiofgetpos.c): Likewise.
5539         (CFLAGS-oldiofsetpos64.c): Likewise.
5540         (CFLAGS-oldiofsetpos.c): Likewise.
5541         (CFLAGS-peekc.c): Likewise.
5542         (CFLAGS-putc.c): Likewise.
5543         (CFLAGS-putchar.c): Likewise.
5544         (CFLAGS-putwc.c): Likewise.
5545         (CFLAGS-putwchar.c): Likewise.
5546         (CFLAGS-rewind.c): Likewise.
5547         (CFLAGS-wfileops.c): Likewise.
5548         (CFLAGS-wgenops.c): Likewise.
5549         (CFLAGS-oldiofopen.c): Likewise.
5550         (CFLAGS-iofopen.c): Likewise.
5551         (CFLAGS-iofopen64.c): Likewise.
5552         (CFLAGS-oldtmpfile.c): Likewise.
5553         (CFLAGS-tst_putwc.c): Likewise.
5554         * locale/Makefile (CFLAGS-md5.c): Likewise.
5555         (CFLAGS-charmap.c): Likewise.
5556         (CFLAGS-locfile.c): Likewise.
5557         (CFLAGS-charmap-dir.c): Likewise.
5558         * login/Makefile (CFLAGS-grantpt.c): Likewise.
5559         (CFLAGS-getpt.c): Likewise.
5560         (CFLAGS-pt_chown.c): Likewise.
5561         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
5562         (CFLAGS-obstack.c): Likewise.
5563         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
5564         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
5565         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
5566         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
5567         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
5568         (CFLAGS-test-tgmath.c): Likewise.
5569         (CFLAGS-test-tgmath2.c): Likewise.
5570         (CFLAGS-test-tgmath-ret.c): Likewise.
5571         (CFLAGS-test-powl.c): Likewise.
5572         (CFLAGS-test-snan.c): Likewise.
5573         (CFLAGS-test-signgam-finite.c): Likewise.
5574         (CFLAGS-test-signgam-finite-c99.c): Likewise.
5575         (CFLAGS-test-signgam-finite-c11.c): Likewise.
5576         (CFLAGS-test-signgam-uchar.c): Likewise.
5577         (CFLAGS-test-signgam-uchar-init.c): Likewise.
5578         (CFLAGS-test-signgam-uchar-static.c): Likewise.
5579         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
5580         (CFLAGS-test-signgam-uint.c): Likewise.
5581         (CFLAGS-test-signgam-uint-init.c): Likewise.
5582         (CFLAGS-test-signgam-uint-static.c): Likewise.
5583         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
5584         (CFLAGS-test-signgam-ullong.c): Likewise.
5585         (CFLAGS-test-signgam-ullong-init.c): Likewise.
5586         (CFLAGS-test-signgam-ullong-static.c): Likewise.
5587         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
5588         (CFLAGS-test-math-cxx11.cc): Likewise.
5589         (CFLAGS-test-math-isinff.cc): Likewise.
5590         (CFLAGS-test-math-iszero.cc): Likewise.
5591         (CFLAGS-test-math-issignaling.cc): Likewise.
5592         (CFLAGS-test-math-iscanonical.cc): Likewise.
5593         (CFLAGS-test-iszero-excess-precision.c): Likewise.
5594         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
5595         (CFLAGS-test-flt-eval-method.c): Likewise.
5596         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
5597         (CFLAGS-test-finite-macros.c): Likewise.
5598         * misc/Makefile (CFLAGS-select.c): Likewise.
5599         (CFLAGS-tsearch.c): Likewise.
5600         (CFLAGS-lsearch.c): Likewise.
5601         (CFLAGS-pselect.c): Likewise.
5602         (CFLAGS-readv.c): Likewise.
5603         (CFLAGS-writev.c): Likewise.
5604         (CFLAGS-preadv.c): Likewise.
5605         (CFLAGS-preadv64.c): Likewise.
5606         (CFLAGS-pwritev.c): Likewise.
5607         (CFLAGS-pwritev64.c): Likewise.
5608         (CFLAGS-preadv2.c): Likewise.
5609         (CFLAGS-preadv64v2.c): Likewise.
5610         (CFLAGS-pwritev2.c): Likewise.
5611         (CFLAGS-pwritev64v2.c): Likewise.
5612         (CFLAGS-usleep.c): Likewise.
5613         (CFLAGS-syslog.c): Likewise.
5614         (CFLAGS-error.c): Likewise.
5615         (CFLAGS-getpass.c): Likewise.
5616         (CFLAGS-mkstemp.c): Likewise.
5617         (CFLAGS-mkstemp64.c): Likewise.
5618         (CFLAGS-getsysstats.c): Likewise.
5619         (CFLAGS-getusershell.c): Likewise.
5620         (CFLAGS-err.c): Likewise.
5621         (CFLAGS-tst-tsearch.c): Likewise.
5622         (CFLAGS-msync.c): Likewise.
5623         (CFLAGS-fdatasync.c): Likewise.
5624         (CFLAGS-fsync.c): Likewise.
5625         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
5626         (CFLAGS-unwind.c): Likewise.
5627         (CFLAGS-unwind-forcedunwind.c): Likewise.
5628         (CFLAGS-pthread_cancel.c): Likewise.
5629         (CFLAGS-pthread_setcancelstate.c): Likewise.
5630         (CFLAGS-pthread_setcanceltype.c): Likewise.
5631         (CFLAGS-cancellation.c): Likewise.
5632         (CFLAGS-libc-cancellation.c): Likewise.
5633         (CFLAGS-pthread_exit.c): Likewise.
5634         (CFLAGS-forward.c): Likewise.
5635         (CFLAGS-pthread_testcancel.c): Likewise.
5636         (CFLAGS-pthread_join.c): Likewise.
5637         (CFLAGS-pthread_timedjoin.c): Likewise.
5638         (CFLAGS-pthread_once.c): Likewise.
5639         (CFLAGS-pthread_cond_wait.c): Likewise.
5640         (CFLAGS-sem_wait.c): Likewise.
5641         (CFLAGS-sem_timedwait.c): Likewise.
5642         (CFLAGS-fcntl.c): Likewise.
5643         (CFLAGS-lockf.c): Likewise.
5644         (CFLAGS-pread.c): Likewise.
5645         (CFLAGS-pread64.c): Likewise.
5646         (CFLAGS-pwrite.c): Likewise.
5647         (CFLAGS-pwrite64.c): Likewise.
5648         (CFLAGS-wait.c): Likewise.
5649         (CFLAGS-waitpid.c): Likewise.
5650         (CFLAGS-sigwait.c): Likewise.
5651         (CFLAGS-msgrcv.c): Likewise.
5652         (CFLAGS-msgsnd.c): Likewise.
5653         (CFLAGS-tcdrain.c): Likewise.
5654         (CFLAGS-open.c): Likewise.
5655         (CFLAGS-open64.c): Likewise.
5656         (CFLAGS-pause.c): Likewise.
5657         (CFLAGS-recv.c): Likewise.
5658         (CFLAGS-send.c): Likewise.
5659         (CFLAGS-accept.c): Likewise.
5660         (CFLAGS-sendto.c): Likewise.
5661         (CFLAGS-connect.c): Likewise.
5662         (CFLAGS-recvfrom.c): Likewise.
5663         (CFLAGS-recvmsg.c): Likewise.
5664         (CFLAGS-sendmsg.c): Likewise.
5665         (CFLAGS-close.c): Likewise.
5666         (CFLAGS-read.c): Likewise.
5667         (CFLAGS-write.c): Likewise.
5668         (CFLAGS-nanosleep.c): Likewise.
5669         (CFLAGS-sigsuspend.c): Likewise.
5670         (CFLAGS-msync.c): Likewise.
5671         (CFLAGS-fdatasync.c): Likewise.
5672         (CFLAGS-fsync.c): Likewise.
5673         (CFLAGS-pt-system.c): Likewise.
5674         (CFLAGS-tst-cleanup2.c): Likewise.
5675         (CFLAGS-tst-cleanupx2.c): Likewise.
5676         (CFLAGS-flockfile.c): Likewise.
5677         (CFLAGS-ftrylockfile.c): Likewise.
5678         (CFLAGS-funlockfile.c): Likewise.
5679         (CFLAGS-tst-initializers1.c): Likewise.
5680         (CFLAGS-tst-initializers1-c89.c): Likewise.
5681         (CFLAGS-tst-initializers1-c99.c): Likewise.
5682         (CFLAGS-tst-initializers1-c11.c): Likewise.
5683         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
5684         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
5685         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
5686         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
5687         (CFLAGS-nscd_getgr_r.c): Likewise.
5688         (CFLAGS-nscd_gethst_r.c): Likewise.
5689         (CFLAGS-nscd_getai.c): Likewise.
5690         (CFLAGS-nscd_initgroups.c): Likewise.
5691         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
5692         (CFLAGS-pause.c): Likewise.
5693         (CFLAGS-pread.c): Likewise.
5694         (CFLAGS-pread64.c): Likewise.
5695         (CFLAGS-pwrite.c): Likewise.
5696         (CFLAGS-pwrite64.c): Likewise.
5697         (CFLAGS-sleep.c): Likewise.
5698         (CFLAGS-wait.c): Likewise.
5699         (CFLAGS-waitid.c): Likewise.
5700         (CFLAGS-waitpid.c): Likewise.
5701         (CFLAGS-getopt.c): Likewise.
5702         (CFLAGS-wordexp.c): Likewise.
5703         (CFLAGS-sysconf.c): Likewise.
5704         (CFLAGS-pathconf.c): Likewise.
5705         (CFLAGS-fpathconf.c): Likewise.
5706         (CFLAGS-spawn.c): Likewise.
5707         (CFLAGS-spawnp.c): Likewise.
5708         (CFLAGS-spawni.c): Likewise.
5709         (CFLAGS-glob.c): Likewise.
5710         (CFLAGS-glob64.c): Likewise.
5711         (CFLAGS-getconf.c): Likewise.
5712         (CFLAGS-nanosleep.c): Likewise.
5713         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
5714         (CFLAGS-getpwent.c): Likewise.
5715         (CFLAGS-getpw.c): Likewise.
5716         (CFLAGS-fgetpwent_r.c): Likewise.
5717         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
5718         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
5719         (CFLAGS-mq_timedreceive.c): Likewise.
5720         (CFLAGS-mq_timedsend.c): Likewise.
5721         (CFLAGS-clock_nanosleep.c): Likewise.
5722         (CFLAGS-librt-cancellation.c): Likewise.
5723         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
5724         (CFLAGS-getspent.c): Likewise.
5725         (CFLAGS-fgetspent.c): Likewise.
5726         (CFLAGS-fgetspent_r.c): Likewise.
5727         (CFLAGS-putspent.c): Likewise.
5728         (CFLAGS-getspnam.c): Likewise.
5729         (CFLAGS-getspnam_r.c): Likewise.
5730         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
5731         (CFLAGS-sigsuspend.c): Likewise.
5732         (CFLAGS-sigtimedwait.c): Likewise.
5733         (CFLAGS-sigwait.c): Likewise.
5734         (CFLAGS-sigwaitinfo.c): Likewise.
5735         (CFLAGS-sigreturn.c): Likewise.
5736         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
5737         (CFLAGS-vfwprintf.c): Likewise.
5738         (CFLAGS-tmpfile.c): Likewise.
5739         (CFLAGS-tmpfile64.c): Likewise.
5740         (CFLAGS-tempname.c): Likewise.
5741         (CFLAGS-psignal.c): Likewise.
5742         (CFLAGS-vprintf.c): Likewise.
5743         (CFLAGS-cuserid.c): Likewise.
5744         (CFLAGS-errlist.c): Likewise.
5745         (CFLAGS-siglist.c): Likewise.
5746         (CFLAGS-scanf15.c): Likewise.
5747         (CFLAGS-scanf17.c): Likewise.
5748         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
5749         (CFLAGS-msort.c): Likewise.
5750         (CFLAGS-qsort.c): Likewise.
5751         (CFLAGS-system.c): Likewise.
5752         (CFLAGS-fmtmsg.c): Likewise.
5753         (CFLAGS-strfmon.c): Likewise.
5754         (CFLAGS-strfmon_l.c): Likewise.
5755         (CFLAGS-strfromd.c): Likewise.
5756         (CFLAGS-strfromf.c): Likewise.
5757         (CFLAGS-strfroml.c): Likewise.
5758         (CFLAGS-tst-bsearch.c): Likewise.
5759         (CFLAGS-tst-qsort.c): Likewise.
5760         (CFLAGS-tst-makecontext2.c): Likewise.
5761         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
5762         (CFLAGS-xnlm_prot.c): Likewise.
5763         (CFLAGS-xrstat.c): Likewise.
5764         (CFLAGS-xyppasswd.c): Likewise.
5765         (CFLAGS-xklm_prot.c): Likewise.
5766         (CFLAGS-xrex.c): Likewise.
5767         (CFLAGS-xsm_inter.c): Likewise.
5768         (CFLAGS-xmount.c): Likewise.
5769         (CFLAGS-xrusers.c): Likewise.
5770         (CFLAGS-xspray.c): Likewise.
5771         (CFLAGS-xnfs_prot.c): Likewise.
5772         (CFLAGS-xrquota.c): Likewise.
5773         (CFLAGS-xkey_prot.c): Likewise.
5774         (CFLAGS-auth_unix.c): Likewise.
5775         (CFLAGS-key_call.c): Likewise.
5776         (CFLAGS-pmap_rmt.c): Likewise.
5777         (CFLAGS-clnt_perr.c): Likewise.
5778         (CFLAGS-openchild.c): Likewise.
5779         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
5780         (CFLAGS-msgsnd.c): Likewise.
5781         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
5782         * time/Makefile (CFLAGS-tzfile.c): Likewise.
5783         (CFLAGS-tzset.c): Likewise.
5784         (CFLAGS-getdate.c): Likewise.
5785         (CFLAGS-test_time.c): Likewise.
5786         (CPPFLAGS-tst-tzname.c): Likewise.
5787         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
5788         (CFLAGS-zic.c): Likewise.
5789         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
5790         (CFLAGS-wcswidth.c): Likewise.
5791         (CFLAGS-wcstol.c): Likewise.
5792         (CFLAGS-wcstoul.c): Likewise.
5793         (CFLAGS-wcstoll.c): Likewise.
5794         (CFLAGS-wcstoull.c): Likewise.
5795         (CFLAGS-wcstod.c): Likewise.
5796         (CFLAGS-wcstold.c): Likewise.
5797         (CFLAGS-wcstof128.c): Likewise.
5798         (CFLAGS-wcstof.c): Likewise.
5799         (CFLAGS-wcstol_l.c): Likewise.
5800         (CFLAGS-wcstoul_l.c): Likewise.
5801         (CFLAGS-wcstoll_l.c): Likewise.
5802         (CFLAGS-wcstoull_l.c): Likewise.
5803         (CFLAGS-wcstod_l.c): Likewise.
5804         (CFLAGS-wcstold_l.c): Likewise.
5805         (CFLAGS-wcstof128_l.c): Likewise.
5806         (CFLAGS-wcstof_l.c): Likewise.
5807         (CPPFLAGS-tst-wchar-h.c): Likewise.
5808         (CPPFLAGS-wcstold_l.c): Likewise.
5810 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
5812         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
5814 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5815             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5817         * manual/tunables.texi (Hardware Capability Tunables): Document
5818         glibc.tune.cached_memopt.
5819         * sysdeps/powerpc/cpu-features.c: New file.
5820         * sysdeps/powerpc/cpu-features.h: New file.
5821         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
5822         _dl_powerpc_cpu_features.
5823         * sysdeps/powerpc/dl-tunables.list: New file.
5824         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
5825         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
5826         (INIT_ARCH): Initialize use_aligned_memopt.
5827         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
5828         IS_IN(rtld))]: Restrict dl_platform_init availability and
5829         initialize CPU features used by tunables.
5830         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
5831         Add memcpy-power8-cached.
5832         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
5833         __memcpy_power8_cached.
5834         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
5835         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
5836         New file.
5838 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
5840         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
5841         (CFLAGS-noinl-tester.c): Likewise.
5842         (CFLAGS-tst-strlen.c): Likewise.
5843         (CFLAGS-stratcliff.c): Likewise.
5844         (CFLAGS-test-ffs.c): Likewise.
5845         (CFLAGS-tst-inlcall.c): Likewise.
5846         (CFLAGS-tst-xbzero-opt.c): Likewise.
5847         (CFLAGS-memcpy.c): Likewise.
5848         (CFLAGS-wordcopy.c): Likewise.
5850 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
5852         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
5853         Store r15 on stack and add cfi rule.
5854         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
5855         Likewise.
5857 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
5859         [BZ #22577]
5860         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
5861         call.
5863 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
5865         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5866         Add s_sinf-sse2 and s_sinf-fma.
5867         (CFLAGS-s_sinf-fma.c): New.
5868         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
5869         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
5870         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
5872 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
5874         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
5876 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
5878         [BZ #22568]
5879         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
5880         part of result to imaginary part of argument if it is zero and the
5881         real part of the argument is not finite.
5882         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
5883         of result to real part of argument if it is zero and the imaginary
5884         part of the argument is not finite.
5886 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
5888         [BZ #22524]
5889         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
5890         and to the list of locales to be built for testing.
5891         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
5892         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
5893         and build the collation rules upon that.
5895 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
5897         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
5898         * manual/math.texi (Mathematics): Document support for _Float32.
5899         * math/Makefile (test-types): Add float32.
5900         * math/Versions (GLIBC_2.27): Add _Float32 functions.
5901         * stdlib/Versions (GLIBC_2.27): Likewise.
5902         * wcsmbs/Versions (GLIBC_2.27): Likewise.
5903         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
5904         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5905         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5906         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5907         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5908         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5909         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5910         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5911         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5912         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5913         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5914         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5915         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5916         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5917         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5918         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5919         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5920         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5921         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5922         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5923         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5924         Likewise.
5925         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5926         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5927         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5928         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5929         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5931         Likewise.
5932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5933         Likewise.
5934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5935         Likewise.
5936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5937         Likewise.
5939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5940         Likewise.
5941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5942         Likewise.
5943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5944         Likewise.
5945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5946         Likewise.
5947         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5948         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5949         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5950         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5951         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5952         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5953         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5954         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5955         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5956         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5957         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
5958         Likewise.
5959         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5960         Likewise.
5961         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
5962         Likewise.
5963         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5964         Likewise.
5965         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5966         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5967         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5968         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5969         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5970         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5971         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
5972         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5974 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
5976         * stdlib/strtof.c: Include <bits/floatn.h>
5977         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
5978         and later undefine as macro.  Define as weak alias if
5979         [!USE_WIDE_CHAR].
5980         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
5981         and later undefine as macro.  Define as weak alias if
5982         [USE_WIDE_CHAR].
5983         * stdlib/strtof_l.c: Include <bits/floatn.h>
5984         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
5985         and later undefine as macro.  Define as weak alias if
5986         [!USE_WIDE_CHAR].
5987         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
5988         and later undefine as macro.  Define as weak alias if
5989         [USE_WIDE_CHAR].
5991         * stdlib/strfromf.c: Include <bits/floatn.h>.
5992         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
5993         and later undefine as macro and define as weak alias.
5995         * math/test-float32.h: New file.
5997         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
5998         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
5999         (libm_alias_float_other_r): Create f32 alias.
6000         (libm_alias_float_r): Use semicolon before call to
6001         libm_alias_float_other_r.
6003         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
6004         second argument to libm_alias_float_other.
6005         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
6006         second argument to libm_alias_float_other.
6007         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
6008         argument to libm_alias_float_other.
6010         [BZ #22561]
6011         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
6012         real part of result for argument 0 + i * NaN.
6013         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
6014         results for tests of 0 + i * NaN.
6016 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6018         * sysdeps/alpha/fpu/libm-test-ulps: Update.
6020 2017-12-06  David S. Miller  <davem@davemloft.net>
6022         * sysdeps/sparc/fpu/libm-test-ulps: Update
6023         exp_{downward,towardzero,upward} ulps.
6025 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
6027         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
6028         variables static.
6030         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
6031         (Y0_2D): Likewise.
6032         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
6033         (Y0_2D): Likewise.
6034         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
6035         (Y0_2D): Likewise.
6036         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
6037         (Y0_2D): Likewise.
6039 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
6041         [BZ #22515]
6042         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
6043         and to the list of locales to be built for testing.
6044         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
6045         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
6046         and build the collation rules upon that.
6048 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6050         * NEWS: Add sinf to list of optimized functions.
6052 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
6054         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
6055         (__HAVE_FLOAT32X): Likewise.
6056         * manual/math.texi (Mathematics): Document support for _Float64
6057         and _Float32x.
6058         * math/Makefile (test-types): Add float64 and float32x.
6059         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
6060         functions.
6061         * stdlib/Versions (GLIBC_2.27): Likewise.
6062         * wcsmbs/Versions (GLIBC_2.27): Likewise.
6063         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
6064         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6065         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6066         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6067         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6068         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6069         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6070         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6071         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6072         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6073         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6074         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6075         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6076         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6077         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6078         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6079         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6080         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6081         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6082         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6083         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6084         Likewise.
6085         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6086         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6087         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6088         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6089         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6091         Likewise.
6092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6093         Likewise.
6094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6095         Likewise.
6096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6097         Likewise.
6098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6099         Likewise.
6100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6101         Likewise.
6102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6103         Likewise.
6104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6105         Likewise.
6106         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6107         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6108         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6109         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6110         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6111         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6112         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6113         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6114         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6115         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6116         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6117         Likewise.
6118         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6119         Likewise.
6120         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6121         Likewise.
6122         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6123         Likewise.
6124         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6125         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6126         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6127         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6128         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6129         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6130         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6131         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6133 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
6135         * bits/floatn-common.h: Include <bits/long-double.h>.
6136         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
6137         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
6138         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
6139         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
6140         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
6141         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
6142         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
6143         (__builtin_huge_valf64): Use __builtin_huge_vall.
6144         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
6145         (__builtin_inff64): Use __builtin_infl.
6146         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
6147         (__builtin_nanf64): Use __builtin_nanl.
6148         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
6149         (__builtin_nansf64): Use __builtin_nansl.
6151 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
6152             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6153             Carlos O'Donnell <carlos@redhat.com>
6155         * elf/dl-tunables.list: Add elision parameters.
6156         * manual/tunables.texi: Add entries about elision tunable.
6157         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
6158         Add callback functions to dynamically enable/disable elision.
6159         Add multiple callbacks functions to set elision parameters.
6160         Deleted __libc_enable_secure check.
6161         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
6162         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
6163         * configure: Regenerated.
6164         * configure.ac: Option enable_lock_elision was deleted.
6165         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
6166         * config.make.in: Remove references to enable_lock_elision.
6167         * manual/install.texi: Elision configure option was removed.
6168         * INSTALL: Regenerated to remove enable_lock_elision.
6169         * nptl/Makefile:
6170         Disable elision so it can verify error case for destroying a mutex.
6171         * sysdeps/powerpc/nptl/elide.h:
6172         Cleanup ENABLE_LOCK_ELISION check.
6173         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
6174         * sysdeps/s390/configure: Regenerated.
6175         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
6176         * nptl/tst-mutex8.c:
6177         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
6178         * sysdeps/powerpc/powerpc32/sysdep.h:
6179         Deleted all ENABLE_LOCK_ELISION checks.
6180         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
6181         * sysdeps/powerpc/sysdep.h: Likewise.
6182         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
6183         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
6184         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
6185         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
6186         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
6187         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
6188         enable-lock-elision.
6190 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
6192         * stdlib/strtod.c: Include <bits/floatn.h>.
6193         (BUILD_DOUBLE): New macro.
6194         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
6195         (strtof64): Define and later undefine as macro.  Define as weak
6196         alias if [!USE_WIDE_CHAR].
6197         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
6198         (wcstof64): Define and later undefine as macro.  Define as weak
6199         alias if [USE_WIDE_CHAR].
6200         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
6201         (strtof32x): Define and later undefine as macro.  Define as weak
6202         alias if [!USE_WIDE_CHAR].
6203         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
6204         (wcstof32x): Define and later undefine as macro.  Define as weak
6205         alias if [USE_WIDE_CHAR].
6206         * stdlib/strtod_l.c: Include <bits/floatn.h>.
6207         (BUILD_DOUBLE): New macro.
6208         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
6209         (strtof64_l): Define and later undefine as macro.  Define as weak
6210         alias if [!USE_WIDE_CHAR].
6211         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
6212         (wcstof64_l): Define and later undefine as macro.  Define as weak
6213         alias if [USE_WIDE_CHAR].
6214         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
6215         (strtof32x_l): Define and later undefine as macro.  Define as weak
6216         alias if [!USE_WIDE_CHAR].
6217         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
6218         (wcstof32x_l): Define and later undefine as macro.  Define as weak
6219         alias if [USE_WIDE_CHAR].
6221 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6223         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
6224         (reduced): Use ones as double instead of integer.
6226 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6228         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
6230 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
6232         * stdlib/strfromd.c: Include <bits/floatn.h>.
6233         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
6234         and later undefine as macro and define as weak alias.
6235         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
6236         Likewise.
6238         * math/test-float32x.h: New file.
6239         * math/test-float64.h: Likewise.
6241         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
6242         (libm_alias_double_other_r_f64): New macro.
6243         (libm_alias_double_other_r_f32x): Likewise.
6244         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
6245         libm_alias_double_other_r_f32x.
6246         (libm_alias_double_r): Use semicolon before call to
6247         libm_alias_double_other_r.
6248         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
6249         <bits/floatn.h>.
6250         (libm_alias_double_other_r_f64): New macro.
6251         (libm_alias_double_other_r_f32x): Likewise.
6252         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
6253         libm_alias_double_other_r_f32x.
6255 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
6257         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
6258         int.
6259         (SINF_FUNC): Likewise.  Replace floor with simple casts.
6261 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
6263         [BZ #22517]
6264         * localedata/Makefile: Add et_EE.UTF-8 to test-input
6265         and to the list of locales to be built for testing.
6266         * localedata/et_EE.UTF-8.in: New file for testing the collation.
6267         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
6268         and build the collation rules upon that.
6270 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
6272         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
6273         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
6274         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
6275         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
6276         instead of __insn__xxx.
6277         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
6278         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
6279         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
6280         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
6281         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
6282         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
6284 2017-12-05  Florian Weimer  <fweimer@redhat.com>
6286         Linux: Implement interfaces for memory protection keys
6287         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
6288         xsignal, xsysconf.
6289         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
6290         * support/xunistd.h (xsysconf): Declare.
6291         * support/xraise.c: New file.
6292         * support/xsigaction.c: Likewise.
6293         * support/xsignal.c: Likewise.
6294         * support/xsysconf.c: Likewise.
6295         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
6296         pkey_set, pkey_get, pkey_mprotect.
6297         [misc] (tests): Add tst-pkey.
6298         (tst-pkey): Link with -lpthread.
6299         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
6300         pkey_free, pkey_set, pkey_get, pkey_mprotect.
6301         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
6302         (PKEY_DISABLE_WRITE): Define.
6303         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
6304         Declare.
6305         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
6306         (SEGV_PKUERR): Add.
6307         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
6308         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
6309         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
6310         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
6311         Add.
6312         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
6313         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
6314         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
6315         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
6316         * sysdeps/unix/sysv/linux/**.abilist: Update.
6318 2017-12-05  Florian Weimer  <fweimer@redhat.com>
6320         * support/tst-test_compare.c (subprocess): Use long long instead
6321         of long argument for consistent type width across 32-bit and
6322         64-bit architectures.
6323         (do_test): Adjust expected output.
6325 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
6327         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
6328         (cosf): Define using libm_alias_float.
6329         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
6330         (fabsf): Define using libm_alias_float.
6331         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
6332         (fmaf): Define using libm_alias_float.
6333         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
6334         (rintf): Define using libm_alias_float.
6335         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
6336         (sinf): Define using libm_alias_float.
6337         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
6338         <libm-alias-float.h>.
6339         (modff): Define using libm_alias_float.
6340         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
6341         <libm-alias-float.h>.
6342         (logbf): Define using libm_alias_float.
6343         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
6344         <libm-alias-float.h>.
6345         (ceilf): Define using libm_alias_float.
6346         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
6347         <libm-alias-float.h>.
6348         (copysignf): Define using libm_alias_float.
6349         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
6350         <libm-alias-float.h>.
6351         (floorf): Define using libm_alias_float.
6352         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
6353         <libm-alias-float.h>.
6354         (llrintf): Define using libm_alias_float.
6355         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
6356         <libm-alias-float.h>.
6357         (llroundf): Define using libm_alias_float.
6358         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
6359         <libm-alias-float.h>.
6360         (lrintf): Define using libm_alias_float.
6361         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
6362         <libm-alias-float.h>.
6363         (lroundf): Define using libm_alias_float.
6364         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
6365         <libm-alias-float.h>.
6366         (nearbyintf): Define using libm_alias_float.
6367         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
6368         <libm-alias-float.h>.
6369         (rintf): Define using libm_alias_float.
6370         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
6371         <libm-alias-float.h>.
6372         (roundf): Define using libm_alias_float.
6373         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
6374         <libm-alias-float.h>.
6375         (truncf): Define using libm_alias_float.
6376         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
6377         Include <libm-alias-float.h>.
6378         (ceilf): Define using libm_alias_float.
6379         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6380         Include <libm-alias-float.h>.
6381         (copysignf): Define using libm_alias_float.
6382         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
6383         Include <libm-alias-float.h>.
6384         (floorf): Define using libm_alias_float.
6385         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
6386         Include <libm-alias-float.h>.
6387         (llrintf): Define using libm_alias_float.
6388         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
6389         Include <libm-alias-float.h>.
6390         (llroundf): Define using libm_alias_float.
6391         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
6392         Include <libm-alias-float.h>.
6393         (logbf): Define using libm_alias_float.
6394         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
6395         Include <libm-alias-float.h>.
6396         (lrintf): Define using libm_alias_float.
6397         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
6398         Include <libm-alias-float.h>.
6399         (lroundf): Define using libm_alias_float.
6400         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
6401         Include <libm-alias-float.h>.
6402         (modff): Define using libm_alias_float.
6403         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
6404         Include <libm-alias-float.h>.
6405         (roundf): Define using libm_alias_float.
6406         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
6407         Include <libm-alias-float.h>.
6408         (truncf): Define using libm_alias_float.
6409         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
6410         <libm-alias-float.h>.
6411         (llrintf): Define using libm_alias_float.
6412         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
6413         <libm-alias-float.h>.
6414         (llroundf): Define using libm_alias_float.
6415         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
6416         <libm-alias-float.h>.
6417         (ceilf): Define using libm_alias_float.
6418         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
6419         <libm-alias-float.h>.
6420         (floorf): Define using libm_alias_float.
6421         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
6422         <libm-alias-float.h>.
6423         (llroundf): Define using libm_alias_float.
6424         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
6425         <libm-alias-float.h>.
6426         (lroundf): Define using libm_alias_float.
6427         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
6428         <libm-alias-float.h>.
6429         (roundf): Define using libm_alias_float.
6430         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
6431         <libm-alias-float.h>.
6432         (truncf): Define using libm_alias_float.
6433         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
6434         <libm-alias-float.h>.
6435         (copysignf): Define using libm_alias_float.
6436         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
6437         <libm-alias-float.h>.
6438         (llrintf): Define using libm_alias_float.
6439         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
6440         <libm-alias-float.h>.
6441         (llroundf): Define using libm_alias_float.
6442         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
6443         <libm-alias-float.h>.
6444         (lrintf): Define using libm_alias_float.
6445         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
6446         <libm-alias-float.h>.
6447         (lroundf): Define using libm_alias_float.
6448         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
6449         <libm-alias-float.h>.
6450         (ceilf): Define using libm_alias_float.
6451         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
6452         <libm-alias-float.h>.
6453         (copysignf): Define using libm_alias_float.
6454         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
6455         <libm-alias-float.h>.
6456         (cosf): Define using libm_alias_float.
6457         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
6458         <libm-alias-float.h>.
6459         (floorf): Define using libm_alias_float.
6460         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
6461         <libm-alias-float.h>.
6462         (llrintf): Define using libm_alias_float.
6463         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
6464         <libm-alias-float.h>.
6465         (llroundf): Define using libm_alias_float.
6466         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
6467         <libm-alias-float.h>.
6468         (logbf): Define using libm_alias_float.
6469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
6470         <libm-alias-float.h>.
6471         (modff): Define using libm_alias_float.
6472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
6473         <libm-alias-float.h>.
6474         (roundf): Define using libm_alias_float.
6475         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
6476         <libm-alias-float.h>.
6477         (sinf): Define using libm_alias_float.
6478         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
6479         <libm-alias-float.h>.
6480         (truncf): Define using libm_alias_float.
6481         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
6482         <libm-alias-float.h>.
6483         (ceilf): Define using libm_alias_float.
6484         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
6485         <libm-alias-float.h>.
6486         (copysignf): Define using libm_alias_float.
6487         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
6488         <libm-alias-float.h>.
6489         (floorf): Define using libm_alias_float.
6490         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
6491         <libm-alias-float.h>.
6492         (llrintf): Define using libm_alias_float.
6493         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
6494         <libm-alias-float.h>.
6495         (llroundf): Define using libm_alias_float.
6496         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
6497         <libm-alias-float.h>.
6498         (nearbyintf): Define using libm_alias_float.
6499         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
6500         <libm-alias-float.h>.
6501         (rintf): Define using libm_alias_float.
6502         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
6503         <libm-alias-float.h>.
6504         (roundf): Define using libm_alias_float.
6505         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
6506         <libm-alias-float.h>.
6507         (truncf): Define using libm_alias_float.
6508         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
6509         <libm-alias-float.h>.
6510         (ceilf): Define using libm_alias_float.
6511         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
6512         <libm-alias-float.h>.
6513         (floorf): Define using libm_alias_float.
6514         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
6515         <libm-alias-float.h>.
6516         (llroundf): Define using libm_alias_float.
6517         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
6518         <libm-alias-float.h>.
6519         (roundf): Define using libm_alias_float.
6520         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
6521         <libm-alias-float.h>.
6522         (truncf): Define using libm_alias_float.
6523         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
6524         <libm-alias-float.h>.
6525         (copysignf): Define using libm_alias_float.
6526         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
6527         <libm-alias-float.h>.
6528         (llrintf): Define using libm_alias_float.
6529         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
6530         <libm-alias-float.h>.
6531         (llroundf): Define using libm_alias_float.
6532         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
6533         <libm-alias-float.h>.
6534         (cosf): Define using libm_alias_float.
6535         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
6536         <libm-alias-float.h>.
6537         (llrintf): Define using libm_alias_float.
6538         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
6539         <libm-alias-float.h>.
6540         (llroundf): Define using libm_alias_float.
6541         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
6542         <libm-alias-float.h>.
6543         (sinf): Define using libm_alias_float.
6545 2017-12-04  Florian Weimer  <fweimer@redhat.com>
6547         * support/check.h (TEST_COMPARE): Define.
6548         (support_test_compare_failure): Declare.
6549         * support/Makefile (libsupport-routines): Add
6550         support_test_compare_failure.
6551         (tests): Add tst-test_compare.
6552         * support /support_test_compare_failure.c: New file.
6553         * support/tst-test_compare.c: Likewise.
6555 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
6557         [BZ #22527]
6558         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
6559         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
6560         available, this rewrite of the collation rules does reproduce
6561         the test file in the same order.
6563 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
6565         [BZ #10580]
6566         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
6567         digraphs in the month and day names. Using single code points for
6568         digraphs is deprecated.  While there are dedicated Unicode
6569         codepoints, for the digraphs, these are included for backwards
6570         compatibility and modern texts use a sequence of Basic Latin
6571         characters. See: https://www.unicode.org/faq/ligature_digraph.html
6572         This makes the month and day names agree exactly with CLDR now,
6573         CLDR does not use the single code points for the digraphs either.
6575 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
6577         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
6579 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
6581         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
6582         of floor.
6584 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6586         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
6587         Define only for libc.so.
6589 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
6591         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6592         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
6593          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
6594         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
6595         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6597 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6599         [BZ #5997]
6600         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
6602 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
6604         [BZ libc/19170]
6605         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
6606         PREINIT_FUNCTION_WEAK is nonzero.
6607         (gmon_initializer): New function.  Put procedure label for it in
6608         .init_array section.
6609         (_init): Don't call PREINIT_FUNCTION.
6610         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
6611         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
6612         value when map argument is null.
6614         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
6615         depi instruction from PIC pc-relative sequence.
6616         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
6617         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
6618         (elf_machine_load_address): Likewise.
6619         (elf_machine_runtime_setup): Likewise.
6621 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
6623         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
6624         <libm-alias-double.h>.
6625         (logb): Define using libm_alias_double.
6626         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
6627         <libm-alias-double.h>.
6628         (copysign): Define using libm_alias_double.
6629         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
6630         <libm-alias-double.h>.
6631         (llrint): Define using libm_alias_double.
6632         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
6633         <libm-alias-double.h>.
6634         (llround): Define using libm_alias_double.
6635         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
6636         <libm-alias-double.h>.
6637         (lrint): Define using libm_alias_double.
6638         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
6639         <libm-alias-double.h>.
6640         (lround): Define using libm_alias_double.
6641         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6642         Include <libm-alias-double.h>.
6643         (copysign): Define using libm_alias_double.
6644         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
6645         Include <libm-alias-double.h>.
6646         (llrint): Define using libm_alias_double.
6647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
6648         Include <libm-alias-double.h>.
6649         (llround): Define using libm_alias_double.
6650         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
6651         <libm-alias-double.h>.
6652         (logb): Define using libm_alias_double.
6653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
6654         Include <libm-alias-double.h>.
6655         (lrint): Define using libm_alias_double.
6656         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
6657         Include <libm-alias-double.h>.
6658         (lround): Define using libm_alias_double.
6659         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
6660         <libm-alias-double.h>.
6661         (llrint): Define using libm_alias_double.
6662         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
6663         <libm-alias-double.h>.
6664         (llround): Define using libm_alias_double.
6665         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
6666         <libm-alias-double.h>.
6667         (llround): Define using libm_alias_double.
6668         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
6669         <libm-alias-double.h>.
6670         (lround): Define using libm_alias_double.
6671         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
6672         <libm-alias-double.h>.
6673         (copysign): Define using libm_alias_double.
6674         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
6675         <libm-alias-double.h>.
6676         (llrint): Define using libm_alias_double.
6677         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
6678         <libm-alias-double.h>.
6679         (llround): Define using libm_alias_double.
6680         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
6681         <libm-alias-double.h>.
6682         (lrint): Define using libm_alias_double.
6683         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
6684         <libm-alias-double.h>.
6685         (lround): Define using libm_alias_double.
6686         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
6687         <libm-alias-double.h>.
6688         (copysign): Define using libm_alias_double.
6689         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
6690         <libm-alias-double.h>.
6691         (llrint): Define using libm_alias_double.
6692         (lrint): Likewise.
6693         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
6694         <libm-alias-double.h>.
6695         (llround): Define using libm_alias_double.
6696         (lround): Likewise.
6697         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
6698         <libm-alias-double.h>.
6699         (logb): Define using libm_alias_double.
6700         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
6701         <libm-alias-double.h>.
6702         (copysign): Define using libm_alias_double.
6703         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
6704         <libm-alias-double.h>.
6705         (llrint): Define using libm_alias_double.
6706         (lrint): Likewise.
6707         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
6708         <libm-alias-double.h>.
6709         (llround): Define using libm_alias_double.
6710         (lround): Likewise.
6711         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
6712         <libm-alias-double.h>.
6713         (llround): Define using libm_alias_double.
6714         (lround): Likewise.
6715         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
6716         <libm-alias-double.h>.
6717         (copysign): Define using libm_alias_double.
6718         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
6719         <libm-alias-double.h>.
6720         (llrint): Define using libm_alias_double.
6721         (lrint): Likewise.
6722         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
6723         <libm-alias-double.h>.
6724         (llround): Define using libm_alias_double.
6725         (lround): Likewise.
6726         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
6727         <libm-alias-double.h>.
6728         (llrint): Define using libm_alias_double.
6729         (lrint): Likewise.
6730         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
6731         <libm-alias-double.h>.
6732         (llround): Define using libm_alias_double.
6733         (lround): Likewise.
6735 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
6737         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
6738         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
6739         compat symbol based on llround.
6741         * sysdeps/powerpc/power7/fpu/s_logb.c
6742         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
6743         symbol based on __logb, not on logb.
6744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
6745         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
6746         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
6747         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
6749         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
6750         (rint): Define using libm_alias_double.
6751         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
6752         <libm-alias-double.h>.
6753         (modf): Define using libm_alias_double.
6754         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
6755         <libm-alias-double.h>.
6756         (ceil): Define using libm_alias_double.
6757         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
6758         <libm-alias-double.h>.
6759         (floor): Define using libm_alias_double.
6760         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
6761         <libm-alias-double.h>.
6762         (nearbyint): Define using libm_alias_double.
6763         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
6764         <libm-alias-double.h>.
6765         (rint): Define using libm_alias_double.
6766         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
6767         <libm-alias-double.h>.
6768         (round): Define using libm_alias_double.
6769         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
6770         <libm-alias-double.h>.
6771         (trunc): Define using libm_alias_double.
6772         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
6773         <libm-alias-double.h>.
6774         (ceil): Define using libm_alias_double.
6775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
6776         Include <libm-alias-double.h>.
6777         (floor): Define using libm_alias_double.
6778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
6779         <libm-alias-double.h>.
6780         (modf): Define using libm_alias_double.
6781         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
6782         Include <libm-alias-double.h>.
6783         (round): Define using libm_alias_double.
6784         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
6785         Include <libm-alias-double.h>.
6786         (trunc): Define using libm_alias_double.
6787         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
6788         <libm-alias-double.h>.
6789         (ceil): Define using libm_alias_double.
6790         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
6791         <libm-alias-double.h>.
6792         (floor): Define using libm_alias_double.
6793         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
6794         <libm-alias-double.h>.
6795         (round): Define using libm_alias_double.
6796         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
6797         <libm-alias-double.h>.
6798         (trunc): Define using libm_alias_double.
6799         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
6800         <libm-alias-double.h>.
6801         (ceil): Define using libm_alias_double.
6802         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
6803         <libm-alias-double.h>.
6804         (floor): Define using libm_alias_double.
6805         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
6806         <libm-alias-double.h>.
6807         (modf): Define using libm_alias_double.
6808         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
6809         <libm-alias-double.h>.
6810         (round): Define using libm_alias_double.
6811         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
6812         <libm-alias-double.h>.
6813         (trunc): Define using libm_alias_double.
6814         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
6815         <libm-alias-double.h>.
6816         (ceil): Define using libm_alias_double.
6817         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
6818         <libm-alias-double.h>.
6819         (floor): Define using libm_alias_double.
6820         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
6821         <libm-alias-double.h>.
6822         (nearbyint): Define using libm_alias_double.
6823         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
6824         <libm-alias-double.h>.
6825         (rint): Define using libm_alias_double.
6826         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
6827         <libm-alias-double.h>.
6828         (round): Define using libm_alias_double.
6829         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
6830         <libm-alias-double.h>.
6831         (trunc): Define using libm_alias_double.
6832         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
6833         <libm-alias-double.h>.
6834         (ceil): Define using libm_alias_double.
6835         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
6836         <libm-alias-double.h>.
6837         (floor): Define using libm_alias_double.
6838         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
6839         <libm-alias-double.h>.
6840         (round): Define using libm_alias_double.
6841         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
6842         <libm-alias-double.h>.
6843         (trunc): Define using libm_alias_double.
6845         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
6846         (fabs): Define using libm_alias_double.
6847         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
6848         (fma): Define using libm_alias_double.
6849         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
6850         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
6851         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
6852         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
6854 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6856         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
6858         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
6859         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
6860         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
6862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
6863         due redirect macro.
6865 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
6867         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
6869 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6871         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
6872         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
6873         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
6874         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
6876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6877         (libm-sysdep_routines): Add s_nearbyintf-generic and
6878         s_nearbyint-generic.
6879         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
6880         New file.
6881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
6882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
6883         Likewise.
6884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
6885         Likewise.
6886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
6887         file.
6888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
6889         Likewise.
6891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6892         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
6893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
6894         file.
6895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
6897         Likewise.
6898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
6900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
6902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6903         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
6904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
6905         file.
6906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
6907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
6908         Likewise.
6909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
6910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
6911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
6913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6914         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
6915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
6916         file.
6917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
6918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
6919         Likewise.
6920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
6921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
6922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
6924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6925         (sysdep_calls): New rule.
6926         (sysdep_routines): Use sysdep_calls as base.
6927         (libm-sysdep_routines): Add generic rule for symbols shared with
6928         libc.  Add s_copysign-generic and s_copysign-generic objects.
6929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
6930         New file.
6931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
6932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
6933         Likewise.
6934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
6935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
6936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
6938 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
6940         [BZ #22519]
6941         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
6942         the list of locales to be built for testing.
6943         * localedata/is_IS.UTF-8.in: New file.
6944         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
6945         on iso14651_t1.
6947 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
6949         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
6950         <libm-alias-float.h>.
6951         (fabsf): Define using libm_alias_float.
6953 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
6955         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
6957 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
6959         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
6960         <libm-alias-float.h>.
6961         (fabsf): Define using libm_alias_float.
6962         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
6963         <libm-alias-float.h>.
6964         (lrintf): Define using libm_alias_float.
6965         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
6966         <libm-alias-float.h>.
6967         (rintf): Define using libm_alias_float.
6969         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
6970         <libm-alias-double.h>.
6971         (fabs): Define using libm_alias_double.
6972         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
6973         <libm-alias-double.h>.
6974         (lrint): Define using libm_alias_double.
6975         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
6976         <libm-alias-double.h>.
6977         (rint): Define using libm_alias_double.
6979         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
6980         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6981         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
6982         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
6983         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
6984         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6985         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
6986         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
6987         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
6988         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
6989         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
6990         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
6991         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
6992         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
6993         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
6994         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
6995         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6996         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
6997         s_atan_template.c.
6998         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
6999         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
7000         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
7001         s_ceil_template.c.
7002         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
7003         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
7004         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
7005         s_cos_template.c.
7006         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
7007         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
7008         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
7009         s_expm1_template.c.
7010         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
7011         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
7012         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
7013         s_fabs_template.c.
7014         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
7015         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
7016         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
7017         s_floor_template.c.
7018         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
7019         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
7020         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
7021         s_frexp_template.c.
7022         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
7023         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
7024         s_lrint_template.c.
7025         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
7026         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
7027         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
7028         s_modf_template.c.
7029         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
7030         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
7031         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
7032         s_nearbyint_template.c.
7033         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
7034         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
7035         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
7036         s_remquo_template.c.
7037         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
7038         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
7039         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
7040         s_rint_template.c.
7041         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7042         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7043         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
7044         s_sin_template.c.
7045         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
7046         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
7047         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
7048         s_sincos_template.c.
7049         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
7050         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
7051         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
7052         s_tan_template.c.
7053         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
7054         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
7055         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
7056         s_tanh_template.c.
7057         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
7058         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
7059         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
7060         s_trunc_template.c.
7061         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
7062         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
7063         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
7064         s_atan.c instead of including s_atan.c.
7065         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
7066         s_atanf.c instead of including s_atanf.c.
7067         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
7068         s_atanl.c instead of including s_atanl.c.
7069         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
7070         instead of s_atan.c.
7071         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
7072         instead of s_atanf.c.
7073         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
7074         instead of s_atanl.c.
7076         * scripts/update-copyrights: Do not handle intl/plural.c
7077         specially.
7079 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
7081         [BZ #22432]
7082         * configure.ac (BISON): Require to be present.
7083         * configure: Regenerated.
7084         * intl/Makefile (generated): Add plural.c.
7085         [$(BISON) != no]: Make code unconditional.
7086         (plural.c): Change rule to $(objpfx)plural.c.
7087         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
7088         * intl/plural.c: Remove.
7089         * manual/install.texi (Tools for Compilation): Document bison as
7090         required.
7091         * INSTALL: Regenerated.
7093 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
7095         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
7096         <libm-alias-double.h>.
7097         (llrint): Define using libm_alias_double.
7098         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
7099         <libm-alias-float.h>.
7100         (llrintf): Define using libm_alias_float.
7101         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
7102         <libm-alias-ldouble.h>.
7103         (llrintl): Define using libm_alias_ldouble.
7105         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
7106         declare_mgen_alias instead of weak_alias.
7107         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
7108         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
7109         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
7111 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7113         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
7114         Add add_n-generic.
7115         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
7116         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
7117         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
7119         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
7120         Add submul_1-generic.
7121         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
7122         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
7123         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
7125         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
7126         Add addmul_1-generic.
7127         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
7128         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
7129         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
7131         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
7132         Add sub_n-generic.
7133         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
7134         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
7135         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
7137         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
7138         Add mul_1-generic.
7139         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
7140         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
7141         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
7143 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
7145         According to CLDR, collation rules for Serbian and Bosnian
7146         should be the same as for Croatian.
7148         [BZ #22534]
7149         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
7150         and to the list of locales to be built for testing.
7151         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
7152         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
7153         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
7154         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
7156 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
7158         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
7159         to make test case pass.
7160         * localedata/hr_HR.UTF-8.in: Add more test strings.
7162 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
7164         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
7166 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
7168         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
7169         the list of locales to built for testing.
7170         * localedata/hr_HR.UTF-8.in: New file.
7172 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
7174         [BZ #10580]
7175         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
7176         iso14651_t1.
7177         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
7178         CLDR (except use ligatures for the digraphs, CLDR does not use
7179         the ligatures), add first_workday, some fixes in the date and time
7180         formats.
7181         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
7182         for Đ and đ.
7183         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
7184         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
7185         Add int_p_cs_precedes and int_n_cs_precedes.
7186         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
7187         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
7188         LC_MONETARY now).
7189         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
7190         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
7191         name_miss.
7192         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
7193         and lang_lib. Change postal_fmt.
7195 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7197         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
7198         <setjmp.h>.
7199         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
7200         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
7201         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
7202         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
7203         * sysdeps/generic/setjmpP.h: New file.
7204         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
7205         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
7206         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
7207         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
7208         Add jmp_buf-ssp.sym.
7209         (tests): Add tst-saved_mask-1.
7211 2017-11-30  Arjun Shankar  <arjun@redhat.com>
7213         [BZ #22375]
7214         CVE-2017-17426
7215         * malloc/malloc.c (__libc_malloc): Use checked_request2size
7216         instead of request2size.
7218 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
7220         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
7221         (__lllrint): Remove alias.
7222         (lllrint): Likewise.
7223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
7224         (__lllrintf): Likewise.
7225         (lllrintf): Likewise.
7227         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
7228         <libm-alias-float.h>.
7229         (copysignf): Define using libm_alias_float.
7230         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
7231         <libm-alias-float.h>.
7232         (fabsf): Define using libm_alias_float.
7233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
7234         Include <libm-alias-float.h>.
7235         (copysignf): Define using libm_alias_float.
7236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
7237         <libm-alias-float.h>.
7238         (fabsf): Define using libm_alias_float.
7239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
7240         <libm-alias-float.h>.
7241         (fdimf): Define using libm_alias_float.
7242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
7243         <libm-alias-float.h>.
7244         (fmaf): Define using libm_alias_float.
7245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
7246         <libm-alias-float.h>.
7247         (llrintf): Define using libm_alias_float.
7248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
7249         Include <libm-alias-float.h>.
7250         (nearbyintf): Define using libm_alias_float.
7251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
7252         <libm-alias-float.h>.
7253         (rintf): Define using libm_alias_float.
7254         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
7255         <libm-alias-float.h>.
7256         (llrintf): Define using libm_alias_float.
7257         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
7258         <libm-alias-float.h>.
7259         (lrintf): Define using libm_alias_float.
7260         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
7261         <libm-alias-float.h>.
7262         (nearbyintf): Define using libm_alias_float.
7263         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
7264         <libm-alias-float.h>.
7265         (rintf): Define using libm_alias_float.
7266         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
7267         <libm-alias-float.h>.
7268         (ceilf): Define using libm_alias_float.
7269         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
7270         <libm-alias-float.h>.
7271         (floorf): Define using libm_alias_float.
7272         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
7273         <libm-alias-float.h>.
7274         (fmaf): Define using libm_alias_float.
7275         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
7276         <libm-alias-float.h>.
7277         (lrintf): Define using libm_alias_float.
7278         (llrintf): Likewise.
7279         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
7280         <libm-alias-float.h>.
7281         (nearbyintf): Define using libm_alias_float.
7282         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
7283         <libm-alias-float.h>.
7284         (rintf): Define using libm_alias_float.
7285         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
7286         <libm-alias-float.h>.
7287         (truncf): Define using libm_alias_float.
7288         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
7289         <libm-alias-float.h>.
7290         (copysignf): Define using libm_alias_float.
7291         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
7292         <libm-alias-float.h>.
7293         (fabsf): Define using libm_alias_float.
7294         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
7295         <libm-alias-float.h>.
7296         (lrintf): Define using libm_alias_float.
7297         (llrintf): Likewise.
7298         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
7299         <libm-alias-float.h>.
7300         (nearbyintf): Define using libm_alias_float.
7301         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
7302         <libm-alias-float.h>.
7303         (rintf): Define using libm_alias_float.
7305 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
7307         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
7308         <libm-alias-double.h>.
7309         (copysign): Define using libm_alias_double.
7310         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
7311         <libm-alias-double.h>.
7312         (fabs): Define using libm_alias_double.
7313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
7314         Include <libm-alias-double.h>.
7315         (copysign): Define using libm_alias_double.
7316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
7317         <libm-alias-double.h>.
7318         (fabs): Define using libm_alias_double.
7319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
7320         <libm-alias-double.h>.
7321         (fdim): Define using libm_alias_double.
7322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
7323         <libm-alias-double.h>.
7324         (fma): Define using libm_alias_double.
7325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
7326         <libm-alias-double.h>.
7327         (llrint): Define using libm_alias_double.
7328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
7329         Include <libm-alias-double.h>.
7330         (nearbyint): Define using libm_alias_double.
7331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
7332         <libm-alias-double.h>.
7333         (rint): Define using libm_alias_double.
7334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
7335         <libm-alias-double.h>.
7336         (fabs): Define using libm_alias_double.
7337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
7338         <libm-alias-double.h>.
7339         (llrint): Define using libm_alias_double.
7340         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
7341         <libm-alias-double.h>.
7342         (nearbyint): Define using libm_alias_double.
7343         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
7344         <libm-alias-double.h>.
7345         (rint): Define using libm_alias_double.
7346         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
7347         <libm-alias-double.h>.
7348         (ceil): Define using libm_alias_double.
7349         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
7350         <libm-alias-double.h>.
7351         (floor): Define using libm_alias_double.
7352         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
7353         <libm-alias-double.h>.
7354         (fma): Define using libm_alias_double.
7355         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
7356         <libm-alias-double.h>.
7357         (lrint): Define using libm_alias_double.
7358         (llrint): Likewise.
7359         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
7360         <libm-alias-double.h>.
7361         (nearbyint): Define using libm_alias_double.
7362         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
7363         <libm-alias-double.h>.
7364         (rint): Define using libm_alias_double.
7365         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
7366         <libm-alias-double.h>.
7367         (trunc): Define using libm_alias_double.
7368         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
7369         <libm-alias-double.h>.
7370         (copysign): Define using libm_alias_double.
7371         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
7372         <libm-alias-double.h>.
7373         (fabs): Define using libm_alias_double.
7374         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
7375         <libm-alias-double.h>.
7376         (lrint): Define using libm_alias_double.
7377         (llrint): Likewise.
7378         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
7379         <libm-alias-double.h>.
7380         (nearbyint): Define using libm_alias_double.
7381         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
7382         <libm-alias-double.h>.
7383         (rint): Define using libm_alias_double.
7385         [BZ #22229]
7386         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
7387         <math_ldbl_opt.h>.
7388         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
7390         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7391         SPARC --disable-multi-arch glibc variants.
7393         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
7394         <libm-alias-float.h>.
7395         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7396         if [SHARED].
7397         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
7398         <libm-alias-float.h>.
7399         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7400         if [SHARED].
7401         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
7402         <libm-alias-float.h>.
7403         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7404         if [SHARED].
7405         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
7406         <libm-alias-float.h>.
7407         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7408         if [SHARED].
7409         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
7410         <libm-alias-float.h>.
7411         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7412         if [SHARED].
7413         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
7414         <libm-alias-float.h>.
7415         (ceilf): Define using libm_alias_float.
7416         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
7417         <libm-alias-float.h>.
7418         (floorf): Define using libm_alias_float.
7419         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
7420         <libm-alias-float.h>.
7421         (fmaf): Define using libm_alias_float.
7422         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
7423         <libm-alias-float.h>.
7424         (nearbyintf): Define using libm_alias_float.
7425         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
7426         <libm-alias-float.h>.
7427         (rintf): Define using libm_alias_float.
7428         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
7429         <libm-alias-float.h>.
7430         (truncf): Define using libm_alias_float.
7431         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
7432         (copysignf): Define using libm_alias_float.
7433         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
7434         (cosf): Define using libm_alias_float.
7435         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
7436         (fabsf): Define using libm_alias_float.
7437         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
7438         (fmaxf): Define using libm_alias_float.
7439         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
7440         (fminf): Define using libm_alias_float.
7441         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
7442         (llrintf): Define using libm_alias_float.
7443         [!__ILP32__] (lrintf): Likewise.
7444         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
7445         (sincosf): Define using libm_alias_float.
7446         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
7447         (sinf): Define using libm_alias_float.
7448         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
7449         (lrintf): Define using libm_alias_float.
7451         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
7452         <libm-alias-double.h>.
7453         (atan): Define using libm_alias_double.
7454         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
7455         <libm-alias-double.h>.
7456         (ceil): Define using libm_alias_double.
7457         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
7458         <libm-alias-double.h>.
7459         (floor): Define using libm_alias_double.
7460         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
7461         <libm-alias-double.h>.
7462         (fma): Define using libm_alias_double.
7463         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
7464         <libm-alias-double.h>.
7465         (nearbyint): Define using libm_alias_double.
7466         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
7467         <libm-alias-double.h>.
7468         (rint): Define using libm_alias_double.
7469         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
7470         <libm-alias-double.h>.
7471         (sin): Define using libm_alias_double.
7472         (cos): Likewise.
7473         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
7474         <libm-alias-double.h>.
7475         (tan): Define using libm_alias_double.
7476         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
7477         <libm-alias-double.h>.
7478         (trunc): Define using libm_alias_double.
7479         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
7480         (copysign): Define using libm_alias_double.
7481         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
7482         (fabs): Define using libm_alias_double.
7483         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
7484         (fmax): Define using libm_alias_double.
7485         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
7486         (fmin): Define using libm_alias_double.
7487         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
7488         (llrint): Define using libm_alias_double.
7489         [!__ILP32__] (lrint): Likewise.
7490         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
7491         (lrint): Define using libm_alias_double.
7493 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7495         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
7496         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
7497         objects.
7498         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
7499         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7500         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
7501         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7502         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
7503         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
7505         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
7506         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
7507         objects.
7508         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
7509         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
7510         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
7511         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
7512         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
7513         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
7515         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
7516         (libm-sysdep_routines): Add s_nearbyint-generic and
7517         s_nearbyintf-generic objects.
7518         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
7519         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
7520         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
7521         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
7522         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
7523         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
7525         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
7526         Add s_finitef-generic and s_finite-generic objects.
7527         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
7528         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
7529         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
7530         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
7531         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
7532         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
7534         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
7535         Add s_isinff-generic and s_isinf-generic objects.
7536         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
7537         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
7538         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
7539         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
7540         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
7541         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
7543         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
7544         Add s_isnanf-generic and s_isnan-generic objects.
7545         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
7546         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
7547         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
7548         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
7549         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
7550         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
7552         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
7553         macro.
7554         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
7555         rule.
7556         (sysdep_routines): Use sysdep_calls as base.
7557         (libm-sysdep_routines): Add generic rule for symbols shared with
7558         libc.  Add s_signbit-generic and s_signbitf-generic objects.
7559         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
7560         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
7561         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
7562         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
7563         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
7564         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
7566 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
7568         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
7569         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
7570         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
7571         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
7572         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
7573         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
7574         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
7575         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
7576         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
7577         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
7578         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
7579         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
7580         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
7581         libm_alias_float_r.
7582         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
7583         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
7584         (logf): Likewise.
7585         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
7586         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
7587         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
7588         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
7589         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
7590         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
7591         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
7592         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
7593         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
7594         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
7595         libm_alias_float.
7596         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
7597         (cosf): Likewise.
7598         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
7599         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
7600         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
7601         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
7602         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
7603         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
7604         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
7605         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
7606         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
7607         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
7608         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
7609         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
7610         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
7611         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
7612         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
7613         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
7614         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
7615         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
7616         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
7617         libm_alias_float.
7618         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
7619         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
7620         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
7621         * sysdeps/ia64/fpu/w_lgammaf_main.c
7622         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
7623         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
7625 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
7626             Alexandre Oliva  <aoliva@redhat.com>
7628         [BZ #17750]
7629         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
7630         * localedata/fr_CA.UTF-8.in: New file with test data for backward
7631         accents sorting.
7632         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
7633         sorting.
7634         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
7635         * localedata/locales/de_DE (LC_COLLATE): Likewise.
7636         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
7637         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
7638         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
7639         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
7640         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
7641         instead of “ifdef DIACRIT_BACKWARD”.
7643 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7645         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
7646         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
7647         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
7648         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
7649         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
7650         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
7651         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7652         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7653         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7654         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7655         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
7656         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
7657         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7658         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7659         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
7660         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
7661         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
7662         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
7663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
7664         ($(have-as-vis3) == yes): Remove conditional.
7665         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
7666         Likewise.
7667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
7668         file.
7669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
7670         file.
7671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
7672         file.
7673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
7674         file.
7675         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
7676         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
7677         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
7678         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
7679         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
7680         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
7681         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
7682         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
7684 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
7686         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
7687         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
7688         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
7689         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
7690         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
7691         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
7692         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
7693         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
7694         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
7695         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
7696         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
7697         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
7698         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
7699         libm_alias_double_r.
7700         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
7701         (log): Likewise.
7702         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
7703         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
7704         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
7705         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
7706         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
7707         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
7708         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
7709         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
7710         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
7711         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
7712         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
7713         libm_alias_double.
7714         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
7715         (cos): Likewise.
7716         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
7717         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
7718         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
7719         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
7720         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
7721         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
7722         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
7723         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
7724         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
7725         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
7726         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
7727         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
7728         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
7729         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
7730         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
7731         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
7732         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
7733         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
7734         libm_alias_double.
7735         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
7736         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
7737         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
7738         * sysdeps/ia64/fpu/w_lgamma_main.c
7739         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
7740         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
7742 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
7744         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
7745         address of $global$ into %dp register earlier.  Use pc-relative
7746         instruction sequence for PIC case.
7748 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
7750         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
7751         (asinhf): Define using libm_alias_float.
7752         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
7753         (atanf): Define using libm_alias_float.
7754         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
7755         (cbrtf): Define using libm_alias_float.
7756         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
7757         (ceilf): Define using libm_alias_float.
7758         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
7759         (copysignf): Define using libm_alias_float.
7760         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
7761         (expm1f): Define using libm_alias_float.
7762         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
7763         (fabsf): Define using libm_alias_float.
7764         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
7765         (floorf): Define using libm_alias_float.
7766         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
7767         (fmaxf): Define using libm_alias_float.
7768         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
7769         (fminf): Define using libm_alias_float.
7770         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
7771         (frexpf): Define using libm_alias_float.
7772         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
7773         (llrintf): Define using libm_alias_float.
7774         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
7775         (logbf): Define using libm_alias_float.
7776         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
7777         (lrintf): Define using libm_alias_float.
7778         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
7779         (nearbyintf): Define using libm_alias_float.
7780         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
7781         (remquof): Define using libm_alias_float.
7782         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
7783         (rintf): Define using libm_alias_float.
7784         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
7785         (truncf): Define using libm_alias_float.
7786         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
7787         <libm-alias-float.h>.
7788         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7789         if [SHARED].
7790         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
7791         <libm-alias-float.h>.
7792         (expf): Define using libm_alias_float, or libm_alias_float_other
7793         if [SHARED].
7794         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
7795         <libm-alias-float.h>.
7796         (log2f): Define using libm_alias_float, or libm_alias_float_other
7797         if [SHARED].
7798         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
7799         <libm-alias-float.h>.
7800         (logf): Define using libm_alias_float, or libm_alias_float_other
7801         if [SHARED].
7802         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
7803         <libm-alias-float.h>.
7804         (powf): Define using libm_alias_float, or libm_alias_float_other
7805         if [SHARED].
7806         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
7807         <libm-alias-float.h>.
7808         (cosf): Define using libm_alias_float.
7809         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
7810         <libm-alias-float.h>.
7811         (sincosf): Define using libm_alias_float.
7812         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
7813         <libm-alias-float.h>.
7814         (sinf): Define using libm_alias_float.
7815         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
7816         (fmaxf): Define using libm_alias_float.
7817         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
7818         (fminf): Define using libm_alias_float.
7819         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
7820         <libm-alias-float.h>.
7821         (fmaf): Define using libm_alias_float.
7823         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
7824         (asinh): Define using libm_alias_double.
7825         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
7826         (atan): Define using libm_alias_double.
7827         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
7828         (cbrt): Define using libm_alias_double.
7829         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
7830         (ceil): Define using libm_alias_double.
7831         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
7832         (copysign): Define using libm_alias_double.
7833         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
7834         (expm1): Define using libm_alias_double.
7835         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
7836         (fabs): Define using libm_alias_double.
7837         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
7838         (fdim): Define using libm_alias_double.
7839         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
7840         (floor): Define using libm_alias_double.
7841         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
7842         (fmax): Define using libm_alias_double.
7843         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
7844         (fmin): Define using libm_alias_double.
7845         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
7846         (frexp): Define using libm_alias_double.
7847         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
7848         (llrint): Define using libm_alias_double.
7849         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
7850         (logb): Define using libm_alias_double.
7851         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
7852         (lrint): Define using libm_alias_double.
7853         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
7854         (nearbyint): Define using libm_alias_double.
7855         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
7856         (remquo): Define using libm_alias_double.
7857         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
7858         (rint): Define using libm_alias_double.
7859         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
7860         (trunc): Define using libm_alias_double.
7861         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
7862         (fmax): Define using libm_alias_double.
7863         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
7864         (fmin): Define using libm_alias_double.
7865         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
7866         (fma): Define using libm_alias_double.
7868 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
7870         [BZ #22370]
7871         * elf/dl-hwcaps.c (ROUND): Removed.
7872         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
7873         and ELF_NOTE_NEXT_OFFSET.
7874         * elf/dl-load.c (ROUND): Removed.
7875         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
7876         * elf/readelflib.c (ROUND): Removed.
7877         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
7878         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
7879         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
7880         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
7882 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
7884         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
7885         [!__fmaf] (fmaf): Define using libm_alias_float.
7887         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
7888         [!__fma] (fma): Define using libm_alias_double.
7889         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
7891 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
7893         [BZ #22336]
7894         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
7895         and implement the collation rules for cs from CLDR on top of that.
7896         * Makefile: Add cs_CZ.UTF-8 to test-input.
7897         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
7899 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7901         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
7903 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
7904             Icarus Sparry  <icarus.w.sparry@intel.com>
7906         * benchtests/Makefile:Add BENCHSET to allow subsets of
7907         benchmarks to be run.
7908         * benchtests/README: Add documentation for: Running subsets of
7909         benchmarks.
7911 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
7913         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
7914         range of tests names.
7916         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
7917         result from property and remove "max", min" and "mean" from
7918         required properties based on benchtests/bench-skeleton.c.
7920 2017-11-28  Florian Weimer  <fweimer@redhat.com>
7922         [BZ #20826]
7923         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
7924         due to Internet requirement.
7925         * posix/Makefile (tests): Remove tst-getaddrinfo4,
7926         tst-getaddrinfo5.
7927         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
7929 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7931         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
7932         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
7933         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
7934         (sysdep_routines): Add memset-ultra1.
7935         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
7936         file.
7937         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
7938         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
7939         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
7940         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
7941         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
7942         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
7943         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
7944         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7946         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
7947         file.
7948         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
7949         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
7950         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
7951         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
7952         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
7953         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
7954         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
7955         macro.
7956         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
7957         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
7958         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
7959         (sysdep_routines): Add memcpy-ultra1.
7960         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
7961         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
7963 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
7965         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
7966         (cfloat_versions): Take function argument without trailing 'f'.
7967         Call libm_alias_float_other.
7968         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
7969         * sysdeps/alpha/fpu/cargf.c: Likewise.
7970         * sysdeps/alpha/fpu/cimagf.c: Likewise.
7971         * sysdeps/alpha/fpu/conjf.c: Likewise.
7972         * sysdeps/alpha/fpu/crealf.c: Likewise.
7973         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
7974         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
7975         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
7976         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
7977         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
7978         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
7979         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
7980         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
7981         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
7982         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
7983         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
7984         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
7985         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
7986         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
7987         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
7988         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
7989         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
7990         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
7991         (clog10f): Use libm_alias_float_other.
7992         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
7993         (ceilf): Define using libm_alias_float.
7994         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
7995         (copysignf): Define using libm_alias_float.
7996         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
7997         (fabsf): Define using libm_alias_float.
7998         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
7999         (floorf): Define using libm_alias_float.
8000         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
8001         (fmaxf): Define using libm_alias_float.
8002         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
8003         (fminf): Define using libm_alias_float.
8004         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
8005         (lrintf): Define using libm_alias_float.
8006         (llrintf): Likewise.
8007         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
8008         (lroundf): Define using libm_alias_float.
8009         (llroundf): Likewise.
8010         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
8011         (rintf): Define using libm_alias_float.
8012         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
8013         (truncf): Define using libm_alias_float.
8015         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
8016         (ceilf): Define using libm_alias_float.
8017         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
8018         (floorf): Define using libm_alias_float.
8019         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
8020         (fmaf): Define using libm_alias_float.
8021         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
8022         (fmaxf): Define using libm_alias_float.
8023         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
8024         (fminf): Define using libm_alias_float.
8025         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
8026         (llrintf): Define using libm_alias_float.
8027         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
8028         (llroundf): Define using libm_alias_float.
8029         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
8030         (lrintf): Define using libm_alias_float.
8031         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
8032         (lroundf): Define using libm_alias_float.
8033         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
8034         <libm-alias-float.h>.
8035         (nearbyintf): Define using libm_alias_float.
8036         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
8037         (rintf): Define using libm_alias_float.
8038         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
8039         (roundf): Define using libm_alias_float.
8040         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
8041         (truncf): Define using libm_alias_float.
8043         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
8044         (ceil): Define using libm_alias_double.
8045         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
8046         (copysign): Define using libm_alias_double.
8047         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
8048         (fabs): Define using libm_alias_double.
8049         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
8050         (floor): Define using libm_alias_double.
8051         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
8052         (fmax): Define using libm_alias_double.
8053         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
8054         (fmin): Define using libm_alias_double.
8055         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
8056         (lrint): Define using libm_alias_double.
8057         (llrint): Likewise.
8058         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
8059         (lround): Define using libm_alias_double.
8060         (llround): Likewise.
8061         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
8062         (rint): Define using libm_alias_double.
8063         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
8064         (trunc): Define using libm_alias_double.
8066         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
8067         (libm_alias_double_r): Add semicolon after weak_alias call.
8069 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
8071         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
8072         (ceil): Define using libm_alias_double.
8073         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
8074         (floor): Define using libm_alias_double.
8075         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
8076         (fma): Define using libm_alias_double.
8077         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
8078         (fmax): Define using libm_alias_double.
8079         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
8080         (fmin): Define using libm_alias_double.
8081         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
8082         (llrint): Define using libm_alias_double.
8083         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
8084         (llround): Define using libm_alias_double.
8085         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
8086         (lrint): Define using libm_alias_double.
8087         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
8088         (lround): Define using libm_alias_double.
8089         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
8090         (nearbyint): Define using libm_alias_double.
8091         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
8092         (rint): Define using libm_alias_double.
8093         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
8094         (round): Define using libm_alias_double.
8095         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
8096         (trunc): Define using libm_alias_double.
8098 2017-11-27  Florian Weimer  <fweimer@redhat.com>
8100         * sysdeps/unix/sysv/linux/mlock2.c: New file.
8101         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
8102         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
8103         (tests): Add tst-mlock2.
8104         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
8105         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
8106         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
8107         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
8108         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
8109         for mlock.  Document mlock2.
8111 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
8113         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
8114         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
8115         Likewise.
8116         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
8117         Likewise.
8118         * sysdeps/x86/Makeconfig: New file.
8119         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
8120         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8121         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
8122         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8123         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
8124         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8125         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
8126         Likewise.
8127         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8128         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
8129         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8130         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
8131         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8132         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
8133         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8134         * manual/math.texi (Mathematics): Document support for _Float64x.
8135         * math/Versions (GLIBC_2.27): Add _Float64x functions.
8136         * stdlib/Versions (GLIBC_2.27): Likewise.
8137         * wcsmbs/Versions (GLIBC_2.27): Likewise.
8138         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
8139         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8140         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8141         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8142         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8143         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8144         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8145         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8146         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8147         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8148         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8150         Likewise.
8151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8152         Likewise.
8153         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8154         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8155         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8156         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8157         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8158         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8159         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8160         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8161         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8162         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8163         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8164         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8165         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
8166         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
8168 2017-11-27  Andreas Schwab  <schwab@suse.de>
8170         * elf/Makefile (dl-routines): Add dl-sort-maps.
8171         * elf/dl-sort-maps.c: New file.
8172         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
8173         (_dl_sort_maps): Declare.
8174         * elf/dl-fini.c (_dl_sort_fini): Remove.
8175         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
8176         * elf/dl-close.c (_dl_close_worker): Likewise.
8177         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
8178         open-coding it.
8179         * elf/dl-open.c (dl_open_worker): Likewise.
8181 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
8183         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
8184         using libm_alias_float128.
8185         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
8186         Likewise.
8187         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
8188         Likewise.
8189         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
8190         (setpayloadsigf128): Likewise.
8191         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
8192         Likewise.
8193         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
8194         Likewise.
8196         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
8197         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
8198         -mfloat128 to CFLAGS.
8199         ($(foreach
8200         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
8201         Likewise.
8202         (CFLAGS-libm-test-support-float64x.c): New variable.
8203         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
8204         $(f128-loader-link) to gnulib-tests.
8206         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
8207         (libm_alias_float128_other_r): If
8208         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
8209         alias.
8210         (libm_alias_float128_r): Add semicolon after weak_alias call.
8211         * sysdeps/generic/libm-alias-ldouble.h
8212         (libm_alias_ldouble_other_r_f128): New macro.
8213         (libm_alias_ldouble_other_r_f64x): Likewise.
8214         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
8215         and libm_alias_ldouble_other_r_f64x.
8216         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
8217         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
8218         (libm_alias_ldouble_other_r_f128): New macro.
8219         (libm_alias_ldouble_other_r_f64x): Likewise.
8220         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
8221         and libm_alias_ldouble_other_r_f64x.
8223         * stdlib/strfroml.c: Always include <stdlib.h>.
8224         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
8225         undefine as macro and define as weak alias.
8226         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
8227         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
8228         <stdlib.h>.
8229         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
8230         Define and later undefine as macro and define as weak alias.
8232         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
8233         Define and later undefine as macro.  Define as weak alias if
8234         [!USE_WIDE_CHAR].
8235         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
8236         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
8237         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
8238         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
8239         Define and later undefine as macro.  Define as weak alias if
8240         [!USE_WIDE_CHAR].
8241         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
8242         Define and later undefine as macro.  Define as weak alias if
8243         [USE_WIDE_CHAR].
8244         * sysdeps/ieee754/float128/strtof128_l.c
8245         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
8246         Define and later undefine as macro.  Define as weak alias if
8247         [!USE_WIDE_CHAR].
8248         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
8249         Define and later undefine as macro.  Define as weak alias if
8250         [USE_WIDE_CHAR].
8251         * sysdeps/ieee754/ldbl-128/strtold_l.c
8252         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
8253         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
8254         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
8255         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
8256         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
8257         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
8258         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
8259         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
8260         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
8261         * sysdeps/ieee754/ldbl-96/strtold_l.c
8262         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
8263         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
8264         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
8265         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
8267         * math/test-float64x.h: New file.
8268         * math/Makefile (type-float64x-yes): New variable.
8269         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
8271         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
8272         function-like macro.
8273         (min_of_type_): Likewise.
8274         (min_of_type_l): Likewise.
8275         (min_of_type_f128): Likewise.
8276         (min_of_type): Pass () as last argument of __MATH_TG.
8278         * stdlib/tst-strtod-round-skeleton.c
8279         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
8280         headers.
8282         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
8283         for combinations of long double with _Float64 and _Float64x.
8285         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
8286         (__DECL_SIMD_cosf32): Likewise.
8287         (__DECL_SIMD_cosf64): Likewise.
8288         (__DECL_SIMD_cosf32x): Likewise.
8289         (__DECL_SIMD_cosf64x): Likewise.
8290         (__DECL_SIMD_cosf128x): Likewise.
8291         (__DECL_SIMD_sinf16): Likewise.
8292         (__DECL_SIMD_sinf32): Likewise.
8293         (__DECL_SIMD_sinf64): Likewise.
8294         (__DECL_SIMD_sinf32x): Likewise.
8295         (__DECL_SIMD_sinf64x): Likewise.
8296         (__DECL_SIMD_sinf128x): Likewise.
8297         (__DECL_SIMD_sincosf16): Likewise.
8298         (__DECL_SIMD_sincosf32): Likewise.
8299         (__DECL_SIMD_sincosf64): Likewise.
8300         (__DECL_SIMD_sincosf32x): Likewise.
8301         (__DECL_SIMD_sincosf64x): Likewise.
8302         (__DECL_SIMD_sincosf128x): Likewise.
8303         (__DECL_SIMD_logf16): Likewise.
8304         (__DECL_SIMD_logf32): Likewise.
8305         (__DECL_SIMD_logf64): Likewise.
8306         (__DECL_SIMD_logf32x): Likewise.
8307         (__DECL_SIMD_logf64x): Likewise.
8308         (__DECL_SIMD_logf128x): Likewise.
8309         (__DECL_SIMD_expf16): Likewise.
8310         (__DECL_SIMD_expf32): Likewise.
8311         (__DECL_SIMD_expf64): Likewise.
8312         (__DECL_SIMD_expf32x): Likewise.
8313         (__DECL_SIMD_expf64x): Likewise.
8314         (__DECL_SIMD_expf128x): Likewise.
8315         (__DECL_SIMD_powf16): Likewise.
8316         (__DECL_SIMD_powf32): Likewise.
8317         (__DECL_SIMD_powf64): Likewise.
8318         (__DECL_SIMD_powf32x): Likewise.
8319         (__DECL_SIMD_powf64x): Likewise.
8320         (__DECL_SIMD_powf128x): Likewise.
8322         * stdlib/Versions (libc): Move entries for wcstof128 and
8323         wcstof128_l to ....
8324         * wcsmbs/Versions (libc): ... here.
8325         Include <float128-abi.h>.
8327 2017-11-24  Florian Weimer  <fweimer@redhat.com>
8329         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8330         bits/mman-shared.h.
8331         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
8332         <bits/mman-shared.h>.
8333         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
8334         to ...
8335         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
8336         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
8337         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8338         <bits/mman-shared.h>.
8340 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8342         [BZ #22457]
8343         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
8344         posix_memalign/free.
8345         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
8347 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
8349         [BZ #22469]
8350         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
8351         and implement the collation rules for pl from CLDR on top of that.
8352         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
8353         of locales to be built for testing.
8354         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
8356 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
8358         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
8359         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
8360         libm_alias_ldouble_other.
8361         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
8362         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
8363         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
8364         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
8365         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
8366         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
8367         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
8368         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
8369         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
8370         libm_alias_ldouble_r.
8371         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
8372         libm_alias_ldouble_other.
8373         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
8374         (log10l): Likewise.
8375         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
8376         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
8377         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
8378         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
8379         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
8380         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
8381         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
8382         (atan2l): Likewise.
8383         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
8384         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
8385         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
8386         libm_alias_ldouble.
8387         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
8388         (cosl): Likewise.
8389         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
8390         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
8391         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
8392         (expl): Likewise.
8393         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
8394         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
8395         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
8396         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
8397         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
8398         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
8399         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
8400         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
8401         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
8402         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
8403         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
8404         libm_alias_ldouble.
8405         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
8406         libm_alias_ldouble_other.
8407         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
8408         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
8409         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
8410         libm_alias_ldouble.
8411         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
8412         libm_alias_ldouble_other.
8413         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
8414         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
8415         * sysdeps/ia64/fpu/w_lgammal_main.c
8416         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
8417         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
8419 2017-11-23  Florian Weimer  <fweimer@redhat.com>
8421         * malloc/malloc.c (tcache_thread_shutdown): Rename from
8422         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
8423         alike.  Remove freeres marker.
8424         * malloc/arena.c (arena_thread_freeres): Call
8425         tcache_thread_shutdown.
8427 2017-11-23  Florian Weimer  <fweimer@redhat.com>
8429         [BZ #22459]
8430         Export nscd hash function as __nss_hash.
8431         * include/nss.h (__nss_hash): Declare.
8432         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
8433         symbol.
8434         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
8435         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
8436         of __nscd_hash.
8437         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
8438         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
8439         * nss/Makefiles (routines): Add nss_hash.
8440         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
8441         * nss/nss_hash.c: Rename from nis/nis_hash.c.
8442         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
8443         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
8445 2017-11-23  Florian Weimer  <fweimer@redhat.com>
8447         [BZ #22478]
8448         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
8449         Return error code, not -1.
8450         * signal/tst-sigwait-eintr.c: New file.
8451         * signal/Makefile (tests): Add tst-sigwait-eintr.
8453 2017-11-23  Florian Weimer  <fweimer@redhat.com>
8455         Linux: Add memfd_create system call wrapper
8456         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
8457         tst-memfd_create.
8458         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8459         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
8460         [__USE_GNU] (memfd_create): Declare.
8461         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
8462         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
8463         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
8464         * sysdeps/unix/sysv/linux/**.abilist: Update.
8465         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
8467 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
8469         * localedata/gen-locale.sh: Fix typo in variable name.
8471         * resolv/res_debug.c (p_secstodate): Condition definition on
8472         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
8473         directly as __p_secstodate, and as a compat symbol.  Do not use
8474         libresolv_hidden_def.
8475         * resolv/resolv.h (p_secstodate): Remove macro and function
8476         declaration.
8477         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
8478         using p_secstodate.
8479         * include/resolv.h (__p_secstodate): Do not use
8480         libresolv_hidden_proto.
8481         * resolv/Makefile (tests): Move tst-p_secstodate to ....
8482         (tests-internal): ... here.
8483         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
8484         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
8485         and declare and use __p_secstodate and use compat_symbol_reference
8486         in that case.
8487         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
8488         implementation returning 77.
8490         [BZ #22463]
8491         * resolv/res_debug.c: Include <libc-diag.h>.
8492         (p_secstodate): Assert time_t at least as wide as u_long.  On
8493         overflow, use integer seconds since the epoch as output, or use
8494         "<overflow>" as output and set errno to EOVERFLOW if integer
8495         seconds since the epoch would be 14 or more characters.
8496         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
8497         for sprintf call.
8498         * resolv/tst-p_secstodate.c: New file.
8499         * resolv/Makefile (tests): Add tst-p_secstodate.
8500         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
8502         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
8503         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
8504         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
8506 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
8508         * posix/regcomp.c (init_word_char): Add comments.
8510 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
8512         [BZ #22447]
8513         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
8514         strlen to compute length of ut_user and set trailing NUL byte of
8515         result explicitly.
8517 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
8519         [BZ #15537]
8520         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
8521         using “copy "iso14651_t1"” and then implementing the
8522         collation rules for lv from CLDR on top of that.
8523         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
8524         of locales to be built for testing.
8525         * lv_LV.UTF-8.in: New file with test data to test the Latvian
8526         sorting.
8528 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
8530         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
8531         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
8532         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
8533         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
8534         [__USE_MISC] (MADV_HWPOISON): New macro.
8535         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
8537 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8539         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
8540         -Wmissing-braces on GCC 4.9.
8542 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
8544         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
8545         * sysdeps/s390/s390-32/start.S (_start): Likewise
8546         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
8547         (thread_start): Likewise.
8548         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
8549         (thread_start): Likewise.
8550         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
8551         (__makecontext_ret): Likewise.
8552         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
8553         (__makecontext_ret): Likewise.
8555 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
8557         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
8558         __wcschrnul): Remove attribute_hidden.
8560 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
8562         regex: don't assume uint64_t or uint32_t
8563         This avoids -Werror=overflow errors for 32-bit systems in
8564         the 64-bit case.  Problem reported by Joseph Myers in:
8565         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
8566         Also, when this code is used in Gnulib it ports to platforms
8567         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
8568         them, and on some 32-bit compilers there is no uint64_t.
8569         Problem reported by Gianluigi Tiesi in:
8570         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
8571         * posix/regcomp.c (init_word_char): Don't assume that the types
8572         uint64_t and uint32_t exist.  Adapted from Gnulib patch
8573         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
8574         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
8576 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8578         * sysdeps/aarch64/memset-reg.h: New file.
8579         * sysdeps/aarch64/memset.S: Use it.
8580         (__memset): Rename to MEMSET macro.
8581         [ZVA_MACRO]: Use zva_macro.
8582         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
8583         Add memset_generic and memset_falkor.
8584         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8585         (__libc_ifunc_impl_list): Add memset ifuncs.
8586         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
8587         local variable zva_size.
8588         * sysdeps/aarch64/multiarch/memset.c: New file.
8589         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
8590         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
8591         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
8592         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8593         (DCZID_DZP_MASK): New macro.
8594         (DCZID_BS_MASK): Likewise.
8595         (init_cpu_features): Read and set zva_size.
8596         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
8597         (struct cpu_features): New member zva_size.
8599         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
8600         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
8601         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
8603         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
8604         backwards.  Fix timing computation.
8605         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
8606         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
8607         on memset by N at a time.  Fix timing computation.
8609 2017-11-20  Florian Weimer  <fweimer@redhat.com>
8611         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
8612         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
8614 2017-11-19  Florian Weimer  <fweimer@redhat.com>
8616         manual: Document mprotect
8617         * manual/memory.texi (Memory Protection): New section.
8618         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
8619         documentation of PROT_* flags and reference the Memory Protection
8620         section instead.
8622 2017-11-19  Florian Weimer  <fweimer@redhat.com>
8624         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
8625         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
8626         (Scatter-Gather): ... to here.  Remove misleading comment.
8628 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
8630         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
8631         style.
8633         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
8634         when /proc/<pid>/setgroups does not exist.
8636 2017-11-18  Florian Weimer  <fweimer@redhat.com>
8638         * sysdeps/unix/sysv/linux/tst-ttyname.c
8639         (become_root_in_mount_ns): Remove.
8640         (do_in_chroot_1): Call support_enter_mount_namespace.
8641         (do_in_chroot_2): Likewise.
8642         (do_test): Call support_become_root early.
8644 2017-11-18  Florian Weimer  <fweimer@redhat.com>
8646         * support/namespace.h (support_enter_mount_namespace): Declare.
8647         * support/support_enter_mount_namespace.c: New file.
8648         * support/Makefile (libsupport-routines): Add
8649         support_enter_mount_namespace.
8651 2017-11-18  Florian Weimer  <fweimer@redhat.com>
8653         * support/temp_file.c (support_create_temp_directory): Use
8654         test_dir and do not rely on the presence of the XXXXXX suffix.
8655         * support/temp_file.h (support_create_temp_directory): Update
8656         comment.
8657         * support/tst-xreadlink.c (do_test): Adjust.
8658         * support/support_chroot.c (support_chroot_create): Likewise.
8660 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8662         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
8663         macro.
8664         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
8665         htm-no-suspend.
8667 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
8669         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
8670         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
8671         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
8672         (ceill): Define using libm_alias_ldouble.
8673         * sysdeps/x86_64/fpu/s_copysignl.S: Include
8674         <libm-alias-ldouble.h>.
8675         (copysignl): Define using libm_alias_ldouble.
8676         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
8677         (fabsl): Define using libm_alias_ldouble.
8678         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
8679         (floorl): Define using libm_alias_ldouble.
8680         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
8681         (fmaxl): Define using libm_alias_ldouble.
8682         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
8683         (fminl): Define using libm_alias_ldouble.
8684         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
8685         (llrintl): Define using libm_alias_ldouble.
8686         (lrintl): Likewise.
8687         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
8688         <libm-alias-ldouble.h>.
8689         (nearbyintl): Define using libm_alias_ldouble.
8690         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
8691         (truncl): Define using libm_alias_ldouble.
8692         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
8693         <libm-alias-ldouble.h>.
8694         (lrintl): Define using libm_alias_ldouble.
8696         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
8697         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
8698         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
8699         (asinhl): Define using libm_alias_ldouble.
8700         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
8701         (atanl): Define using libm_alias_ldouble.
8702         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
8703         (cbrtl): Define using libm_alias_ldouble.
8704         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
8705         (ceill): Define using libm_alias_ldouble.
8706         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
8707         (copysignl): Define using libm_alias_ldouble.
8708         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
8709         (fabsl): Define using libm_alias_ldouble.
8710         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
8711         (floorl): Define using libm_alias_ldouble.
8712         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
8713         (fmaxl): Define using libm_alias_ldouble.
8714         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
8715         (fminl): Define using libm_alias_ldouble.
8716         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
8717         (frexpl): Define using libm_alias_ldouble.
8718         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
8719         (llrintl): Define using libm_alias_ldouble.
8720         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
8721         (logbl): Define using libm_alias_ldouble.
8722         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
8723         (lrintl): Define using libm_alias_ldouble.
8724         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
8725         (nearbyintl): Define using libm_alias_ldouble.
8726         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
8727         (nextafterl): Define using libm_alias_ldouble.
8728         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
8729         (remquol): Define using libm_alias_ldouble.
8730         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
8731         (rintl): Define using libm_alias_ldouble.
8732         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
8733         (truncl): Define using libm_alias_ldouble.
8734         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
8735         (fmaxl): Define using libm_alias_ldouble.
8736         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
8737         (fminl): Define using libm_alias_ldouble.
8739         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
8740         to C syntax instead of availability and properties of types.
8741         * bits/floatn.h [!__ASSEMBLER]: Likewise.
8742         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
8743         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
8744         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
8745         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
8746         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
8748 2017-11-17  Florian Weimer  <fweimer@redhat.com>
8750         support_become_root: Enable file creation in namespaces.
8751         * support/support_become_root.c (setup_mapping): New function.
8752         (support_become_root): Call it.
8754 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
8756         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
8757         macro.
8759 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8761         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
8762         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
8764 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
8766         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
8768         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8769         version to 4.14.
8771 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8773         * INSTALL: Fix botched up regeneration.
8775         * NEWS: Update sourceare link to https.
8776         * configure.ac: Likewise.
8777         * crypt/md5test-giant.c: Likewise.
8778         * dlfcn/bug-atexit1.c: Likewise.
8779         * dlfcn/bug-atexit2.c: Likewise.
8780         * localedata/README: Likewise.
8781         * malloc/tst-mallocfork.c: Likewise.
8782         * manual/install.texi: Likewise.
8783         * nptl/tst-pthread-getattr.c: Likewise.
8784         * stdio-common/tst-fgets.c: Likewise.
8785         * stdio-common/tst-fwrite.c: Likewise.
8786         * sunrpc/Makefile: Likewise.
8787         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
8788         * wcsmbs/tst-mbrtowc2.c: Likewise.
8789         * configure: Regenerate.
8790         * INSTALL: Regenerate.
8792 2017-11-15  Martin Sebor  <msebor@redhat.com>
8794         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
8795         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
8796         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
8798 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
8800         [BZ #22145]
8801         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
8802         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
8804         [BZ #22145]
8805         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
8806         Defer is_pty check until end of the function.
8807         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8809         [BZ #22145]
8810         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
8811         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
8812         (ttyname): Likewise.
8813         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
8814         (__ttyname_r): Likewise.
8816         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
8817         int to bool.
8819         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
8821         * manual/terminal.texi (Is It a Terminal):
8822         Mention ENODEV for ttyname and ttyname_r.
8824 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
8826         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
8827         constant and macro.
8829         * sysdeps/unix/sysv/linux/bits/mman-linux.h
8830         [__USE_MISC] (MADV_WIPEONFORK): New macro.
8831         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8832         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
8833         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8834         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8836 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8838         * signal/sigrelse.c (sigrelse): Optimize implementation.
8840         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
8841         (__sigpause): Rely on __sigsuspend to implement single thread
8842         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
8844 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
8846         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8847         kernel version to 4.14.
8849 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
8851         [BZ #22442]
8852         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
8853         Check if ifname is too long.
8855 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
8857         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
8859 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
8861         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
8862         was accidentally lost.
8864 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
8866         * localedata/locales/az_IR: Add standard copyright header.
8868 2017-11-15  Florian Weimer  <fweimer@redhat.com>
8870         [BZ #22439]
8871         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
8872         not just the top one.  Output a new "subheaps" statistic.
8874 2017-11-15  Florian Weimer  <fweimer@redhat.com>
8876         [BZ #22408]
8877         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
8878         under the per-arena lock.
8879         * malloc/Makefile (tests): Add tst-malloc_info.
8880         (tst-malloc_info): Link with libpthread.
8881         * malloc/tst-malloc_info.c: New file.
8883 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
8885         [BZ #21660]
8886         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
8887         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
8888         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
8889         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
8890         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
8891         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
8892         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
8893         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
8894         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
8895         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
8896         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
8897         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
8898         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
8899         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
8900         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
8901         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
8902         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
8903         (__floating_type): Likewise.
8904         (__real_integer_type): Likewise.
8905         (__complex_integer_type): Likewise.
8906         (__expr_is_real): Likewise.
8907         (__tgmath_real_type_sub): Likewise.
8908         (__tgmath_real_type): Likewise.
8909         (__tgmath_complex_type_sub): Likewise.
8910         (__tgmath_complex_type): Likewise.
8911         (__TGMATH_F128): Likewise.
8912         (__TGMATH_CF128): Likewise.
8913         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
8914         new macros.
8915         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
8916         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
8917         Likewise.
8918         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
8919         Likewise.
8920         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
8921         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
8922         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
8923         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
8924         Likewise.
8925         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
8926         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
8927         Likewise.
8928         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
8929         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
8930         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
8931         Likewise.
8932         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
8933         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
8934         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
8935         (cimag): Likewise.
8936         (creal): Likewise.
8938 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
8940         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
8941         for stpncpy calls for GCC 8.
8942         (test_strncat): Disable -Wstringop-truncation warning for strncat
8943         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
8944         strncat call for GCC 7.
8945         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
8946         calls for GCC 8.
8947         (test_memcmp): Use memcpy instead of strncpy for calls not copying
8948         trailing NUL.
8950         * string/bug-strncat1.c: Include <libc-diag.h>.
8951         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
8953 2017-11-13  Claude Paroz  <claude@2xlibre.net>
8955         [BZ #22387]
8956         * localedata/locales/aa_DJ: Improved readibility by replacing
8957         <Uxxxx> sequences in the ASCII printable range by their ASCII
8958         character equivalents.
8959         * localedata/locales/aa_ER: Likewise.
8960         * localedata/locales/aa_ER@saaho: Likewise.
8961         * localedata/locales/aa_ET: Likewise.
8962         * localedata/locales/af_ZA: Likewise.
8963         * localedata/locales/agr_PE: Likewise.
8964         * localedata/locales/ak_GH: Likewise.
8965         * localedata/locales/am_ET: Likewise.
8966         * localedata/locales/anp_IN: Likewise.
8967         * localedata/locales/ar_AE: Likewise.
8968         * localedata/locales/ar_BH: Likewise.
8969         * localedata/locales/ar_DZ: Likewise.
8970         * localedata/locales/ar_EG: Likewise.
8971         * localedata/locales/ar_IN: Likewise.
8972         * localedata/locales/ar_IQ: Likewise.
8973         * localedata/locales/ar_JO: Likewise.
8974         * localedata/locales/ar_KW: Likewise.
8975         * localedata/locales/ar_LB: Likewise.
8976         * localedata/locales/ar_LY: Likewise.
8977         * localedata/locales/ar_MA: Likewise.
8978         * localedata/locales/ar_OM: Likewise.
8979         * localedata/locales/ar_QA: Likewise.
8980         * localedata/locales/ar_SA: Likewise.
8981         * localedata/locales/ar_SD: Likewise.
8982         * localedata/locales/ar_SS: Likewise.
8983         * localedata/locales/ar_SY: Likewise.
8984         * localedata/locales/ar_TN: Likewise.
8985         * localedata/locales/ar_YE: Likewise.
8986         * localedata/locales/as_IN: Likewise.
8987         * localedata/locales/ast_ES: Likewise.
8988         * localedata/locales/ayc_PE: Likewise.
8989         * localedata/locales/az_AZ: Likewise.
8990         * localedata/locales/az_IR: Likewise.
8991         * localedata/locales/be_BY: Likewise.
8992         * localedata/locales/be_BY@latin: Likewise.
8993         * localedata/locales/bem_ZM: Likewise.
8994         * localedata/locales/ber_DZ: Likewise.
8995         * localedata/locales/ber_MA: Likewise.
8996         * localedata/locales/bg_BG: Likewise.
8997         * localedata/locales/bhb_IN: Likewise.
8998         * localedata/locales/bho_IN: Likewise.
8999         * localedata/locales/bi_VU: Likewise.
9000         * localedata/locales/bn_BD: Likewise.
9001         * localedata/locales/bn_IN: Likewise.
9002         * localedata/locales/bo_CN: Likewise.
9003         * localedata/locales/bo_IN: Likewise.
9004         * localedata/locales/br_FR: Likewise.
9005         * localedata/locales/brx_IN: Likewise.
9006         * localedata/locales/bs_BA: Likewise.
9007         * localedata/locales/byn_ER: Likewise.
9008         * localedata/locales/ca_AD: Likewise.
9009         * localedata/locales/ca_ES: Likewise.
9010         * localedata/locales/ca_FR: Likewise.
9011         * localedata/locales/ca_IT: Likewise.
9012         * localedata/locales/ce_RU: Likewise.
9013         * localedata/locales/chr_US: Likewise.
9014         * localedata/locales/cmn_TW: Likewise.
9015         * localedata/locales/crh_UA: Likewise.
9016         * localedata/locales/cs_CZ: Likewise.
9017         * localedata/locales/csb_PL: Likewise.
9018         * localedata/locales/cv_RU: Likewise.
9019         * localedata/locales/cy_GB: Likewise.
9020         * localedata/locales/da_DK: Likewise.
9021         * localedata/locales/de_AT: Likewise.
9022         * localedata/locales/de_BE: Likewise.
9023         * localedata/locales/de_CH: Likewise.
9024         * localedata/locales/de_DE: Likewise.
9025         * localedata/locales/de_IT: Likewise.
9026         * localedata/locales/de_LI: Likewise.
9027         * localedata/locales/de_LU: Likewise.
9028         * localedata/locales/doi_IN: Likewise.
9029         * localedata/locales/dv_MV: Likewise.
9030         * localedata/locales/dz_BT: Likewise.
9031         * localedata/locales/el_CY: Likewise.
9032         * localedata/locales/el_GR: Likewise.
9033         * localedata/locales/en_AG: Likewise.
9034         * localedata/locales/en_AU: Likewise.
9035         * localedata/locales/en_BW: Likewise.
9036         * localedata/locales/en_CA: Likewise.
9037         * localedata/locales/en_DK: Likewise.
9038         * localedata/locales/en_GB: Likewise.
9039         * localedata/locales/en_HK: Likewise.
9040         * localedata/locales/en_IE: Likewise.
9041         * localedata/locales/en_IL: Likewise.
9042         * localedata/locales/en_IN: Likewise.
9043         * localedata/locales/en_NG: Likewise.
9044         * localedata/locales/en_NZ: Likewise.
9045         * localedata/locales/en_PH: Likewise.
9046         * localedata/locales/en_SG: Likewise.
9047         * localedata/locales/en_US: Likewise.
9048         * localedata/locales/en_ZA: Likewise.
9049         * localedata/locales/en_ZM: Likewise.
9050         * localedata/locales/en_ZW: Likewise.
9051         * localedata/locales/eo: Likewise.
9052         * localedata/locales/es_AR: Likewise.
9053         * localedata/locales/es_BO: Likewise.
9054         * localedata/locales/es_CL: Likewise.
9055         * localedata/locales/es_CO: Likewise.
9056         * localedata/locales/es_CR: Likewise.
9057         * localedata/locales/es_CU: Likewise.
9058         * localedata/locales/es_DO: Likewise.
9059         * localedata/locales/es_EC: Likewise.
9060         * localedata/locales/es_ES: Likewise.
9061         * localedata/locales/es_GT: Likewise.
9062         * localedata/locales/es_HN: Likewise.
9063         * localedata/locales/es_MX: Likewise.
9064         * localedata/locales/es_NI: Likewise.
9065         * localedata/locales/es_PA: Likewise.
9066         * localedata/locales/es_PE: Likewise.
9067         * localedata/locales/es_PR: Likewise.
9068         * localedata/locales/es_PY: Likewise.
9069         * localedata/locales/es_SV: Likewise.
9070         * localedata/locales/es_US: Likewise.
9071         * localedata/locales/es_UY: Likewise.
9072         * localedata/locales/es_VE: Likewise.
9073         * localedata/locales/et_EE: Likewise.
9074         * localedata/locales/eu_ES: Likewise.
9075         * localedata/locales/eu_ES@euro: Likewise.
9076         * localedata/locales/fa_IR: Likewise.
9077         * localedata/locales/ff_SN: Likewise.
9078         * localedata/locales/fi_FI: Likewise.
9079         * localedata/locales/fil_PH: Likewise.
9080         * localedata/locales/fo_FO: Likewise.
9081         * localedata/locales/fr_BE: Likewise.
9082         * localedata/locales/fr_CA: Likewise.
9083         * localedata/locales/fr_CH: Likewise.
9084         * localedata/locales/fr_FR: Likewise.
9085         * localedata/locales/fr_LU: Likewise.
9086         * localedata/locales/fur_IT: Likewise.
9087         * localedata/locales/fy_DE: Likewise.
9088         * localedata/locales/fy_NL: Likewise.
9089         * localedata/locales/ga_IE: Likewise.
9090         * localedata/locales/gd_GB: Likewise.
9091         * localedata/locales/gez_ER: Likewise.
9092         * localedata/locales/gez_ET: Likewise.
9093         * localedata/locales/gl_ES: Likewise.
9094         * localedata/locales/gu_IN: Likewise.
9095         * localedata/locales/gv_GB: Likewise.
9096         * localedata/locales/ha_NG: Likewise.
9097         * localedata/locales/hak_TW: Likewise.
9098         * localedata/locales/he_IL: Likewise.
9099         * localedata/locales/hi_IN: Likewise.
9100         * localedata/locales/hif_FJ: Likewise.
9101         * localedata/locales/hne_IN: Likewise.
9102         * localedata/locales/hr_HR: Likewise.
9103         * localedata/locales/hsb_DE: Likewise.
9104         * localedata/locales/ht_HT: Likewise.
9105         * localedata/locales/hu_HU: Likewise.
9106         * localedata/locales/hy_AM: Likewise.
9107         * localedata/locales/i18n: Likewise.
9108         * localedata/locales/ia_FR: Likewise.
9109         * localedata/locales/id_ID: Likewise.
9110         * localedata/locales/ig_NG: Likewise.
9111         * localedata/locales/ik_CA: Likewise.
9112         * localedata/locales/is_IS: Likewise.
9113         * localedata/locales/it_CH: Likewise.
9114         * localedata/locales/it_IT: Likewise.
9115         * localedata/locales/iu_CA: Likewise.
9116         * localedata/locales/ja_JP: Likewise.
9117         * localedata/locales/ka_GE: Likewise.
9118         * localedata/locales/kk_KZ: Likewise.
9119         * localedata/locales/kl_GL: Likewise.
9120         * localedata/locales/kn_IN: Likewise.
9121         * localedata/locales/ko_KR: Likewise.
9122         * localedata/locales/kok_IN: Likewise.
9123         * localedata/locales/ks_IN: Likewise.
9124         * localedata/locales/ks_IN@devanagari: Likewise.
9125         * localedata/locales/ku_TR: Likewise.
9126         * localedata/locales/kw_GB: Likewise.
9127         * localedata/locales/ky_KG: Likewise.
9128         * localedata/locales/lb_LU: Likewise.
9129         * localedata/locales/lg_UG: Likewise.
9130         * localedata/locales/li_BE: Likewise.
9131         * localedata/locales/li_NL: Likewise.
9132         * localedata/locales/lij_IT: Likewise.
9133         * localedata/locales/ln_CD: Likewise.
9134         * localedata/locales/lo_LA: Likewise.
9135         * localedata/locales/lt_LT: Likewise.
9136         * localedata/locales/lv_LV: Likewise.
9137         * localedata/locales/lzh_TW: Likewise.
9138         * localedata/locales/mag_IN: Likewise.
9139         * localedata/locales/mai_IN: Likewise.
9140         * localedata/locales/mg_MG: Likewise.
9141         * localedata/locales/mhr_RU: Likewise.
9142         * localedata/locales/mi_NZ: Likewise.
9143         * localedata/locales/mk_MK: Likewise.
9144         * localedata/locales/ml_IN: Likewise.
9145         * localedata/locales/mn_MN: Likewise.
9146         * localedata/locales/mni_IN: Likewise.
9147         * localedata/locales/mr_IN: Likewise.
9148         * localedata/locales/ms_MY: Likewise.
9149         * localedata/locales/mt_MT: Likewise.
9150         * localedata/locales/my_MM: Likewise.
9151         * localedata/locales/nan_TW: Likewise.
9152         * localedata/locales/nan_TW@latin: Likewise.
9153         * localedata/locales/nb_NO: Likewise.
9154         * localedata/locales/nds_DE: Likewise.
9155         * localedata/locales/nds_NL: Likewise.
9156         * localedata/locales/ne_NP: Likewise.
9157         * localedata/locales/nhn_MX: Likewise.
9158         * localedata/locales/niu_NU: Likewise.
9159         * localedata/locales/niu_NZ: Likewise.
9160         * localedata/locales/nl_AW: Likewise.
9161         * localedata/locales/nl_BE: Likewise.
9162         * localedata/locales/nl_NL: Likewise.
9163         * localedata/locales/nn_NO: Likewise.
9164         * localedata/locales/nr_ZA: Likewise.
9165         * localedata/locales/nso_ZA: Likewise.
9166         * localedata/locales/oc_FR: Likewise.
9167         * localedata/locales/om_ET: Likewise.
9168         * localedata/locales/om_KE: Likewise.
9169         * localedata/locales/or_IN: Likewise.
9170         * localedata/locales/os_RU: Likewise.
9171         * localedata/locales/pa_IN: Likewise.
9172         * localedata/locales/pa_PK: Likewise.
9173         * localedata/locales/pap_AW: Likewise.
9174         * localedata/locales/pap_CW: Likewise.
9175         * localedata/locales/pl_PL: Likewise.
9176         * localedata/locales/ps_AF: Likewise.
9177         * localedata/locales/pt_BR: Likewise.
9178         * localedata/locales/pt_PT: Likewise.
9179         * localedata/locales/quz_PE: Likewise.
9180         * localedata/locales/raj_IN: Likewise.
9181         * localedata/locales/ro_RO: Likewise.
9182         * localedata/locales/ru_RU: Likewise.
9183         * localedata/locales/ru_UA: Likewise.
9184         * localedata/locales/rw_RW: Likewise.
9185         * localedata/locales/sa_IN: Likewise.
9186         * localedata/locales/sat_IN: Likewise.
9187         * localedata/locales/sc_IT: Likewise.
9188         * localedata/locales/sd_IN: Likewise.
9189         * localedata/locales/sd_IN@devanagari: Likewise.
9190         * localedata/locales/se_NO: Likewise.
9191         * localedata/locales/sgs_LT: Likewise.
9192         * localedata/locales/shs_CA: Likewise.
9193         * localedata/locales/si_LK: Likewise.
9194         * localedata/locales/sid_ET: Likewise.
9195         * localedata/locales/sk_SK: Likewise.
9196         * localedata/locales/sl_SI: Likewise.
9197         * localedata/locales/sm_WS: Likewise.
9198         * localedata/locales/so_DJ: Likewise.
9199         * localedata/locales/so_ET: Likewise.
9200         * localedata/locales/so_KE: Likewise.
9201         * localedata/locales/so_SO: Likewise.
9202         * localedata/locales/sq_AL: Likewise.
9203         * localedata/locales/sq_MK: Likewise.
9204         * localedata/locales/sr_ME: Likewise.
9205         * localedata/locales/sr_RS: Likewise.
9206         * localedata/locales/sr_RS@latin: Likewise.
9207         * localedata/locales/ss_ZA: Likewise.
9208         * localedata/locales/st_ZA: Likewise.
9209         * localedata/locales/sv_FI: Likewise.
9210         * localedata/locales/sv_SE: Likewise.
9211         * localedata/locales/sw_KE: Likewise.
9212         * localedata/locales/sw_TZ: Likewise.
9213         * localedata/locales/szl_PL: Likewise.
9214         * localedata/locales/ta_IN: Likewise.
9215         * localedata/locales/ta_LK: Likewise.
9216         * localedata/locales/tcy_IN: Likewise.
9217         * localedata/locales/te_IN: Likewise.
9218         * localedata/locales/tg_TJ: Likewise.
9219         * localedata/locales/th_TH: Likewise.
9220         * localedata/locales/the_NP: Likewise.
9221         * localedata/locales/ti_ER: Likewise.
9222         * localedata/locales/ti_ET: Likewise.
9223         * localedata/locales/tig_ER: Likewise.
9224         * localedata/locales/tk_TM: Likewise.
9225         * localedata/locales/tl_PH: Likewise.
9226         * localedata/locales/tn_ZA: Likewise.
9227         * localedata/locales/to_TO: Likewise.
9228         * localedata/locales/tpi_PG: Likewise.
9229         * localedata/locales/tr_CY: Likewise.
9230         * localedata/locales/tr_TR: Likewise.
9231         * localedata/locales/ts_ZA: Likewise.
9232         * localedata/locales/tt_RU: Likewise.
9233         * localedata/locales/tt_RU@iqtelif: Likewise.
9234         * localedata/locales/ug_CN: Likewise.
9235         * localedata/locales/uk_UA: Likewise.
9236         * localedata/locales/unm_US: Likewise.
9237         * localedata/locales/ur_IN: Likewise.
9238         * localedata/locales/ur_PK: Likewise.
9239         * localedata/locales/uz_UZ: Likewise.
9240         * localedata/locales/uz_UZ@cyrillic: Likewise.
9241         * localedata/locales/ve_ZA: Likewise.
9242         * localedata/locales/vi_VN: Likewise.
9243         * localedata/locales/wa_BE: Likewise.
9244         * localedata/locales/wae_CH: Likewise.
9245         * localedata/locales/wal_ET: Likewise.
9246         * localedata/locales/wo_SN: Likewise.
9247         * localedata/locales/xh_ZA: Likewise.
9248         * localedata/locales/yi_US: Likewise.
9249         * localedata/locales/yo_NG: Likewise.
9250         * localedata/locales/yue_HK: Likewise.
9251         * localedata/locales/yuw_PG: Likewise.
9252         * localedata/locales/zh_CN: Likewise.
9253         * localedata/locales/zh_HK: Likewise.
9254         * localedata/locales/zh_SG: Likewise.
9255         * localedata/locales/zh_TW: Likewise.
9256         * localedata/locales/zu_ZA: Likewise.
9258 2017-11-13  Florian Weimer  <fweimer@redhat.com>
9260         * support/next_to_fault.h, support/next_to_fault.c: New files.
9261         * support/Makefile (libsupport-routines): Add next_to_fault.
9262         * resolv/tst-inet_pton.c (struct next_to_fault)
9263         (next_to_fault_allocate, next_to_fault_free): Remove.
9264         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
9266 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
9268         * elf/dl-support.c: Include <dl-procruntime.c>.
9269         * include/link.h: Include <link_map.h>.
9270         * sysdeps/generic/dl-procruntime.c: New file.
9271         * sysdeps/generic/link_map.h: Likewise.
9272         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
9273         the writable ld.so namespace.
9275 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
9277         timezone: pacify GCC -Wstringop-truncation
9278         Problem reported by Martin Sebor in:
9279         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
9280         * timezone/zic.c (writezone): Use memcpy, not strncpy.
9282 2017-11-12  Florian Weimer  <fweimer@redhat.com>
9284         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
9285         tst-xreadlink.
9286         (tests): Add tst-xreadlink.
9287         * support/support.h (xstrndup): Declare.
9288         * support/xunistd.h (xunlink, xreadlink): Declare.
9289         * support/temp_file.h (support_create_temp_directory): Declare.
9290         * support/temp_file.c (support_create_temp_directory): New function.
9291         * support/support_chroot.c (support_chroot_create): Use it.
9292         * support/xreadlink.c: New file.
9293         * support/xstrndup.c: Likewise.
9294         * support/xunlink.c: Likewise.
9295         * support/tst-xreadlink.c: Likewise.
9297 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
9299         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
9301 2017-11-11  Florian Weimer  <fweimer@redhat.com>
9303         [BZ #22409]
9304         [BZ #22412]
9305         * resolv/res_comp.c (printable_string, binary_hnok)
9306         (binary_leading_dash): New functions.
9307         (res_hnok): Reimplement using these functions and ns_name_pton.
9308         (res_ownok): Likewise.
9309         (res_mailok): Reimplement using printable_string, ns_name_pton and
9310         binary_hnok.
9311         (res_dnok): Reimplement using printable_string and ns_name_pton.
9312         * resolv/tst-res_hnok.c (tests): Add additional tests.
9313         (LETTERDIGITS, PRINTABLE): Define.
9314         (do_test): Adjust one_char results.
9316 2017-11-11  Florian Weimer  <fweimer@redhat.com>
9318         [BZ #22413]
9319         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
9320         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
9322 2017-11-11  Florian Weimer  <fweimer@redhat.com>
9324         * resolv/tst-ns_name_pton.c: New file.
9325         * resolv/Makefile (tests): Add tst-ns_name_pton.
9326         (tst-ns_name_pton): Link against libresolv.
9328 2017-11-11  Florian Weimer  <fweimer@redhat.com>
9330         * resolv/tst-res_hnok.c: New file.
9331         * resolv/Makefile (tests): Add tst-res_hnok.
9332         (tst-res_hnok): Link against libresolv.
9334 2017-11-11  Florian Weimer  <fweimer@redhat.com>
9336         * resolv/tst-resolv-network.c: Use test framework instead explicit
9337         main function.
9339 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
9341         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
9342         <jmp_buf-macros.h>.
9343         [!_ISOMAC] (STR_HELPER): New.
9344         [!_ISOMAC] (STR): Likewise.
9345         [!_ISOMAC] (TEST_SIZE): Likewise.
9346         [!_ISOMAC] (TEST_ALIGN): Likewise.
9347         [!_ISOMAC] (TEST_OFFSET): Likewise.
9348         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
9349         field offsets of jmp_buf as well as sigjmp_buf.
9350         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
9351         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
9352         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
9353         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
9354         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
9355         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
9356         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
9357         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
9358         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
9359         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
9360         Likewise.
9361         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
9362         Likewise.
9363         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
9364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
9365         Likewise.
9366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
9367         Likewise.
9368         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
9369         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
9370         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
9371         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
9372         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
9373         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
9374         Likewise.
9375         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
9376         Likewise.
9377         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
9378         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
9379         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
9381 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
9383         * include/float.h
9384         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9385         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
9386         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9387         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
9388         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9389         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
9390         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9391         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
9392         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9393         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
9394         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9395         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
9396         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9397         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
9398         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9399         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
9400         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9401         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
9402         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9403         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
9404         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9405         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
9406         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9407         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
9408         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9409         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
9410         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9411         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
9412         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9413         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
9414         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9415         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
9416         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9417         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
9418         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9419         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
9420         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9421         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
9422         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9423         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
9424         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9425         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
9426         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9427         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
9428         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9429         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
9430         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9431         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
9432         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9433         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
9434         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9435         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
9436         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9437         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
9438         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9439         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
9440         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9441         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
9442         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9443         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
9444         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9445         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
9446         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9447         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
9448         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9449         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
9450         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9451         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
9452         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9453         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
9454         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9455         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
9456         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9457         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
9458         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9459         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
9460         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9461         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
9462         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9463         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
9464         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9465         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
9466         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9467         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
9468         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9469         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
9470         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9471         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
9473         * stdlib/tst-strtod.h (F16): New macro.
9474         (F32): Likewise.
9475         (F64): Likewise.
9476         (F32X): Likewise.
9477         (F64X): Likewise.
9478         (F128X): Likewise.
9479         (IF_FLOAT16): Likewise.
9480         (IF_FLOAT32): Likewise.
9481         (IF_FLOAT64): Likewise.
9482         (IF_FLOAT32X): Likewise.
9483         (IF_FLOAT64X): Likewise.
9484         (IF_FLOAT128X): Likewise.
9485         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
9486         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
9487         (STRTOD_TEST_FOREACH): Likewise.
9488         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
9489         (CHOOSE_f64): Likewise.
9490         (CHOOSE_f32x): Likewise.
9491         (CHOOSE_f64x): Likewise.
9493 2017-11-07  Andreas Schwab  <schwab@suse.de>
9495         * nptl/Makefile (tests-internal): Remove tst-typesizes.
9497 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
9499         [BZ #22403]
9500         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
9501         to be escaped.
9502         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
9503         to be escaped.
9505 2017-11-07  Claude Paroz  <claude@2xlibre.net>
9507         [BZ #22403]
9508         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
9509         to be escaped.
9510         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
9511         to be escaped.
9512         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
9513         to be escaped.
9515 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9517         [BZ #22298]
9518         * nptl/allocatestack.c (allocate_stack): Check if
9519         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
9520         __PTHREAD_MUTEX_HAVE_PREV is defined.
9521         * nptl/descr.h (pthread): Likewise.
9522         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
9523         Likewise.
9524         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
9525         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
9526         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
9527         * sysdeps/nptl/bits/thread-shared-types.h
9528         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
9529         defines.
9530         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
9531         of __WORDSIZE for internal layout.
9532         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
9533         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
9534         instead of __WORDSIZE whether to use an union for __spins and __list
9535         fields.
9536         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
9537         case.
9538         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
9539         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
9540         defines.
9541         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
9542         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9543         Likewise.
9544         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
9545         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9546         Likewise.
9547         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
9548         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9549         Likewise.
9550         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
9551         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9552         Likewise.
9553         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
9554         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9555         Likewise.
9556         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
9557         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9558         Likewise.
9559         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
9560         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9561         Likewise.
9562         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
9563         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9564         Likewise.
9565         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
9566         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9567         Likewise.
9568         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
9569         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9570         Likewise.
9571         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
9572         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9573         Likewise.
9574         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
9575         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9576         Likewise.
9577         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
9578         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9579         Likewise.
9580         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
9581         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9582         Likewise.
9584         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
9585         New macros.
9586         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
9587         checks for expected input type size.
9588         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
9589         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9590         Likewise.
9591         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9592         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
9593         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
9594         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
9595         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
9596         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
9597         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
9598         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
9599         superflous runtime assert check.
9600         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
9601         Likewise.
9602         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
9603         Likewise.
9604         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
9605         Likewise.
9606         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
9607         Likewise.
9608         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
9609         Likewise.
9610         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
9611         Likewise.
9612         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
9613         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
9614         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
9615         Likewise.
9616         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
9617         Likewise.
9618         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
9619         Likewise.
9620         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
9621         Likewise.
9622         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
9623         Likewise.
9624         * nptl/pthread_attr_setinheritsched.c
9625         (__pthread_attr_setinheritsched): Likewise.
9626         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
9627         Likewise.
9628         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
9629         Likewise.
9630         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
9631         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
9632         __old_pthread_attr_setstack): Likewise.
9633         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
9634         Likewise.
9635         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
9636         Likewise.
9637         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
9638         Likewise.
9639         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
9640         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
9641         Likewise.
9642         * nptl/tst-typesizes.c: Remove file.
9644         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
9645         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
9646         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
9647         checks for internal pthread_mutex_t offsets.
9648         * sysdeps/aarch64/nptl/pthread-offsets.h
9649         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
9650         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
9651         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
9652         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
9653         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
9654         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
9655         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
9656         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
9657         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
9658         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
9659         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
9660         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
9661         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
9662         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
9663         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
9664         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
9665         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
9666         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
9668 2017-11-07  Florian Weimer  <fweimer@redhat.com>
9670         * bits/mman-linux.h: Move ...
9671         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
9672         comment.
9673         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
9674         outdated comment.
9676 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9678         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
9679         Redefine STRNLEN as __strnlen_power8.
9681 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9683         * signal/sighold.c (sighold): Optimize implementation.
9685         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
9686         __NR_rt_sigqueueinfo.
9688         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9689         __sigtimedwait.
9690         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
9691         assume __NR_rt_sigtimedwait.
9692         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
9693         and add LIBC_CANCEL_HANDLED for cancellation marking.
9694         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
9696         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
9697         (sysdeps_routines): Add memchr_noneon.
9698         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
9699         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
9700         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
9701         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
9702         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
9703         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
9704         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
9706         * sysdeps/arm/arm-ifunc.h: New file.
9707         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
9708         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
9709         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
9710         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
9711         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
9712         (__memcpy_neon): Avoid create hidden alias.
9713         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
9714         (__memcpy_vfp): Likewise.
9715         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
9716         (sysdep_routines): Add memcpy_arm.
9717         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
9719 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
9721         [BZ #22362]
9722         * Makerules (make-link-multidir): New.
9723         * config.make.in (multidir): New.
9724         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
9725         * configure: Regenerated.
9726         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
9727         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
9728         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
9729         New target.
9731 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
9733         [BZ #22402]
9734         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
9735         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
9737 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
9739         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
9740         to be escaped.
9742 2017-11-04  Florian Weimer  <fweimer@redhat.com>
9744         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
9746 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
9748         * math/math.h [__HAVE_DISTINCT_FLOAT16
9749         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
9750         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
9751         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
9752         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
9753         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
9754         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
9755         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
9756         (__MATH_TG_F32): New macro.
9757         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
9758         (__MATH_TG_F64X): Likewise.
9759         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
9760         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
9762 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
9764         * po/de.po: Update translations.
9765         * po/ru.po: Likewise.
9767 2017-11-03  Florian Weimer  <fweimer@redhat.com>
9769         * manual/filesys.texi (Hard Links): Document linkat.
9771 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
9773         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
9774         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
9775         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
9776         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
9777         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
9778         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
9779         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
9780         the same as _Float128.
9781         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
9782         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
9783         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
9785         * stdlib/stdlib.h
9786         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
9787         Declare.
9788         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
9789         Likewise.
9790         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
9791         Likewise.
9792         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9793         (strtof32x): Likewise.
9794         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9795         (strtof64x): Likewise.
9796         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9797         (strtof128x): Likewise.
9798         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9799         (strfromf16): Likewise.
9800         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9801         (strfromf32): Likewise.
9802         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9803         (strfromf64): Likewise.
9804         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9805         (strfromf32x): Likewise.
9806         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9807         (strfromf64x): Likewise.
9808         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9809         (strfromf128x): Likewise.
9810         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
9811         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
9812         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
9813         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
9814         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
9815         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
9817 2017-11-03  Richard Henderson  <rth@twiddle.net>
9819         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
9821 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9823         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
9825 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9827         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
9828         DT_TLSDESC_GOT initialization.
9829         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
9830         (_dl_tlsdesc_resolve_hold): Likewise.
9831         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
9832         (_dl_tlsdesc_resolve_hold): Likewise.
9833         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
9834         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
9836 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9838         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
9840 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9842         [BZ #18572]
9843         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
9844         non-lazily for R_ARM_TLS_DESC.
9846 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9848         [BZ #17078]
9849         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
9850         R_ARM_TLS_DESC case.
9851         (elf_machine_lazy_rel): Remove the prelink check.
9853 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9855         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
9856         DT_TLSDESC_GOT initialization.
9857         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
9858         (_dl_tlsdesc_resolve_rela): Likewise.
9859         (_dl_tlsdesc_resolve_hold): Likewise.
9860         (_dl_tlsdesc_undefweak): Remove ldar.
9861         (_dl_tlsdesc_dynamic): Likewise.
9862         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
9863         (_dl_tlsdesc_resolve_rela): Likewise.
9864         (_dl_tlsdesc_resolve_hold): Likewise.
9865         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
9866         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
9867         (_dl_tlsdesc_resolve_rela): Likewise.
9868         (_dl_tlsdesc_resolve_hold): Likewise.
9870 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9872         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
9873         binding and initialization non-lazily for R_AARCH64_TLSDESC.
9875 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9877         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
9878         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
9880 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
9882         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
9883         Declare.
9884         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
9885         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
9886         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
9887         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
9888         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
9889         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
9890         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
9891         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
9892         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
9893         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
9894         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
9896 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
9898         [BZ #22382]
9899         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
9900         * localedata/locales/tpi_PG: Add standard header.
9902 2017-11-02  Florian Weimer  <fweimer@redhat.com>
9904         test-errno-linux: quotactl can fail with EPERM in containers.
9905         * sysdeps/unix/sysv/linux/test-errno-linux.c
9906         (LIST, LIST_FORWARD): New macros.
9907         (check_error_in_list): New function.
9908         (test_wrp_rv): Accept list of permitted error codes.
9909         (test_wrp_rv2): Remove.
9910         (test_wrp): Call test_wrp_rv with list of error codes.
9911         (test_wrp2): Accept list of error codes.
9912         (do_test): Adjust.  Allow EPERM for quotactl.
9914 2017-11-02  Florian Weimer  <fweimer@redhat.com>
9916         * stdio-common/bug16.c (do_test): Use array_length.
9917         * stdio-common/errlist.c (_sys_nerr): Likewise.
9918         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
9919         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
9920         * stdio-common/psiginfo.c (psiginfo): Use array_length.
9921         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
9922         (do_test): Use array_length.
9923         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
9924         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
9925         * stdio-common/tst-printf-round.c (do_test): Likewise.
9926         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
9927         (CHECK): Use array_length.
9928         * stdio-common/tstdiomisc.c (t3, F): Likewise.
9929         * stdio-common/tstscanf.c (main): Likewise.
9930         * stdio-common/vfprintf.c (process_string_arg): Likewise.
9932 2017-11-02  Florian Weimer  <fweimer@redhat.com>
9934         Add array_length and array_end macros.
9935         * include/array_length.h: New file.
9937 2017-11-02  Florian Weimer  <fweimer@redhat.com>
9939         [BZ #22332]
9940         * posix/tst-glob-tilde.c (do_noescape): New variable.
9941         (one_test): Process it.
9942         (do_test): Set do_noescape.  Add unescaping test case.
9944 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
9946         * math/complex.h
9947         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
9948         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
9949         with appropriate macros defined and undefined.
9950         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
9951         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
9952         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
9953         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
9954         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
9955         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
9956         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
9957         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
9958         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
9959         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
9961         * math/complex.h
9962         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
9963         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
9964         that for long double.  Do not condition define and undefine of
9965         _Mdouble_complex_ on [__CFLOAT128].
9967 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
9969         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
9970         of <sysdeps/generic/sysdep.h>.
9971         (ALIGNARG): Removed.
9972         (ASM_SIZE_DIRECTIVE): Likewise.
9973         (ENTRY): Likewise.
9974         (END): Likewise.
9975         (ENTRY_CHK): Likewise.
9976         (END_CHK): Likewise.
9977         (syscall_error): Likewise.
9978         (mcount): Likewise.
9979         (PSEUDO_END): Likewise.
9980         (L): Likewise.
9981         (atom_text_section): Likewise.
9982         * sysdeps/x86/sysdep.h: New file.
9983         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
9984         of <sysdeps/generic/sysdep.h>.
9985         (ALIGNARG): Removed.
9986         (ASM_SIZE_DIRECTIVE): Likewise.
9987         (ENTRY): Likewise.
9988         (END): Likewise.
9989         (ENTRY_CHK): Likewise.
9990         (END_CHK): Likewise.
9991         (syscall_error): Likewise.
9992         (mcount): Likewise.
9993         (PSEUDO_END): Likewise.
9994         (L): Likewise.
9995         (atom_text_section): Likewise.
9997 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
9999         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
10000         category of LC_CTYPE set to "i18n:2012".
10001         * localedata/locales/i18n_ctype: Regenerate.
10003 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
10005         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
10006         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
10007         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
10008         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
10010         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
10011         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
10012         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
10013         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
10015 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
10017         * math/complex.h
10018         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
10019         New macro.
10020         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
10021         Likewise.
10022         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
10023         Likewise.
10024         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10025         (CMPLXF32X): Likewise.
10026         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10027         (CMPLXF64X): Likewise.
10028         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10029         (CMPLXF128X): Likewise.
10031         * math/math.h
10032         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
10033         (__MATH_EVAL_FMT2): Define to add 0.0f.
10035 2017-10-31  Alan Modra  <amodra@gmail.com>
10037         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
10038         include sysdep.h.
10039         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
10040         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
10041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10042         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10043         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
10044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
10045         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
10046         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
10047         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
10048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
10049         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10050         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10051         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
10052         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
10053         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
10054         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
10055         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
10056         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
10057         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
10058         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
10059         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
10060         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
10061         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
10062         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
10063         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
10064         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
10065         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
10066         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
10067         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
10068         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
10069         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
10070         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
10071         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
10072         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
10073         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
10074         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
10075         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
10076         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
10077         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
10078         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
10079         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
10080         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
10081         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
10082         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
10083         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
10084         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
10085         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
10086         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
10087         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
10088         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
10089         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
10090         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
10091         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
10092         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
10093         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
10094         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
10095         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
10096         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
10097         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
10098         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
10099         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
10100         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
10101         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
10102         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
10103         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
10104         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
10105         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
10106         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
10107         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
10109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
10110         include sysdep.h and math_ldbl_opt.h.
10112         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
10113         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
10114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
10115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
10116         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
10117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
10118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
10119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
10120         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
10121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
10122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
10123         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
10124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
10125         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
10126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
10127         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
10128         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
10129         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
10130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
10131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
10132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
10133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
10134         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
10135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
10136         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
10137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
10139 2017-10-31  Alan Modra  <amodra@gmail.com>
10141         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
10142         string/strncase_l.c, not string/strncase.c.
10143         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
10144         (libc_hidden_def): Redefine.
10146 2017-10-31  Alan Modra  <amodra@gmail.com>
10148         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
10149         (__STRCMP, STRCMP, __strcasecmp_l): Define.
10150         (__strcasecmp): Don't define.
10152 2017-10-31  Alan Modra  <amodra@gmail.com>
10154         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
10155         IS_IN (libc).
10156         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
10157         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
10158         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
10160 2017-10-31  Alan Modra  <amodra@gmail.com>
10162         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
10163         USE_AS_STPNCPY.
10165 2017-10-31  Alan Modra  <amodra@gmail.com>
10167         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
10168         Redefine only when SHARED.
10170 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
10172         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
10173         Include <bits/math-finite.h> with appropriate macros defined and
10174         undefined.
10175         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
10176         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
10177         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
10178         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
10179         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
10181         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
10182         [!_Mlong_double_] (_Mlong_double_): Likewise.
10183         [!_Mfloat16_] (_Mfloat16_): Likewise.
10184         [!_Mfloat32_] (_Mfloat32_): Likewise.
10185         [!_Mfloat64_] (_Mfloat64_): Likewise.
10186         [!_Mfloat128_] (_Mfloat128_): Likewise.
10187         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
10188         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
10189         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
10190         (_Mdouble_): Define without indirection through those macros.
10191         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
10192         [!_Mfloat128_] (_Mfloat128_): Likewise.
10193         [_Mlong_double_] (_Mlong_double_): Likewise.
10194         (_Mdouble_): Define without indirection through those macros.
10195         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
10196         not add -D_Mlong_double_=double.
10197         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
10198         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
10200 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
10202         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
10204 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
10206         * sysdeps/x86/libc-start.c: Reformat.
10208 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
10210         [BZ #22353]
10211         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
10212         (1): Renamed to ...
10213         (L(Src0)): This.
10214         (L(Src1)): New.
10215         (L(Src2)): Likewise.
10216         (L(1)): Renamed to ...
10217         (L(Src3)): This.
10219 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
10221         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
10222         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
10223         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
10224         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
10225         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
10226         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
10227         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
10228         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
10229         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
10230         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
10231         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
10232         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
10233         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
10234         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
10235         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
10236         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
10237         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
10238         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
10239         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
10240         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
10241         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
10242         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
10243         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
10244         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
10245         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
10246         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
10247         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
10248         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
10249         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
10250         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
10251         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
10252         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
10253         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
10254         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
10255         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
10256         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
10257         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
10258         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
10259         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
10260         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
10261         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
10262         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
10263         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
10264         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
10265         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
10266         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
10267         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
10268         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
10269         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
10270         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
10271         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
10272         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
10273         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
10274         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
10275         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
10276         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
10277         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
10278         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
10279         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
10280         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
10281         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
10282         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
10283         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
10284         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
10285         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
10286         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
10288 2017-10-30  Florian Weimer  <fweimer@redhat.com>
10290         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
10291         always defined.
10292         * io/tst-mkdirat.c (do_test): Likewise.
10293         * io/tst-mkfifoat.c (do_test): Likewise.
10294         * io/tst-mknodat.c (do_test): Likewise.
10295         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
10296         * locale/programs/locale.c (select_dirs): Likewise.
10297         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
10298         * posix/bug-glob2.c (my_readdir): Likewise.
10299         * posix/tst-dir.c (main): Likewise.
10300         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
10301         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
10303 2017-10-30  Florian Weimer  <fweimer@redhat.com>
10305         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
10306         just __USE_GNU.
10308 2017-10-30  Florian Weimer  <fweimer@redhat.com>
10310         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
10311         Convert to support/test-driver.c.
10312         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
10313         New macro parameters.
10314         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
10315         * posix/tst-gnuglob.c: New file.
10316         * posix/tst-gnuglob64.c: Likewise.
10317         * posix/Makefile (tests): Add tst-gnuglob64.
10319 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
10321         [BZ #19485]
10322         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
10323         and use a better translation for March in “mon”.
10324         * localedata/locales/csb_PL: Use more ASCII to improve the
10325         readability of the source.
10327 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
10329         [BZ #13953]
10330         * localedata/locales/km_KH: Use ASCII as much
10331         as possible for better readability of the source and
10332         remove useless comments.
10333         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
10334         was commented out and apparently wrong anyway because it was
10335         using Lao characters. If Buddhist era should be used
10336         for km_KH, a native speaker should write the correct formaat
10337         for Khmer.
10338         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
10339         (According to CLDR, the first weekday for Cambodia is Sunday).
10340         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
10341         (These were using Lao characters which must be wrong. If we get
10342         the correct data from a native speaker, we could add it back, until
10343         then it is better not to have name_mr and name_mrs at all than
10344         having it wrong).
10346 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
10348         * locale/loadlocale.c: Correct size of
10349         _nl_value_type_LC_<category> arrays.
10351 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
10353         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
10354         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
10355         with appropriate macros defined and undefined.
10356         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
10357         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
10358         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
10359         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
10360         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
10362 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
10364         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
10365         "-O2 -march=i586".
10367 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
10369         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
10370         with lowercase letters to make it agree with CLDR.
10372 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
10374         [BZ #15260]
10375         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
10376         first letters of yesstr and nostr in yesexpr and noexpr,
10377         not for the full words.
10378         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
10379         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
10380         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
10381         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
10382         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
10383         first letters of yesstr and nostr in yesexpr and noexpr,
10384         until now only English was matched in yesexpr and noexpr.
10385         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
10386         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
10387         fil but not for tl. As tl and fil are very similar, using fil
10388         is probably better than using English.
10390 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
10392         [BZ #21706]
10393         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
10394         in yesstr and nostr.
10396 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
10398         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
10399         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
10400         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
10401         Likewise.
10402         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
10403         Likewise.
10404         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
10405         Likewise.
10406         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
10407         Likewise.
10408         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10409         (SNANF128X): Likewise.
10411         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
10412         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
10413         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10414         (HUGE_VAL_F32): Likewise.
10415         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10416         (HUGE_VAL_F64): Likewise.
10417         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10418         (HUGE_VAL_F32X): Likewise.
10419         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10420         (HUGE_VAL_F64X): Likewise.
10421         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10422         (HUGE_VAL_F128X): Likewise.
10424 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
10426         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
10427         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
10428         for the br_FR locale.
10430 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
10432         [BZ #21706]
10433         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
10435 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
10437         * locale/programs/record-status.h: Define globals, and function
10438         prototypes. Move function bodies...
10439         * locale/programs/record-status.c: ... to here. New file.
10440         * iconv/Makefile (iconv_prog-modules): Add record-status.
10441         * locale/Makefile (lib-modules): Likewise.
10442         * iconv/iconv_prog.c: Remove verbose.
10443         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
10444         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
10445         record a warning about ASCII compatibility.
10446         * locale/programs/ld-monetary.c (monetary_finish): If
10447         warn_int_curr_symbol is true then record a warning about the symbol
10448         not being in our ISO 4217 list.
10449         * locale/programs/locale.c: Include record-status.h. Remove verbose.
10450         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
10451         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
10452         (OPT_NO_WARN): Define.
10453         (OPT_WARN): Define.
10454         (options): Add entry for --no-warnings, and --warnings.
10455         (set_warnings): New function to enable/disable warnings.
10456         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
10457         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
10458         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
10459         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
10460         Pass flags to generate_locale.
10461         (generate_locale): Accept new flag argument and pass it to localedef
10462         invocation.
10463         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
10464         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
10466         * localedata/Makefile (test-input-data): Use full file name.
10467         * localedata/da_DK.in: Rename to...
10468         * localedata/da_DK.ISO-8859-1.in: ...this.
10469         * localedata/de_DE.in: Rename to...
10470         * localedata/de_DE.ISO-8859-1.in: ...this.
10471         * localedata/en_US.in: Rename to...
10472         * localedata/en_US.ISO-8859-1.in: ...this.
10473         * localedata/fr_FR.in: Rename to...
10474         * localedata/fr_FR.UTF-8.in: ... this.
10475         * localedata/hr_HR.in: Rename to...
10476         * localedata/hr_HR.ISO-8859-2.in: ...this.
10477         * localedata/hu_HU.in: Rename to...
10478         * localedata/hu_HU.UTF-8.in: ...this.
10479         * localedata/si_LK.in: Rename to...
10480         * localedata/si_LK.UTF-8.in: ...this.
10481         * localedata/sv_SE.in: Rename to...
10482         * localedata/sv_SE.ISO-8859-1.in: ...this.
10483         * localedata/tr_TR.in: Rename to...
10484         * localedata/tr_TR.UTF-8.in: ...this.
10485         * localedata/uk_UA.in: Rename to...
10486         * localedata/uk_UA.UTF-8.in: ...this.
10487         * localedata/sort-test.sh: Test file is locale name with the
10488         suffix.
10490         * localedata/unicode-gen/Makefile (check_i18n): Rename to
10491         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
10492         file.
10493         * localedata/locales/i18n_ctype: Regenerate.
10494         * localedata/locales/tr_TR: Likewise.
10495         * localedata/locales/translit_circle: Likewise.
10496         * localedata/locales/translit_cjk_compat: Likewise.
10497         * localedata/locales/translit_combining: Likewise.
10498         * localedata/locales/translit_compat: Likewise.
10499         * localedata/locales/translit_font: Likewise.
10500         * localedata/locales/translit_fraction: Likewise.
10502 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10504         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
10505         lxvd2x/stxvd2x with lvx/stvx.
10506         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
10508 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
10510         * include/alloc_buffer.h: Replace "if if " with "if " in
10511         comments.
10512         * sysdeps/mips/memcpy.S: Likkewise.
10513         * sysdeps/mips/memset.S: Likewise.
10514         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
10515         Likewise.
10516         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
10517         Likewise.
10518         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
10519         Likewise.
10521 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10523         [BZ #15261]
10524         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
10525         yesexpr and noexpr.
10526         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
10527         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
10528         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
10529         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
10530         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
10531         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
10532         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
10534 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10536         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
10537         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
10538         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
10539         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
10540         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
10541         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
10542         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
10543         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
10544         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
10545         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
10546         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
10547         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
10549 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10551         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
10552         as possible for better readability of the source.
10553         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
10554         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
10555         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
10556         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
10557         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
10558         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
10559         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
10560         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
10561         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
10562         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
10563         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
10564         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
10565         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
10566         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
10567         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
10568         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
10569         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
10570         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
10571         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
10572         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
10573         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
10574         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
10575         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
10576         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
10577         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
10578         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
10579         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
10580         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
10581         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
10582         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
10583         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
10584         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
10585         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
10586         * localedata/locales/en_US (LC_MESSAGES): Likewise.
10587         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
10588         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
10589         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
10590         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
10591         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
10592         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
10593         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
10594         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
10595         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
10596         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
10597         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
10598         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
10599         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
10600         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
10601         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
10602         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
10603         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
10604         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
10605         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
10606         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
10607         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
10608         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
10609         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
10610         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
10611         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
10612         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
10613         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
10614         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
10615         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
10616         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
10617         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
10618         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
10619         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
10620         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
10621         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
10622         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
10623         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
10624         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
10625         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
10626         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
10627         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
10628         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
10629         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
10630         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
10631         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
10632         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
10633         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
10634         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
10635         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
10636         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
10637         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
10638         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
10639         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
10640         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
10641         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
10642         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
10643         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
10644         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
10645         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
10646         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
10647         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
10648         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
10649         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
10650         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
10651         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
10652         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
10653         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
10654         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
10655         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
10656         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
10657         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
10658         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
10659         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
10660         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
10661         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
10662         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
10663         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
10664         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
10665         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
10666         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
10667         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
10668         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
10669         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
10670         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
10671         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
10672         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
10673         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
10674         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
10675         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
10676         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
10677         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
10678         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
10679         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
10680         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
10681         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
10682         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
10683         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
10684         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
10685         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
10686         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
10687         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
10688         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
10689         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
10690         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
10691         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
10692         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
10693         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
10694         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
10695         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
10696         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
10697         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
10698         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
10699         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
10700         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
10701         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
10702         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
10703         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
10704         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
10705         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
10706         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
10707         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
10708         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
10709         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
10710         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
10711         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
10712         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
10713         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
10714         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
10715         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
10716         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
10717         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
10718         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
10719         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
10720         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
10721         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
10722         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
10723         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
10724         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
10725         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
10726         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
10728 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10730         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
10731         (Use first letters of yesstr and nostr correctly instead of using
10732         full words).
10734 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10736         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
10737         (Use first letters of yesstr and nostr correctly).
10739 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10741         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
10742         also check for the first characters of yesstr and nostr.
10743         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
10744         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
10746 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10748         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
10749         also check for Chinese characters.
10751 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10753         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
10754         match also for the contents of yesstr and nostr. As the first letter
10755         of yesstr and nostr is equal, checking only for the first letter
10756         is not enough.
10758 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10760         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
10761         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
10763 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10765         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
10766         of main contributor.
10768 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10770         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
10771         instead of using English.
10773 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10775         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
10776         by including the first letters of nostr and yesexpr in the regexp.
10777         Also make it more readable by using ASCII where possible.
10779 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10781         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
10782         the first letter of nostr in the regexp. It agrees with CLDR now.
10783         Also make it more readable by using ASCII where possible.
10785 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10787         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
10788         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
10789         these strings contain a U+17D6 (which somewhat looks like a colon)
10790         instead of a real colon to separate the full words for “yes”
10791         and “no” from the single letter responses.
10793 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10795         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
10796         it agree with CLDR (include the first letter of yesstr).
10797         Also make it more readable by using ASCII where possible.
10799 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10801         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
10802         and improve yesexpr and noexpr. The yesstr and nostr apparently
10803         came from CLDR. And CLDR has a bug there: these strings contain
10804         a U+0903 (which looks like a colon) instead of a real colon
10805         to separate the full words for “yes” and “no” from the single
10806         letter responses.
10808 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10810         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
10811         letters of the full yesstr and nostr in yesexpr and noexpr.
10813 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10815         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
10816         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
10817         * localedata/locales/an_ES: Make source more readable by using ASCII
10818         where possible.
10820 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10822         [BZ #20952]
10823         * localedata/locales/yuw_PG: New file.
10824         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
10825         * locale/iso-639.def: Add Yau (Uruwa).
10827 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
10829         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
10831 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
10833         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
10834         (__libc_realloc): Likewise.
10835         (_mid_memalign): Likewise.
10836         (__libc_calloc): Likewise.
10838 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
10840         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
10841         by adding the generic +1 and -0 as in all other locales.
10842         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
10843         day names and make it more readable by using ASCII where possible.
10845 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
10847         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
10848         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
10850 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10852         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
10853         WNOHANG in waitpid call.
10855 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10857         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
10858         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
10860         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
10861         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
10862         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
10863         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
10864         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
10865         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
10866         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
10867         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
10868         variables.
10870 2017-10-23  Michael Collison  <michael.collison@arm.com>
10872         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
10873         with __builtin_sqrt.
10874         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
10875         with __builtin_sqrtf.
10876         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
10877         with __builtin_ceil.
10878         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
10879         with __builtin_ceilf.
10880         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
10881         with __builtin_floor.
10882         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
10883         with __builtin_floorf.
10884         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
10885         with __builtin_fma.
10886         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
10887         with __builtin_fmaf.
10888         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
10889         with __builtin_fmax.
10890         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
10891         with __builtin_fmaxf.
10892         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
10893         with __builtin_fmin.
10894         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
10895         with __builtin_fminf.
10896         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
10897         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
10898         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
10899         with builtin_rint and conversion to int.
10900         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
10901         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
10902         with builtin_llround.
10903         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
10904         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
10905         with builtin_rint and conversion to long int.
10906         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
10907         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
10908         with builtin_lround.
10909         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
10910         with builtin_lroundf.
10911         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
10912         statements with __builtin_nearbyint.
10913         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
10914         statements with __builtin_nearbyintf.
10915         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
10916         with __builtin_rint.
10917         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
10918         with __builtin_rintf.
10919         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
10920         with __builtin_round.
10921         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
10922         with __builtin_roundf.
10923         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
10924         with __builtin_trunc.
10925         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
10926         with __builtin_truncf.
10927         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
10928         and s_l[l]round[f].c too.
10930 2017-10-23  Alan Modra  <amodra@gmail.com>
10932         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
10933         Adjust stack after restoring regs.  Add missing LR cfi_restore.
10935 2017-10-23  Alan Modra  <amodra@gmail.com>
10937         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
10938         Move LR save and frame setup/teardown and LR restore to
10939         immediately around memset call.  Provide cfi.
10941 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10943         * sysdeps/i386/fpu/e_powf.S: Removed.
10944         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
10945         * sysdeps/i386/fpu/w_powf.c: Likewise.
10946         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
10947         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10948         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
10949         Add e_powf-sse2.
10950         (CFLAGS-e_powf-sse2.c): New.
10951         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
10952         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
10954 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10956         * sysdeps/i386/fpu/e_log2f.S: Removed.
10957         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
10958         * sysdeps/i386/fpu/w_log2f.c: Likewise.
10959         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
10960         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10961         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
10962         Add e_log2f-sse2.
10963         (CFLAGS-e_log2f-sse2.c): New.
10964         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
10965         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
10967 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10969         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10970         Add e_powf-fma.
10971         (CFLAGS-e_powf-fma.c): New.
10972         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
10973         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
10975 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10977         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10978         Add e_log2f-fma.
10979         (CFLAGS-e_log2f-fma.c): New.
10980         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
10981         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
10983 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10985         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10986         Add e_logf-fma.
10987         (CFLAGS-e_logf-fma.c): New.
10988         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
10989         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
10991 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10993         * sysdeps/i386/fpu/e_logf.S: Removed.
10994         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
10995         * sysdeps/i386/fpu/w_logf.c: Likewise.
10996         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
10997         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
10998         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10999         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
11000         Add e_logf-sse2.
11001         (CFLAGS-e_logf-sse2.c): New.
11002         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
11003         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
11005 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11007         * sysdeps/i386/fpu/e_exp2f.S: Removed.
11008         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
11009         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
11010         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
11011         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
11012         Add e_exp2f-sse2.
11013         (CFLAGS-e_exp2f-sse2.c): New.
11014         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
11015         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
11017 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11019         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11020         Add e_exp2f-fma.
11021         (CFLAGS-e_exp2f-fma.c): New.
11022         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
11023         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
11025 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11027         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
11028         * sysdeps/i386/fpu/e_expf.S: Likewise.
11029         * sysdeps/i386/fpu/math_errf.c: Likewise.
11030         * sysdeps/i386/fpu/w_expf.c: Likewise.
11031         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
11032         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
11033         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
11034         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
11035         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
11036         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
11037         Remove e_expf-ia32.
11038         (CFLAGS-e_expf-sse2.c): New.
11039         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
11040         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
11042 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11044         * sysdeps/x86_64/fpu/e_expf.S: Removed.
11045         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
11046         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
11047         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
11048         e_expf.c.
11049         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
11050         New.
11051         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
11052         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
11053         Renamed to ...
11054         (__redirect_expf): This.
11055         (SYMBOL_NAME): Changed to expf.
11056         (__ieee754_expf): Renamed to ...
11057         (__expf): This.
11058         (__GI___expf): This.
11059         (__ieee754_expf): Add strong_alias.
11060         (__expf_finite): Likewise.
11061         (__expf): New.
11062         Include <sysdeps/ieee754/flt-32/e_expf.c>.
11064 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
11066         [BZ #22332]
11067         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
11068         unescaping.
11070 2017-10-21  Florian Weimer  <fweimer@redhat.com>
11072         * posix/Makefile (tests): Add tst-glob-tilde.
11073         (tests-special): Add tst-glob-tilde-mem.out
11074         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
11075         (tst-glob-tilde-mem.out): Add mtrace check.
11076         * posix/tst-glob-tilde.c: New file.
11078 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
11080         * bits/floatn-common.h: New file.
11081         * math/Makefile (headers): Add bits/floatn-common.h.
11082         * bits/floatn.h: Include <bits/floatn-common.h>.
11083         * sysdeps/ia64/bits/floatn.h: Likewise.
11084         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
11085         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
11086         * sysdeps/powerpc/bits/floatn.h: Likewise.
11087         * sysdeps/x86/bits/floatn.h: Likewise.
11089 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11091         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
11092         indicates whether compiler emits an warning for alias for
11093         functions with incompatible types.
11095         [BZ #22273]
11096         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
11097         the auxiliary process is terminated by a signal before calling _exit
11098         or execve.
11100 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
11102         [BZ #21265]
11103         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
11104         New.
11105         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
11106         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
11107         and bit_arch_XSAVEC_Usable if needed.
11108         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
11109         and bit_arch_Use_dl_runtime_resolve_opt.
11110         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
11111         Removed.
11112         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
11113         (bit_arch_Prefer_No_AVX512): Updated.
11114         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
11115         (bit_arch_XSAVEC_Usable): New.
11116         (STATE_SAVE_OFFSET): Likewise.
11117         (STATE_SAVE_MASK): Likewise.
11118         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
11119         (cpu_features): Add xsave_state_size and xsave_state_full_size.
11120         (index_arch_Use_dl_runtime_resolve_opt): Removed.
11121         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
11122         (index_arch_XSAVEC_Usable): New.
11123         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11124         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
11125         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
11126         is enabled.
11127         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11128         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
11129         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
11130         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
11131         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
11132         _dl_runtime_resolve_xsavec.
11133         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
11134         Removed.
11135         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
11136         instead of VEC_SIZE.
11137         (REGISTER_SAVE_BND0): Removed.
11138         (REGISTER_SAVE_BND1): Likewise.
11139         (REGISTER_SAVE_BND3): Likewise.
11140         (REGISTER_SAVE_RAX): Always defined to 0.
11141         (VMOV): Removed.
11142         (_dl_runtime_resolve_avx): Likewise.
11143         (_dl_runtime_resolve_avx_slow): Likewise.
11144         (_dl_runtime_resolve_avx_opt): Likewise.
11145         (_dl_runtime_resolve_avx512): Likewise.
11146         (_dl_runtime_resolve_avx512_opt): Likewise.
11147         (_dl_runtime_resolve_sse): Likewise.
11148         (_dl_runtime_resolve_sse_vex): Likewise.
11149         (USE_FXSAVE): New.
11150         (_dl_runtime_resolve_fxsave): Likewise.
11151         (USE_XSAVE): Likewise.
11152         (_dl_runtime_resolve_xsave): Likewise.
11153         (USE_XSAVEC): Likewise.
11154         (_dl_runtime_resolve_xsavec): Likewise.
11155         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
11156         Removed.
11157         (_dl_runtime_resolve_avx512_opt): Likewise.
11158         (_dl_runtime_resolve_avx): Likewise.
11159         (_dl_runtime_resolve_avx_opt): Likewise.
11160         (_dl_runtime_resolve_sse): Likewise.
11161         (_dl_runtime_resolve_sse_vex): Likewise.
11162         (_dl_runtime_resolve_fxsave): New.
11163         (_dl_runtime_resolve_xsave): Likewise.
11164         (_dl_runtime_resolve_xsavec): Likewise.
11166 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
11168         [BZ #22320]
11169         CVE-2017-15670
11170         * posix/glob.c (__glob): Fix one-byte overflow.
11172 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
11174         * malloc/malloc.c (sysdep-cancel.h): Add include.
11176 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
11178         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
11180 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
11182         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
11183         (tests): Remove $(objpfx)ga_test depdendency.
11184         * resolv/ga_test.c: Remove file.
11186 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
11188         [BZ #18812]
11189         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
11190         * localedata/locales/kab_DZ: New file.
11192 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
11194         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
11195         _dl_relocate_static_pie instead of _dl_start to compute load
11196         address in static PIE.
11198 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
11200         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
11202 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
11204         [BZ #13605]
11205         * localedata/SUPPORTED: Add shn_MM/UTF-8.
11206         * localedata/locales/shn_MM: New file.
11208 2017-10-20  Florian Weimer  <fweimer@redhat.com>
11210         [BZ #22321]
11211         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
11212         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
11213         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
11214         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
11215         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
11216         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
11218 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
11220         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
11222 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
11224         * sysdeps/mips/ieee754/bits/floatn.h: New file.
11226         [BZ #22322]
11227         * sysdeps/mips/bits/long-double.h: Move to ....
11228         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
11230 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
11232         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
11234 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
11235             H.J. Lu  <hongjiu.lu@intel.com>
11237         [BZ #22299]
11238         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
11239         GLRO(dl_platform) to NULL.
11240         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
11241         (modules-names): Add tst-platformmod-1 and
11242         x86_64/tst-platformmod-2.
11243         (CFLAGS-tst-platform-1.c): New.
11244         (CFLAGS-tst-platformmod-1.c): Likewise.
11245         (CFLAGS-tst-platformmod-2.c): Likewise.
11246         (LDFLAGS-tst-platformmod-2.so): Likewise.
11247         ($(objpfx)tst-platform-1): Likewise.
11248         ($(objpfx)tst-platform-1.out): Likewise.
11249         (tst-platform-1-ENV): Likewise.
11250         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
11251         * sysdeps/x86_64/tst-platform-1.c: New file.
11252         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
11253         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
11255 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
11257         [BZ #13994]
11258         * locale/iso-639.def: Add Karbi.
11259         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
11260         * localedata/locales/mjw_IN: New file.
11262 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
11264         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
11265         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
11266         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
11267         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
11268         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
11269         (libm_alias_ldouble_other_r): Also create _Float128 alias.
11270         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
11271         <bits/floatn.h>.
11272         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
11273         (libm_alias_ldouble_other_r): Also create _Float128 alias.
11274         * manual/math.texi (Mathematics): Document additional architecture
11275         support for _Float128.
11276         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
11277         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11278         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11279         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11280         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11281         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11282         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11283         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11284         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11285         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11286         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11287         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11288         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11289         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11290         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11292 2017-10-18  Renlin Li  <renlin.li@arm.com>
11294         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
11295         _DYNAMIC symbol to calculate load address.
11297 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
11299         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
11300         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
11301         summary bits.
11302         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
11303         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
11305 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
11307         [BZ #16777]
11308         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
11309         and improve readability by using more ASCII.
11310         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
11311         and improve readability by using more ASCII.
11313 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
11315         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
11316         not all targets support atomics on bool.
11318 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
11320         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
11321         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
11322         __f128.
11323         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
11324         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
11325         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
11326         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
11327         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
11328         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
11330 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11332         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
11333         defines.
11335 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
11337         [BZ #22159]
11338         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
11339         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
11340         (do_check_remalloced_chunk): Fix build bug.
11341         (do_check_malloc_state): Add assert that checks arena->top.
11342         (malloc_consolidate): Remove initialization.
11343         (int_mallinfo): Remove call to malloc_consolidate.
11344          (__libc_mallopt): Clarify why malloc_consolidate is needed.
11346 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
11348         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
11349         (have_fastchunks): Remove.
11350         (clear_fastchunks): Remove.
11351         (set_fastchunks): Remove.
11352         (malloc_state): Add have_fastchunks.
11353         (malloc_init_state): Use have_fastchunks.
11354         (do_check_malloc_state): Remove incorrect invariant checks.
11355         (_int_malloc): Use have_fastchunks.
11356         (_int_free): Likewise.
11357         (malloc_consolidate): Likewise.
11359 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
11361         * malloc/malloc.c (tcache_put): Inline.
11362         (tcache_get): Inline.
11364 2017-10-17  Jordi Mallach  <jordi@gnu.org>
11366         Aurelien Jarno  <aurelien@aurel32.net>
11367         [BZ #2522]
11368         * localedata/locales/ca_ES@valencia: New file.
11369         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
11371 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
11373         [BZ #22296]
11374         * math/math.h: Let signbit use the builtin in C++ mode with gcc
11375         < 6.x
11377 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11379         * scripts/build-many-glibcs.py (Context.add_all_configs):
11380         Add arm-linux-gnueabihf multiarch extra_glibcs.
11382         * sysdeps/generic/ifunc-init.h: New file.
11383         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
11385 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
11387         [BZ #22019]
11388         * localedata/locales/el_GR: Set n_cs_precedes to 0.
11389         * localedata/locales/el_CY: copy "el_GR" because it is identical.
11390         * stdlib/tst-strfmon_l.c: adapt test case.
11392 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
11394         * sysdeps/generic/float128-abi.h: New file.
11395         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
11396         non-__prefixed symbols to ....
11397         * math/Versions: ... here.  Include <float128-abi.h>.
11398         * stdlib/Versions ... and here.  Include <float128-abi.h>
11400 2017-10-16  Florian Weimer  <fweimer@redhat.com>
11402         * version.h (VERSION): Switch to ".9000" as the development
11403         version suffix.
11405 2017-10-16  Florian Weimer  <fweimer@redhat.com>
11407         [BZ #22050]
11408         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
11409         compat_symbol_reference to access non-default version.
11411 2017-10-16  Florian Weimer  <fweimer@redhat.com>
11413         * malloc/Makefile (others-extras): Set to mcheck-init.o.
11415 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
11417         * include/shlib-compat.h (compat_symbol_reference): Update
11418         comment.
11420 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
11422         * math/Makefile (test-types): Add
11423         $(type-float128-$(float128-alias-fcts)).
11424         * math/test-float128.h (TYPE_STR): Define conditional on
11425         [FLT128_MANT_DIG == LDBL_MANT_DIG].
11426         (ULP_IDX): Likewise.
11427         (ULP_I_IDX): Likewise.
11429         * stdlib/strtold.c: Include <bits/floatn.h>
11430         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
11431         and later undefine as macro.  Define as weak alias if
11432         [!USE_WIDE_CHAR].
11433         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
11434         and later undefine as macro.  Define as weak alias if
11435         [USE_WIDE_CHAR].
11436         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
11437         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
11438         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
11439         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
11440         Define and later undefine as macro.  Define as weak alias if
11441         [USE_WIDE_CHAR].
11442         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
11443         <bits/floatn.h>.
11444         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
11445         Define and later undefine as macro.  Define as weak alias if
11446         [!USE_WIDE_CHAR].
11447         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
11448         Define and later undefine as macro.  Define as weak alias if
11449         [USE_WIDE_CHAR].
11451 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
11453         * localedata/collate-test.c (allocate_arrays): Don't use \n in
11454         record_verbose messages.
11456 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
11458         [BZ #22052]
11459         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
11460         to silence -O3 -Wall warning with GCC 7.
11462 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
11464         * Makeconfig (+link-static-before-libc): Use the first of
11465         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
11466         * gmon/Makefile (tests): Add tst-gmon-static.
11467         (tests-static): Likewise.
11468         (CFLAGS-tst-gmon-static.c): New.
11469         (CRT-tst-gmon-static): Likewise.
11470         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
11471         (tst-gmon-static-ENV): Likewise.
11472         (tests-special): Likewise.
11473         ($(objpfx)tst-gmon-static.out): Likewise.
11474         (clean-tst-gmon-static-data): Likewise.
11475         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
11476         * gmon/tst-gmon-static-gprof.sh: New file.
11477         * gmon/tst-gmon-static.c: Likewise.
11479 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
11481         [BZ #22295]
11482         * locale/programs/linereader.c (get_string): Don't warn on
11483         non-symbolic character.
11485         [BZ #22294]
11486         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
11487         int_curr_symbol.
11489         [BZ #22292]
11490         * locale/programs/record-status.h: New file
11491         * locale/programs/locale.c: Add comment.
11492         * locale/programs/charmap-dir.c: Don't include error.h.
11493         (charmap_opendir): Use record_error.
11494         * locale/programs/charmap.c: Don't include error.h.
11495         (charmap_read): Use record_error, and record_warning.
11496         (parse_charmap): Likewise.
11497         * locale/programs/ld-address.c: Don't include error.h.
11498         (address_finish): Use record_error, and record_warning.
11499         * locale/programs/ld-collate.c: Don't include error.h.
11500         (collate_finish): Use record_error, and record_error_at_line.
11501         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
11502         (ctype_class_new): Likewise.
11503         (ctype_map_new): Likewise.
11504         (set_one_default): Likewise.
11505         (set_class_defaults): Likewise.
11506         (translit_flatten): Likewise.
11507         (allocate_arrays): Use record_error, and record_verbose.
11508         * locale/programs/ld-identification.c: Don't include error.h.
11509         (indentation_finish): Use record_error and record_warning.
11510         * locale/programs/ld-measurement.c: Don't include error.h.
11511         (measurement_finish): Use record_error.
11512         * locale/programs/ld-messages.c
11513         (message_finish): Likewise.
11514         * locale/programs/ld-monetary.c
11515         (monetary_finish): Likewise.
11516         * locale/programs/ld-name.c (name_finish): Use record_error
11517         and record_warning.
11518         * locale/programs/ld-numeric.c
11519         (numeric_finish): Use record_error.
11520         * locale/programs/ld-paper.c: Don't include error.h.
11521         (paper_finish): Use record_error.
11522         * locale/programs/ld-telephone.c: Don't include error.h.
11523         (telephone_finish): Use record_error.
11524         * locale/programs/ld-time.c (time_finish): Likewise.
11525         * locale/programs/linereader.h (lr_error): Make inline func.
11526         * locale/programs/localedef.c: Define recorded_warning_count,
11527         and recorded_error_count.
11528         (main): Use record_error. Use recorded_error_count and
11529         recorded_warning_count to issue correct error returns.
11530         (add_to_readlist): Use record_error.
11531         (find_locale): Likewise.
11532         (load_locale): Likewise.
11533         * locale/programs/localedef.h: Remove be_quiet
11534         and WITH_CUR_LOCALE.
11535         * locale/programs/locarchive.c (compare_from_file): Use
11536         record_error.
11537         * locale/programs/locfile.c (write_locale_data): Use
11538         record_error.
11539         * locale/programs/repertoire.c: Dont include error.h.
11540         (repertoire_complain): Use record_error.
11541         * localedata/tst-fmon.sh: Expect failures from localedef.
11542         * localedata/tst-locale.sh: Likewise.
11543         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
11545         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
11546         (REPORTS): Likewise.
11547         (check): Likewise.
11548         (i18n): Rename to...
11549         (i18n_ctype): ...this.
11550         (i18n-report): Rename to...
11551         (i18n_ctype-report): ...this.
11552         * localedata/locales/i18n_ctype: Regenerate.
11553         * localedata/locales/i18n: copy i18n_ctype.
11555 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
11557         * stdlib/strfroml.c: Include <bits/floatn.h>.
11558         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
11559         Define before include of <stdlib.h> and undefine afterwards, then
11560         define as weak alias.
11562         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
11563         Undefine and restore default definition.  Use
11564         libm_alias_ldouble_other.
11566 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
11568         [BZ #22153]
11569         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
11570         in coredumps.
11572 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
11574         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
11575         Assign sym_map to be map for local symbols, as TLS relocations
11576         use sym_map to determine whether the symbol is defined and to
11577         extract the TLS information.
11578         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
11579         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
11581 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11583         [BZ #22189]
11584         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
11585         (math_force_eval): Add powerpc version.
11587         [BZ #22142]
11588         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
11589         -DBL_MAX.
11590         (do_test): Likewise.
11591         * stdio-common/tst-printf.sh: Likewise.
11592         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
11593         ifdef clause in order to set the carry bit right.  Replace r0 by
11594         0 without changing the behavior.
11596 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
11598         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
11599         <libm-alias-ldouble.h>.
11600         (fabsl): Define using libm_alias_ldouble.
11601         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
11602         <libm-alias-ldouble.h>.
11603         (fabsl): Define using libm_alias_ldouble.
11605         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
11606         Remove conditional code.
11608         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
11609         Rename to __clog10_internal_l.
11610         (__clog10_internal_l): Define aliases using
11611         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
11612         with __clog10.
11614 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11616         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
11617         * benchtests/sincosf-inputs: New file.
11618         * benchtests/cosf-inputs: New file.
11619         * benchtests/sinf-inputs: New file.
11621 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11623         * posix/tst-spawn.c (do_test): Wait for both children.
11625 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
11627         [BZ #22284]
11628         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
11629         tests-pie): Add tst-gmon-pie.
11630         (CFLAGS-tst-gmon-pie.c): New.
11631         (CRT-tst-gmon-pie): Likewise.
11632         (tst-gmon-pie-ENV): Likewise.
11633         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
11634         ($(objpfx)tst-gmon-pie.out): Likewise.
11635         (clean-tst-gmon-pie-data): Likewise.
11636         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
11637         * gmon/gmon.c [PIC]: Include <link.h>.
11638         [PIC] (callback): New function.
11639         (write_hist): Add an argument for load address.  Subtract load
11640         address from PCs.
11641         (write_call_graph): Likewise.
11642         (write_gmon): Call __dl_iterate_phdr to get load address, pass
11643         it to write_hist and write_call_graph.
11644         * gmon/tst-gmon-pie.c: New file.
11646 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
11648         * math/Makefile (test-types-basic): New variable.
11649         (test-types): Likewise.
11650         (libm-test-support): Use $(test-types) instead of $(types).
11651         (libm-tests-base-normal): Likewise.
11652         (libm-tests-base-finite): Likewise.
11653         (libm-tests-base-inline): Likewise.
11654         (generated): Likewise.
11655         ($(objpfx)libm-test-support-$(t).c): Likewise.
11656         (libm-tests-for-type iterator): Likewise.
11657         (libm-test-support iterator): Likewise.
11658         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
11659         (ulp_idx): Use ULP_IDX.
11660         * math/test-ldouble.h: Include <float.h>.
11661         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
11662         (ULP_IDX): New macro.
11663         (ULP_I_IDX): Likewise.
11664         * math/test-double.h (ULP_IDX): Likewise.
11665         (ULP_I_IDX): Likewise.
11666         * math/test-float.h (ULP_IDX): Likewise.
11667         (ULP_I_IDX): Likewise.
11668         * math/test-float128.h (ULP_IDX): Likewise.
11669         (ULP_I_IDX): Likewise.
11671 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11673         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
11674         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
11675         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
11676         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
11677         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
11678         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
11679         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
11680         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
11681         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
11682         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
11683         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
11684         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
11685         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
11686         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
11687         (SINGLE_THREAD_BY_GLOBAL): Define.
11688         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
11689         Likewise.
11690         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
11691         Likewise.
11692         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
11693         Likewise.
11694         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
11695         Likewise.
11696         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
11697         (SINGLE_THREAD_BY_GLOBAL): Likewise.
11698         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
11699         Likewise.
11701 2017-10-11  Andreas Schwab  <schwab@suse.de>
11703         * nis/Makefile (aux): Remove.
11704         * nscd/Makefile (aux): Add nscd_hash.
11705         (nscd-modules): Likewise.
11706         ($(objpfx)nscd): Don't depend on libnsl.
11707         * nscd/nscd_hash.c: New file.
11708         * nscd/nscd_hash.h: Likewise.
11709         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
11710         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
11711         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
11712         instead of <nis/rpcsvc/nis.h>.
11713         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
11715 2017-10-11  Florian Weimer  <fweimer@redhat.com>
11717         [BZ #22078]
11718         Avoid large NSS buffers with many addresses, aliases.
11719         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
11720         using dynarrays and struct alloc_buffer.
11721         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
11722         (tst-nss-files-hosts-multi): Link with -ldl.
11723         * nss/tst-nss-files-hosts-multi.c: New file.
11725 2017-10-11  Florian Weimer  <fweimer@redhat.com>
11727         [BZ #18023]
11728         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
11729         scratch_buffer.  Eliminate gotos.
11731 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
11733         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
11734         libm_alias_ldouble_other.
11735         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
11736         undefine and redefine.
11737         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
11738         (exp10l): Do not define here.
11739         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
11740         (weak_alias): Undefine and redefine.
11741         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
11742         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
11743         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
11744         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
11746         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
11747         [!__fma] (fma): Define using libm_alias_double.
11748         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
11749         [!__fmaf] (fmaf): Define using libm_alias_float.
11750         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
11751         (fmal): Define using libm_alias_ldouble.
11753 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
11755         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
11756         New macro.
11757         (libm_alias_double_other): Likewise.
11758         (libm_alias_double_r): Use libm_alias_double_other_r.
11759         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
11760         New macro.
11761         (libm_alias_float_other): Likewise.
11762         (libm_alias_float_r): Use libm_alias_float_other_r.
11763         * sysdeps/generic/libm-alias-float128.h
11764         (libm_alias_float128_other_r): New macro.
11765         (libm_alias_float128_other): Likewise.
11766         (libm_alias_float128_r): Use libm_alias_float128_other_r.
11767         * sysdeps/generic/libm-alias-ldouble.h
11768         (libm_alias_ldouble_other_r): New macro.
11769         (libm_alias_ldouble_other): Likewise.
11770         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
11771         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
11772         (libm_alias_double_other_r): New macro.
11773         (libm_alias_double_other): Likewise.
11774         (libm_alias_double_r): Use libm_alias_double_other_r.
11775         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
11776         (libm_alias_ldouble_other_r): New macro.
11777         (libm_alias_ldouble_other): Likewise.
11778         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
11779         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
11780         [!USE_AS_COMPAT]: Use libm_alias_double_other.
11781         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
11782         [!USE_AS_COMPAT]: Use libm_alias_float_other.
11783         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
11784         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
11785         * math/w_exp2f.c: Use libm_alias_float_other.
11786         * math/w_expf.c: Likewise.
11787         * math/w_log2f.c: Likewise.
11788         * math/w_logf.c: Likewise.
11789         * math/w_powf.c: Likewise.
11790         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
11791         [!__exp2f]: Use libm_alias_float_other.
11792         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
11793         [!__expf]: Use libm_alias_float_other.
11794         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
11795         [!__log2f]: Use libm_alias_float_other.
11796         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
11797         [!__logf]: Use libm_alias_float_other.
11798         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
11799         [!__powf]: Use libm_alias_float_other.
11801 2017-10-10  Florian Weimer  <fweimer@redhat.com>
11803         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
11804         function.
11805         (_nss_files_gethostbyname3_r): Call it.
11807 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
11809         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
11810         error.  Remove default definition of declare_mgen_alias.
11811         [!declare_mgen_alias_r]: Likewise.
11812         * sysdeps/generic/math-type-macros-double.h
11813         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
11814         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
11815         (declare_mgen_alias_r): Likewise.
11816         * sysdeps/generic/math-type-macros-float128.h
11817         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
11818         * sysdeps/generic/math-type-macros-ldouble.h
11819         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
11820         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
11821         macro.
11822         (declare_mgen_alias_r_s): Likewise.
11823         (declare_mgen_alias_r): Likewise.
11824         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
11825         (lgamma_r): Define using libm_alias_double_r.
11826         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
11827         (lgammaf_r): Define using libm_alias_float_r.
11828         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
11829         (lgammal_r): Define using libm_alias_ldouble_r.
11830         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
11831         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
11833 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11835         * lib/glob.c (__glob_pattern_type): Remove now-spurious
11836         extern declaration.
11838 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
11840         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
11842 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
11844         [BZ #21326]
11845         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
11846         [__cplusplus >= 201103] (__USE_ISOC99): Define.
11847         * math/Makefile (test-math-cxx11): New test.
11848         * math/test-math-cxx11.cc: New file.
11850 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
11852         * login/openpty.c (openpty): Close slave pty file descriptor on error.
11854         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
11855         call to allocate the slave pty file descriptor.
11857 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
11859         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
11860         [!__fma] (fma): Define using libm_alias_double.
11861         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
11862         [!__fma] (fma): Define using libm_alias_double.
11864         * sysdeps/ieee754/float128/float128_private.h: Include
11865         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
11866         (libm_alias_ldouble_r): Undefine and redefine.
11867         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
11868         <libm-alias-ldouble.h>.
11869         (asinhl): Define using libm_alias_ldouble.
11870         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
11871         <libm-alias-ldouble.h>.
11872         (atanl): Define using libm_alias_ldouble.
11873         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
11874         <libm-alias-ldouble.h>.
11875         (cbrtl): Define using libm_alias_ldouble.
11876         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
11877         <libm-alias-ldouble.h>.
11878         (ceill): Define using libm_alias_ldouble.
11879         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
11880         <libm-alias-ldouble.h>.
11881         (copysignl): Define using libm_alias_ldouble.
11882         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
11883         <libm-alias-ldouble.h>.
11884         (cosl): Define using libm_alias_ldouble.
11885         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
11886         <libm-alias-ldouble.h>.
11887         (erfl): Define using libm_alias_ldouble.
11888         (erfcl): Likewise.
11889         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
11890         <libm-alias-ldouble.h>.
11891         (expm1l): Define using libm_alias_ldouble.
11892         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
11893         <libm-alias-ldouble.h>.
11894         (fabsl): Define using libm_alias_ldouble.
11895         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
11896         <libm-alias-ldouble.h>.
11897         (floorl): Define using libm_alias_ldouble.
11898         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
11899         <libm-alias-ldouble.h>.
11900         (fmal): Define using libm_alias_ldouble.
11901         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
11902         <libm-alias-ldouble.h>.
11903         (frexpl): Define using libm_alias_ldouble.
11904         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
11905         libm_alias_ldouble.
11906         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
11907         <libm-alias-ldouble.h>.
11908         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
11909         libm_alias_ldouble.
11910         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
11911         <libm-alias-ldouble.h>.
11912         (getpayloadl): Define using libm_alias_ldouble.
11913         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
11914         <libm-alias-ldouble.h>.
11915         (llrintl): Define using libm_alias_ldouble.
11916         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
11917         <libm-alias-ldouble.h>.
11918         (llroundl): Define using libm_alias_ldouble.
11919         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
11920         <libm-alias-ldouble.h>.
11921         (logbl): Define using libm_alias_ldouble.
11922         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
11923         <libm-alias-ldouble.h>.
11924         (lrintl): Define using libm_alias_ldouble.
11925         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
11926         <libm-alias-ldouble.h>.
11927         (lroundl): Define using libm_alias_ldouble.
11928         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
11929         <libm-alias-ldouble.h>.
11930         (modfl): Define using libm_alias_ldouble.
11931         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
11932         <libm-alias-ldouble.h>.
11933         (nearbyintl): Define using libm_alias_ldouble.
11934         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
11935         <libm-alias-ldouble.h>.
11936         (nextafterl): Define using libm_alias_ldouble.
11937         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
11938         <libm-alias-ldouble.h>.
11939         (nextupl): Define using libm_alias_ldouble.
11940         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
11941         <libm-alias-ldouble.h>.
11942         (remquol): Define using libm_alias_ldouble.
11943         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
11944         <libm-alias-ldouble.h>.
11945         (rintl): Define using libm_alias_ldouble.
11946         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
11947         <libm-alias-ldouble.h>.
11948         (roundevenl): Define using libm_alias_ldouble.
11949         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
11950         <libm-alias-ldouble.h>.
11951         (roundl): Define using libm_alias_ldouble.
11952         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
11953         using libm_alias_ldouble.
11954         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
11955         <libm-alias-ldouble.h>.
11956         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
11957         Define using libm_alias_ldouble.
11958         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
11959         <libm-alias-ldouble.h>.
11960         (sincosl): Define using libm_alias_ldouble.
11961         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
11962         <libm-alias-ldouble.h>.
11963         (sinl): Define using libm_alias_ldouble.
11964         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
11965         <libm-alias-ldouble.h>.
11966         (tanhl): Define using libm_alias_ldouble.
11967         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
11968         <libm-alias-ldouble.h>.
11969         (tanl): Define using libm_alias_ldouble.
11970         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
11971         <libm-alias-ldouble.h>.
11972         (totalorderl): Define using libm_alias_ldouble.
11973         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
11974         <libm-alias-ldouble.h>.
11975         (totalordermagl): Define using libm_alias_ldouble.
11976         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
11977         <libm-alias-ldouble.h>.
11978         (truncl): Define using libm_alias_ldouble.
11979         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
11980         libm_alias_ldouble.
11981         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
11982         libm_alias_ldouble.
11983         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
11984         <libm-alias-ldouble.h>.
11985         (weak_alias): Do not undefine and redefine.
11986         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
11987         (copysignl): Define with long_double_symbol only if [IS_IN
11988         (libc)].
11989         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
11990         <libm-alias-ldouble.h>.
11991         (weak_alias): Do not undefine and redefine.
11992         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
11993         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
11994         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
11995         <libm-alias-ldouble.h>.
11996         (weak_alias): Do not undefine and redefine.
11997         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
11998         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
11999         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
12000         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
12001         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
12002         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
12003         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
12004         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
12005         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
12006         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
12007         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
12008         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
12009         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
12010         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
12011         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
12012         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
12013         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
12014         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
12015         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
12016         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
12017         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
12018         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
12019         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
12020         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
12021         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
12022         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
12024 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
12026         [BZ #22111]
12027         * malloc/malloc.c (tcache_shutting_down): Use bool type.
12028         (tcache_thread_freeres): Set tcache_shutting_down before
12029         freeing the tcache.
12030         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
12031         * malloc/tst-malloc-tcache-leak.c: New file.
12033 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12035         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
12036         back to powerpc32 file.
12037         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
12038         (memrchr): Add __memrchr_power8 to ifunc list.
12039         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
12040         extra bytes for unaligned inputs.
12042 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
12044         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
12045         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
12046         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
12047         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
12048         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
12050 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
12052         * sysdeps/arm/libm-test-ulps: Update.
12054         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
12055         <libm-alias-ldouble.h>.
12056         (asinhl): Define using libm_alias_ldouble.
12057         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
12058         <libm-alias-ldouble.h>.
12059         (cbrtl): Define using libm_alias_ldouble.
12060         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
12061         <libm-alias-ldouble.h>.
12062         (copysignl): Define using libm_alias_ldouble.
12063         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
12064         <libm-alias-ldouble.h>.
12065         (cosl): Define using libm_alias_ldouble.
12066         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
12067         <libm-alias-ldouble.h>.
12068         (erfl): Define using libm_alias_ldouble.
12069         (erfcl): Likewise.
12070         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
12071         <libm-alias-ldouble.h>.
12072         (fmal): Define using libm_alias_ldouble.
12073         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
12074         <libm-alias-ldouble.h>.
12075         (frexpl): Define using libm_alias_ldouble.
12076         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
12077         libm_alias_ldouble.
12078         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
12079         <libm-alias-ldouble.h>.
12080         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
12081         libm_alias_ldouble.
12082         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
12083         <libm-alias-ldouble.h>.
12084         (getpayloadl): Define using libm_alias_ldouble.
12085         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
12086         <libm-alias-ldouble.h>.
12087         (llrintl): Define using libm_alias_ldouble.
12088         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
12089         <libm-alias-ldouble.h>.
12090         (llroundl): Define using libm_alias_ldouble.
12091         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
12092         <libm-alias-ldouble.h>.
12093         (lrintl): Define using libm_alias_ldouble.
12094         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
12095         <libm-alias-ldouble.h>.
12096         (lroundl): Define using libm_alias_ldouble.
12097         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
12098         <libm-alias-ldouble.h>.
12099         (modfl): Define using libm_alias_ldouble.
12100         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
12101         <libm-alias-ldouble.h>.
12102         (nextupl): Define using libm_alias_ldouble.
12103         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
12104         <libm-alias-ldouble.h>.
12105         (remquol): Define using libm_alias_ldouble.
12106         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
12107         <libm-alias-ldouble.h>.
12108         (roundevenl): Define using libm_alias_ldouble.
12109         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
12110         <libm-alias-ldouble.h>.
12111         (roundl): Define using libm_alias_ldouble.
12112         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
12113         using libm_alias_ldouble.
12114         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
12115         <libm-alias-ldouble.h>.
12116         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
12117         <libm-alias-ldouble.h>.
12118         (setpayloadsigl): Define using libm_alias_ldouble.
12119         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
12120         <libm-alias-ldouble.h>.
12121         (sincosl): Define using libm_alias_ldouble.
12122         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
12123         <libm-alias-ldouble.h>.
12124         (sinl): Define using libm_alias_ldouble.
12125         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
12126         <libm-alias-ldouble.h>.
12127         (tanhl): Define using libm_alias_ldouble.
12128         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
12129         <libm-alias-ldouble.h>.
12130         (tanl): Define using libm_alias_ldouble.
12131         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
12132         <libm-alias-ldouble.h>.
12133         (totalorderl): Define using libm_alias_ldouble.
12134         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
12135         <libm-alias-ldouble.h>.
12136         (totalordermagl): Define using libm_alias_ldouble.
12137         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
12138         libm_alias_ldouble.
12139         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
12140         libm_alias_ldouble.
12142 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12144         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
12145         memmove_falkor.
12146         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
12147         (__libc_ifunc_impl_list): Likewise.
12148         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
12149         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
12151         * benchtests/bench-memmove-walk.c: New file.
12152         * benchtests/Makefile (string-benchset): Add it.
12154         * benchtests/bench-memset-walk.c: New file.
12155         * benchtests/Makefile (string-benchset): Add it.
12157         * benchtests/bench-memcpy-walk.c: New file.
12158         * benchtests/Makefile (string-benchset): Add it.
12160 2017-10-05  Florian Weimer  <fweimer@redhat.com>
12162         nscd: Eliminate compilation time dependency in the build output.
12163         * nscd/nscd_stat.c (STATDATA_VERSION)
12164         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
12165         (STATDATA_VERSION_FULL): New macro definitions.
12166         (compilation): Remove.
12167         (struct statdata): Adjust version member.
12168         (send_stats): Set version from STATDATA_VERSION_FULL.
12169         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
12171 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
12173         * configure.ac (--enable-add-ons): Remove option.
12174         (machine): Do not mention add-ons in comment.
12175         (LIBC_PRECONFIGURE): Likewise.
12176         (add_ons): Remove variable and sanity checks and logic to locate
12177         add-ons.
12178         (add_ons_automatic): Remove variable.
12179         (configured_add_ons): Likewise.
12180         (add_ons_sfx): Likewise.
12181         (add_ons_pfx): Likewise.
12182         (add_on_subdirs): Likewise.
12183         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
12184         consideration of add-ons in Implies handling.
12185         (sysdeps_add_ons): Likewise.
12186         * configure: Regenerated.
12187         * libidn/configure.ac: Remove.
12188         * libidn/configure: Likewise.
12189         * sysdeps/unix/inet/configure.ac: New file.
12190         * sysdeps/unix/inet/configure: New generated file.
12191         * sysdeps/unix/inet/Subdirs: Add libidn.
12192         * Makeconfig (sysdeps-srcdirs): Remove variable.
12193         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
12194         ($(common-objpfx)config.status): Do not depend on add-on files.
12195         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
12196         comment.
12197         (all-subdirs): Do not include $(add-on-subdirs).
12198         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
12199         * config.make.in (add-ons): Remove variable.
12200         (add-on-subdirs): Likewise.
12201         (sysdeps-add-ons): Likewise.
12202         * manual/Makefile (add-chapters): Remove.
12203         ($(objpfx)texis): Do not depend on $(add-chapters).
12204         (nonexamples): Do not handle $(add-chapters).
12205         (examples): Do not handle $(add-ons).
12206         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
12207         libc-texinfo.sh.
12208         * manual/install.texi (Installation): Do not mention add-ons.
12209         (--enable-add-ons): Do not document configure option.
12210         * INSTALL: Regenerated.
12211         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
12212         * manual/maint.texi (Hierarchy Conventions): Do not mention
12213         add-ons.
12214         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
12215         --enable-add-ons.
12216         * scripts/gen-sorted.awk: Do not handle Subdirs files from
12217         add-ons.
12218         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
12219         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
12221 2017-10-05  Andreas Schwab  <schwab@suse.de>
12223         [BZ #15142]
12224         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
12225         (_IO_flush_all_lockp): Always lock list_all_lock.
12226         (_IO_flush_all_linebuffered): Likewise.
12227         (_IO_unbuffer_all): Likewise.
12229 2017-10-05  Florian Weimer  <fweimer@redhat.com>
12231         [BZ #15436]
12232         Do not flush stdio streams on abort.
12233         * stdlib/abort.c (fflush): Remove macro definition.
12234         (abort): Remove stages related to stdio flushing.
12236 2017-10-05  Florian Weimer  <fweimer@redhat.com>
12238         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
12240 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
12242         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12244 2017-10-05  Florian Weimer  <fweimer@redhat.com>
12246         * support/support_format_hostent.c (support_format_hostent): Add
12247         more error information for NETDB_INTERNAL.
12249 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
12251         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
12252         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
12253         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
12254         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
12255         AC_DEFINE if multi-arch is enabled.
12256         * sysdeps/i386/configure: Regenerated.
12258 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
12260         * Makeconfig (+link-static-before-libc): Use
12261         $(DEFAULT-LDFLAGS-$(@F)).
12262         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
12263         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
12264         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
12266 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
12268         * elf/Makefile (tests): Add tst-main1.
12269         (modules-names): Add tst-main1mod.
12270         ($(objpfx)tst-main1): New.
12271         (CRT-tst-main1): Likewise.
12272         (LDFLAGS-tst-main1): Likewise.
12273         (LDLIBS-tst-main1): Likewise.
12274         (tst-main1mod.so-no-z-defs): Likewise.
12275         * elf/tst-main1.c: New file.
12276         * elf/tst-main1mod.c: Likewise.
12278 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
12280         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
12282 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
12284         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
12285         (fma): Define using libm_alias_double.
12286         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
12287         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
12288         <math_ldbl_opt.h>.
12289         (fmal): Do not define as compat symbol here.
12290         * sysdeps/alpha/fpu/s_fma.c: New file.
12292 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12294         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
12296 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
12298         [BZ #22229]
12299         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
12300         <math_ldbl_opt.h>
12301         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
12302         and libc.
12303         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
12304         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
12305         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
12306         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
12307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12308         Include <math_ldbl_opt.h>
12309         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
12310         and libc.
12311         (compat_symbol): Undefine and redefine.
12312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
12313         <math_ldbl_opt.h>
12314         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
12315         (compat_symbol): Undefine and redefine.
12316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
12317         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
12318         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
12319         GLIBC_2_1 for libm.
12320         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
12321         GLIBC_2.0 copysignl symbol.
12322         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
12323         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
12325         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
12327 2017-10-04  Florian Weimer  <fweimer@redhat.com>
12329         * scripts/check-local-headers.sh: Ignore nspr4 header file
12330         directory in addition to nspr.
12332 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
12334         [BZ #17956]
12335         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
12336         * configure: Regenerate.
12337         * crypt/Makefile (nss-cpp-flags): New variable.
12338         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
12339         (CPPFLAGS-md5-crypt.c): Use it.
12340         * scripts/check-local-headers.sh: Ignore nspr header file
12341         directory.
12343 2017-10-04  Andreas Schwab  <schwab@suse.de>
12345         * nis/Makefile (services): Remove compat.
12346         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
12347         ($(objpfx)libnss_compat.so): Remove rule.
12348         * nis/Versions (libnss_compat): Remove.
12349         * nss/Makefile (services): Add compat.
12350         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
12351         * nss/Versions (libnss_compat): Define.
12352         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
12353         Don't include <rpc/types.h>.  Replace bool_t by bool.
12354         * nss/nss_compat/compat-initgroups.c: Likewise.
12355         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
12356         instead of <rpcsrv/ypclnt.h>.
12357         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
12358         yp_get_default_domain.
12359         * nss/nss_compat/compat-pwd.c: Likewise.
12360         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
12361         yp_get_default_domain.
12362         * nss/nss_compat/nisdomain.c: New file.
12363         * nss/nss_compat/nisdomain.h: Likewise.
12365 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12367         [BZ #22244]
12368         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
12369         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
12371 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12373         [BZ #22243]
12374         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
12375         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
12377 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12379         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
12380         "movl main@GOTOFF(%ebx), %eax".
12382 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12384         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
12385         allow undefined _DYNAMIC in PIE libc.a.
12386         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
12387         Likewse.
12389 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12391         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
12392         check _DYNAMIC.
12394 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12396         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
12397         check _DYNAMIC.
12399 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12401         * math/test-math-iscanonical.cc (error): Replace bool with int.
12403 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
12405         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
12406         (modf): Define using libm_alias_double, only if [!__modf].
12407         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
12408         <libm-alias-double.h>.
12409         (modf): Define using libm_alias_double, only if [!__modf].
12410         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
12411         compat symbol here.
12412         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
12413         (weak_alias): Do not undefine and redefine.
12414         (strong_alias): Likewise.
12415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
12416         (weak_alias): Likewise.
12417         (strong_alias): Likewise.
12419         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
12420         (logb): Define using libm_alias_double, only if [!__logb].
12421         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
12422         <libm-alias-double.h>.
12423         (logb): Define using libm_alias_double, only if [!__logb].
12424         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
12425         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
12426         (weak_alias): Do not undefine and redefine.
12427         (strong_alias): Likewise.
12428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
12429         (weak_alias): Likewise.
12430         (strong_alias): Likewise.
12432 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12434         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
12435         Check SHARED instead PIC.
12437 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
12439         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
12440         [!__fmaf] (fmaf): Define using libm_alias_float.
12442         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
12443         (frexp): Define using libm_alias_double.
12444         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
12445         <libm-alias-double.h>.
12446         (frexp): Define using libm_alias_double.
12447         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
12448         compat symbol here.
12450 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
12452         [BZ #22235]
12453         * math/math.h: Trivial fix for unbalanced parentheses in comment.
12454         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
12455         (CFLAGS-test-math-iscanonical.cc): New variable.
12456         * math/test-math-iscanonical.cc: New file.
12457         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
12458         Provide a C++ implementation based on function overloading,
12459         rather than using __MATH_TG, which uses C-only builtins.
12460         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
12461         Likewise.
12462         * sysdeps/powerpc/powerpc64le/Makefile
12463         (CFLAGS-test-math-iscanonical.cc): New variable.
12465 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
12467         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
12468         (ceil): Define using libm_alias_double.
12469         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
12470         (floor): Define using libm_alias_double.
12471         * sysdeps/ieee754/dbl-64/s_llround.c: Include
12472         <libm-alias-double.h>.
12473         (llround): Define using libm_alias_double.
12474         * sysdeps/ieee754/dbl-64/s_lround.c: Include
12475         <libm-alias-double.h>.
12476         (lround): Define using libm_alias_double.
12477         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
12478         <libm-alias-double.h>.
12479         (nearbyint): Define using libm_alias_double.
12480         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
12481         <libm-alias-double.h>.
12482         (remquo): Define using libm_alias_double.
12483         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
12484         (rint): Define using libm_alias_double.
12485         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
12486         (round): Define using libm_alias_double.
12487         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
12488         (trunc): Define using libm_alias_double.
12489         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
12490         <libm-alias-double.h>.
12491         (ceil): Define using libm_alias_double.
12492         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
12493         <libm-alias-double.h>.
12494         (floor): Define using libm_alias_double.
12495         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
12496         <libm-alias-double.h>.
12497         (llround): Define using libm_alias_double.
12498         [_LP64] (lround): Likewise.
12499         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
12500         <libm-alias-double.h>.
12501         [!_LP64] (lround): Define using libm_alias_double.
12502         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
12503         <libm-alias-double.h>.
12504         (nearbyint): Define using libm_alias_double.
12505         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
12506         <libm-alias-double.h>.
12507         (remquo): Define using libm_alias_double.
12508         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
12509         <libm-alias-double.h>.
12510         (rint): Define using libm_alias_double.
12511         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
12512         <libm-alias-double.h>.
12513         (round): Define using libm_alias_double.
12514         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
12515         <libm-alias-double.h>.
12516         (trunc): Define using libm_alias_double.
12517         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
12518         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
12519         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
12520         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
12521         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
12522         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
12523         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
12524         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
12525         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
12527 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12529         * math/w_remainder.c: New file.
12530         * math/w_remainderf.c: New file.
12531         * math/w_remainderl.c: New file.
12533 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12535         * elf/rtld.c (BOOTSTRAP_MAP): New.
12536         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
12537         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12538         Likewise.
12539         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12540         Likewise.
12541         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12542         Likewise.
12544 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12546         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
12547         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
12548         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
12549         rtld_hidden_data_ver): Define to empty.
12550         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
12551         __assert_perror_fail): Likewise.
12552         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
12553         (__rewinddir): Likewise.
12554         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
12555         (__profile_frequency): Likewise.
12556         * include/setjmp.h (__sigsetjmp): Likewise.
12557         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
12558         __libc_sigaction): Likewise.
12559         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
12560         not set hidden attribute.
12561         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
12562         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
12563         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
12564         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
12565         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
12566         __fxstatat64): Likewise.
12567         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
12568         (__uname): Likewise.
12569         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
12570         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
12571         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
12572         (NO_RTLD_HIDDEN): Set.
12573         * sysdeps/mach/hurd/configure: Refresh.
12574         * config.h.in: Refresh.
12576 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
12578         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
12579         (atan): Define using libm_alias_double.
12580         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
12581         (tan): Define using libm_alias_double.
12582         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
12583         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
12585         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
12586         define as weak alias of __atan.  Do not define any aliases if
12587         [__atan].
12588         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
12589         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
12590         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
12591         as weak alias of __tan.  Do not define any aliases if [__tan].
12592         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
12593         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
12594         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
12595         __atan.
12596         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
12597         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
12598         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
12599         and define as weak alias of __atan.
12600         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
12601         __atan.
12602         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
12603         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
12604         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
12605         define as weak alias of __tan.
12607 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12609         * math/w_lgamma.c: New file.
12610         * math/w_lgammaf.c: New file.
12611         * math/w_lgammal.c: New file.
12613 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12615         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
12616         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
12617         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
12618         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
12619         * sysdeps/ieee754/flt-32/w_logf.c: New file.
12620         * sysdeps/ieee754/flt-32/w_powf.c: New file.
12621         * sysdeps/i386/fpu/w_log2f.c: New file.
12622         * sysdeps/i386/fpu/w_logf.c: New file.
12623         * sysdeps/i386/fpu/w_powf.c: New file.
12624         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
12625         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
12626         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
12628 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12629             H.J. Lu  <hongjiu.lu@intel.com>
12631         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
12632         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
12633         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
12634         * sysdeps/ieee754/flt-32/w_expf.c: New file.
12635         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
12636         the new expf code.
12637         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
12638         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
12639         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
12640         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
12641         * sysdeps/i386/fpu/w_exp2f.c: New file.
12642         * sysdeps/i386/fpu/w_expf.c: New file.
12643         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
12644         * sysdeps/x86_64/fpu/w_expf.c: New file.
12646 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12648         * math/Versions (logf): New libm symbol at GLIBC_2.27.
12649         (log2f): Likewise.
12650         (powf): Likewise.
12651         * math/w_log2f.c: New file.
12652         * math/w_logf.c: New file.
12653         * math/w_powf.c: New file.
12654         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
12655         * math/w_logf_compat.c (__logf_compat): Likewise.
12656         * math/w_powf_compat.c (__powf_compat): Likewise.
12657         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
12658         * sysdeps/ia64/fpu/e_logf.S: Likewise.
12659         * sysdeps/ia64/fpu/e_powf.S: Likewise.
12660         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
12661         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12662         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12663         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12664         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12665         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12666         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12667         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12668         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12669         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12670         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12671         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12673         Likewise.
12674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12675         Likewise.
12676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12677         Likewise.
12678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12679         Likewise.
12680         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12681         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12682         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12683         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12684         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12685         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12686         Likewise.
12687         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12688         Likewise.
12689         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12690         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12691         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12693 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12695         * sysdeps/powerpc/powerpc64/multiarch/Makefile
12696         (sysdep_routines): Add memrchr_power8.
12697         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
12698         (memrchr): Add __memrchr_power8 to list of memrchr functions.
12699         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
12700         New file.
12701         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
12702         (memrchr): Add __memrchr_power8 to ifunc list.
12703         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
12705 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12707         [BZ #18822]
12708         * sysdeps/unix/sysv/linux/posix_fadvise64.c
12709         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
12710         libc_hidden_def.
12711         * sysdeps/unix/sysv/linux/posix_fallocate64.c
12712         (__posix_fallocate64_l64): Likewise.
12714 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12716         [BZ #18822]
12717         * sysdeps/unix/sysv/linux/sched_setaffinity.c
12718         (__sched_setaffinity_new): Add libc_hidden_proto and
12719         libc_hidden_def.
12721 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12723         [BZ #18822]
12724         * include/glob.h (__glob64): Add libc_hidden_proto.
12725         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
12726         libc_hidden_def.
12728 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12730         [BZ #18822]
12731         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
12732         attribute_hidden.
12734 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12736         [BZ #18822]
12737         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
12739 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12741         [BZ #18822]
12742         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
12743         libc_hidden_def.
12745 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12747         [BZ #18822]
12748         * csu/version.c (__libc_print_version): Add attribute_hidden.
12750 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12752         [BZ #18822]
12753         * include/libc-internal.h (__init_misc): Add attribute_hidden.
12755 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12757         [BZ #18822]
12758         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
12760 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12762         [BZ #18822]
12763         * nscd/nscd_helper.c (__nis_hash): New prototype.
12765 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12767         [BZ #18822]
12768         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
12769         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
12770         libc_hidden_def.
12771         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
12772         * termios/tcgetattr.c (__tcgetattr): Likewise.
12774 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12776         [BZ #18822]
12777         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
12778         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
12779         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
12780         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
12781         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
12783 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12785         [BZ #18822]
12786         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
12788 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12790         [BZ #18822]
12791         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
12792         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
12794 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12796         [BZ #18822]
12797         * intl/hash-string.h (__hash_string): Add attribute_hidden.
12799 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12801         [BZ #18822]
12802         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
12803         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
12805 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12807         [BZ #18822]
12808         * include/ifreq.h: New file.
12809         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
12810         (__ifreq): Likewise.
12811         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
12812         (__ifreq): Likewise.
12814 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12816         [BZ #18822]
12817         * include/idna.h: New file.
12818         * inet/getnameinfo.c: Include <idna.h> instead of
12819         <libidn/idna.h>.
12820         (__idna_to_unicode_lzlz): Removed.
12821         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
12822         <libidn/idna.h>.
12823         (__idna_to_ascii_lz): Removed.
12824         (__idna_to_unicode_lzlz): Likewise.
12826 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12828         [BZ #18822]
12829         * include/plural-exp.h: New file.
12830         * intl/plural-exp.c: Include <plural-exp.h> instead of
12831         "plural-exp.h".
12833 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12835         [BZ #18822]
12836         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
12837         "getsourcefilter.h".
12838         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
12839         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
12840         "getsourcefilter.h".
12841         (__get_sol): Removed.
12843 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12845         [BZ #18822]
12846         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
12847         to ...
12848         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
12850 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12852         [BZ #18822]
12853         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
12854         attribute_hidden.
12856 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12858         [BZ #18822]
12859         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
12861 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12863         [BZ #18822]
12864         * include/search.h (__tdestroy): Add libc_hidden_proto.
12865         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
12867 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12869         [BZ #18822]
12870         * include/assert.h (__assert_fail_base): Add attribute_hidden.
12872 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12874         [BZ #18822]
12875         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
12876         attribute_hidden.
12878 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12880         [BZ #18822]
12881         * include/signal.h (__kill): Add libc_hidden_proto.
12882         (__sigblock): Likewise.
12883         (__sigprocmask): Likewise.
12884         (__sigaltstack): Likewise.
12885         * signal/kill.c (__kill): Add libc_hidden_def.
12886         * signal/sigblock.c (__sigblock): Likewise.
12887         * signal/sigprocmask.c (__sigprocmask): Likewise.
12888         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
12889         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
12890         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
12891         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
12892         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
12893         Likewise.
12894         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
12895         Likewise.
12896         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
12897         (__sigprocmask): Likewise.
12898         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
12899         Likewise.
12900         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
12901         (__sigprocmask): Likewise.
12902         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
12903         Likewise.
12905 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12907         [BZ #18822]
12908         * include/string.h (__strsep): Add libc_hidden_proto.
12909         * string/strsep.c (__strsep): Add libc_hidden_def.
12911 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12913         [BZ #18822]
12914         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
12915         attribute_hidden.
12916         (__spawni): Likewise.
12918 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12920         [BZ #18822]
12921         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
12922         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
12923         libc_hidden_def.
12925 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12927         [BZ #18822]
12928         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
12930 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12932         [BZ #18822]
12933         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
12934         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
12935         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
12936         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
12937         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
12938         Likewise.
12939         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
12940         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
12942 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12944         [BZ #18822]
12945         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
12946         (__dcigettext): Likewise.
12948 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12950         [BZ #18822]
12951         * include/sys/sysinfo.h (__get_nprocs_conf): Add
12952         libc_hidden_proto.
12953         (__get_nprocs): Likewise.
12954         (__get_phys_pages): Likewise.
12955         (__get_avphys_pages): Likewise.
12956         (__get_child_max): Add attribute_hidden.
12957         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
12958         (__get_nprocs): Likewise.
12959         (__get_phys_pages): Likewise.
12960         (__get_avphys_pages): Likewise.
12961         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
12962         libc_hidden_def.
12963         (__get_nprocs): Likewise.
12964         (__get_phys_pages): Likewise.
12965         (__get_avphys_pages): Likewise.
12966         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
12967         libc_hidden_def.
12968         (__get_nprocs_conf): Likewise.
12969         (__get_phys_pages): Likewise.
12970         (__get_avphys_pages): Likewise.
12972 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12974         [BZ #18822]
12975         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
12976         attribute_hidden.
12977         (__netlink_close): Likewise.
12978         (__netlink_free_handle): Likewise.
12979         (__netlink_request): Likewise.
12981 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12983         [BZ #18822]
12984         * include/rpc/rpc.h (__rpc_thread_variables): Add
12985         attribute_hidden.
12986         (__rpc_thread_svc_cleanup): Likewise.
12987         (__rpc_thread_clnt_cleanup): Likewise.
12988         (__rpc_thread_key_cleanup): Likewise.
12990 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12992         [BZ #18822]
12993         * include/sys/uio.h (__readv): Add libc_hidden_proto.
12994         (__writev): Likewise.
12995         * misc/readv.c (__readv): Add libc_hidden_def.
12996         * misc/writev.c (__writev): Likewise.
12997         * sysdeps/posix/readv.c (__readv): Likewise.
12998         * sysdeps/posix/writev.c (__writev): Likewise.
12999         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
13000         (__readv): Likewise.
13001         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
13002         (__writev): Likewise.
13004 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13006         [BZ #18822]
13007         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
13008         (__regcomp): Add libc_hidden_proto.
13009         (__regexec): Likewise.
13010         (__regfree): Likewise.
13011         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
13012         (__regfree): Likewise.
13013         * posix/regexec.c (__regexec): Likewise.
13015 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13017         [BZ #18822]
13018         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
13019         (__getutent): Likewise.
13020         (__getutid): Likewise.
13021         (__getutline): Likewise.
13022         (__pututline): Likewise.
13023         (__getutent_r): Likewise.
13024         (__getutid_r): Likewise.
13025         (__getutline_r): Likewise.
13026         (__utmpname): Add attribute_hidden.
13027         (__setutent): Likewise.
13028         (__endutent): Likewise.
13029         * login/getutent.c (__getutent): Add libc_hidden_def.
13030         * login/getutent_r.c (__getutent_r): Likewise.
13031         (__pututline): Likewise.
13032         * login/getutid.c (__getutid): Likewise.
13033         * login/getutid_r.c (__getutid_r): Likewise.
13034         * login/getutline.c (__getutline): Likewise.
13035         * login/getutline_r.c (__getutline_r): Likewise.
13036         * login/updwtmp.c (__updwtmp): Likewise.
13038 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13040         [BZ #18822]
13041         * include/dirent.h (__opendir): Always add attribute_hidden.
13042         (__fdopendir): Likewise.
13043         (__closedir): Likewise.
13044         (__readdir): Likewise.
13045         (__readdir64): Add libc_hidden_proto.
13046         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
13047         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
13048         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
13049         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
13050         New alias.
13052 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13054         [BZ #18822]
13055         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
13056         * include/netdb.h (__gethostbyaddr_r): Likewise.
13057         (__gethostbyname_r): Likewise.
13058         (__gethostbyname2_r): Likewise.
13059         (__getnetbyaddr_r): Likewise.
13060         (__getnetbyname_r): Likewise.
13061         (__getservbyname_r): Likewise.
13062         (__getservbyport_r): Likewise.
13063         (__getprotobyname_r): Likewise.
13064         (__getprotobynumber_r): Likewise.
13065         (__getnetgrent_r): Likewise.
13066         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
13067         (__getrpcbynumber_r): Likewise.
13068         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
13070 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13072         [BZ #18822]
13073         * include/stdio.h (__fcloseall): Add attribute_hidden.
13074         (__getline): Likewise.
13075         (__path_search): Likewise.
13076         (__gen_tempname): Likewise.
13077         (__libc_message): Likewise.
13078         (__flockfile): Likewise.
13079         (__funlockfile): Likewise.
13080         (__fxprintf): Likewise.
13081         (__fxprintf_nocancel): Likewise.
13083 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13085         [BZ #18822]
13086         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
13087         (__sgetsgent_r): Likewise.
13089 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13091         [BZ #18822]
13092         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
13093         (__statfs64): Likewise.
13094         (__fstatfs64): Likewise.
13095         * include/sys/statvfs.h (__statvfs64): Likewise.
13096         (__fstatvfs64): Likewise.
13097         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
13098         (__statfs_filesize_max): Likewise.
13099         (__statfs_symlinks): Likewise.
13100         (__statfs_chown_restricted): Likewise.
13102 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13104         [BZ #18822]
13105         * include/time.h (__tzstring): Add attribute_hidden.
13106         (__tzfile_read): Likewise.
13107         (__tzfile_compute): Likewise.
13108         (__tzfile_default): Likewise.
13109         (__tzset_parse_tz): Likewise.
13110         (__offtime): Likewise.
13111         (__asctime_r): Likewise.
13112         (__tzset): Likewise.
13113         (__tz_convert): Likewise.
13114         (__getdate_r): Likewise.
13115         (__getclktck): Likewise.
13117 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13119         [BZ #18822]
13120         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
13121         (__nscd_unmap): Likewise.
13122         (__nscd_cache_search): Likewise.
13123         (__nscd_get_nl_timestamp): Likewise.
13124         (__nscd_getpwnam_r): Likewise.
13125         (__nscd_getpwuid_r): Likewise.
13126         (__nscd_getgrnam_r): Likewise.
13127         (__nscd_getgrgid_r): Likewise.
13128         (__nscd_gethostbyname_r): Likewise.
13129         (__nscd_gethostbyname2_r): Likewise.
13130         (__nscd_gethostbyaddr_r): Likewise.
13131         (__nscd_getai): Likewise.
13132         (__nscd_getgrouplist): Likewise.
13133         (__nscd_getservbyname_r): Likewise.
13134         (__nscd_getservbyport_r): Likewise.
13135         (__nscd_innetgr): Likewise.
13136         (__nscd_setnetgrent): Likewise.
13138 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13140         [BZ #18822]
13141         * include/gmp.h: Declare internal functions only if _ISOMAC is
13142         undefined.
13143         (__mpn_extract_double): Add attribute_hidden.
13144         (__mpn_extract_long_double): Likewise.
13145         (__mpn_extract_float128): Likewise.
13146         (__mpn_construct_float): Likewise.
13147         (__mpn_construct_double): Likewise.
13148         (__mpn_construct_long_double): Likewise.
13149         (__mpn_construct_float128): Likewise.
13150         (mpn_add_1): Likewise.
13151         (mpn_addmul_1): Likewise.
13152         (mpn_add_n): Likewise.
13153         (mpn_cmp): Likewise.
13154         (mpn_divrem): Likewise.
13155         (mpn_lshift): Likewise.
13156         (mpn_mul): Likewise.
13157         (mpn_mul_1): Likewise.
13158         (mpn_rshift): Likewise.
13159         (mpn_sub_1): Likewise.
13160         (mpn_submul_1): Likewise.
13161         (mpn_sub_n): Likewise.
13163 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13165         [BZ #18822]
13166         * include/wchar.h (__wcsnlen): Add attribute_hidden.
13167         (__wcscat): Likewise.
13168         (__btowc): Likewise.
13169         (__wcrtomb): Likewise.
13170         (__mbsrtowcs): Likewise.
13171         (__wcsrtombs): Likewise.
13172         (__mbsnrtowcs): Likewise.
13173         (__wcsnrtombs): Likewise.
13174         (__wcsncpy): Likewise.
13175         (__wcpncpy): Likewise.
13176         (__wmemcpy): Likewise.
13177         (__wmempcpy): Likewise.
13178         (__wmemmove): Likewise.
13179         (__wcschrnul): Likewise.
13180         (__vfwscanf): Likewise.
13181         (__vswprintf): Likewise.
13182         (__fwprintf): Likewise.
13183         (__vfwprintf): Likewise.
13185 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13187         [BZ #18822]
13188         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
13189         (__getgrgid_r): Likewise.
13190         (__getgrnam_r): Likewise.
13191         * include/pwd.h (__getpwuid_r): Likewise.
13192         (__getpwnam_r): Likewise.
13193         (__fgetpwent_r): Likewise.
13194         * include/shadow.h (__getspnam_r): Likewise.
13195         (__sgetspent_r): Likewise.
13196         (__fgetspent_r): Likewise.
13198 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13200         [BZ #18822]
13201         * include/unistd.h (__access): Add attribute_hidden.
13202         (__lseek64): Likewise.
13203         (__libc_pread64): Likewise.
13204         (__pipe2): Likewise.
13205         (__sleep): Likewise.
13206         (__chdir): Likewise.
13207         (__fchdir): Likewise.
13208         (__getcwd): Likewise.
13209         (__rmdir): Likewise.
13210         (__execvpe): Likewise.
13211         (__execve): Likewise.
13212         (__setsid): Likewise.
13213         (__getuid): Likewise.
13214         (__geteuid): Likewise.
13215         (__getgid): Likewise.
13216         (__getegid): Likewise.
13217         (__getgroups): Likewise.
13218         (__group_member): Likewise.
13219         (__ttyname_r): Likewise.
13220         (__isatty): Likewise.
13221         (__readlink): Likewise.
13222         (__unlink): Likewise.
13223         (__gethostname): Likewise.
13224         (__profil): Likewise.
13225         (__getdtablesize): Likewise.
13226         (__brk): Likewise.
13227         (__ftruncate): Likewise.
13228         (__ftruncate64): Likewise.
13230 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13232         [BZ #18822]
13233         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
13234         * argp/argp-fs-xinl.c: Likewise.
13235         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
13236         * argp/argp-parse.c: Include <argp.h>.
13237         * argp/argp-xinl.c: Likewise.
13238         * include/argp-fmtstream.h: New file.
13239         * include/argp.h (__argp_error): Add attribute_hidden.
13240         (__argp_failure): Likewise.
13241         (__argp_input): Likewise.
13242         (__argp_state_help): Likewise.
13244 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13246         [BZ #18822]
13247         * include/wchar.h (____wcstof_l_internal): New prototype.
13248         (____wcstod_l_internal): Likewise.
13249         (____wcstold_l_internal): Likewise.
13250         (____wcstol_l_internal): Likewise.
13251         (____wcstoul_l_internal): Likewise.
13252         (____wcstoll_l_internal): Likewise.
13253         (____wcstoull_l_internal): Likewise.
13254         (____wcstof128_l_internal): Likewise.
13255         * sysdeps/ieee754/float128/wcstof128.c
13256         (____wcstof128_l_internal): Removed.
13257         * sysdeps/ieee754/float128/wcstof128_l.c
13258         (____wcstof128_l_internal): Likewise.
13259         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
13260         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
13261         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
13262         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
13263         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
13264         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
13265         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
13266         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
13267         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
13268         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
13270 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13272         [BZ #18822]
13273         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
13274         instead of <sys/statvfs.h>.
13275         (__internal_statvfs): Removed.
13276         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
13277         instead of <sys/statvfs.h>.
13278         (__internal_statvfs64): Removed.
13279         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
13280         "internal_statvfs.h" instead of <sys/statvfs.h>.
13281         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
13282         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
13283         instead of <sys/statvfs.h>.
13284         (__internal_statvfs): Removed.
13285         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
13286         instead of <sys/statvfs.h>.
13287         (__internal_statvfs64): Removed.
13289 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13291         [BZ #18822]
13292         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
13293         (__gconv_close): Likewise.
13294         (__gconv): Likewise.
13295         (__gconv_find_transform): Likewise.
13296         (__gconv_lookup_cache): Likewise.
13297         (__gconv_compare_alias_cache): Likewise.
13298         (__gconv_load_cache): Likewise.
13299         (__gconv_get_path): Likewise.
13300         (__gconv_close_transform): Likewise.
13301         (__gconv_release_cache): Likewise.
13302         (__gconv_find_shlib): Likewise.
13303         (__gconv_release_shlib): Likewise.
13304         (__gconv_get_builtin_trans): Likewise.
13305         (__gconv_compare_alias): Likewise.
13306         * include/dlfcn.h (_dlerror_run): Likewise.
13307         * include/stdio.h (__fortify_fail_abort): Likewise.
13308         * include/time.h (__tz_compute): Likewise.
13309         (__strptime_internal): Likewise.
13310         * intl/gettextP.h (_nl_find_domain): Likewise.
13311         (_nl_load_domain): Likewise.
13312         (_nl_find_msg): Likewise.
13313         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
13314         (EXTRACT_PLURAL_EXPRESSION): Likewise.
13315         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
13316         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
13317         (__gai_find_request): Likewise.
13318         (__gai_remove_request): Likewise.
13319         (__gai_notify): Likewise.
13320         (__gai_notify_only): Likewise.
13321         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
13322         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
13323         (_dl_non_dynamic_init): Likewise.
13324         (_dl_aux_init): Likewise.
13325         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
13326         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
13327         Likewise.
13328         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
13329         (__wcsmbs_clone_conv): Likewise.
13330         (__wcsmbs_named_conv): Likewise.
13332 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13334         [BZ #18822]
13335         * include/stdlib.h (__random): Add attribute_hidden.
13336         (__random_r): Likewise.
13337         (__srandom_r): Likewise.
13338         (__initstate_r): Likewise.
13339         (__setstate_r): Likewise.
13340         (__erand48_r): Likewise.
13341         (__nrand48_r): Likewise.
13342         (__jrand48_r): Likewise.
13343         (__srand48_r): Likewise.
13344         (__seed48_r): Likewise.
13345         (__lcong48_r): Likewise.
13346         (__drand48_iterate): Likewise.
13347         (__setenv): Likewise.
13348         (__unsetenv): Likewise.
13349         (__clearenv): Likewise.
13350         (__ptsname_r): Likewise.
13351         (__posix_openpt): Likewise.
13352         (__add_to_environ): Likewise.
13353         (__realpath): Add libc_hidden_proto.
13354         (__ecvt_r): Likewise.
13355         (__fcvt_r): Likewise.
13356         (__qecvt_r): Likewise.
13357         (__qfcvt_r): Likewise.
13358         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
13359         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
13361 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13363         [BZ #18822]
13364         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
13365         * include/time.h (__mktime_internal): Likewise.
13366         * libio/iolibio.h (__fopen_internal): Likewise.
13368 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
13370         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
13371         pointer in frame.
13372         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
13373         Correct offset used to restore PIC register.
13375 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
13377         [BZ libc/22165]
13378         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
13379         code to load address of __getcontext_ret when generating PIC code.
13381 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
13383         * elf/Makefile (tests-static-internal): Add
13384         tst-tls1-static-non-pie.
13385         (LDFLAGS-tst-tls1-static-non-pie): New.
13386         * elf/tst-tls1-static-non-pie.c: New file.
13388 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
13390         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
13391         (asinh): Define using libm_alias_double.
13392         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
13393         (cbrt): Define using libm_alias_double.
13394         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
13395         <libm-alias-double.h>.
13396         (copysign): Define using libm_alias_double.
13397         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
13398         (erf): Define using libm_alias_double.
13399         (erfc): Likewise.
13400         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
13401         (expm1): Define using libm_alias_double.
13402         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
13403         (fabs): Define using libm_alias_double.
13404         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
13405         libm_alias_double.
13406         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
13407         <libm-alias-double.h>.
13408         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
13409         libm_alias_double.
13410         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
13411         <libm-alias-double.h>.
13412         (getpayload): Define using libm_alias_double.
13413         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
13414         <libm-alias-double.h>.
13415         (llrint): Define using libm_alias_double.
13416         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
13417         (lrint): Define using libm_alias_double.
13418         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
13419         <libm-alias-double.h>.
13420         (nextup): Define using libm_alias_double.
13421         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
13422         <libm-alias-double.h>.
13423         (roundeven): Define using libm_alias_double.
13424         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
13425         libm_alias_double.
13426         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
13427         <libm-alias-double.h>.
13428         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
13429         using libm_alias_double.
13430         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
13431         (cos): Define using libm_alias_double.
13432         (sin): Likewise.
13433         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
13434         <libm-alias-double.h>.
13435         (sincos): Define using libm_alias_double.
13436         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
13437         (tanh): Define using libm_alias_double.
13438         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
13439         <libm-alias-double.h>.
13440         (totalorder): Define using libm_alias_double.
13441         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
13442         <libm-alias-double.h>.
13443         (totalordermag): Define using libm_alias_double.
13444         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
13445         libm_alias_double.
13446         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
13447         libm_alias_double.
13448         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
13449         <libm-alias-double.h>.
13450         (getpayload): Define using libm_alias_double.
13451         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
13452         <libm-alias-double.h>.
13453         (roundeven): Define using libm_alias_double.
13454         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
13455         <libm-alias-double.h>.
13456         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
13457         <libm-alias-double.h>.
13458         (totalorder): Define using libm_alias_double.
13459         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
13460         <libm-alias-double.h>.
13461         (totalordermag): Define using libm_alias_double.
13462         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
13463         libc compat symbol here.
13464         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
13465         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
13466         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
13467         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
13468         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
13469         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
13470         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
13471         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
13472         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
13473         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
13475 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
13477         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
13478         _dl_relocate_static_pie instead of _dl_start to compute load
13479         address in static PIE.  Return 0 if _DYNAMIC is undefined for
13480         static executable.
13482 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
13484         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
13485         _DYNAMIC is undefined for static executable.
13487 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
13489         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
13491 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
13493         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13495 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
13497         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
13498         (__ieee754_lgamma_r): Use fabs rather than __fabs.
13499         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
13500         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
13501         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
13502         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
13503         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
13504         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
13505         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
13506         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
13507         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
13508         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
13509         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
13510         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
13511         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
13512         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
13513         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
13515 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
13517         * math/bits/cmathcalls.h (cimag): Remove inline.
13518         (creal): Remove inline.
13519         (conj): Remove inline.
13521 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13523         * math/Makefile (type-float-routines): Add e_powf_log2_data.
13524         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
13525         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
13526         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
13527         (issignalingf_inline): Likewise.
13528         (POWF_LOG2_TABLE_BITS): Likewise.
13529         (POWF_LOG2_POLY_ORDER): Likewise.
13530         (POWF_SCALE_BITS): Likewise.
13531         (POWF_SCALE): Likewise.
13532         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
13533         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
13534         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
13536 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13538         * math/Makefile (type-float-routines): Add e_log2f_data.
13539         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
13540         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
13541         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
13542         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
13543         * sysdeps/i386/fpu/e_log2f_data.c: New file.
13544         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
13545         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
13547 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13549         * math/Makefile (type-float-routines): Add e_logf_data.
13550         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
13551         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
13552         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
13553         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
13554         * sysdeps/i386/fpu/e_logf_data.c: New file.
13555         * sysdeps/ia64/fpu/e_logf_data.c: New file.
13556         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
13558 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
13560         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
13561         undefined _DYNAMIC in PIE libc.a.
13562         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
13563         Likewse.
13565 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
13567         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
13568         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
13569         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
13570         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
13571         (__signbit): Remove.
13572         (__signbitl): Remove.
13573         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
13574         (__signbit): Remove.
13575         (__signbitl): Remove.
13576         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
13577         (__signbit): Remove.
13578         (__signbitl): Remove.
13579         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
13580         (__signbit): Remove.
13581         (__signbitl): Remove.
13582         * sysdeps/tile/bits/mathinline.h: Delete file.
13583         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
13584         (__signbit): Remove.
13585         (__signbitl): Remove.
13587 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
13589         * math/math.h: Improve handling of C99 isgreater macros.
13590         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
13591         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
13592         * sysdeps/powerpc/bits/mathinline.h: Likewise.
13593         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13594         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
13596 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13598         * sysdeps/aarch64/libm-test-ulps: Update.
13600 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
13602         [BZ #22225]
13603         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
13604         math_opt_barrier on argument when doing arithmetic on it.
13605         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
13606         Likewise.  Use math_force_eval not math_opt_barrier after
13607         arithmetic.
13608         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
13609         math_opt_barrier on argument when doing arithmetic on it.
13610         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
13611         Likewise.
13613 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
13615         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
13616         libc_hidden_def.
13617         (__freeifaddrs): Likewise.
13619 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13621         * include/dirent.h (__dirfd): New declaration.
13622         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
13623         alias.
13624         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
13625         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
13626         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
13627         * include/unistd.h (__revoke): New declaration.
13628         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
13629         alias.
13630         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
13631         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
13632         revoke.
13633         * include/dirent.h (__seekdir): New declaration.
13634         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
13635         redefine as weak alias.
13636         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
13637         of seekdir.
13638         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
13639         and use libc_hidden_def on them.
13640         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
13641         them.
13642         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
13643         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
13644         instead of getifaddrs and freeifaddrs.
13646 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
13648         [BZ #18822]
13649         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
13650         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
13651         (__dso_handle): Remove declaration.
13652         * dlfcn/tstatexit.c (__dso_handle): Removed.
13653         (main): Don't check __dso_handle.
13654         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
13655         (main): Don't check __dso_handle.
13656         * include/dso_handle.h: New file.
13657         * malloc/mtrace.c: Include <dso_handle.h>.
13658         (mtrace): Pass __dso_handle directly.
13659         * nptl/pthread_atfork.c: Include <dso_handle.h>.
13660         (__dso_handle): Remove declaration.
13661         (__pthread_atfork): Pass __dso_handle directly.
13662         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
13663         (__dso_handle): Removed.
13664         * posix/wordexp-test.c: Include <dso_handle.h>.
13665         (__dso_handle): Remove declaration.
13666         (__app_register_atfork): Pass __dso_handle directly.
13667         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
13668         (__dso_handle): Remove declaration.
13669         (at_quick_exit): Pass __dso_handle directly.
13670         * stdlib/atexit.c: Include <dso_handle.h>.
13671         (__dso_handle): Remove declaration.
13672         (atexit): Pass __dso_handle directly.
13673         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
13674         (__dso_handle): Removed.
13676 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
13678         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
13679         using VDSO.
13681 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
13683         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
13684         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
13685         values to correct default value for given type.
13687 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
13689         [BZ #22101]
13690         * elf/Makefile (tests): Add tst-debug1.
13691         ($(objpfx)tst-debug1): New.
13692         ($(objpfx)tst-debug1.out): Likewise.
13693         ($(objpfx)tst-debug1mod1.so): Likewise.
13694         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
13695         with p_filesz == 0.
13696         * elf/tst-debug1.c: New file.
13698 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
13700         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
13701         Define using __ifunc.
13703 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13705         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
13706         exp2f() values.
13708 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
13710         [BZ #22156]
13711         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
13713 2017-09-26  Florian Weimer  <fweimer@redhat.com>
13715         * resolv/Makefile (tests-internal): Fix typo in comment.
13717 2017-09-26  Florian Weimer  <fweimer@redhat.com>
13719         * resolv/nss_dns/dns-host.c: Fix typo in comment.
13721 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13723         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
13724         Use an union instead of a max_align_t array for __space,
13725         so that __space is the same size on all platforms.
13726         * malloc/scratch_buffer_grow_preserve.c
13727         (__libc_scratch_buffer_grow_preserve): Likewise.
13729         [BZ #22183]
13730         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
13731         version to 2.
13732         * posix/Makefile (routines): Add glob-lstat-compat and
13733         glob64-lstat-compat.
13734         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
13735         * posix/glob-lstat-compat.c: New file.
13736         * posix/glob64-lstat-compat.c: Likewise.
13737         * posix/tst-glob_lstat_compat.c: Likewise.
13738         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
13739         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
13740         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
13741         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
13742         Likewise.
13743         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
13744         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
13745         * posix/glob.c (glob_lstat): New function.
13746         (glob): Rename to __glob and add versioned symbol to 2.27.
13747         (glob_in_dir): Use glob_lstat.
13748         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
13749         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13750         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
13751         2.27.
13752         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
13753         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
13754         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
13755         gl_lstat on glob call.
13756         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
13757         and glob64 symbols.
13758         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13759         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13760         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13761         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13762         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13763         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13764         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13765         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13766         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13767         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13768         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13769         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13771         Likewise.
13772         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
13773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13774         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13775         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13776         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13777         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13778         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13779         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
13780         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
13781         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13782         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13783         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13785 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
13787         * configure.ac (AS): Require binutils 2.25 or later.
13788         * configure: Regenerated.
13790 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
13792         [BZ #22207]
13793         * stdlib/test-atexit-race-common.c (do_test): Minimize required
13794         VM size.
13796 2017-09-25  DJ Delorie  <dj@redhat.com>
13798         [BZ #22161]
13799         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
13800         resetting timeout.
13802 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
13804         * sysdeps/ieee754/dbl-64/sincos32.h
13805         [SINCCOS32_H]: Remove define.
13806         [SINCOS32_H]: Define.
13808 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13810         * math/Versions (expf): New libm symbol at GLIBC_2.27.
13811         (exp2f): Likewise.
13812         * math/w_exp2f.c: New file.
13813         * math/w_expf.c: New file.
13814         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
13815         * math/w_expf_compat.c (__expf_compat): Likewise.
13816         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
13817         * sysdeps/ia64/fpu/e_expf.S: Likewise.
13818         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
13819         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13820         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13821         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13822         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13823         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13824         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13825         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13826         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13827         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13828         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13829         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13831         Likewise.
13832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13833         Likewise.
13834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13835         Likewise.
13836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13837         Likewise.
13838         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13839         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13840         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13841         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13842         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13843         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13844         Likewise.
13845         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13846         Likewise.
13847         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13848         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13849         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13851 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13853         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
13854         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
13855         (roundtoint, converttoint): Likewise.
13856         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
13857         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
13858         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
13859         * sysdeps/ieee754/flt-32/math_config.h: New file.
13860         * sysdeps/ieee754/flt-32/math_errf.c: New file.
13861         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
13862         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
13863         * sysdeps/i386/fpu/math_errf.c: New file.
13864         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
13865         * sysdeps/ia64/fpu/math_errf.c: New file.
13866         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
13867         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
13869 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13871         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
13872         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
13873         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
13874         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
13875         to make sure that these symbols are defined.
13876         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
13877         of <limits.h>
13878         (__need_NULL): Do not define.
13879         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
13880         alignment.
13881         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
13882         CMGROUP_MAX, cmsgcred): Do not define.
13883         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
13884         NULL.
13885         * bits/socket.h: Likewise.
13886         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
13887         __gettimeofday instead of gettimeofday.
13888         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
13889         instead of settimeofday.
13891 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
13893         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
13894         (asinhf): Define using libm_alias_float.
13895         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
13896         (atanf): Define using libm_alias_float.
13897         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
13898         (cbrtf): Define using libm_alias_float.
13899         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
13900         (ceilf): Define using libm_alias_float.
13901         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
13902         <libm-alias-float.h>.
13903         (copysignf): Define using libm_alias_float.
13904         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
13905         (cosf): Define using libm_alias_float.
13906         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
13907         (erff): Define using libm_alias_float.
13908         (erfcf): Likewise.
13909         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
13910         (expm1f): Define using libm_alias_float.
13911         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
13912         (fabsf): Define using libm_alias_float.
13913         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
13914         (floorf): Define using libm_alias_float.
13915         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
13916         (frexpf): Define using libm_alias_float.
13917         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
13918         libm_alias_float.
13919         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
13920         <libm-alias-float.h>.
13921         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
13922         libm_alias_float.
13923         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
13924         <libm-alias-float.h>.
13925         (getpayloadf): Define using libm_alias_float.
13926         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
13927         <libm-alias-float.h>.
13928         (llrintf): Define using libm_alias_float.
13929         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
13930         <libm-alias-float.h>.
13931         (llroundf): Define using libm_alias_float.
13932         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
13933         (logbf): Define using libm_alias_float.
13934         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
13935         (lrintf): Define using libm_alias_float.
13936         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
13937         (lroundf): Define using libm_alias_float.
13938         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
13939         (modff): Define using libm_alias_float.
13940         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
13941         <libm-alias-float.h>.
13942         (nearbyintf): Define using libm_alias_float.
13943         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
13944         <libm-alias-float.h>.
13945         (nextafterf): Define using libm_alias_float.
13946         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
13947         <libm-alias-float.h>.
13948         (nextupf): Define using libm_alias_float.
13949         * sysdeps/ieee754/flt-32/s_remquof.c: Include
13950         <libm-alias-float.h>.
13951         (remquof): Define using libm_alias_float.
13952         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
13953         (rintf): Define using libm_alias_float.
13954         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
13955         <libm-alias-float.h>.
13956         (roundevenf): Define using libm_alias_float.
13957         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
13958         (roundf): Define using libm_alias_float.
13959         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
13960         using libm_alias_float.
13961         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
13962         <libm-alias-float.h>.
13963         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
13964         Define using libm_alias_float.
13965         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
13966         <libm-alias-float.h>.
13967         (sincosf): Define using libm_alias_float.
13968         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
13969         (sinf): Define using libm_alias_float.
13970         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
13971         (tanf): Define using libm_alias_float.
13972         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
13973         (tanhf): Define using libm_alias_float.
13974         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
13975         <libm-alias-float.h>.
13976         (totalorderf): Define using libm_alias_float.
13977         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
13978         <libm-alias-float.h>.
13979         (totalordermagf): Define using libm_alias_float.
13980         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
13981         (truncf): Define using libm_alias_float.
13982         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
13983         libm_alias_float.
13984         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
13985         libm_alias_float.
13987 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13989         [BZ #22146]
13990         math/math.h: Let fpclassify use the builtin in C++ mode, even
13991         when optimazing for size.
13993 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
13995         * csu/Makefile (generated): Do not add version-info.h.
13996         (before-compile): Likewise.
13997         (all-Banner-files): Remove variable.
13998         ($(objpfx)version-info.h): Remove rule.
13999         * csu/version.c (banner): Do not include "version-info.h".
14000         * libidn/Banner: Remove.
14001         * manual/contrib.texi (Simon Josefsson): New entry.
14003 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14005         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
14006         Remove conditionals on LDBL_MANT_DIG.
14007         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
14008         (__ieee754_lgammal_r): Likewise.
14010 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14012         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
14013         _Float128 and L().
14014         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
14015         _Float128 and L(). Replace _Float128 with long double and L(x)
14016         with xL, throughout the file.
14017         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14018         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
14019         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
14020         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
14022 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14024         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
14025         sysdeps/ieee754/ldbl-128ibm.
14026         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
14027         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
14028         of including it.  Keep _Float128 and L() intact.  These will be
14029         reviewed by a separate patch.
14030         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14031         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
14032         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
14033         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
14035 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14037         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
14038         (__finitef128): Define to __redirect___finitef128.
14039         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
14040         (__isinff128): Define to __redirect___isinff128.
14041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
14042         (__isnanf128): Define to __redirect___isnanf128.
14044 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14046         * sysdeps/powerpc/powerpc64le/Makefile
14047         (CFLAGS-tst-strtod-nan-locale.c): New variable.
14048         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
14050 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
14051             Carlos O'Donell  <carlos@redhat.com>
14053         [BZ #22180]
14054         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
14055         * stdlib/test-dlclose-exit-race.c: New file.
14056         * stdlib/test-dlclose-exit-race-helper.c: New file.
14057         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
14059 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
14061         * crypt/Banner: Remove file.
14062         * nptl/Banner: Likewise.
14063         * resolv/Banner: Likewise.
14064         * soft-fp/Banner: Likewise.
14065         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
14066         ($(objpfx)version.d): Remove dependency on banner.h.
14067         ($(objpfx)version.os): Likewise.
14068         * nptl/version.c (banner): Do not include banner.h.
14069         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
14070         Jelinek and BIND code.
14072 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
14073             Carlos O'Donell  <carlos@redhat.com>
14075         * support/xdlfcn.h: New file.
14076         * support/xdlfcn.c: New file.
14077         * support/Makefile (libsupport-routines): Add xdlfcn.
14078         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
14080 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
14082         [BZ #20142]
14083         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14084         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
14085         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
14086         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
14087         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
14088         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
14089         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
14090         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
14092 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
14093             Ricky Zhou  <rickyz@google.com>
14094             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
14096         [BZ #14333]
14097         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
14098         Remove atomics.
14099         (__new_exitfn): Fail registration when we finished at_exit processing.
14100         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
14101         * stdlib/on_exit.c (__on_exit): Likewise.
14102         * stdlib/exit.c (__exit_funcs_done): New variable.
14103         (__run_exit_handlers): Use __exit_funcs_lock.
14104         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
14105         declarations.
14106         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
14107         (test-cxa_atexit-race, test-on_exit-race): New tests.
14108         * stdlib/test-atexit-race-common.c: New file.
14109         * stdlib/test-atexit-race.c: New file.
14110         * stdlib/test-at_quick_exit-race.c: New file.
14111         * stdlib/test-cxa_atexit-race.c: New file.
14112         * stdlib/test-on_exit-race.c: New file.
14114 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14116         * benchtests/Makefile: Add exp2f and log2f benchmarks.
14117         * benchtests/exp2f-inputs: Copy of expf-inputs.
14118         * benchtests/log2f-inputs: Copy of logf-inputs.
14120 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
14122         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
14123         Explicitly take address of first element of array arguments in
14124         call to INLINE_SYSCALL.
14126 2017-09-19  Andreas Schwab  <schwab@suse.de>
14128         [BZ #22134]
14129         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
14130         execveat first.
14131         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
14132         unimplemented.
14133         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
14134         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
14135         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14136         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
14137         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14138         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
14139         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14140         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
14141         * posix/Makefile (tests): Add tst-fexecve.
14142         * posix/tst-fexecve.c: New file.
14144 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
14146         * benchtests/Makefile: Add logf benchmark.
14147         * benchtests/logf-inputs: Add reduced trace from wrf_r.
14149 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
14151         * benchtests/Makefile: Add expf benchmark.
14152         * benchtests/expf-inputs: Add reduced trace from wrf_r.
14154 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
14156         * csu/Makefile: Add -funwind-tables to libc-start.c.
14157         * debug/Makefile: Add -funwind-tables to backtrace.c.
14158         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
14159         * sysdeps/arm/Makefile: Likewise.
14160         * sysdeps/i386/Makefile: Likewise.
14161         * sysdeps/m68k/Makefile: Likewise.
14162         * sysdeps/mips/Makefile: Likewise.
14163         * sysdeps/nios2/Makefile: Likewise.
14164         * sysdeps/sh/Makefile: Likewise.
14165         * sysdeps/sparc/Makefile: Likewise.
14167 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
14169         * benchtests/Makefile (bench-math): Add trunc and truncf.
14170         (CFLAGS-bench-trunc.c): New variable.
14171         (CFLAGS-bench-truncf.c): Likewise.
14172         * benchtests/trunc-inputs: New file.
14173         * benchtests/truncf-inputs: Likewise.
14175 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14177         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
14179 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
14181         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
14182         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
14183         redefine.
14184         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
14185         (exp10l): Define as weak alias.
14186         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
14187         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
14188         and redefine.
14189         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
14190         (remainderl): Define as weak alias.
14192         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
14193         (fmal): Define using libm_alias_ldouble.
14194         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
14195         (acoshl): Define using libm_alias_ldouble.
14196         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
14197         (acosl): Define using libm_alias_ldouble.
14198         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
14199         (asinl): Define using libm_alias_ldouble.
14200         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
14201         (atan2l): Define using libm_alias_ldouble.
14202         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
14203         (atanhl): Define using libm_alias_ldouble.
14204         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
14205         (coshl): Define using libm_alias_ldouble.
14206         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
14207         (exp10l): Define using libm_alias_ldouble.
14208         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
14209         (exp2l): Define using libm_alias_ldouble.
14210         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
14211         (expl): Define using libm_alias_ldouble.
14212         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
14213         (fmodl): Define using libm_alias_ldouble.
14214         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
14215         (hypotl): Define using libm_alias_ldouble.
14216         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
14217         (j0l): Define using libm_alias_ldouble.
14218         (y0l): Likewise.
14219         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
14220         (j1l): Define using libm_alias_ldouble.
14221         (y1l): Likewise.
14222         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
14223         (jnl): Define using libm_alias_ldouble.
14224         (ynl): Likewise.
14225         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
14226         (log10l): Define using libm_alias_ldouble.
14227         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
14228         (log2l): Define using libm_alias_ldouble.
14229         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
14230         (logl): Define using libm_alias_ldouble.
14231         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
14232         (powl): Define using libm_alias_ldouble.
14233         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
14234         (remainderl): Define using libm_alias_ldouble.
14235         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
14236         (sinhl): Define using libm_alias_ldouble.
14237         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
14238         (sqrtl): Define using libm_alias_ldouble.
14239         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
14240         (tgammal): Define using libm_alias_ldouble.
14241         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
14242         (exp10l): Do not use long_double_symbol here.
14243         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
14244         [LIBM_SVID_COMPAT] (remainderl): Likewise.
14245         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
14246         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
14247         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
14248         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
14249         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
14250         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
14251         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
14252         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
14253         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
14254         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
14255         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
14256         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
14257         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
14258         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
14259         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
14260         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
14261         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
14262         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
14263         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
14264         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
14266 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
14268         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
14269         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
14271 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14273         * io/read.c (read): Add libc_hidden_weak.
14274         * sysdeps/mach/hurd/read.c (read): Likewise.
14275         * io/write.c (write): Likewise.
14276         * sysdeps/mach/hurd/write.c (write): Likewise.
14277         * io/pread64.c (__pread64): Likewise.
14278         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
14279         * posix/pread64.c (__pread64): Add libc_hidden_def.
14281 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14283         * benchtests/scripts/compare_strings.py: New option -g.
14284         (draw_graph): Print a message that a graph is being generated.
14285         (process_results): Generate graph only if -g is passed.
14286         (main): Process option -g.
14288         * benchtests/scripts/compare_strings.py (process_results):
14289         Better spacing for output.
14291         * benchtests/scripts/compare_strings.py: Use argparse.
14292         * benchtests/README: Document existence of compare_strings.py.
14294 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
14296         * math/s_fma.c: Include <libm-alias-double.h>.
14297         (fma): Define using libm_alias_double.
14298         * math/s_nextafter.c: Include <libm-alias-double.h>.
14299         (nextafter): Define using libm_alias_double.
14300         * math/w_acos_compat.c: Include <libm-alias-double.h>.
14301         (acos): Define using libm_alias_double.
14302         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
14303         (aocsh): Define using libm_alias_double.
14304         * math/w_asin_compat.c: Include <libm-alias-double.h>.
14305         (asin): Define using libm_alias_double.
14306         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
14307         (atan2): Define using libm_alias_double.
14308         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
14309         (atanh): Define using libm_alias_double.
14310         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
14311         (cosh): Define using libm_alias_double.
14312         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
14313         (exp10): Define using libm_alias_double.
14314         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
14315         (exp2): Define using libm_alias_double.
14316         * math/w_exp_compat.c: Include <libm-alias-double.h>.
14317         (exp): Define using libm_alias_double.
14318         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
14319         (fmod): Define using libm_alias_double.
14320         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
14321         (hypot): Define using libm_alias_double.
14322         * math/w_j0_compat.c: Include <libm-alias-double.h>.
14323         (j0): Define using libm_alias_double.
14324         (y0): Likewise.
14325         * math/w_j1_compat.c: Include <libm-alias-double.h>.
14326         (j1): Define using libm_alias_double.
14327         (y1): Likewise.
14328         * math/w_jn_compat.c: Include <libm-alias-double.h>.
14329         (jn): Define using libm_alias_double.
14330         (yn): Likewise.
14331         * math/w_log10_compat.c: Include <libm-alias-double.h>.
14332         (log10): Define using libm_alias_double.
14333         * math/w_log2_compat.c: Include <libm-alias-double.h>.
14334         (log2): Define using libm_alias_double.
14335         * math/w_log_compat.c: Include <libm-alias-double.h>.
14336         (log): Define using libm_alias_double.
14337         * math/w_pow_compat.c: Include <libm-alias-double.h>.
14338         (pow): Define using libm_alias_double.
14339         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
14340         (remainder): Define using libm_alias_double.
14341         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
14342         (sinh): Define using libm_alias_double.
14343         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
14344         (sqrt): Define using libm_alias_double.
14345         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
14346         (tgamma): Define using libm_alias_double.
14347         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
14348         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
14349         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
14350         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
14351         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
14352         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
14353         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
14354         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
14355         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
14356         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
14357         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
14358         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
14359         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
14360         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
14361         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
14362         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
14363         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
14364         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
14365         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
14366         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
14367         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
14368         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
14369         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
14370         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
14371         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
14373         * math/e_acoshl.c: Remove.
14374         * math/e_acosl.c: Likewise.
14375         * math/e_asinl.c: Likewise.
14376         * math/e_atan2l.c: Likewise.
14377         * math/e_atanhl.c: Likewise.
14378         * math/e_coshl.c: Likewise.
14379         * math/e_expl.c: Likewise.
14380         * math/e_fmodl.c: Likewise.
14381         * math/e_gammal_r.c: Likewise.
14382         * math/e_hypotl.c: Likewise.
14383         * math/e_j0l.c: Likewise.
14384         * math/e_j1l.c: Likewise.
14385         * math/e_jnl.c: Likewise.
14386         * math/e_lgammal_r.c: Likewise.
14387         * math/e_log10l.c: Likewise.
14388         * math/e_log2l.c: Likewise.
14389         * math/e_logl.c: Likewise.
14390         * math/e_powl.c: Likewise.
14391         * math/e_rem_pio2l.c: Likewise.
14392         * math/e_sinhl.c: Likewise.
14393         * math/e_sqrtf128.c: Likewise.
14394         * math/e_sqrtl.c: Likewise.
14395         * math/k_cosl.c: Likewise.
14396         * math/k_sinl.c: Likewise.
14397         * math/k_tanl.c: Likewise.
14398         * math/s_asinhl.c: Likewise.
14399         * math/s_atanl.c: Likewise.
14400         * math/s_cbrtl.c: Likewise.
14401         * math/s_erfl.c: Likewise.
14402         * math/s_expm1l.c: Likewise.
14403         * math/s_log1pl.c: Likewise.
14404         * math/s_tanhl.c: Likewise.
14406 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14408         [BZ #21745]
14409         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
14410         [$(subdir) = math] (sysdep_calls): New variable.  Has the
14411         previous contents of sysdep_routines, but re-sorted..
14412         [$(subdir) = math] (sysdep_routines): Re-use the contents from
14413         sysdep_calls.
14414         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
14415         defined in sysdep_calls and replace by the respective m_* names.
14416         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
14417         (compat_symbol): Undefine to avoid duplicated compat symbols in
14418         libc.
14420 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
14422         * math/s_fmaf.c: Include <libm-alias-float.h>.
14423         (fmaf): Define using libm_alias_float.
14424         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
14425         (acosf): Define using libm_alias_float.
14426         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
14427         (acoshf): Define using libm_alias_float.
14428         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
14429         (asinf): Define using libm_alias_float.
14430         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
14431         (atan2f): Define using libm_alias_float.
14432         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
14433         (atanhf): Define using libm_alias_float.
14434         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
14435         (coshf): Define using libm_alias_float.
14436         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
14437         (exp10f): Define using libm_alias_float.
14438         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
14439         (fmodf): Define using libm_alias_float.
14440         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
14441         (hypotf): Define using libm_alias_float.
14442         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
14443         (j0f): Define using libm_alias_float.
14444         (y0f): Likewise.
14445         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
14446         (j1f): Define using libm_alias_float.
14447         (y1f): Likewise.
14448         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
14449         (jnf): Define using libm_alias_float.
14450         (ynf): Likewise.
14451         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
14452         (log10f): Define using libm_alias_float.
14453         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
14454         (log2f): Define using libm_alias_float.
14455         * math/w_logf_compat.c: Include <libm-alias-float.h>.
14456         (logf): Define using libm_alias_float.
14457         * math/w_powf_compat.c: Include <libm-alias-float.h>.
14458         (powf): Define using libm_alias_float.
14459         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
14460         (remainderf): Define using libm_alias_float.
14461         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
14462         (sinhf): Define using libm_alias_float.
14463         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
14464         (sqrtf): Define using libm_alias_float.
14465         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
14466         (tgammaf): Define using libm_alias_float.
14468 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
14470         * include/math.h (roundeven): Change hidden_proto call to
14471         __roundeven.
14472         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
14473         alias.
14474         [NO_LONG_DOUBLE] (__j0l): New strong alias.
14475         (y0): Rename to __y0 and define as weak alias.
14476         [NO_LONG_DOUBLE] (__y0l): New strong alias.
14477         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
14478         alias.
14479         (y0f): Rename to __y0f and define as weak alias.
14480         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
14481         alias.
14482         [NO_LONG_DOUBLE] (__j1l): New strong alias.
14483         (y1): Rename to __y1 and define as weak alias.
14484         [NO_LONG_DOUBLE] (__y1l): New strong alias.
14485         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
14486         alias.
14487         (y1f): Rename to __y1f and define as weak alias.
14488         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
14489         alias.
14490         [NO_LONG_DOUBLE] (__jnl): New strong alias.
14491         (yn): Rename to __yn and define as weak alias.
14492         [NO_LONG_DOUBLE] (__ynl): New strong alias.
14493         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
14494         alias.
14495         (ynf): Rename to __ynf and define as weak alias.
14496         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
14497         (fromfp): Define as weak alias.
14498         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
14499         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
14500         (fromfpx): Define as weak alias.
14501         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
14502         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
14503         __getpayload and define as weak alias.
14504         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
14505         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
14506         __roundeven and define as weak alias.
14507         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
14508         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
14509         __setpayload.
14510         (setpayload): Define as weak alias.
14511         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
14512         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
14513         __setpayloadsig.
14514         (setpayloadsig): Define as weak alias.
14515         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
14516         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
14517         __totalorder and define as weak alias.
14518         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
14519         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
14520         to __totalordermag and define as weak alias.
14521         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
14522         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
14523         (ufromfp): Define as weak alias.
14524         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
14525         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
14526         __ufromfpx.
14527         (ufromfpx): Define as weak alias.
14528         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
14529         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
14530         Rename to __getpayload and define as weak alias.
14531         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
14532         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
14533         Rename to __roundeven and define as weak alias.
14534         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
14535         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
14536         Rename to __totalorder and define as weak alias.
14537         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
14538         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
14539         (totalordermag): Rename to __totalordermag and define as weak
14540         alias.
14541         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
14542         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
14543         macro.
14544         (__roundevenl): Likewise.
14545         (__totalorderl): Likewise.
14546         (__totalordermagl): Likewise
14547         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
14548         __fromfpf128.
14549         (fromfpf128): Define as weak alias.
14550         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
14551         __fromfpxf128.
14552         (fromfpxf128): Define as weak alias.
14553         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
14554         __setpayloadf128.
14555         (setpayloadf128): Define as weak alias.
14556         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
14557         __setpayloadsigf128.
14558         (setpayloadsigf128): Define as weak alias.
14559         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
14560         __ufromfpf128.
14561         (ufromfpf128): Define as weak alias.
14562         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
14563         __ufromfpxf128.
14564         (ufromfpxf128): Define as weak alias.
14565         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
14566         (fromfpf): Define as weak alias.
14567         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
14568         __fromfpxf.
14569         (fromfpxf): Define as weak alias.
14570         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
14571         __getpayloadf and define as weak alias.
14572         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
14573         __roundevenf and define as weak alias.
14574         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
14575         __setpayloadf.
14576         (setpayloadf): Define as weak alias.
14577         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
14578         __setpayloadsigf.
14579         (setpayloadsigf): Define as weak alias.
14580         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
14581         __totalorderf and define as weak alias.
14582         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
14583         Rename to __totalordermagf and define as weak alias.
14584         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
14585         __ufromfpf.
14586         (ufromfpf): Define as weak alias.
14587         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
14588         __ufromfpxf.
14589         (ufromfpxf): Define as weak alias.
14590         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
14591         __fromfpl.
14592         (fromfpl): Define as weak alias.
14593         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
14594         __fromfpxl.
14595         (fromfpxl): Define as weak alias.
14596         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
14597         to __getpayloadl and define as weak alias.
14598         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
14599         __roundevenl and define as weak alias.
14600         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
14601         __setpayloadl.
14602         (setpayloadl): Define as weak alias.
14603         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
14604         __setpayloadsigl.
14605         (setpayloadsigl): Define as weak alias.
14606         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
14607         to __totalorderl and define as weak alias.
14608         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
14609         Rename to __totalordermagl and define as weak alias.
14610         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
14611         __ufromfpl.
14612         (ufromfpl): Define as weak alias.
14613         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
14614         __ufromfpxl.
14615         (ufromfpxl): Define as weak alias.
14616         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
14617         __fromfpl.
14618         (fromfpl): Define as weak alias.
14619         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
14620         __fromfpxl.
14621         (fromfpxl): Define as weak alias.
14622         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
14623         Rename to __getpayloadl and define as weak alias.
14624         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
14625         to __roundevenl and define as weak alias.  Call __roundeven
14626         instead of roundeven.
14627         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
14628         __setpayloadl.
14629         (setpayloadl): Define as weak alias.
14630         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
14631         __setpayloadsigl.
14632         (setpayloadsigl): Define as weak alias.
14633         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
14634         Rename to __totalorderl and define as weak alias.
14635         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
14636         Rename to __totalordermagl and define as weak alias.
14637         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
14638         __ufromfpl.
14639         (ufromfpl): Define as weak alias.
14640         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
14641         __ufromfpxl.
14642         (ufromfpxl): Define as weak alias.
14643         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
14644         __fromfpl.
14645         (fromfpl): Define as weak alias.
14646         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
14647         __fromfpxl.
14648         (fromfpxl): Define as weak alias.
14649         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
14650         __getpayloadl and define as weak alias.
14651         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
14652         __roundevenl and define as weak alias.
14653         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
14654         __setpayloadl.
14655         (setpayloadl): Define as weak alias.
14656         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
14657         __setpayloadsigl.
14658         (setpayloadsigl): Define as weak alias.
14659         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
14660         __totalorderl and define as weak alias.
14661         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
14662         Rename to __totalordermagl and define as weak alias.
14663         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
14664         __ufromfpl.
14665         (ufromfpl): Define as weak alias.
14666         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
14667         __ufromfpxl.
14668         (ufromfpxl): Define as weak alias.
14670 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14672         * benchtests/bench-string.h (realloc_bufs): New function.
14673         (test_init): Call it.
14674         * benchtests/bench-memset-large.c (do_test): Likewise.
14675         * benchtests/bench-memset.c (do_test): Likewise.
14677         * benchtests/bench-memset-large.c: Print output in JSON
14678         format.
14679         * benchtests/bench-memset.c: Likewise.
14681 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
14683         [BZ #21084]
14684         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
14685         * iconvdata/Makefile: Add IBM858.
14686         * iconvdata/gconv-modules: Likewise.
14687         * iconvdata/tst-tables.sh: Likewise.
14688         * iconvdata/ibm858.c: New file.
14689         * localedata/charmaps/IBM858: Likewise.
14691 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
14693         [BZ #22023]
14694         * locales/niu_NZ (LC_TIME): copy "niu_NU".
14695         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
14697 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
14699         [BZ #22112]
14700         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
14701         and add tel_int_fmt.
14703 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
14705         * sysdeps/generic/libm-alias-float128.h: New file.
14706         * sysdeps/generic/math-type-macros-float128.h: Include
14707         <libm-alias-float128.h>.
14708         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
14710 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
14712         * sysdeps/generic/libm-alias-ldouble.h: New file.
14713         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
14714         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
14715         * sysdeps/generic/math-type-macros-ldouble.h: Include
14716         <libm-alias-ldouble.h>.
14717         [!declare_mgen_alias] (declare_mgen_alias): Define to use
14718         libm_alias_ldouble.
14720 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14722         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
14723         * math/w_exp_compat.c: ... here.
14724         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
14725         * math/w_expf_compat.c: ... here.
14726         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
14727         * math/w_expl_compat.c: ... here.
14728         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
14729         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
14730         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
14731         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
14733 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
14735         * math/w_scalbln_template.c (strong_alias): Do not undefine and
14736         redefine.
14737         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
14738         macro.
14739         (ldexpl): Only define as compat symbol for libc, not libm.
14740         (scalbnl): Define as compat symbol for libc here.
14741         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
14742         define for [IS_IN (libc)].
14743         (__ldexpl_2): Remove alias.
14744         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
14745         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
14746         name in long_double_symbol call.
14747         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
14748         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
14749         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
14750         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
14751         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
14752         Remove macro.
14753         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
14754         Define as compat symbol.
14756 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14758         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
14759         * sysdeps/unix/sysv/linux/alpha/Makefile
14760         [$(subdir) = csu] (sysdep_routines): Remove rule.
14762 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
14764         * sysdeps/generic/libm-alias-double.h: New file.
14765         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
14766         * sysdeps/generic/math-type-macros-double.h: Include
14767         <libm-alias-double.h>.
14768         [declare_mgen_alias] (declare_mgen_alias): Define to use
14769         libm_alias_double.
14770         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
14771         (M_LIBM_NEED_COMPAT): Remove macro.
14772         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
14773         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
14774         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
14775         code.
14776         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14777         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14778         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14779         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14780         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14781         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14782         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14783         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14784         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14785         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14786         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14787         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14788         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14789         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14790         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14791         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14792         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14793         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14794         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14795         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14796         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14797         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14798         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14799         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14800         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14801         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14802         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14803         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
14804         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
14805         macro.
14806         (declare_mgen_alias): New macro.
14807         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
14808         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
14809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
14810         (M_LIBM_NEED_COMPAT): Remove macro.
14811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
14812         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
14813         <first-versions.h>.
14814         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
14815         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
14817 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
14819         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
14820         (declare_mgen_alias_2): Remove.
14821         * sysdeps/generic/math-type-macros-double.h
14822         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
14823         Likewise.
14824         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
14825         alias.
14826         (ldexp): Define with declare_mgen_alias.
14827         (scalbn): Likewise.
14829 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
14831         * grp/initgroups.c: Include config.h.
14832         (DEFAULT_CONFIG): New macro.
14833         (internal_getgrouplist): Use DEFAULT_CONFIG.
14834         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14835         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
14836         (DEFAULT_DEFCONFIG): New macro.
14837         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
14838         * nss/grp-lookup.c: Include config.h
14839         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
14840         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
14841         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
14842         * manual/nss.texi: Update default values section.
14844 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
14846         [BZ #21967]
14847         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
14848         New.
14849         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
14850         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
14851         Handle MathVec_Prefer_No_AVX512.
14852         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
14853         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
14854         is set.
14856 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14858         * posix/sched_primax.c (__sched_get_priority_max): Add
14859         libc_hidden_def.
14860         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
14861         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
14862         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
14863         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
14864         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
14865         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
14866         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
14867         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
14868         Add aliases.
14870 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
14872         * sysdeps/generic/libm-alias-float.h: New file.
14873         * sysdeps/generic/math-type-macros-float.h: Include
14874         <libm-alias-float.h>.
14875         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
14877 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
14879         [BZ #22093]
14880         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
14881         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
14882         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
14883         (HWCAP_IMPORTANT): Likewise.
14884         (HWCAP_X86_64): New enum.
14885         (HWCAP_X86_AVX512_1): Updated.
14886         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
14887         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
14888         (modules-names): Add x86_64/tst-x86_64mod-1.
14889         (LDFLAGS-tst-x86_64mod-1.so): New.
14890         ($(objpfx)tst-x86_64-1): Likewise.
14891         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
14892         (tst-x86_64-1-clean): Likewise.
14893         * sysdeps/x86_64/tst-x86_64-1.c: New file.
14894         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
14896 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14898         * po/sv.po: Update translations.
14899         * po/fr.po: Likewise.
14901 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14903         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
14904         seconds.
14905         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
14906         seconds.
14907         * elf/rtld-Rules: Fix $(error) use.
14909 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
14911         [BZ #14925]
14912         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
14913         * locale/iso-639.def: Change “Bengali” to “Bangla”.
14914         * localedata/locales/bn_BD: “Bengali” was still used in some
14915         comments. Change it to “Bangla”.
14917 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
14919         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
14921 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
14923         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
14924         thunderx2t99p1 to list of cpu names.
14925         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
14926         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
14928 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
14930         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
14931         Use strcmp instead of tunable_is_name.
14933 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
14935         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
14936         (F_GET_RW_HINT): New macro.
14937         [__USE_GNU] (F_SET_RW_HINT): Likewise.
14938         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
14939         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
14940         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
14941         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
14942         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
14943         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
14944         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
14945         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
14947         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
14948         (F_ADD_SEALS): New macro.
14949         [__USE_GNU] (F_GET_SEALS): Likewise.
14950         [__USE_GNU] (F_SEAL_SEAL): Likewise.
14951         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
14952         [__USE_GNU] (F_SEAL_GROW): Likewise.
14953         [__USE_GNU] (F_SEAL_WRITE): Likewise.
14955 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14957         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
14958         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
14959         * posix/glob_internal.h (__glob_pattern_type):
14960         * posix/glob.c (glob):
14961         * posix/glob_pattern_p.c (__glob_pattern_p):
14962         Use them.
14964         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
14965         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14966         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
14967         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
14968         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
14969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
14970         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
14971         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
14972         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
14973         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
14974         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
14975         * sysdeps/wordsize-64/glob.c: Likewise.
14976         * sysdeps/wordsize-64/glob64.c: Likewise.
14977         * sysdeps/wordsize-64/globfree.c: Likewise.
14978         * sysdeps/wordsize-64/globfree64.c: Likewise.
14979         * sysdeps/unix/sysv/linux/glob.c: New file.
14980         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
14981         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
14982         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
14983         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
14984         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
14985         adds !GLOB_NO_OLD_VERSION as an extra condition.
14986         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
14987         using relative path instead of absolute one.
14988         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14989         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
14990         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14991         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14992         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
14993         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
14995         [BZ #1062]
14996         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
14997         (glob): Use the same scratch buffer for both getlogin_r and
14998         getpwnam_r.  Don’t require preallocation of the login name.  This
14999         simplifies storage allocation, and corrects the handling of
15000         long login names.
15002         [BZ #1062]
15003         * posix/glob.c (glob): Port recent patches to platforms
15004         lacking getpwnam_r.
15005         (glob): Fix longstanding misuse of errno after getpwnam_r, which
15006         returns an error number rather than setting errno.
15008         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
15009         instead of GCC extension.
15010         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
15011         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
15012         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
15014         [BZ #866]
15015         [BZ #1062]
15016         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
15017         * posix/bug-glob1.c: Remove file.
15018         * posix/tst-glob_symlinks.c: New file.
15019         * posix/glob.c (__lstat64): New macro.
15020         (is_dir): New function.
15021         (glob, glob_in_dir): Match symlinks even if they are dangling.
15022         (link_stat, link_exists_p): Remove.  All uses removed.
15024         [BZ #1062]
15025         [BZ #19971]
15026         * posix/glob.c (struct readdir_result): Remove skip_entry member.
15027         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
15028         All uses removed.
15030         [BZ #1062]
15031         CVE-2017-15671
15032         * posix/Makefile (routines): Add globfree, globfree64, and
15033         glob_pattern_p.
15034         * posix/flexmember.h: New file.
15035         * posix/glob_internal.h: Likewise.
15036         * posix/glob_pattern_p.c: Likewise.
15037         * posix/globfree.c: Likewise.
15038         * posix/globfree64.c: Likewise.
15039         * sysdeps/gnu/globfree64.c: Likewise.
15040         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
15041         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
15042         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
15043         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
15044         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
15045         * sysdeps/wordsize-64/globfree.c: Likewise.
15046         * sysdeps/wordsize-64/globfree64.c: Likewise.
15047         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
15048         [NDEBUG): Remove comments.
15049         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
15050         (dirent_type): New type.  Use uint_fast8_t not
15051         uint8_t, as C99 does not require uint8_t.
15052         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
15053         (struct readdir_result): Use dirent_type.  Do not define skip_entry
15054         unless it is needed; this saves a byte on platforms lacking d_ino.
15055         (readdir_result_type, readdir_result_skip_entry):
15056         New functions, replacing ...
15057         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
15058          these functions, which were removed.  This makes the callers
15059         easier to read.  All callers changed.
15060         (D_INO_TO_RESULT): Now empty if there is no d_ino.
15061         (size_add_wrapv, glob_use_alloca): New static functions.
15062         (glob, glob_in_dir): Check for size_t overflow in several places,
15063         and fix some size_t checks that were not quite right.
15064         Remove old code using SHELL since Bash no longer
15065         uses this.
15066         (glob, prefix_array): Separate MS code better.
15067         (glob_in_dir): Remove old Amiga and VMS code.
15068         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
15069         separate files.
15070         (glob_in_dir): Do not rely on undefined behavior in accessing
15071         struct members beyond their bounds.  Use a flexible array member
15072         instead
15073         (link_stat): Rename from link_exists2_p and return -1/0 instead of
15074         0/1.  Caller changed.
15075         (glob): Fix memory leaks.
15076         * posix/glob64 (globfree64): Move to separate file.
15077         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
15078         (globfree64): Remove hidden alias.
15079         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
15080         oldglob.
15081         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
15082         separate file.
15083         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
15084         define.
15085         Move compat code to separate file.
15086         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
15087         separate file.
15089 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
15091         * resolv/tst-resolv-qtypes.c (domain): Changed to
15092         "const char domain[] =".
15094 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
15096         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15097         version to 3.1.6.
15099         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
15100         (TCP_MD5SIG_EXT): Likewise.
15101         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
15102         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
15103         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
15105         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
15107 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
15109         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
15111 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
15113         [BZ #22100]
15114         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
15116 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15118         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
15119         before assuming that the file is empty.  Avoid testing buffer content
15120         when nread == 0.
15122 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15124         [BZ #18858]
15125         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
15126         Remove define.
15127         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
15128         Likewise.
15129         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
15130         Likewise.
15131         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
15132         Likewise.
15133         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
15134         Likewise.
15135         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
15136         Likewise.
15137         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
15138         Likewise.
15140 2017-09-06  Florian Weimer  <fweimer@redhat.com>
15142         * malloc/dynarray_emplace_enlarge.c
15143         (__libc_dynarray_emplace_enlarge): Add missing else.
15145 2017-09-06  Florian Weimer  <fweimer@redhat.com>
15147         [BZ #22096]
15148         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
15149         case of failure to obtain the global conf object.
15151 2017-09-06  Florian Weimer  <fweimer@redhat.com>
15153         [BZ #22095]
15154         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
15155         dynarray allocation failure.
15157 2017-09-06  Florian Weimer  <fweimer@redhat.com>
15159         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
15160         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
15161         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
15162         New functions.
15163         (response): Call them.  Add 'p', '6' flag processing.
15164         (test_reverse): New function.
15165         (test_get2_any): Call it.
15166         (test_no_inet6): Add 'p' test.
15167         (test_inet6): Likewise.
15169 2017-09-06  Florian Weimer  <fweimer@redhat.com>
15171         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
15172         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
15173         the QNAME.
15174         (test_gai): Adjust query names.  Add additional tests.
15175         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
15176         test_get2.  Adjust query names.  Add additional tests.
15177         (test_no_inet6): New function, extracted from threadfunc.
15178         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
15179         Add additional tests.
15181 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
15183         [BZ #22070]
15184         * localedata/unicode-gen/utf8_gen.py: Set the width for
15185         characters with Prepended_Concatenation_Mark property to 1
15186         * localedata/charmaps/UTF-8: Updated using the improved script.
15188 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
15190         [BZ #21750]
15191         * localedata/unicode-gen/utf8_gen.py: Improve the script to
15192         use the range notation for all ranges of neighbouring characters
15193         with the same width.
15195 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
15197         * sysdeps/generic/math-type-macros-double.h: Include
15198         <math-svid-compat.h>.
15199         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
15200         * sysdeps/generic/math-type-macros-float.h: Include
15201         <math-svid-compat.h>.
15202         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
15203         * sysdeps/generic/math-type-macros-ldouble.h: Include
15204         <math-svid-compat.h>.
15205         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
15206         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
15207         condition.
15208         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
15209         * math/w_acosf_compat.c: Likewise.
15210         * math/w_acosh_compat.c: Likewise.
15211         * math/w_acoshf_compat.c: Likewise.
15212         * math/w_acoshl_compat.c: Likewise.
15213         * math/w_acosl_compat.c: Likewise.
15214         * math/w_asin_compat.c: Likewise.
15215         * math/w_asinf_compat.c: Likewise.
15216         * math/w_asinl_compat.c: Likewise.
15217         * math/w_atan2_compat.c: Likewise.
15218         * math/w_atan2f_compat.c: Likewise.
15219         * math/w_atan2l_compat.c: Likewise.
15220         * math/w_atanh_compat.c: Likewise.
15221         * math/w_atanhf_compat.c: Likewise.
15222         * math/w_atanhl_compat.c: Likewise.
15223         * math/w_cosh_compat.c: Likewise.
15224         * math/w_coshf_compat.c: Likewise.
15225         * math/w_coshl_compat.c: Likewise.
15226         * math/w_exp10_compat.c: Likewise.
15227         * math/w_exp10f_compat.c: Likewise.
15228         * math/w_exp10l_compat.c: Likewise.
15229         * math/w_exp2_compat.c: Likewise.
15230         * math/w_exp2f_compat.c: Likewise.
15231         * math/w_exp2l_compat.c: Likewise.
15232         * math/w_fmod_compat.c: Likewise.
15233         * math/w_fmodf_compat.c: Likewise.
15234         * math/w_fmodl_compat.c: Likewise.
15235         * math/w_hypot_compat.c: Likewise.
15236         * math/w_hypotf_compat.c: Likewise.
15237         * math/w_hypotl_compat.c: Likewise.
15238         * math/w_j0_compat.c: Likewise.
15239         * math/w_j0f_compat.c: Likewise.
15240         * math/w_j0l_compat.c: Likewise.
15241         * math/w_j1_compat.c: Likewise.
15242         * math/w_j1f_compat.c: Likewise.
15243         * math/w_j1l_compat.c: Likewise.
15244         * math/w_jn_compat.c: Likewise.
15245         * math/w_jnf_compat.c: Likewise.
15246         * math/w_jnl_compat.c: Likewise.
15247         * math/w_lgamma_r_compat.c: Likewise.
15248         * math/w_lgammaf_r_compat.c: Likewise.
15249         * math/w_lgammal_r_compat.c: Likewise.
15250         * math/w_log10_compat.c: Likewise.
15251         * math/w_log10f_compat.c: Likewise.
15252         * math/w_log10l_compat.c: Likewise.
15253         * math/w_log2_compat.c: Likewise.
15254         * math/w_log2f_compat.c: Likewise.
15255         * math/w_log2l_compat.c: Likewise.
15256         * math/w_log_compat.c: Likewise.
15257         * math/w_logf_compat.c: Likewise.
15258         * math/w_logl_compat.c: Likewise.
15259         * math/w_pow_compat.c: Likewise.
15260         * math/w_powf_compat.c: Likewise.
15261         * math/w_powl_compat.c: Likewise.
15262         * math/w_remainder_compat.c: Likewise.
15263         * math/w_remainderf_compat.c: Likewise.
15264         * math/w_remainderl_compat.c: Likewise.
15265         * math/w_sinh_compat.c: Likewise.
15266         * math/w_sinhf_compat.c: Likewise.
15267         * math/w_sinhl_compat.c: Likewise.
15268         * math/w_sqrt_compat.c: Likewise.
15269         * math/w_sqrtf_compat.c: Likewise.
15270         * math/w_sqrtl_compat.c: Likewise.
15271         * math/w_tgamma_compat.c: Likewise.
15272         * math/w_tgammaf_compat.c: Likewise.
15273         * math/w_tgammal_compat.c: Likewise.
15274         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
15275         [LIBM_SVID_COMPAT].
15276         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
15277         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
15278         [LIBM_SVID_COMPAT].
15279         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
15280         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
15281         [LIBM_SVID_COMPAT].
15282         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
15283         * sysdeps/i386/fpu/w_sqrt.c: New file.
15284         * sysdeps/ia64/fpu/w_acos.c: Likewise.
15285         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
15286         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
15287         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
15288         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
15289         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
15290         * sysdeps/ia64/fpu/w_asin.c: Likewise.
15291         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
15292         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
15293         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
15294         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
15295         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
15296         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
15297         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
15298         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
15299         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
15300         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
15301         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
15302         * sysdeps/ia64/fpu/w_exp.c: Likewise.
15303         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
15304         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
15305         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
15306         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
15307         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
15308         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
15309         * sysdeps/ia64/fpu/w_expf.c: Likewise.
15310         * sysdeps/ia64/fpu/w_expl.c: Likewise.
15311         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
15312         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
15313         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
15314         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
15315         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
15316         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
15317         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
15318         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
15319         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
15320         * sysdeps/ia64/fpu/w_log.c: Likewise.
15321         * sysdeps/ia64/fpu/w_log10.c: Likewise.
15322         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
15323         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
15324         * sysdeps/ia64/fpu/w_log2.c: Likewise.
15325         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
15326         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
15327         * sysdeps/ia64/fpu/w_logf.c: Likewise.
15328         * sysdeps/ia64/fpu/w_logl.c: Likewise.
15329         * sysdeps/ia64/fpu/w_pow.c: Likewise.
15330         * sysdeps/ia64/fpu/w_powf.c: Likewise.
15331         * sysdeps/ia64/fpu/w_powl.c: Likewise.
15332         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
15333         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
15334         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
15335         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
15336         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
15337         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
15338         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
15339         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
15340         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
15341         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
15342         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
15343         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
15344         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
15345         [LIBM_SVID_COMPAT].
15346         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
15347         * sysdeps/ieee754/k_standard.c: Likewise.
15348         * sysdeps/ieee754/k_standardf.c: Likewise.
15349         * sysdeps/ieee754/k_standardl.c: Likewise.
15350         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
15351         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
15352         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
15353         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
15354         long_double_symbol call on [LIBM_SVID_COMPAT].
15355         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
15356         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
15357         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
15358         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
15359         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
15360         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
15361         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
15362         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
15363         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
15364         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
15365         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
15366         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
15367         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
15368         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
15369         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
15370         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
15371         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
15372         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
15373         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
15374         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
15375         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
15376         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
15378 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
15380         * include/shlib-compat.h (TEST_COMPAT): New Macro.
15381         * malloc/tst-mallocstate.c: Convert from test-skeleton
15382         to test-driver.  Ifdef code using TEST_COMPAT macro.
15383         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
15384         * math/test-matherr.c: Likewise.
15386 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
15388         [BZ #22086]
15389         * debug/pcprofiledump.c (main): Use byte-swapped mask when
15390         comparing word with byte-swapped constant.
15392 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
15394         [BZ #20498]
15395         * locale/iso-639.def: add Miskito.
15396         * localedata/SUPPORTED: Add miq_NI/UTF-8.
15397         * localedata/locales/miq_NI: New file.
15399 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
15401         [BZ #18822]
15402         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
15403         (__mkdir): Likewise.
15404         * io/chmod.c (__chmod): Add libc_hidden_def.
15405         * io/mkdir.c (__mkdir): Likewise.
15406         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
15407         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
15408         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
15409         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
15411 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
15413         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15414         version to 4.13.
15416         [BZ #22082]
15417         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
15418         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
15420 2017-09-04  Florian Weimer  <fweimer@redhat.com>
15422         * math/math.h: Issue warning if log is defined.
15424 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
15426         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15427         kernel version to 4.13.
15429 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15431         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
15432         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
15433         parameter.
15434         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
15435         just <bits/types.h>.
15436         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
15437         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
15438         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
15439         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
15440         * misc/preadv2.c: Include <errno.h>.
15441         * misc/preadv64v2.c: Include <errno.h>.
15442         * misc/pwritev2.c: Include <errno.h>.
15443         * misc/pwritev64v2.c: Include <errno.h>.
15444         * sysdeps/posix/preadv2.c: Include <errno.h>.
15445         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
15446         Fix <unistd.h> inclusion.
15447         * sysdeps/posix/pwritev2.c: Include <errno.h>.
15448         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
15449         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
15450         __strtoul_internal): New functions.
15451         * sysdeps/posix/pause.c: Include <sigsetops.h>.
15452         * sysdeps/posix/system.c: Include <sigsetops.h>.
15453         * sysdeps/mach/hurd/i386/Makefile
15454         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
15455         [$(subdir) = csu] (sysdep-only-routines): Likewise.
15456         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
15457         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
15458         __feraiseexcept_renamed to feraiseexcept instead of
15459         __GI_feraiseexcept.
15460         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
15461         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
15462         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
15463         RWF_NOWAIT): Define to 0 if undefined already.
15464         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
15465         boils down to 0.
15466         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
15467         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
15469 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
15471         * manual/math.texi (pow10): Do not document.
15472         (pow10f): Likewise.
15473         (pow10l): Likewise.
15474         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
15475         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
15476         * math/libm-test-exp10.inc (pow10_test): Remove.
15477         (do_test): Do not call pow10.
15478         * math/w_exp10_compat.c (pow10): Make into compat symbol.
15479         [NO_LONG_DOUBLE] (pow10l): Likewise.
15480         * math/w_exp10f_compat.c (pow10f): Likewise.
15481         * math/w_exp10l_compat.c (pow10l): Likewise.
15482         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
15483         (pow10): Make into compat symbol.
15484         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
15485         (pow10f): Make into compat symbol.
15486         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
15487         (pow10l): Make into compat symbol.
15488         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
15489         pow10.
15490         (CFLAGS-nldbl-pow10.c): Remove variable..
15491         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
15492         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
15493         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
15494         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
15495         Undefine and redefine.
15496         (pow10l): Make into compat symbol.
15497         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
15498         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
15499         * sysdeps/arm/libm-test-ulps: Likewise.
15500         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
15501         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
15502         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15503         * sysdeps/microblaze/libm-test-ulps: Likewise.
15504         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
15505         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15506         * sysdeps/nios2/libm-test-ulps: Likewise.
15507         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
15508         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
15509         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
15510         * sysdeps/sh/libm-test-ulps: Likewise.
15511         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
15512         * sysdeps/tile/libm-test-ulps: Likewise.
15513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15515 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
15517         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
15519 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
15521         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
15522         "../ChangeLog.old/ChangeLog.8".
15523         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
15524         "../ChangeLog.old/ChangeLog.14".
15526 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
15528         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
15529         Threads Library.
15531 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
15533         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
15535 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
15537         * csu/version.c (banner): Remove "by Roland McGrath et al.".
15538         * nptl/Banner: Remove "by Ulrich Drepper et al.".
15540 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
15542         * stdlib/tst-atexit-common.c (do_test): Test support for at least
15543         32 atexit handlers.
15545 2017-09-01  Zack Weinberg  <zackw@panix.com>
15547         * math/math.h (HUGE_VAL): Improve commentary.
15549 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15550             Andreas Schwab  <schwab@suse.de>
15552         [BZ #21530]
15553         * include/stdio.h (__gen_tempfd): New function.
15554         * stdio-common/Makefile (routines): Add gentempfd.
15555         * stdio-common/gentempfd.c: New file.
15556         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
15557         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
15558         unnamed file first.
15560 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15562         [BZ #21915]
15563         [BZ #21922]
15564         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
15565         result to determine success or failure, not the errno value.
15566         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
15567         (tst-nss-files-hosts-erange): Link with -ldl.
15568         * nss/tst-nss-files-hosts-erange.c: New file.
15569         * nss/tst-resolv-basic.c (response): Handle nodata.example.
15570         (do_test): Add NO_DATA tests.
15571         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
15572         (do_test): Call it.
15574 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15576         [BZ #21922]
15577         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
15578         coming from gethostbyname2_r.
15580 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15582         * support/namespace.h (struct support_chroot_configuration): Add
15583         hosts, host_conf.
15584         (struct support_chroot): Add path_hosts, path_host_conf.
15585         * support/support_chroot.c (write_file): New function.
15586         (support_chroot_create): Call it to process /etc/resolv.conf,
15587         /etc/hosts, /etc/host.conf.
15588         (support_chroot_free): Update.
15590 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15592         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
15593         status indicates it is set.
15595 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15597         [BZ #20532]
15598         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
15599         function lookup failures more reliable.
15601 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15603         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
15604         (getcanonname): Likewise.
15605         (gaih_inet): Likewise.
15607 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15609         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
15610         (getcanonname): Likewise.
15611         (gaih_inet): Likewise.
15613 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
15614             Richard Henderson <rth@twiddle.net>
15616         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
15617         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
15618         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
15619         (IREG_SIZE, OREG_SIZE): New macros.
15620         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
15621         (IREG_SIZE, OREG_SIZE): New macros.
15622         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
15623         (IREG_SIZE): New macro.
15624         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
15625         (IREG_SIZE): New macro.
15626         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
15627         New includes.
15628         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
15629         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
15630         (__CONCATX): Handle exceptions correctly on large values that may
15631         set FE_INVALID.
15632         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
15633         Initialize if not already set.
15634         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
15636 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15638         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
15639         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
15640         Likewise.
15641         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
15642         Likewise.
15643         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
15644         Likewise.
15645         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
15646         Likewise.
15647         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
15648         Likewise.
15649         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
15650         Likewise.
15651         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
15652         Likewise.
15653         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
15654         (NO_CANCELLATION): Likewise.
15655         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
15656         Likewise.
15657         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
15658         Likewise.
15659         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
15660         Likewise.
15661         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
15662         (NO_CANCELLATION): Likewise.
15663         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
15664         (NO_CANCELLATION): Likewise.
15665         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
15666         Likewise
15667         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
15668         Likewise.
15669         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
15670         Likewise.
15671         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
15672         Likewise.
15673         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
15674         hidden prototype.
15675         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
15676         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
15678 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
15680         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
15681         in resolver call.
15683 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15685         * include/libc-symbols.h (internal_function): Remove.
15687 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15689         * stdlib/fmtmsg.c (internal_addseverity): Remove
15690         internal_function.
15692 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15694         * stdio-common/printf_fp.c (group_number): Remove
15695         internal_function.
15696         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
15698 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15700         * posix/fnmatch.c (internal_function): Remove definition.
15701         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
15702         * posix/regcomp.c (peek_token, init_word_char)
15703         (duplicate_node_closure, fetch_token, peek_token)
15704         (peek_token_bracket, build_range_exp, build_collating_symbol):
15705         Likewise.
15706         * posix/regex_internal.c (re_string_construct_common)
15707         (create_ci_newstate, create_cd_newstate, re_string_allocate)
15708         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
15709         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
15710         (re_string_translate_buffer, re_string_reconstruct)
15711         (re_string_peek_byte_case, re_string_fetch_byte_case)
15712         (re_string_destruct, re_string_context_at, re_node_set_alloc)
15713         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
15714         (re_node_set_add_intersect, re_node_set_init_union)
15715         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
15716         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
15717         (re_dfa_add_node, calc_state_hash, re_acquire_state)
15718         (re_acquire_state_context): Likewise.
15719         * posix/regex_internal.h (internal_function): Remove definition.
15720         (re_string_realloc_buffers, build_wcs_buffer)
15721         (build_wcs_upper_buffer, build_upper_buffer)
15722         (re_string_translate_buffer, re_string_context_at)
15723         (re_string_char_size_at, re_string_wchar_at)
15724         (re_string_elem_size_at): Likewise.
15725         * posix/regexec.c (match_ctx_init, match_ctx_clean)
15726         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
15727         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
15728         (re_search_internal, re_search_2_stub, re_search_stub)
15729         (re_copy_regs, prune_impossible_nodes, check_matching)
15730         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
15731         (free_fail_stack_return, sift_states_iter_mb)
15732         (sift_states_backward, build_sifted_states)
15733         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
15734         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
15735         (check_subexp_limits, sift_states_bkref, merge_state_array)
15736         (find_recover_state, transit_state, merge_state_with_log)
15737         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
15738         (transit_state_mb, transit_state_bkref, get_subexp)
15739         (get_subexp_sub, find_subexp_node, check_arrival)
15740         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
15741         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
15742         (check_node_accept_bytes, find_collation_sequence_value)
15743         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
15744         (acquire_init_state_context, check_halt_node_context)
15745         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
15746         (sub_epsilon_src_nodes): Likewise.
15747         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
15748         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
15749         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
15750         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
15751         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
15752         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
15753         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
15754         * sysdeps/posix/ttyname.c (getttyname): Likewise.
15755         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
15756         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
15757         (PREADV): Likewise.
15758         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
15759         (PREADV): Likewise.
15760         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
15761         (PWRITEV): Likewise.
15762         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
15763         (PWRITEV): Likewise.
15764         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
15765         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
15767 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15769         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
15770         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
15771         Remove internal_function.
15772         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15773         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
15774         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
15775         (__deallocate_stack, __libc_pthread_init)
15776         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
15777         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
15778         (__libc_disable_asynccancel, __librt_disable_asynccancel):
15779         Likewise.
15780         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
15781         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
15782         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
15783         Likewise.
15784         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
15785         (__pthread_mutex_unlock_usercnt): Likewise.
15787 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15789         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
15790         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
15791         (fts_safe_changedir): Remove internal_function.
15792         * io/ftw.c (internal_function): Remove definition.
15793         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
15795 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15797         * inet/deadline.c (__deadline_current_time)
15798         (__deadline_from_timeval, __deadline_to_ms): Remove
15799         internal_function.
15800         * inet/getnameinfo.c (nrl_domainname): Likewise.
15801         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
15802         * inet/inet6_option.c (add_pad): Likewise.
15803         * inet/net-internal.h (__deadline_current_time)
15804         (__deadline_from_timeval, __deadline_to_ms): Likewise.
15805         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
15806         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
15807         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
15809 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
15811         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
15812         include <bits/nan.h>.
15813         * math/Makefile (headers): Remove bits/nan.h.
15814         * bits/nan.h: Remove.
15815         * sysdeps/ieee754/bits/nan.h: Likewise.
15816         * sysdeps/mips/bits/nan.h: Likewise.
15818         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
15819         not include <bits/inf.h>.
15820         * math/Makefile (headers): Remove bits/inf.h.
15821         * bits/inf.h: Remove.
15822         * sysdeps/ieee754/bits/inf.h: Likewise.
15824         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
15825         bits/huge_vall.h or bits/huge_val_flt128.h.
15826         (HUGE_VAL): Define directly here.
15827         [__USE_ISOC99] (HUGE_VALF): Likewise.
15828         [__USE_ISOC99] (HUGE_VALL): Likewise.
15829         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
15830         (HUGE_VAL_F128): Likewise.
15831         * math/Makefile (headers): Remove bits/huge_val.h,
15832         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
15833         * bits/huge_val.h: Remove.
15834         * bits/huge_val_flt128.h: Likewise.
15835         * bits/huge_valf.h: Likewise.
15836         * bits/huge_vall.h: Likewise.
15837         * sysdeps/ia64/bits/huge_vall.h: Likewise.
15838         * sysdeps/ieee754/bits/huge_val.h: Likewise.
15839         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
15840         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
15841         * sysdeps/sh/bits/huge_val.h: Likewise.
15842         * sysdeps/sparc/bits/huge_vall.h: Likewise.
15843         * sysdeps/x86/bits/huge_vall.h: Likewise.
15845 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15847         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
15848         internal_function.
15849         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
15850         Likewise.
15851         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
15852         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
15853         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
15854         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
15855         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15856         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
15857         * elf/dl-libc.c (dlerror_run): Likewise.
15858         * elf/dl-load.c (add_name_to_object, decompose_rpath)
15859         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
15860         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
15861         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
15862         Likewise.
15863         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
15864         (_dl_higher_prime_number, _dl_strtoul): Likewise.
15865         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
15866         * elf/dl-profile.c (_dl_start_profile): Likewise.
15867         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
15868         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
15869         Likewise.
15870         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
15871         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
15872         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
15873         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
15874         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
15875         (_dl_allocate_tls_storage): Likewise.
15876         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
15877         (_dl_check_all_versions): Likewise.
15878         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
15879         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
15880         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
15881         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
15882         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
15883         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
15884         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
15885         internal_function from __dl_start.
15886         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
15887         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
15888         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
15889         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
15890         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
15891         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
15892         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
15893         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
15894         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
15895         (_dl_next_ld_env_entry, _dl_important_hwcaps)
15896         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
15897         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
15898         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
15899         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
15900         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
15901         Likewise.
15902         (struct rtld_global_ro): Remove internal_function from the
15903         _dl_lookup_symbol_x member.
15904         (_dl_symbol_value): Remove.  No longer defined anywhere.
15905         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
15906         internal_function.
15907         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
15908         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
15909         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
15910         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
15911         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
15912         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
15913         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
15914         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
15915         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
15916         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
15917         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
15918         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
15920 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15922         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
15923         Remove internal_function.
15924         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
15925         Likewise.
15926         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
15927         Likewise.
15929 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15931         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
15932         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
15933         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
15935 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15937         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
15938         (__gai_enqueue_request): Remove internal_function.
15939         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
15940         (__gai_remove_request, __gai_notify, __gai_notify_only)
15941         (__gai_sigqueue): Likewise.
15942         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
15943         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
15944         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
15945         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
15946         Likewise.
15948 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15950         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
15951         * include/dirent.h (__opendirat, __getdents, __getdents64)
15952         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
15953         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
15954         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
15955         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
15956         Likewise.
15957         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
15959 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15961         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
15962         internal_function.
15963         (GETCWD_RETURN_TYPE): Likewise.
15965 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15967         * include/time.h (__tz_compute, __strptime_internal): Remove
15968         internal_function.
15969         * time/strptime_l.c (__strptime_internal): Likewise.
15970         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
15972 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15974         * iconv/gconv.c (__gconv): Remove internal_function.
15975         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
15976         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
15977         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
15978         (__gconv_release_cache): Likewise.
15979         * iconv/gconv_close.c (__gconv_close): Likewise.
15980         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
15981         (read_conf_file, __gconv_get_path): Likewise.
15982         * iconv/gconv_db.c (derivation_lookup, add_derivation)
15983         (__gconv_release_step, gen_steps, increment_counter)
15984         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
15985         (__gconv_close_transform, free_modules_db): Likewise.
15986         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
15987         Likewise.
15988         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
15989         (__gconv_find_transform, __gconv_lookup_cache)
15990         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
15991         (__gconv_close_transform, __gconv_release_cache)
15992         (__gconv_loaded_object, __gconv_release_shlib)
15993         (__gconv_compare_alias): Likewise.
15994         * iconv/gconv_open.c (__gconv_open): Likewise.
15995         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
15996         * iconv/iconvconfig.c (add_module): Likewise.
15997         * intl/dcigettext.c (plural_lookup, guess_category_value)
15998         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
15999         * intl/eval-plural.h (plural_eval): Likewise.
16000         * intl/finddomain.c (_nl_find_domain): Likewise.
16001         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
16002         (_nl_load_domain, _nl_find_msg): Likewise.
16003         (internal_function): Remove definition.
16004         * intl/loadinfo.h (internal_function): Likewise.
16005         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
16006         internal_function.
16007         * intl/localealias.c (internal_function): Remove definition.
16008         (read_alias_file): Remove internal_function.
16009         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
16010         * intl/plural-exp.h (internal_function): Remove definition.
16011         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
16012         internal_function.
16013         * intl/plural.c: Regenerate.
16014         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
16015         * locale/coll-lookup.c (__collidx_table_lookup)
16016         (__collseq_table_lookup): Likewise.
16017         * locale/coll-lookup.h (__collidx_table_lookup)
16018         (__collseq_table_lookup): Likewise.
16019         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
16020         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
16021         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
16022         (_nl_unload_locale): Likewise.
16023         * locale/localeinfo.h (struct __locale_data): Remove
16024         internal_function from cleanup member.
16025         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
16026         (_nl_remove_locale, _nl_load_locale_from_archive)
16027         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
16028         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
16029         (_nl_cleanup_time): Remove internal_function.
16030         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
16031         (_nl_parse_alt_digit): Likewise.
16032         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
16033         (_nl_select_era_entry): Likewise.
16034         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
16035         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
16036         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
16037         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
16038         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
16040 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16042         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
16043         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
16044         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
16045         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
16046         Likewise.
16047         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
16048         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
16049         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
16050         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
16051         Likewise.
16052         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
16054 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16056         * misc/getttyent.c (skip, value): Remove internal_function.
16057         * misc/syslog.c (openlog_internal): Likewise.
16058         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
16060 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16062         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
16063         (__nss_rewrite_field): Remove internal_function.
16064         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
16065         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
16066         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
16067         * nss/nsswitch.c (nss_parse_file, nss_getline)
16068         (nss_parse_service_list, nss_new_service): Likewise.
16069         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
16070         * nss/valid_field.c (__nss_valid_field): Likewise.
16071         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
16073 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16075         * malloc/arena.c (__malloc_fork_lock_parent)
16076         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
16077         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
16078         internal_function from defintions.
16079         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
16080         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
16081         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
16082         internal_function from declarations.
16083         * malloc/malloc.c (internal_function): Do not define.
16084         (mem2mem_check): Remove internal_function from declaration.
16085         (munmap_chunk, mremap_chunk): Remove internal_function.
16086         * malloc/mtrace.c (tr_where): Likewise.
16088 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16090         * include/rpc/pmap_clnt.h (__get_socket): Remove
16091         internal_function.
16092         * sunrpc/auth_des.c (synchronize): Likewise.
16093         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
16094         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
16095         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
16096         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
16097         (key_call): Likewise.
16098         * sunrpc/pm_getport.c (__get_socket): Likewise.
16099         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
16100         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
16101         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
16102         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
16103         (invalidate): Likewise.
16104         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
16105         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
16106         (set_input_fragment, get_input_bytes): Likewise.
16108 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16110         * malloc/malloc.c (_int_free): Remove locked variable and related
16111         asserts.
16113 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
16115         [BZ #22051]
16116         * Makerules (build-module-helper-objlist): Filter out
16117         $(elf-objpfx)sofini.os.
16118         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
16119         needed.
16121 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16123         * libio/fcloseall.c: Assume weak_alias is defined.
16124         * libio/feof.c: Likewise.
16125         * libio/fileno.c: Likewise.
16126         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
16127         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
16128         definitions.
16129         (_IO_file_open): Call __open directly.
16130         (_IO_new_file_sync): Assume ESPIPE is defined.
16131         (_IO_file_seekoff_maybe_mmap): Call __read directly.
16132         (_IO_new_file_write): Call __write directly.
16133         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
16134         * libio/ftello64.c (__ftello64): Assume EIO is defined.
16135         * libio/genops.c: Assume _LIBC is defined.
16136         (save_for_backup): Remove internal_function.
16137         * libio/getc.c: Assume weak_alias is defined.
16138         * libio/getwc.c: Likewise.
16139         * libio/iofclose.c: Assume _LIBC is defined.
16140         * libio/iofdopen.c: Likewise.
16141         (_IO_fcntl): Remove macro definition.
16142         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
16143         Call __fcntl directly.
16144         * libio/iofflush.c: Assume weak_alias is defined.
16145         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
16146         defined.
16147         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
16148         * libio/iofgets.c: Likewise.
16149         * libio/iofopen.c: Assume _LIBC is defined.
16150         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
16151         * libio/iofputs.c: Assume weak_alias is defined.
16152         * libio/iofread.c: Likewise.
16153         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
16154         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
16155         * libio/ioftell.c: Assume weak_alias is defined.
16156         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
16157         * libio/iofwide.c: Assume _LIBC is defined.
16158         (_IO_fwide): Drop SHARED conditional because it is implied by
16159         SHLIB_COMPAT.
16160         * libio/iofwrite.c: Assume weak_alias is defined.
16161         * libio/iogetdelim.c: Likewise.
16162         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
16163         * libio/iogetwline.c (wmemcpy): Remove macro definition.
16164         (_IO_getwline): Call __wmemcpy directly.
16165         * libio/iopopen.c: Assume _LIBC is defined.
16166         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
16167         (_IO_close): Remove macro definitions.
16168         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
16169         _exit directly.
16170         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
16171         directly.
16172         * libio/ioputs.c: Assume weak_alias is defined.
16173         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
16174         * libio/iosetbuffer.c: Assume weak_alias is defined.
16175         * libio/iosetvbuf.c: Likewise.
16176         * libio/ioungetc.c: Likewise.
16177         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
16178         libc_hidden_def, libc_hidden_weak, NULL are defined.
16179         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
16180         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
16181         defined.
16182         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
16183         definitions.
16184         (_IO_old_file_init_internal): Drop SHARED conditional because it
16185         is implied by SHLIB_COMPAT.
16186         (_IO_old_file_fopen): Call __open directly.
16187         (_IO_old_file_sync): Assume ESPIPE is defined.
16188         (_IO_old_file_write): Call __write directly.
16189         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
16190         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
16191         Call __fcntl directly.
16192         * libio/oldiofgetpos.c: Assume weak_alias is defined.
16193         (_IO_old_fgetpos): Assume EIO is defined.
16194         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
16195         (_IO_old_fgetpos64): Assume EIO is defined.
16196         * libio/oldiofsetpos.c: Assume weak_alias is defined.
16197         (_IO_old_fsetpos): Assume EIO is defined.
16198         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
16199         (_IO_old_fsetpos64): Assume EIO is defined.
16200         * libio/oldiopopen.c:  Assume _LIBC is defined.
16201         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
16202         (_IO_close): Remove macro definitions.
16203         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
16204         directly.
16205         (_IO_old_proc_close): Call __close, __waitpid directly.
16206         * libio/put.c: Assume weak_alias is defined.
16207         * libio/stdfiles.c: Assume _LIBC is defined.
16208         * libio/stdio.c: Likewise.
16209         * libio/wfileops.c: Likewise.
16210         (_IO_wfile_sync): Assume ESPIPE is defined.
16211         * libio/wgenops.c: Assume _LIBC is defined.
16212         (save_for_wbackup): Remove internal_function.
16214 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16216         * malloc/malloc.c (top_check): Change return type to void.  Remove
16217         internal_function.
16218         * malloc/hooks.c (top_check): Likewise.
16219         (malloc_check, realloc_check, memalign_check): Adjust.
16221 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
16223         [BZ #21457]
16224         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
16225         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
16226         sigcontext and namespace requirements.
16227         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
16228         * sysdeps/m68k/sys/ucontext.h: Likewise.
16229         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
16230         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
16231         <bits/sigcontext.h>.
16232         (__ctx): Define earlier.
16233         (mcontext_t): Define structure contents rather than using struct
16234         sigcontext.
16235         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
16236         __glibc_reserved1 instead of __reserved.
16237         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
16238         <bits/sigcontext.h>.
16239         (__ctx): Define earlier.
16240         (mcontext_t): Define structure contents rather than using struct
16241         sigcontext.
16242         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
16243         mcontext_t instead of struct sigcontext.
16244         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
16245         <bits/sigcontext.h>.
16246         (__ctx): Define earlier.
16247         (mcontext_t): Define structure contents rather than using struct
16248         sigcontext.
16249         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
16250         <bits/sigcontext.h>.
16251         (__ctx): Define earlier.
16252         (mcontext_t): Define structure contents rather than using struct
16253         sigcontext.
16254         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
16255         mcontext_t instead of struct sigcontext.
16256         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
16257         mcontext_t instead of struct sigcontext.
16258         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
16259         <bits/sigcontext.h>.
16260         (__ctx): New macro.
16261         (struct __ia64_fpreg_mcontext): New type.
16262         (mcontext_t): Define structure contents rather than using struct
16263         sigcontext.
16264         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
16265         (uc_sigmask): Define using __ctx.
16266         (uc_stack): Likewise.
16267         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
16268         <bits/sigcontext.h>.
16269         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16270         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
16271         <bits/sigcontext.h>.
16272         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
16273         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
16274         <bits/sigcontext.h>.
16275         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
16276         <bits/sigcontext.h>.
16277         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
16278         <bits/sigcontext.h>.
16279         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
16280         <bits/sigcontext.h>.
16281         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
16282         <bits/sigcontext.h>.
16283         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
16284         <bits/sigcontext.h>.
16285         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
16286         <bits/sigcontext.h>.
16287         (__ctx): Define earlier.
16288         (mcontext_t): Define structure contents rather than using struct
16289         sigcontext.
16290         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
16291         <bits/sigcontext.h>.  Include <bits/types.h>.
16292         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
16293         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
16294         (test-xfail-XPG42/ucontext.h/conform): Likewise.
16295         (test-xfail-UNIX98/signal.h/conform): Likewise.
16296         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
16297         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
16298         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
16299         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
16300         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
16301         (test-xfail-POSIX2008/signal.h/conform): Likewise.
16302         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
16303         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
16304         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
16306 2017-08-30  Florian Weimer  <fweimer@redhat.com>
16308         * malloc/dynarray_emplace_enlarge.c
16309         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
16310         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
16311         * malloc/tst-dynarray.c (test_long_overflow): New function.
16312         (do_test): Call it.
16314 2017-08-30  Florian Weimer  <fweimer@redhat.com>
16316         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
16317         (set_arena_corrupt): Remove definitions.
16318         (mtrim): Do not check for corrupt arena.
16319         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
16320         Likewise.
16322 2017-08-30  Florian Weimer  <fweimer@redhat.com>
16324         [BZ #21754]
16325         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
16326         check_action.
16327         (ptmalloc_init): Do not set or use check_action.
16328         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
16329         call to malloc_printerr.  Remove return statement.
16330         (free_check): Likewise.  Remove arena unlock.
16331         (top_check): Update comment.  Adjust call to malloc_printerr.
16332         Remove heap repair code.
16333         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
16334         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
16335         (sysmalloc): Adjust call to malloc_printerr.
16336         (munmap_chunk, __libc_realloc): Likewise.  Remove return
16337         statement.
16338         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
16339         Remove errout label and corresponding gotos.
16340         (_int_free): Likewise.  Remove arena unlock.
16341         (do_set_mallopt_check): Do not set check_action.
16342         (malloc_printerr): Adjust parameter list.  Do not mark arena as
16343         corrupt.
16344         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
16345         comment.
16346         * manual/probes.texi (Memory Allocation Probes): Remove
16347         memory_mallopt_check_action.
16349 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
16351         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
16352         Use pointer to uint64_t instead of long int for sp.
16354 2017-08-30  Florian Weimer  <fweimer@redhat.com>
16356         [BZ #21754]
16357         * malloc/malloc.c (malloc_printerr): Always terminate the process,
16358         without printing a backtrace.  Do not leak any information in the
16359         error message.
16360         * manual/memory.texi (Heap Consistency Checking): Update.
16361         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
16363 2017-08-30  Florian Weimer  <fweimer@redhat.com>
16365         Do not scale NPTL tests with available number of CPUs.
16366         * nptl/tst-cond16.c (count): Set to constant value of 8.
16367         * nptl/tst-cond18.c (count): Likewise.
16369 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
16371         [BZ #22035]
16372         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
16373         Define to take a second argument that is a macro that
16374         concatentates a suffix, not the suffix itself.
16375         (__CONCAT_d): New macro.
16376         (__CONCAT_f): Likewise.
16377         (__CONCAT_l): Likewise.
16379 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
16381         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
16382         by child.
16384 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16385             Aurelien Jarno  <aurelien@aurel32.net>
16386             Maciej W. Rozycki  <macro@imgtec.com>
16388         [BZ #21956]
16389         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
16390         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
16391         `mips16-syscall6' and `mips16-syscall7'.
16392         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
16393         (CFLAGS-mips16-syscall7.c): Remove.
16394         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
16395         Remove `__mips16_syscall5', `__mips16_syscall6' and
16396         `__mips16_syscall7'.
16397         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
16398         (__mips16_syscall0): Rename `__mips16_syscall_return' to
16399         `__mips_syscall_return'.
16400         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
16401         (__mips16_syscall1): Likewise.
16402         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
16403         (__mips16_syscall2): Likewise.
16404         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
16405         (__mips16_syscall3): Likewise.
16406         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
16407         (__mips16_syscall4): Likewise.
16408         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
16409         Remove.
16410         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
16411         Remove.
16412         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
16413         Remove.
16414         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
16415         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
16416         `__mips16_syscall5'.  Remove prototype.
16417         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
16418         `__mips16_syscall6'.  Remove prototype.
16419         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
16420         `__mips16_syscall7'.  Remove prototype.
16421         (__nomips16, __mips16_syscall_return): Move to...
16422         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
16423         (__nomips16, __mips_syscall_return): ... here.
16424         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
16425         `__mips16_syscall_return' to `__mips_syscall_return'.
16426         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
16427         `internal_syscall##nr'.
16428         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
16429         `internal_syscall##nr'.
16430         (FORCE_FRAME_POINTER): Remove.
16431         (__mips_syscall5): New prototype.
16432         (internal_syscall5): Rewrite to call `__mips_syscall5'.
16433         (__mips_syscall6): New prototype.
16434         (internal_syscall6): Rewrite to call `__mips_syscall6'.
16435         (__mips_syscall7): New prototype.
16436         (internal_syscall7): Rewrite to call `__mips_syscall7'.
16437         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
16438         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
16439         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
16440         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
16441         (sysdep_routines): Add libc-do-syscall.
16442         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
16443         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
16445 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16447         [BZ #21672]
16448         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
16449         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
16450         (advise_stack_range): New function.
16451         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
16452         stack non required to advise_stack_range at allocatestack.c
16454 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16456         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
16458 2017-08-29  Florian Weimer  <fweimer@redhat.com>
16460         [BZ #22026]
16461         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
16462         __end_fct.  Mangle __end_fct after setting it to NULL.
16463         * iconv/Makefile (tests): Add tst-gconv-init-failure.
16464         (modules-names, modules-names-tests): Add
16465         tst-gconv-init-failure-mod.
16466         (gconv-modules): New target.
16467         (tst-gconv-init-failure-mod.so): Link against libsupport.
16468         (tst-gconv-init-failure): Depend on gconv-modules,
16469         tst-gconv-init-failure-mod.so.
16470         * iconv/tst-gconv-init-failure-mod.c: New file.
16471         * iconv/tst-gconv-init-failure.c: Likewise.
16472         * iconv/test-gconv-modules: Likewise.
16474 2017-08-29  Florian Weimer  <fweimer@redhat.com>
16476         [BZ #22025]
16477         * iconv/gconv_db.c (free_derivation): Remove redundant
16478         parentheses.
16479         (gen_steps): Unconditionally mangle __btowc_fct after
16480         initialization.
16481         (increment_counter): Likewise.  Do not call init_fct for internal
16482         modules.
16484 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
16486         [BZ #22028]
16487         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
16488         (_MSUF_): Remove macro.
16489         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
16490         Likewise.
16491         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
16492         (__REDIRFROM_X): New macro.
16493         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
16494         Likewise.
16495         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
16496         (__REDIRTO_X): Likewise.
16497         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
16498         arguments.
16499         (__MATH_REDIRCALL_2): Likewise.
16500         (__MATH_REDIRCALL_INTERNAL): Likewise.
16501         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
16502         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
16503         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
16504         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
16505         * math/test-finite-macros.c: New file.
16506         * math/Makefile (tests): Add test-finite-macros.
16507         (CFLAGS-test-finite-macros.c): New variable.
16509 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
16510             Jeff Law  <law@redhat.com>
16512         [BZ #22025]
16513         Mangle NULL pointers in iconv/gconv.
16514         * iconv/gconv_cache.c (find_module): Demangle init_fct before
16515         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
16516         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
16517         is non-NULL before demangling the end_fct.  Check for NULL
16518         end_fct after demangling.
16519         (__gconv_release_step): Demangle the end_fct before checking
16520         it for NULL.   Remove assert on __shlibc_handle != NULL.
16521         (gen_steps): Don't check btowc_fct for NULL before mangling.
16522         Demangle init_fct before checking for NULL.
16523         (increment_counter): Likewise.
16524         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
16525         end_fct for NULL before mangling.
16526         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
16527         for NULL.
16529 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
16531         [BZ #21971]
16532         * locale/iso-639.def: add Morisyen.
16534 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16536         [BZ #21930]
16537         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
16538         (iszero): New C++ implementation that does not use
16539         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
16540         signaling nans are enabled, since __builtin_types_compatible_p
16541         is a C-only feature.
16542         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
16543         defined, include ieee754_float128.h for access to the union and
16544         member ieee854_float128.ieee.
16545         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
16546         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
16547         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
16548         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
16549         options of test-math-zero on powerpc64le.
16551 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
16553         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
16554         Change double to float.
16556 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
16558         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
16559         unconditional.
16560         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
16561         conditional code; define contents only for [LIBM_SVID_COMPAT].
16563 2017-08-28  Florian Weimer  <fweimer@redhat.com>
16565         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
16566         (abi-lp64_be-options): Remove.
16567         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
16568         (abi-hard-options): Likewise.
16569         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
16570         (abi-o32_hard-options, abi-o32_soft_2008-options)
16571         (abi-o32_hard_2008-options, abi-n32_soft-options)
16572         (abi-n32_hard-options, abi-n32_soft_2008-options)
16573         (abi-n32_hard_2008-options, abi-n64_soft-options)
16574         (abi-n64_hard-options, abi-n64_soft_2008-options)
16575         (abi-n64_hard_2008-options): Likewise.
16576         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
16577         (abi-64-v1-options, abi-64-v2-options): Likewise.
16578         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
16579         (abi-64-options): Likewise.
16580         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
16581         (abi-64-options): Likewise.
16582         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
16583         (abi-64-options): Likewise.
16584         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
16585         (abi-64-options, abi-x32-options): Likewise.
16587 2017-08-28  Florian Weimer  <fweimer@redhat.com>
16589         Store supported list of SYS_* system calls in the source tree.
16590         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
16591         (bits/syscall.h): Generate from list file.
16592         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
16593         [$(subdir) = misc] (tests): Add tst-syscall-list.
16594         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
16595         [$(subdir) = misc] (tst-syscall-list-macros.list)
16596         [$(subdir) = misc] (tst-syscall-list-nr.list)
16597         (tst-syscall-list-sys.list): Helper targets for new
16598         tst-syscall-list test.
16599         [$(subdir) = misc] (tst-syscall-list.out): Run test script
16600         tst-syscall-list.sh.
16601         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
16602         target. Do not include bits/syscall.d.
16603         [$(subdir) = misc] (generated): Do not update.
16604         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
16605         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
16606         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
16607         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
16609 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
16611         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
16612         (tst-cxa_atexit, tst-on_exit): Likewise.
16613         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
16614         tst-cxa_atexit, and tst-on_exit.
16615         * stdlib/tst-atexit-common.c: New file.
16616         * stdlib/tst-atexit.c: New file.
16617         * stdlib/tst-at_quick_exit.c: New file.
16618         * stdlib/tst-cxa_atexit.c: New file.
16619         * stdlib/tst-on_exit.c: New file.
16621 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16623         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
16624         * mach/stack_chk_fail_local.c: New file.
16625         * hurd/stack_chk_fail_local.c: New file.
16626         * mach/Machrules ($(interface-library)-routines): Add
16627         stack_chk_fail_local.
16628         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
16629         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
16630         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
16631         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
16632         * hurd/Makefile (CFLAGS-hurdstartup.o,
16633         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
16635 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16637         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
16638         (index_cpu_*, index_arch_*): Removed.
16640 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16642         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
16643         Use uint64_t instead of unsigned long.
16645 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
16647         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
16648         [__HAVE_DISTINCT_FLOAT128].
16650         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
16651         of <bits/math-finite.h>.
16652         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
16653         inclusion of <bits/math-finite.h>.
16654         * math/bits/math-finite.h (__REDIRTO_X): Do not define
16655         conditionally on [__MATH_DECLARING_LDOUBLE && defined
16656         __NO_LONG_DOUBLE_MATH].
16657         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
16658         (__MATH_REDIRCALL_2): Likewise.
16659         (__MATH_REDIRCALL_INTERNAL): Likewise.
16660         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
16661         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
16662         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
16664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
16665         Remove file.
16666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
16667         Likewise.
16668         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
16669         Likewise.
16670         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
16671         Likewise.
16672         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
16673         Likewise.
16674         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
16675         Likewise.
16676         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
16677         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
16678         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
16679         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
16680         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
16681         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
16682         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
16683         w_sqrtf_compat-ppc32.
16685 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16687         * math/math.h [defined __cplusplus] (issignaling): In the long
16688         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
16689         is not defined.  Call __issignaling, otherwise.
16691 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16693         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
16694         syscall definitions and replace __builtin_expect with __glibc_likely.
16695         * sysdeps/unix/syscall-template.S: Update comment about cancellable
16696         syscall.
16697          (SYSCALL_CANCELLABLE): Removedefinition
16698         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
16699         definition.
16700         (PSEUDO_END): Likewise.
16701         [IS_IN (libpthread)] (CENABLE): Likewise.
16702         [IS_IN (libpthread)] (CDISABLE): Likewise.
16703         [IS_IN (libc)] (CENABLE): Likewise.
16704         [IS_IN (libc)] (CENABLE): Likewise.
16705         [IS_IN (librt)] (CDISABLE): Likewise.
16706         [IS_IN (librt)] (CDISABLE): Likewise.
16707         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16708         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
16709         definition.
16710         (PSEUDO_END): Likewise.
16711         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
16712         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
16713         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
16714         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
16715         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
16716         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
16717         (CENABLE): Likewise.
16718         (CDISABLE): Likewise.
16719         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16720         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
16721         defintion.
16722         (PSEUDO_END): Likewise.
16723         [IS_IN (libpthread)] (CENABLE): Likewise.
16724         [IS_IN (libpthread)] (CDISABLE): Likewise.
16725         [IS_IN (libc)] (CENABLE): Likewise.
16726         [IS_IN (libc)] (CENABLE): Likewise.
16727         [IS_IN (librt)] (CDISABLE): Likewise.
16728         [IS_IN (librt)] (CDISABLE): Likewise.
16729         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16730         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
16731         definition.
16732         (PSEUDO_END): Likewise.
16733         [IS_IN (libpthread)] (CENABLE): Likewise.
16734         [IS_IN (libpthread)] (CDISABLE): Likewise.
16735         [IS_IN (libc)] (CENABLE): Likewise.
16736         [IS_IN (libc)] (CENABLE): Likewise.
16737         [IS_IN (librt)] (CDISABLE): Likewise.
16738         [IS_IN (librt)] (CDISABLE): Likewise.
16739         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16740         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
16741         definition.
16742         (PSEUDO_END): Likewise.
16743         [IS_IN (libpthread)] (CENABLE): Likewise.
16744         [IS_IN (libpthread)] (CDISABLE): Likewise.
16745         [IS_IN (libc)] (CENABLE): Likewise.
16746         [IS_IN (libc)] (CENABLE): Likewise.
16747         [IS_IN (librt)] (CDISABLE): Likewise.
16748         [IS_IN (librt)] (CDISABLE): Likewise.
16749         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16750         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
16751         definition.
16752         (PSEUDO_END): Likewise.
16753         [IS_IN (libpthread)] (CENABLE): Likewise.
16754         [IS_IN (libpthread)] (CDISABLE): Likewise.
16755         [IS_IN (libc)] (CENABLE): Likewise.
16756         [IS_IN (libc)] (CENABLE): Likewise.
16757         [IS_IN (librt)] (CDISABLE): Likewise.
16758         [IS_IN (librt)] (CDISABLE): Likewise.
16759         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16760         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
16761         definition.
16762         (PSEUDO_END): Likewise.
16763         [IS_IN (libpthread)] (CENABLE): Likewise.
16764         [IS_IN (libpthread)] (CDISABLE): Likewise.
16765         [IS_IN (libc)] (CENABLE): Likewise.
16766         [IS_IN (libc)] (CENABLE): Likewise.
16767         [IS_IN (librt)] (CDISABLE): Likewise.
16768         [IS_IN (librt)] (CDISABLE): Likewise.
16769         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16770         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
16771         definition.
16772         (PSEUDO_END): Likewise.
16773         [IS_IN (libpthread)] (CENABLE): Likewise.
16774         [IS_IN (libpthread)] (CDISABLE): Likewise.
16775         [IS_IN (libc)] (CENABLE): Likewise.
16776         [IS_IN (libc)] (CENABLE): Likewise.
16777         [IS_IN (librt)] (CDISABLE): Likewise.
16778         [IS_IN (librt)] (CDISABLE): Likewise.
16779         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16780         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
16781         Remove definition.
16782         (PSEUDO_END): Likewise.
16783         [IS_IN (libpthread)] (CENABLE): Likewise.
16784         [IS_IN (libpthread)] (CDISABLE): Likewise.
16785         [IS_IN (libc)] (CENABLE): Likewise.
16786         [IS_IN (libc)] (CENABLE): Likewise.
16787         [IS_IN (librt)] (CDISABLE): Likewise.
16788         [IS_IN (librt)] (CDISABLE): Likewise.
16789         (SINGLE_THREAD_P): Likewise.
16790         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
16791         definition.
16792         (PSEUDO_END): Likewise.
16793         [IS_IN (libpthread)] (CENABLE): Likewise.
16794         [IS_IN (libpthread)] (CDISABLE): Likewise.
16795         [IS_IN (libc)] (CENABLE): Likewise.
16796         [IS_IN (libc)] (CENABLE): Likewise.
16797         [IS_IN (librt)] (CDISABLE): Likewise.
16798         [IS_IN (librt)] (CDISABLE): Likewise.
16799         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16800         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
16801         definition.
16802         (PSEUDO_END): Likewise.
16803         [IS_IN (libpthread)] (CENABLE): Likewise.
16804         [IS_IN (libpthread)] (CDISABLE): Likewise.
16805         [IS_IN (libc)] (CENABLE): Likewise.
16806         [IS_IN (libc)] (CENABLE): Likewise.
16807         [IS_IN (librt)] (CDISABLE): Likewise.
16808         [IS_IN (librt)] (CDISABLE): Likewise.
16809         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16810         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
16811         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
16812         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
16813         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
16814         definition.
16815         (PSEUDO_END): Likewise.
16816         [IS_IN (libpthread)] (CENABLE): Likewise.
16817         [IS_IN (libpthread)] (CDISABLE): Likewise.
16818         [IS_IN (libc)] (CENABLE): Likewise.
16819         [IS_IN (libc)] (CENABLE): Likewise.
16820         [IS_IN (librt)] (CDISABLE): Likewise.
16821         [IS_IN (librt)] (CDISABLE): Likewise.
16822         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16823         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
16824         definition.
16825         (PSEUDO_END): Likewise.
16826         [IS_IN (libpthread)] (CENABLE): Likewise.
16827         [IS_IN (libpthread)] (CDISABLE): Likewise.
16828         [IS_IN (libc)] (CENABLE): Likewise.
16829         [IS_IN (libc)] (CENABLE): Likewise.
16830         [IS_IN (librt)] (CDISABLE): Likewise.
16831         [IS_IN (librt)] (CDISABLE): Likewise.
16832         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16833         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
16834         definition.
16835         (PSEUDO_END): Likewise.
16836         [IS_IN (libpthread)] (CENABLE): Likewise.
16837         [IS_IN (libpthread)] (CDISABLE): Likewise.
16838         [IS_IN (libc)] (CENABLE): Likewise.
16839         [IS_IN (libc)] (CENABLE): Likewise.
16840         [IS_IN (librt)] (CDISABLE): Likewise.
16841         [IS_IN (librt)] (CDISABLE): Likewise.
16842         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16843         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
16844         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
16845         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
16846         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
16847         definition.
16848         (PSEUDO_END): Likewise.
16849         [IS_IN (libpthread)] (CENABLE): Likewise.
16850         [IS_IN (libpthread)] (CDISABLE): Likewise.
16851         [IS_IN (libc)] (CENABLE): Likewise.
16852         [IS_IN (libc)] (CENABLE): Likewise.
16853         [IS_IN (librt)] (CDISABLE): Likewise.
16854         [IS_IN (librt)] (CDISABLE): Likewise.
16855         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16856         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
16857         definition.
16858         (PSEUDO_END): Likewise.
16859         [IS_IN (libpthread)] (CENABLE): Likewise.
16860         [IS_IN (libpthread)] (CDISABLE): Likewise.
16861         [IS_IN (libc)] (CENABLE): Likewise.
16862         [IS_IN (libc)] (CENABLE): Likewise.
16863         [IS_IN (librt)] (CDISABLE): Likewise.
16864         [IS_IN (librt)] (CDISABLE): Likewise.
16865         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16867 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16869         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
16871 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
16873         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16875 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
16877         [BZ #21982]
16878         * string/stratcliff.c (do_test): Declare size, nchars, inner,
16879         middle and outer with size_t instead of int.  Repleace %d and
16880         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
16881         "MAX (outer, nchars - 64)" to support unsigned outer and
16882         nchars.  Also exit loop when outer == 0.
16884 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16886         * include/fcntl.h (__fcntl_nocancel): Remove definition.
16887         * include/signal.h (__sigsuspend_nocancel): Likewise.
16888         * include/time.h (__nanosleep_nocancel): Likewise.
16889         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
16890         * login/utmp_file.c: Include non cancellable syscall header.
16891         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
16892         prototype.
16894 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
16896         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
16897         .byte sequences with AVX512F instructions.
16898         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
16899         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
16900         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
16901         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
16902         Likewise.
16903         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
16904         Likewise.
16906 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16907             Steve Ellcey  <sellcey@cavium.com>
16909         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
16910         Use PTR_REG macro in cmp instruction.
16912 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16914         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
16915         Change the return type of the ifunc resolver to match the return
16916         type of the target function.
16918 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16920         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
16921         (preadv64): Likewise.
16922         (pwrite64(: Likewise.
16923         (pwritev64): Likewise.
16925         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
16926         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
16927         (LOAD_ARGS_0): Likewise.
16928         (LOAD_ARGS_1): Likewise.
16929         (LOAD_ARGS_2): Likewise.
16930         (LOAD_ARGS_3): Likewise.
16931         (LOAD_ARGS_4): Likewise.
16932         (LOAD_ARGS_5): Likewise.
16933         (LOAD_ARGS_6): Likewise.
16934         (LOAD_REGS_0): Likewise.
16935         (LOAD_REGS_1): Likewise.
16936         (LOAD_REGS_2): Likewise.
16937         (LOAD_REGS_3): Likewise.
16938         (LOAD_REGS_4): Likewise.
16939         (LOAD_REGS_5): Likewise.
16940         (LOAD_REGS_6): Likewise.
16941         (ASM_ARGS_0): Likewise.
16942         (ASM_ARGS_1): Likewise.
16943         (ASM_ARGS_2): Likewise.
16944         (ASM_ARGS_3): Likewise.
16945         (ASM_ARGS_4): Likewise.
16946         (ASM_ARGS_5): Likewise.
16947         (ASM_ARGS_6): Likewise.
16948         (LOAD_ARGS_TYPES_1): Likewise.
16949         (LOAD_ARGS_TYPES_2): Likewise.
16950         (LOAD_ARGS_TYPES_3): Likewise.
16951         (LOAD_ARGS_TYPES_4): Likewise.
16952         (LOAD_ARGS_TYPES_5): Likewise.
16953         (LOAD_ARGS_TYPES_6): Likewise.
16954         (LOAD_REGS_TYPES_1): Likewise.
16955         (LOAD_REGS_TYPES_2): Likewise.
16956         (LOAD_REGS_TYPES_3): Likewise.
16957         (LOAD_REGS_TYPES_4): Likewise.
16958         (LOAD_REGS_TYPES_5): Likewise.
16959         (LOAD_REGS_TYPES_6): Likewise.
16960         (TYPEFY): New define.
16961         (ARGIFY): Likewise.
16962         (internal_syscall0): Likewise.
16963         (internal_syscall1): Likewise.
16964         (internal_syscall2): Likewise.
16965         (internal_syscall3): Likewise.
16966         (internal_syscall4): Likewise.
16967         (internal_syscall5): Likewise.
16968         (internal_syscall6): Likewise.
16969         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
16970         (INTERNAL_SYSCALL_NCS): Remove define.
16971         (internal_syscall1): Add define.
16973 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16975         * math/w_remainder_compat.c: Remove duplicate inclusion of
16976         math-svid-compat.h.
16977         * math/w_remainderf_compat.c: Likewise.
16978         * math/w_remainderl_compat.c: Likewise.
16980 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16982         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16984 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
16986         [BZ #21684]
16987         * math/tgmath.h (__floating_type): Simplify definitions.
16988         (__real_integer_type): New macro.
16989         (__complex_integer_type): Likewise.
16990         (__expr_is_real): Likewise.
16991         (__tgmath_real_type_sub): Update comment to describe handling of
16992         complex types.
16993         (__tgmath_complex_type_sub): New macro.
16994         (__tgmath_complex_type): Likewise.
16995         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16996         (__TGMATH_CF128): Use __expr_is_real.
16997         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
16998         __expr_is_real.
16999         (__TGMATH_BINARY_REAL_IMAG): Likewise.
17000         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
17001         * math/gen-tgmath-tests.py (Type.create_type): Create complex
17002         integer types.
17004 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17006         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
17007         macro.
17008         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
17009         alias.
17010         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
17011         Likewise.
17013         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
17014         nanosleep_not_cancel with __nanosleep_nocancel.
17015         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
17016         (__nanosleep_nocancel): New macro.
17017         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
17018         function.
17019         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
17020         macro.
17021         (__nanosleep_nocancel): New prototype.
17023         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
17024         pause_not_cancel with __pause_nocancel.
17025         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
17026         (__pause_nocancel): New macro.
17027         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
17028         macro.
17029         (__pause_nocancel): New prototype.
17030         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
17032 2017-08-22  Martin Sebor  <msebor@redhat.com>
17034         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
17035         to return a pointer to the same type as the target function.
17037 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
17039         [BZ #18822]
17040         [BZ #21986]
17041         * include/printf.h (__printf_fphex): Add attribute_hidden.
17042         (__guess_grouping): New prototype.
17043         * stdio-common/printf_fp.c (__guess_grouping): Removed.
17044         * stdio-common/reg-printf.c (__register_printf_specifier): Add
17045         libc_hidden_proto and libc_hidden_def.
17046         * stdlib/strfmon_l.c (__guess_grouping): Removed.
17047         (__vstrfmon_l): Remove the third argument passed to
17048         __guess_grouping.
17050 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17052         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
17053         definition for issignaling that does not rely on __MATH_TG,
17054         since __MATH_TG uses __builtin_types_compatible_p, which is only
17055         available in C mode.
17056         (CFLAGS-test-math-issignaling.cc): New variable.
17057         * math/Makefile [CXX] (tests): Add test-math-issignaling.
17058         * math/test-math-issignaling.cc: New test for C++ implementation
17059         of type-generic issignaling.
17060         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
17061         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
17062         options of test-math-issignaling on powerpc64le.
17064 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
17066         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
17067         building libc.a.
17068         (hidden_proto): Likewise.
17069         (hidden_tls_proto): Likewise.
17070         (__hidden_proto): Likewise.
17072 2017-08-22  Florian Weimer  <fweimer@redhat.com>
17074         math: Statically link tests of internal functionality.
17075         * math/Makefile (tests): Remove atest-exp, atest-sincos,
17076         atest-exp2.
17077         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
17078         (gmp-objs): Remove assignment.
17079         (atest-exp, atest-sincos, atest-exp2): Remove targets.
17081 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
17083         [BZ #21987]
17084         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
17085         and copy to ...
17086         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
17087         ... here.
17088         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
17089         ... and here.
17091         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
17092         variable definitions above inclusion of ../Rules.
17094 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
17096         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
17097         case calling __builtin_unreachable.
17099 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17101         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
17102         __waitpid_nocancel.
17103         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
17104         (__waitpid_nocancel): New macro.
17105         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
17106         macro.
17107         (__waitpid_nocancel): Replace macro with a function.
17108         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
17109         function.
17111         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
17112         __fcntl_nocancel.
17113         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
17114         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
17116         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
17117         __writev_nocancel_nostatus.
17118         (write_call_graph): Likewise.
17119         (write_bb_counts): Likewise.
17120         * resolv/herror.c (herror): Likewise.
17121         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
17122         macro.
17123         (__writev_nocancel_nostatus): New macro.
17124         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
17125         Remove macro.
17126         (__writev_nocancel_nostatus): New function.
17128 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
17130         Revert:
17131         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17133         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
17134         building libc.a.
17135         (hidden_proto): Likewise.
17136         (hidden_tls_proto): Likewise.
17137         (__hidden_proto): Likewise.
17139         [BZ #21973]
17140         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
17141         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
17142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
17143         Likewise.
17144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
17145         Likewise.
17146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
17147         Likewise.
17148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
17149         Likewise.
17150         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
17151         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
17152         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
17153         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
17154         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
17155         GLIBC_2.0 sqrtl symbol.
17157         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
17158         [__USE_MISC] (_LIB_VERSION): Likewise.
17159         [__USE_MISC] (struct exception): Likewise.
17160         [__USE_MISC] (matherr): Likewise.
17161         [__USE_MISC] (DOMAIN): Likewise.
17162         [__USE_MISC] (SING): Likewise.
17163         [__USE_MISC] (OVERFLOW): Likewise.
17164         [__USE_MISC] (UNDERFLOW): Likewise.
17165         [__USE_MISC] (TLOSS): Likewise.
17166         [__USE_MISC] (PLOSS): Likewise.
17167         [__USE_MISC] (HUGE): Likewise.
17168         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
17169         * math/math-svid-compat.h: New file.
17170         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
17171         and matherrl.
17172         * include/math.h [!_ISOMAC] (__matherr): Remove.
17173         * manual/arith.texi (FP Exceptions): Do not document matherr.
17174         * math/Makefile (tests): Change test-matherr to test-matherr-3.
17175         (tests-internal): New variable.
17176         (install-lib): Do not add libieee.a.
17177         (non-lib.a): Likewise.
17178         (extra-objs): Do not add libieee.a and ieee-math.o.
17179         (CPPFLAGS-s_lib_version.c): Remove variable.
17180         ($(objpfx)libieee.a): Remove rule.
17181         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
17182         * math/ieee-math.c: Remove.
17183         * math/libm-test-support.c (matherr): Remove.
17184         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
17185         and license notices.  Include <math-svid-compat.h> and
17186         <shlib-compat.h>.
17187         (matherr): Undefine as macro.  Use compat_symbol_reference.
17188         (_LIB_VERSION): Likewise.
17189         * math/test-matherr-2.c: New file.
17190         * math/test-matherr-3.c: Likewise.
17191         * sysdeps/generic/math_private.h (__kernel_standard): Remove
17192         declaration.
17193         (__kernel_standard_f): Likewise.
17194         (__kernel_standard_l): Likewise.
17195         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
17196         <math_private.h>.  Include <math-svid-compat.h>.
17197         (_LIB_VERSION): Undefine as macro.
17198         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
17199         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
17200         [LIBM_SVID_COMPAT], use compat_symbol.
17201         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
17202         <math_private.h>.  Include <math-svid-compat.h>.
17203         (matherr): Undefine as macro.
17204         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
17205         compat_symbol.
17206         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
17207         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
17208         compat_symbol_reference.
17209         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
17210         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
17211         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
17212         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
17213         (MATHERR_D): Remove declaration.
17214         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
17215         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
17216         [LIBM_BUILD] (pmatherrf): Likewise.
17217         [LIBM_BUILD] (pmatherr): Likewise.
17218         [LIBM_BUILD] (pmatherrl): Likewise.
17219         (DOMAIN): Likewise.
17220         (SING): Likewise.
17221         (OVERFLOW): Likewise.
17222         (UNDERFLOW): Likewise.
17223         (TLOSS): Likewise.
17224         (PLOSS): Likewise.
17225         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
17226         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
17227         compat_symbol.
17228         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
17229         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
17230         compat_symbol.
17231         * math/lgamma-compat.h: Include <math-svid-compat.h>.
17232         * math/w_acos_compat.c: Likewise.
17233         * math/w_acosf_compat.c: Likewise.
17234         * math/w_acosh_compat.c: Likewise.
17235         * math/w_acoshf_compat.c: Likewise.
17236         * math/w_acoshl_compat.c: Likewise.
17237         * math/w_acosl_compat.c: Likewise.
17238         * math/w_asin_compat.c: Likewise.
17239         * math/w_asinf_compat.c: Likewise.
17240         * math/w_asinl_compat.c: Likewise.
17241         * math/w_atan2_compat.c: Likewise.
17242         * math/w_atan2f_compat.c: Likewise.
17243         * math/w_atan2l_compat.c: Likewise.
17244         * math/w_atanh_compat.c: Likewise.
17245         * math/w_atanhf_compat.c: Likewise.
17246         * math/w_atanhl_compat.c: Likewise.
17247         * math/w_cosh_compat.c: Likewise.
17248         * math/w_coshf_compat.c: Likewise.
17249         * math/w_coshl_compat.c: Likewise.
17250         * math/w_exp10_compat.c: Likewise.
17251         * math/w_exp10f_compat.c: Likewise.
17252         * math/w_exp10l_compat.c: Likewise.
17253         * math/w_exp2_compat.c: Likewise.
17254         * math/w_exp2f_compat.c: Likewise.
17255         * math/w_exp2l_compat.c: Likewise.
17256         * math/w_fmod_compat.c: Likewise.
17257         * math/w_fmodf_compat.c: Likewise.
17258         * math/w_fmodl_compat.c: Likewise.
17259         * math/w_hypot_compat.c: Likewise.
17260         * math/w_hypotf_compat.c: Likewise.
17261         * math/w_hypotl_compat.c: Likewise.
17262         * math/w_j0_compat.c: Likewise.
17263         * math/w_j0f_compat.c: Likewise.
17264         * math/w_j0l_compat.c: Likewise.
17265         * math/w_j1_compat.c: Likewise.
17266         * math/w_j1f_compat.c: Likewise.
17267         * math/w_j1l_compat.c: Likewise.
17268         * math/w_jn_compat.c: Likewise.
17269         * math/w_jnf_compat.c: Likewise.
17270         * math/w_jnl_compat.c: Likewise.
17271         * math/w_lgamma_main.c: Likewise.
17272         * math/w_lgamma_r_compat.c: Likewise.
17273         * math/w_lgammaf_main.c: Likewise.
17274         * math/w_lgammaf_r_compat.c: Likewise.
17275         * math/w_lgammal_main.c: Likewise.
17276         * math/w_lgammal_r_compat.c: Likewise.
17277         * math/w_log10_compat.c: Likewise.
17278         * math/w_log10f_compat.c: Likewise.
17279         * math/w_log10l_compat.c: Likewise.
17280         * math/w_log2_compat.c: Likewise.
17281         * math/w_log2f_compat.c: Likewise.
17282         * math/w_log2l_compat.c: Likewise.
17283         * math/w_log_compat.c: Likewise.
17284         * math/w_logf_compat.c: Likewise.
17285         * math/w_logl_compat.c: Likewise.
17286         * math/w_pow_compat.c: Likewise.
17287         * math/w_powf_compat.c: Likewise.
17288         * math/w_powl_compat.c: Likewise.
17289         * math/w_remainder_compat.c: Likewise.
17290         * math/w_remainderf_compat.c: Likewise.
17291         * math/w_remainderl_compat.c: Likewise.
17292         * math/w_scalb_compat.c: Likewise.
17293         * math/w_scalbf_compat.c: Likewise.
17294         * math/w_scalbl_compat.c: Likewise.
17295         * math/w_sinh_compat.c: Likewise.
17296         * math/w_sinhf_compat.c: Likewise.
17297         * math/w_sinhl_compat.c: Likewise.
17298         * math/w_sqrt_compat.c: Likewise.
17299         * math/w_sqrtf_compat.c: Likewise.
17300         * math/w_sqrtl_compat.c: Likewise.
17301         * math/w_tgamma_compat.c: Likewise.
17302         * math/w_tgammaf_compat.c: Likewise.
17303         * math/w_tgammal_compat.c: Likewise.
17304         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
17305         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
17306         * sysdeps/ieee754/k_standard.c: Likewise.
17307         * sysdeps/ieee754/k_standardf.c: Likewise.
17308         * sysdeps/ieee754/k_standardl.c: Likewise.
17309         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
17310         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
17311         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
17312         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
17313         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
17314         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
17315         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
17316         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
17317         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
17318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
17319         Likewise.
17320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
17321         Likewise.
17322         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
17323         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
17324         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
17325         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
17327 2017-08-21  Florian Weimer  <fweimer@redhat.com>
17329         [BZ #21864]
17330         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
17331         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
17332         Move before inclusion of ../Rules.
17334 2017-08-21  Florian Weimer  <fweimer@redhat.com>
17336         [BZ #21972]
17337         * assert/assert.h (assert): Use static_cast (bool) for C++.
17338         Use the ternary operator in the warning branch for GNU C.
17339         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
17340         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
17341         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
17342         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
17343         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
17345 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17347         [BZ #18822]
17348         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17349         (__syscall_clock_gettime): Add attribute_hidden.
17350         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
17351         (__start_context): Likewise.
17353 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17355         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
17356         building libc.a.
17357         (hidden_proto): Likewise.
17358         (hidden_tls_proto): Likewise.
17359         (__hidden_proto): Likewise.
17361 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17363         * include/libc-symbols.h (attribute_hidden): Enable hidden
17364         visibility in libc.a compiled with PIE.
17366 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17368         [BZ #18822]
17369         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
17370         Add attribute_hidden.
17372 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17374         [BZ #21864]
17375         * Makerules (all-nonlib): Add $(others-extras).
17376         * catgets/Makefile (others-extras): New.
17377         * elf/Makefile (others-extras): Likewise.
17378         * nss/Makefile (others-extras): Likewise.
17380 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17382         [BZ #18822]
17383         * csu/libc-start.c (__libc_multiple_libcs): Removed.
17384         * elf/dl-open.c: Include <libc-internal.h>.
17385         (__libc_multiple_libcs): Removed.
17386         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
17387         <hp-timing.h>.
17388         * include/libc-internal.h (__libc_multiple_libcs): New.
17389         * misc/sbrk.c: Include <libc-internal.h>.
17390         (__libc_multiple_libcs): Removed.
17392 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17394         [BZ #18822]
17395         * grp/initgroups.c (__nss_group_database): Removed.
17396         (__nss_initgroups_database): Likewise.
17397         * nscd/gai.c (__nss_hosts_database): Likewise.
17398         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
17399         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17400         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17401         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17402         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
17403         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
17404         attribute_hidden.
17405         * nss/nsswitch.c (__nss_database_custom): Define only if
17406         USE_NSCD is defined.
17407         (__nss_configure_lookup): Use __nss_database_custom only if
17408         USE_NSCD is defined.
17409         * nss/nsswitch.h (__nss_database_custom): Declare only if
17410         USE_NSCD is defined.  Add attribute_hidden.
17411         (__nss_setent): Add attribute_hidden.
17412         (__nss_endent): Likewise.
17413         (__nss_getent_r): Likewise.
17414         (__nss_getent): Likewise.
17415         (DEFINE_DATABASE): Declare __nss_##arg##_database.
17417 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
17419         [BZ #18822]
17420         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
17421         libc_hidden_proto and libc_hidden_def.
17423 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
17425         [BZ #18822]
17426         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
17427         Add libc_hidden_proto.
17428         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
17429         Add libc_hidden_def.
17431 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
17433         [BZ #21974]
17434         * gmon/Makefile (routines): Remove bb_init_func and
17435         bb_exit_func.
17436         (elide-routines.os): Removed.
17437         * gmon/bb_exit_func.c: Likewise.
17438         * gmon/bb_init_func.c: Likewise.
17439         * include/sys/gmon.h (__bb): Likewise.
17440         (__bb_init_func): Likewise.
17441         (__bb_exit_func): Likewise.
17442         * sysdeps/alpha/bb_init_func.S: Likewise.
17444 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
17446         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
17447         * include/setjmp.h (____longjmp_chk): Here.  Add
17448         attribute_hidden.
17450 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
17452         [BZ #18822]
17453         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
17454         attribute_hidden.
17455         (__strspn_sse2): Likewise.
17457 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17459         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
17460         (close_not_cancel_no_status): Likewise.
17461         (__close_nocancel): New macro.
17462         (__close_nocancel_nostatus): Likewise.
17463         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
17464         macro.
17465         (close_not_cancel): Likewise.
17466         (close_not_cancel_no_status): Likewise.
17467         (__close_nocancel): New prototype.
17468         (__close_nocancel_nostatus): New function.
17469         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
17470         * catgets/open_catalog.c (__open_catalog): Replace
17471         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
17472         * gmon/gmon.c (write_gmon): Likewise.
17473         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
17474         * intl/loadmsgcat.c (close): Likewise.
17475         * io/ftw.c (open_dir_stream): Likewise.
17476         (ftw_startup): Likewise.
17477         * libio/fileops.c (_IO_file_open): Likewise.
17478         (_IO_file_close_mmap): Likewise.
17479         (_IO_file_close): Likewise.
17480         * libio/iopopen.c (_IO_dup2): Likewise.
17481         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
17482         * locale/loadlocale.c (_nl_load_locale): Likewise.
17483         * login/utmp_file.c (pututline_file): Likewise.
17484         (endutent_file): Likewise.
17485         * misc/daemon.c (daemon): Likewise.
17486         * nscd/nscd_getai.c (__nscd_getai): Likewise.
17487         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
17488         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
17489         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
17490         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17491         * nscd/nscd_helper.c (open_socket): Likewise.
17492         (__nscd_open_socket): Likewise.
17493         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
17494         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
17495         (__nscd_innetgr): Likewise.
17496         * nss/nss_db/db-open.c (internal_setent): Likewise.
17497         * resolv/res-close.c (__res_iclose): Likewise.
17498         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
17499         * sysdeps/posix/closedir.c (__closedir): Likewise.
17500         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
17501         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
17502         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
17503         (opendir_tail): Likewise.
17504         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
17505         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
17506         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
17507         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
17508         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
17509         (gethostid): Likewise.
17510         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
17511         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17512         Likewise.
17513         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
17514         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
17515         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
17516         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
17517         Likewise.
17518         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
17519         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
17520         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
17521         Likewise.
17522         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
17523         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
17524         Likewise.
17525         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
17526         Likewise.
17527         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
17528         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
17529         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
17530         __close_nocancel.
17532         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
17533         (openat_not_cancel_3): Likewise.
17534         (openat64_not_cancel_3): Likewise).
17535         (openat_not_cancel_3): Likewise).
17536         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
17537         macro.
17538         (openat_not_cancel_3): Likewise.
17539         (openat64_not_cancel): Likewise.
17540         (openat64_not_cancel_3): Likewise.
17541         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
17542         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
17543         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
17544         __open{64}_nocancel.
17545         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
17546         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
17547         * sysdeps/posix/opendir.c (__opendirat): Likewise.
17549 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
17551         [BZ #18822]
17552         * include/argz.h (__argz_create_sep): New function prototype.
17553         (__argz_append): Likewise.
17554         (__argz_add): Likewise.
17555         (__argz_add_sep): Likewise.
17556         (__argz_delete): Likewise.
17557         (__argz_insert): Likewise.
17558         (__argz_replace): Likewise.
17559         * string/argz.h (__argz_create_sep): Removed.
17560         (__argz_append): Likewise.
17561         (__argz_add): Likewise.
17562         (__argz_add_sep): Likewise.
17563         (__argz_delete): Likewise.
17564         (__argz_insert): Likewise.
17565         (__argz_replace): Likewise.
17567 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
17569         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
17570         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
17571         (GNU_PROPERTY_STACK_SIZE): Likewie.
17572         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
17573         (GNU_PROPERTY_LOPROC): Likewise.
17574         (GNU_PROPERTY_HIPROC): Likewise.
17575         (GNU_PROPERTY_LOUSER): Likewise.
17576         (GNU_PROPERTY_HIUSER): Likewise.
17577         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
17578         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
17579         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
17580         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
17581         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
17582         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
17583         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
17584         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
17585         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
17586         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
17587         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
17588         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
17589         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
17590         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
17591         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
17592         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
17593         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
17594         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
17595         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
17596         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
17597         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
17598         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
17599         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
17601 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17603         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
17604         in C++ mode.
17606 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17608         [BZ #21930]
17609         * math/math.h (isinf): Check if in C or C++ mode before using
17610         __builtin_types_compatible_p, since this is a C mode feature.
17612 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17614         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
17615         (__write_nocancel): New macro.
17616         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
17617         Rewrite as a function prototype.
17618         (write_not_cancel): Remove macro.
17619         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
17620         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
17621         (write_gmon): Likewise.
17622         * libio/fileops.c (_IO_new_file_write): Likewise.
17623         * login/utmp_file.c (pututline_file): Likewise.
17624         (updwtmp_file): Likewise.
17625         * stdio-common/psiginfo.c (psiginfo): Likewise.
17626         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
17627         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
17628         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
17629         Likewise.
17630         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
17631         Likewise.
17633         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
17634         (__read_nocancel): New macro.
17635         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
17636         __read_nocancel.
17637         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
17638         macro.
17639         (__read_nocancel): New prototype.
17640         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
17641         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
17642         with __read_nocancel.
17643         * intl/loadmsgcat.c (read): Likewise.
17644         * libio/fileops.c (_IO_file_read): Likewise.
17645         * locale/loadlocale.c (_nl_load_locale): Likewise.
17646         * login/utmp_file.c (getutent_r_file): Likewise.
17647         (internal_getut_r): Likewise.
17648         (getutline_r_file): Likewise.
17649         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
17650         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
17651         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
17652         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17653         Likewise.
17654         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
17655         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
17656         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
17657         Likewise.
17658         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
17659         Likewise.
17660         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
17661         Likewise.
17662         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
17663         Likewise.
17664         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
17666 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
17668         [BZ #21966]
17669         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
17670         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
17671         usable.
17673 2017-08-17  DJ Delorie  <dj@redhat.com>
17675         * bug17079.c: Update to new test harness.
17676         * test-digits-dots.c: Likewise.
17677         * test-netdb.c: Likewise.
17678         * tst-field.c: Likewise.
17679         * tst-nss-getpwent.c: Likewise.
17680         * tst-nss-static.c: Likewise.
17681         * tst-nss-test1.c: Likewise.
17682         * tst-nss-test2.c: Likewise.
17683         * tst-nss-test3.c: Likewise.
17684         * tst-nss-test4.c: Likewise.
17685         * tst-nss-test5.c: Likewise.
17687 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17689         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
17690         (open_not_cancel_2): Likewise.
17691         (open_nocancel): New macro.
17692         (open64_nocancel): Likewise.
17693         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
17694         (open_not_cancel_2): Likewise.
17695         (__open_nocancel): New prototype.
17696         (__open64_nocancel): Likewise.
17697         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
17698         __open_nocancel.
17699         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
17700         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
17701         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
17702         with __open_nocancel.
17703         * csu/check_fds.c (check_one_fd): Likewise.
17704         * gmon/gmon.c (write_gmon): Likewise.
17705         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
17706         * intl/loadmsgcat.c (open): Likewise.
17707         * libio/fileops.c (_IO_file_open): Likewise.
17708         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
17709         * locale/loadlocale.c (_nl_load_locale): Likewise.
17710         * login/utmp_file.c (setutent_file): Likewise.
17711         * misc/daemon.c (daemon): Likewise.
17712         * nss/nss_db/db-open.c (internal_setent): Likewise.
17713         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
17714         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
17715         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
17716         (__opendir): Likewise.
17717         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
17718         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
17719         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
17720         (gethostid): Likewise.
17721         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
17722         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17723         Likewise.
17724         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
17725         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
17726         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
17727         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
17728         Likewise.
17729         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
17730         Likewise.
17731         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
17732         Likewise.
17733         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
17734         Likewise.
17735         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
17736         Likewise.
17737         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
17738         Likewise.
17739         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
17740         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
17742 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
17744         * benchtests/bench-skeleton.c (main): Add support for
17745         latency benchmarking.
17746         * benchtests/scripts/bench.py: Add support for latency benchmarking.
17748 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
17750         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
17751         the startup object.
17753 2017-08-17  Florian Weimer  <fweimer@redhat.com>
17755         * include/sys/socket.h (__opensock): Remove internal_function.
17756         * socket/opensock.c (__opensock): Likewise.
17757         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
17759 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
17761         [BZ #21944]
17762         * signal/bits/types/__sigval_t.h: New file.
17763         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
17764         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
17765         and define sigval_t using __sigval_t.
17766         * include/bits/types/__sigval_t.h: New file.
17767         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
17768         instead of <bits/types/__sigval_t.h>.
17769         (struct sigevent): Use __sigval_t instead of sigval_t.
17770         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
17771         instead of <bits/types/__sigval_t.h>.
17772         (siginfo_t): Use __sigval_t instead of sigval_t.
17773         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
17774         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
17775         (struct sigevent): Use __sigval_t instead of sigval_t.
17776         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
17777         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
17778         (siginfo_t): Use __sigval_t instead of sigval_t.
17779         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
17781 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
17783         * NEWS: Remove "[Add new features here]" for 2.27.
17785 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
17787         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
17788         libc.so.
17790 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
17792         * NEWS: Mention x86-64 FMA optimization.
17794 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
17796         [BZ #21912]
17797         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17798         Add e_expf-fma.
17799         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
17800         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
17801         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
17803 2017-08-16  Andreas Schwab  <schwab@suse.de>
17805         [BZ #16750]
17806         CVE-2009-5064
17807         * elf/ldd.bash.in: Never run file directly.
17809 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
17811         [BZ #21955]
17812         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
17813         (L(SP_INF_0)): Likewise.
17815 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17817         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
17818         run-built-tests.
17820 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17822         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
17823         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
17824         BROKEN_THREAD_SIGNALS code.
17825         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
17826         request_list): Remove caller_pid member used for
17827         BROKEN_THREAD_SIGNALS.
17828         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
17829         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
17830         Remove BROKEN_THREAD_SIGNALS support.
17831         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
17832         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
17834 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17836         * gmon/Makefile (tests): Add tst-gmon.
17837         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
17838         Set.
17839         (tests-special): Add tst-gmon-prof.out.
17840         (tst-gmon.out): Depend on clean-tst-gmon-data.
17841         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
17842         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
17843         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
17844         startup object.
17845         * aclocal.m4 (GPROF): Set and substitute.
17846         * config.amke.in (GPROF): Set.
17847         * configure: Regenerate.
17849 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
17851         * elf/elf.h A (NT_PPC_TAR): New macro.
17852         (NT_PPC_PPR): Likewise.
17853         (NT_PPC_DSCR): Likewise.
17854         (NT_PPC_EBB): Likewise.
17855         (NT_PPC_PMU): Likewise.
17856         (NT_PPC_TM_CGPR): Likewise.
17857         (NT_PPC_TM_CFPR): Likewise.
17858         (NT_PPC_TM_CVMX): Likewise.
17859         (NT_PPC_TM_CVSX): Likewise.
17860         (NT_PPC_TM_SPR): Likewise.
17861         (NT_PPC_TM_CTAR): Likewise.
17862         (NT_PPC_TM_CPPR): Likewise.
17863         (NT_PPC_TM_CDSCR): Likewise.
17865 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17867         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
17868         regparm (2) instead of internal_function.
17869         (_MCOUNT_DECL): Adjust.
17871 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
17873         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
17874         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
17876 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
17878         * conform/data/sys/wait.h-data (si_value): Do not expect for
17879         XPG42.
17881 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17883         [BZ #21962]
17884         NSS: Create stubs for accidentally exported lookup functions.
17885         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
17886         Remove declaration.
17887         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
17888         (ether_hostton): Call __nss_ethers_lookup2 instead.
17889         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
17890         (ether_ntohost): Call __nss_ethers_lookup2 instead.
17891         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
17892         (setup): Call __nss_netgroup_lookup2 instead.
17893         * nss/Makefile (routines): Add compat-lookup.
17894         * nss/Versions (GLIBC_2.27): Add symbol version.
17895         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
17896         (DB_COMPAT_FCT): Remove.
17897         * nss/compat-lookup.c: New file.
17898         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
17899         from databases.def.
17900         * nss/service-lookup.c (NO_COMPAT): Remove definition.
17901         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
17902         (netname2user): Call __nss_publickey_lookup2 instead.
17903         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
17904         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
17905         instead.
17907 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17908             Sergei Trofimovich  <slyfox@inbox.ru>
17910         [BZ #21908]
17911         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
17912         Rename to MMAP2_PAGE_UNIT.
17913         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
17914         __OFF_T_MATCHES_OFF64_T is not defined.
17915         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
17916         uint64_t.
17917         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
17918         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
17920 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17922         i386: Do not set internal_function.
17923         * config.h.in (USE_REGPARMS, internal_function): Remove.
17924         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
17925         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
17927 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17929         * elf/dl-init.c (_dl_init): Remove internal_function.
17930         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
17931         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
17933 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17935         * elf/rtld.c (_dl_start): Remove internal_function.
17936         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
17937         _dl_start.
17939 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17941         * elf/dl-fini.c (_dl_fini): Remove internal_function
17942         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
17944 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
17946         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
17947         (bit_cpu_SHSTK): Likewise.
17948         (index_cpu_IBT): Likewise.
17949         (index_cpu_SHSTK): Likewise.
17950         (reg_IBT): Likewise.
17951         (reg_SHSTK): Likewise.
17952         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17953         Handle index_cpu_IBT and index_cpu_SHSTK.
17955 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
17957         [BZ #19982]
17958         * po/fr.po: Fix spelling mistake.
17960 2017-08-13  Florian Weimer  <fweimer@redhat.com>
17962         * elf/dl-addr.c (_dl_addr): Remove internal_function.
17963         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
17964         (_dl_catch_error, _dl_receive_error): Likewise.
17965         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
17966         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
17967         (_dl_deallocate_tls): Likewise.
17968         * include/dlfcn.h (_dl_addr): Likewise.
17969         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
17970         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
17971         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
17972         Likewise.
17974 2017-08-13  Florian Weimer  <fweimer@redhat.com>
17976         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
17977         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
17978         internal_function.
17979         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
17981 2017-08-13  Florian Weimer  <fweimer@redhat.com>
17983         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
17984         internal_function.
17985         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
17986         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
17987         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
17988         internal_function from _dl_make_stack_executable_hook member.
17989         (_dl_make_stack_executable): Remove internal_function.
17990         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
17991         Likewise.
17992         * sysdeps/unix/sysv/linux/dl-execstack.c
17993         (_dl_make_stack_executable): Likewise.
17995 2017-08-13  Florian Weimer  <fweimer@redhat.com>
17997         * sysdeps/unix/sysv/linux/netlinkaccess.h
17998         (__netlink_assert_response): Remove internal_function.
17999         * sysdeps/unix/sysv/linux/netlink_assert_response.c
18000         (__netlink_assert_response): Likewise.
18002 2017-08-13  Florian Weimer  <fweimer@redhat.com>
18004         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
18005         internal_function.
18006         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
18008 2017-08-13  Florian Weimer  <fweimer@redhat.com>
18010         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
18011         internal_function.
18012         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
18013         * inet/netgroup.h (__internal_setnetgrent)
18014         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
18015         * inet/getnetgrent_r.c (__internal_setnetgrent)
18016         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
18017         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
18018         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
18019         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
18020         * nss/nsswitch.h (db_lookup_function): Likewise.
18022 2017-08-13  Florian Weimer  <fweimer@redhat.com>
18024         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
18025         Remove internal_function.
18026         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
18027         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
18028         message argument on the stack.
18029         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
18030         Likeweise.
18032 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
18034         Adapt test case data to the changes in the thousands
18035         separators.
18037         [BZ #20756]
18038         * localedata/tst-langinfo.sh: Adapt test case data.
18039         * stdlib/tst-strfmon_l.c: Likewise.
18040         * stdlib/tst-strtod4.c: Likewise.
18041         * stdlib/tst-strtod5i.c: Likewise.
18043 2017-08-11  Florian Weimer  <fweimer@redhat.com>
18045         [BZ #21242]
18046         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
18047         Suppress pedantic warning resulting from statement expression.
18048         (__ASSERT_FUNCTION): Add missing __extension__.
18050 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18052         * benchtests/bench-memmove-large.c: Print output in JSON
18053         format.
18054         * benchtests/bench-memmove.c: Likewise.
18056         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
18057         * benchtests/bench-memchr.c (do_one_test): Likewise.
18058         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
18059         * benchtests/bench-memcpy.c (do_one_test): Likewise.
18060         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
18061         * benchtests/bench-memmove.c (do_one_test): Likewise.
18062         * benchtests/bench-memset-large.c (do_one_test): Likewise.
18063         * benchtests/bench-memset.c (do_one_test): Likewise.
18064         * benchtests/bench-string.h (test_init): Remove memsets.
18066 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
18068         * manual/lang.texi
18069         (Computing the Width of an Integer Data Type): Rename section to
18070         "Width of an Integer Type".  Remove inaccurate statement regarding
18071         lack of C language facilities for determining width of integer
18072         types, and reorder content to improve flow and context of
18073         discussion.
18075 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
18077         * lang.texi (va_copy): Change standard from ISO to C99.
18078         (__va_copy): Add standard and header annotation.
18079         Update description for clarity of origins and current use.
18081 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
18083         [BZ #21941]
18084         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
18085         xssqrtqp requires operands to be in Vector Registers
18086         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
18087         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
18088         (__ieee754_sqrtf128): Likewise.
18090 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
18092         * sysdeps/aarch64/memcmp.S (memcmp):
18093         Rewrite of optimized memcmp.
18095 2017-08-10  Florian Weimer  <fweimer@redhat.com>
18097         Introduce ld.so exceptions.
18098         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
18099         (_dl_exception_create, _dl_exception_create_format)
18100         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
18101         (_dl_catch_exception): Declare.
18102         (_dl_catch_error): Update comment.
18103         * elf/dl-error-skeleton.c (struct catch): Replace objname,
18104         errstring, malloced members with exception member.
18105         (_dl_out_of_memory): Remove.
18106         (fatal_error): New function, extracted from _dl_signal_error.
18107         (_dl_signal_exception, _dl_signal_cexception): New functions.
18108         (_dl_signal_error): Call _dl_exception_create to allocate an
18109         exception object.
18110         (_dl_catch_exception): New function, based on _dl_catch_error.
18111         (_dl_catch_error): Implement using _dl_catch_exception.
18112         * elf/dl-exception.c: New file.
18113         * elf/Makefile (dl-routines): Add dl-exception.
18114         (elide-routines.os): Likewise.
18115         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
18116         _dl_exception_create_format, _dl_exception_free.
18117         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
18118         _dl_signal_exception.
18119         * elf/dl-lookup.c (make_string): Remove.
18120         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
18121         _dl_signal_cexception, _dl_exception_free.
18122         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
18123         _dl_signal_exception.
18124         * elf/dl-sym.c (do_sym): Likewise.
18125         * elf/dl-version.c (make_string): Remove.
18126         (match_symbol): Use _dl_exception_create_format,
18127         _dl_signal_cexception, _dl_exception_free.
18128         (_dl_check_map_versions): Likewise.
18129         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
18130         _dl_catch_exception.
18131         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
18132         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
18133         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
18134         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
18135         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
18136         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
18137         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
18138         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
18139         Likewise.
18140         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
18141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
18142         (ld.so): Likewise.
18143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
18144         (ld.so): Likewise.
18145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
18146         Likewise.
18147         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
18148         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
18149         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
18150         Likewise.
18151         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
18152         Likewise.
18153         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
18155 2017-08-10  Florian Weimer  <fweimer@redhat.com>
18157         * inet/net-internal.h (__inet6_scopeid_pton): Remove
18158         attribute_hidden, internal_function.
18159         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
18160         internal_function.
18162 2017-08-10  Florian Weimer  <fweimer@redhat.com>
18164         * malloc/malloc.c (get_max_fast): Reimplement as an inline
18165         function which calls __builtin_unreachable.
18167 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
18169         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
18170         Indian monetary formatting
18171         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
18172         test cases.
18174 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
18176         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
18177         Fix typo in comment.
18179         [BZ #21928]
18180         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
18181         PTRACE_SEIZE_DEVEL): Remove.
18182         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18183         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18184         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18185         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18186         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18188 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
18190         * posix/bits/types.h (__qaddr_t): Remove.
18192         [BZ #21457]
18193         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
18194         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
18195         __glibc_reserved1.
18196         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
18197         (ucontext_t): Use __ctx with uc_flags.
18198         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
18199         (__ctxt): Likewise.
18200         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
18201         __glibc_reserved1.
18202         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
18203         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
18204         __glibc_reserved1.
18205         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
18206         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
18207         __glibc_reserved1.
18208         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
18209         macro.
18210         (ucontext_t): Use __ctx with uc_flags.
18211         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
18212         (ucontext_t): Use __ctx with uc_flags.
18213         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
18214         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
18215         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
18216         (ucontext_t): Use __ctx with uc_flags.
18217         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
18218         undefine further down.
18219         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
18220         __glibc_reserved1.
18221         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
18222         undefine further down.
18223         (ucontext_t): Use __ctx with uc_flags.
18224         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
18225         undefine further down.
18226         (ucontext_t): Use __ctx with uc_flags.
18227         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
18228         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
18229         Rename uc_pad to __glibc_reserved1.
18230         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
18231         undefine further down.
18232         (ucontext_t): Use __ctx with uc_flags.
18233         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
18234         further down.
18235         (ucontext_t): Use __ctx with uc_flags.
18236         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
18237         __ctx with uc_flags.
18238         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
18239         (ucontext_t): Use __ctx with uc_flags.
18240         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
18241         __ctx with uc_flags.
18243 2017-08-09  Florian Weimer  <fweimer@redhat.com>
18245         [BZ #21932]
18246         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
18247         before early return.
18249 2017-08-09  Andreas Schwab  <schwab@suse.de>
18251         [BZ #21041]
18252         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
18253         renamed alias.
18255         [BZ #21041]
18256         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
18257         tst-compat-forwarder.
18258         (modules-names): Add tst-compat-forwarder-mod.
18259         ($(objpfx)tst-compat-forwarder): Depend on
18260         $(objpfx)tst-compat-forwarder-mod.so.
18261         * nptl/tst-compat-forwarder.c: New file.
18262         * nptl/tst-compat-forwarder-mod.c: New file.
18264 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18266         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
18267         comments.
18269         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
18270         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
18271         memcpy_falkor.
18272         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
18273         Bump.
18274         (__libc_ifunc_impl_list): Add __memcpy_falkor.
18275         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
18276         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
18277         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
18278         Add falkor.
18279         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
18280         New macro.
18282 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18284         [BZ #759]
18285         * manual/setjmp.texi (getcontex): Document uc_stack value
18286         compatibility differences.
18288 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
18290         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
18291         (old_malloc_hook): Likewise.
18292         (old_memalign_hook): Likewise.
18293         (old_realloc_hook): Likewise.
18294         (struct hdr): Likewise.
18295         (flood): Likewise.
18296         (freehook): Likewise.
18297         (mallochook): Likewise.
18298         (memalignhook): Likewise.
18299         (reallochook): Likewise.
18300         (mprobe): Likewise.
18301         * malloc/mtrace.c (mallwatch): Likewise.
18302         (tr_old_free_hook): Likewise.
18303         (tr_old_malloc_hook): Likewise.
18304         (tr_old_realloc_hook): Likewise.
18305         (tr_old_memalign_hook): Likewise.
18306         (tr_where): Likewise.
18307         (lock_and_info): Likewise.
18308         (tr_freehook): Likewise.
18309         (tr_mallochook): Likewise.
18310         (tr_reallochook): Likewise.
18311         (tr_memalignhook): Likewise.
18312         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
18313         * misc/mmap.c (__mmap): Likewise.
18314         * misc/mmap64.c (__mmap64): Likewise.
18315         * misc/mprotect.c (__mprotect): Likewise.
18316         * misc/msync.c (msync): Likewise.
18317         * misc/munmap.c (__munmap): Likewise.
18318         * posix/posix_madvise.c (posix_madvise): Likewise.
18319         * socket/send.c (__send): Likewise.
18320         * socket/sendto.c (__sendto): Likewise.
18321         * socket/setsockopt.c (__setsockopt): Likewise.
18322         * string/memcmp.c (__ptr_t): Remove macro.
18323         (MEMCMP): Use void * instead of ptr_t.
18324         * string/memrchr.c (__ptr_t): Remove macro.
18325         (__memrchr): Use void * instead of ptr_t.
18326         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
18327         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
18328         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
18329         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
18330         * sysdeps/mach/msync.c (msync): Likewise.
18331         * sysdeps/mach/munmap.c (__munmap): Likewise.
18332         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
18333         Likewise.
18334         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
18335         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
18336         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
18337         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
18338         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
18339         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
18340         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
18341         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
18342         Likewise.
18343         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
18344         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
18345         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
18346         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
18347         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
18348         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
18349         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
18350         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
18351         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
18352         Likewise.
18353         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
18354         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
18355         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
18356         (MEMCMP): Use void * instead of ptr_t.
18357         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
18358         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
18360 2017-08-08  Florian Weimer  <fweimer@redhat.com>
18362         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
18363         return statement.
18365 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
18367         [BZ #21913]
18368         * csu/libc-tls.c: Include <startup.h> first.
18369         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
18370         * elf/dl-tunables.c: Include <startup.h> first.
18371         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
18372         * sysdeps/generic/startup.h: New file.
18373         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
18374         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
18375         (I386_USE_SYSENTER): New.  Defined to 0.
18377 2017-08-08  Andreas Schwab  <schwab@suse.de>
18379         [BZ #21041]
18380         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
18381         * nptl/pt-system.c (system): Likewise.
18383 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18385         [BZ #21780]
18386         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
18387         EOPNOTSUPP.
18388         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18389         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18390         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
18391         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18392         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18393         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18394         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
18396 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
18398         [BZ #21899]
18399         * bits/sigaction.h (struct sigaction): Define sa_handler and
18400         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
18401         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18402         [__USE_XOPEN_EXTENDED].
18403         (SA_RESTART): Likewise.
18404         (SA_NODEFER): Likewise.
18405         (SA_RESETHAND): Likewise.
18406         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
18407         (struct sigaction): Define sa_handler and sa_sigaction using union
18408         also for [__USE_XOPEN_EXTENDED].
18409         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18410         [__USE_XOPEN_EXTENDED].
18411         (SA_RESTART): Likewise.
18412         (SA_NODEFER): Likewise.
18413         (SA_RESETHAND): Likewise.
18414         * sysdeps/unix/sysv/linux/bits/sigaction.h
18415         (struct sigaction): Define sa_handler and sa_sigaction using union
18416         also for [__USE_XOPEN_EXTENDED].
18417         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18418         [__USE_XOPEN_EXTENDED].
18419         (SA_RESTART): Likewise.
18420         (SA_NODEFER): Likewise.
18421         (SA_RESETHAND): Likewise.
18422         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
18423         (struct sigaction): Define sa_handler and sa_sigaction using union
18424         also for [__USE_XOPEN_EXTENDED].
18425         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18426         [__USE_XOPEN_EXTENDED].
18427         (SA_RESTART): Likewise.
18428         (SA_NODEFER): Likewise.
18429         (SA_RESETHAND): Likewise.
18430         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
18431         (struct sigaction): Define sa_handler and sa_sigaction using union
18432         also for [__USE_XOPEN_EXTENDED].
18433         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18434         [__USE_XOPEN_EXTENDED].
18435         (SA_RESTART): Likewise.
18436         (SA_NODEFER): Likewise.
18437         (SA_RESETHAND): Likewise.
18438         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
18439         (struct sigaction): Define sa_handler and sa_sigaction using union
18440         also for [__USE_XOPEN_EXTENDED].
18441         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18442         [__USE_XOPEN_EXTENDED].
18443         (SA_RESTART): Likewise.
18444         (SA_NODEFER): Likewise.
18445         (SA_RESETHAND): Likewise.
18446         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
18447         (struct sigaction): Define sa_handler and sa_sigaction using union
18448         also for [__USE_XOPEN_EXTENDED].
18449         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18450         [__USE_XOPEN_EXTENDED].
18451         (SA_RESTART): Likewise.
18452         (SA_NODEFER): Likewise.
18453         (SA_RESETHAND): Likewise.
18454         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
18455         (struct sigaction): Define sa_handler and sa_sigaction using union
18456         also for [__USE_XOPEN_EXTENDED].
18457         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18458         [__USE_XOPEN_EXTENDED].
18459         (SA_RESTART): Likewise.
18460         (SA_NODEFER): Likewise.  Define directly rather than as alias.
18461         (SA_RESETHAND): Likewise.
18462         (SA_INTERRUPT): Define only for [__USE_MISC].
18463         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
18464         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
18465         [__USE_MISC].
18466         (SA_STACK): Define only for [__USE_MISC].
18467         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
18468         (struct sigaction): Define sa_handler and sa_sigaction using union
18469         also for [__USE_XOPEN_EXTENDED].
18470         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18471         [__USE_XOPEN_EXTENDED].
18472         (SA_RESTART): Likewise.
18473         (SA_NODEFER): Likewise.
18474         (SA_RESETHAND): Likewise.
18475         (SA_NOPTRACE): Define only for [__USE_MISC].
18477         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
18478         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
18479         (struct catalog_info): Likewise.
18480         * inet/htontest.c (lo): Likewise.
18481         (foo): Likewise.
18482         * inet/inet_lnaof.c (inet_lnaof): Likewise.
18483         * inet/inet_net.c (inet_network): Likewise.
18484         * inet/inet_netof.c (inet_netof): Likewise.
18485         * inet/rcmd.c (__ivaliduser): Likewise.
18486         (iruserok): Likewise.
18487         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
18488         * locale/programs/locale-spec.c (locale_special): Likewise.
18489         * nis/nis_findserv.c (struct findserv_req): Likewise.
18490         (__nis_findfastest_with_timeout): Likewise.
18491         * nss/test-netdb.c (test_network): Likewise.
18492         * resolv/inet_neta.c (inet_neta): Likewise.
18493         * resolv/ns_date.c (ns_datetosecs): Likewise.
18494         (SECS_PER_DAY): Likewise.
18495         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
18496         Likewise.
18497         * resolv/res_comp.c (__putlong): Likewise.
18498         (__putshort): Likewise.
18499         (_getlong): Likewise.
18500         (_getshort): Likewise.
18501         * resolv/res_debug.c (p_time): Likewise.
18502         (precsize_ntoa): Likewise.
18503         (precsize_aton): Likewise.
18504         (latlon2ul): Likewise.
18505         (loc_aton): Likewise.
18506         (loc_ntoa): Likewise.
18507         * resolv/res_hconf.c (struct netaddr): Likewise.
18508         (_res_hconf_reorder_addrs): Likewise.
18509         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
18510         (clnttcp_control): Likewise.
18511         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
18512         (clntudp_control): Likewise.
18513         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
18514         (clntunix_control): Likewise.
18515         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
18516         * sunrpc/rpc/auth.h (union des_block): Likewise.
18517         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
18518         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
18519         (xdrrec_create): Likewise.
18520         (xdrrec_endofrecord): Likewise.
18521         (flush_out): Likewise.
18522         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
18523         (xdrstdio_putlong): Likewise.
18524         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
18525         Likewise.
18527         * misc/sys/cdefs.h (__long_double_t): Remove.
18528         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
18529         instead of __long_double_t,
18530         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
18532 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18534         * benchtests/scripts/compare_strings.py: Avoid display error when
18535         running on a text terminal.
18537         * benchtests/scripts/compare_strings.py (main): Add an
18538         optional -base option.
18539         (process_results): New argument base_func.
18541         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
18542         hardcoding memcpy.
18543         * benchtests/bench-memcpy-large.c (test_name): Likewise.
18544         * benchtests/bench-memcpy-random.c (test_name): Likewise.
18546 2017-08-07  Andreas Schwab  <schwab@suse.de>
18548         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
18549         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
18550         * intl/Makefile ($(objpfx)tst-gettext.out)
18551         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
18552         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
18553         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
18554         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
18555         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
18556         * posix/Makefile ($(objpfx)globtest.out)
18557         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
18558         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
18559         ($(objpfx)tst-printf.out): Likewise.
18560         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
18561         ($(objpfx)tst-setcontext3.out): Likewise.
18563 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
18565         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18566         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
18567         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
18568         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
18569         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
18570         and mptan-fma.
18571         (CFLAGS-doasin-fma.c): New.
18572         (CFLAGS-dosincos-fma.c): Likewise.
18573         (CFLAGS-e_asin-fma.c): Likewise.
18574         (CFLAGS-e_atan2-fma.c): Likewise.
18575         (CFLAGS-e_exp-fma.c): Likewise.
18576         (CFLAGS-e_log-fma.c): Likewise.
18577         (CFLAGS-e_pow-fma.c): Likewise.
18578         (CFLAGS-halfulp-fma.c): Likewise.
18579         (CFLAGS-mpa-fma.c): Likewise.
18580         (CFLAGS-mpatan-fma.c): Likewise.
18581         (CFLAGS-mpatan2-fma.c): Likewise.
18582         (CFLAGS-mpexp-fma.c): Likewise.
18583         (CFLAGS-mplog-fma.c): Likewise.
18584         (CFLAGS-mpsqrt-fma.c): Likewise.
18585         (CFLAGS-mptan-fma.c): Likewise.
18586         (CFLAGS-s_atan-fma.c): Likewise.
18587         (CFLAGS-sincos32-fma.c): Likewise.
18588         (CFLAGS-slowexp-fma.c): Likewise.
18589         (CFLAGS-slowpow-fma.c): Likewise.
18590         (CFLAGS-s_sin-fma.c): Likewise.
18591         (CFLAGS-s_tan-fma.c): Likewise.
18592         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
18593         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
18594         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
18595         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
18596         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
18597         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
18598         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
18599         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
18600         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
18601         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
18602         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
18603         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
18604         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
18605         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
18606         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
18607         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
18608         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
18609         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
18610         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
18611         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
18612         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
18613         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18614         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18615         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
18616         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
18617         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
18618         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
18619         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
18620         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
18621         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
18622         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
18624 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
18626         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
18627         (min_of_type_f): New macro.
18628         (min_of_type_): Likewise.
18629         (min_of_type_l): Likewise.
18630         (min_of_type_f128): Likewise.
18631         (min_of_type): Define using __MATH_TG and taking an expression
18632         argument.
18633         (math_check_force_underflow): Pass expression instead of type to
18634         min_of_type.
18635         (math_check_force_underflow_nonneg): Likewise.
18637 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18639         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
18640         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
18641         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
18643 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18645         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18646         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
18647         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
18648         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
18649         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
18650         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
18651         memcpy_chk-nonshared, mempcpy_chk-nonshared,
18652         memmove_chk-nonshared and memset_chk-nonshared
18653         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
18654         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
18655         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
18656         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
18657         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
18658         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
18659         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
18660         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
18661         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
18662         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
18663         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
18664         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
18665         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
18666         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
18667         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
18668         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
18669         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
18670         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
18671         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
18672         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
18673         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
18674         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
18675         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
18676         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
18677         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
18678         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
18679         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
18680         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
18681         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
18682         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
18683         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
18684         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
18685         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
18686         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
18687         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
18688         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
18689         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
18690         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
18691         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
18692         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
18693         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
18694         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
18695         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
18696         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
18697         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
18698         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
18699         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
18700         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
18701         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
18702         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
18703         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
18704         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
18705         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
18706         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
18707         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
18708         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
18709         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
18710         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
18711         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
18712         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
18713         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
18714         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
18715         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
18716         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
18717         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
18718         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
18719         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
18720         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
18721         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
18722         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
18723         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
18724         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18725         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18726         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18727         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18728         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18729         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18730         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18731         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18732         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18733         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18734         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18735         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18736         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18737         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
18738         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
18739         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18740         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
18741         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18742         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18743         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18744         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18745         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18746         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18747         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
18748         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
18749         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
18750         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
18751         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18752         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
18753         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18754         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18755         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18756         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18757         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18758         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18759         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18760         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18762 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18764         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
18765         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
18766         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
18767         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
18768         svml_d_log2_core-sse2, svml_d_log4_core-sse,
18769         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
18770         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
18771         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
18772         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
18773         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
18774         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
18775         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
18776         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
18777         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
18778         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
18779         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
18780         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
18781         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
18782         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
18783         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
18784         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
18785         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
18786         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
18787         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
18788         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
18789         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
18790         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
18791         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
18792         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
18793         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
18794         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
18795         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
18796         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
18797         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
18798         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
18799         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
18800         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
18801         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
18802         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
18803         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
18804         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
18805         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
18806         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
18807         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
18808         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
18809         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
18810         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
18811         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
18812         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
18813         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
18814         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
18815         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
18816         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
18817         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
18818         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
18819         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
18820         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
18821         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
18822         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
18823         ...
18824         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
18825         Don't include <sysdep.h> nor <init-arch.h>.
18826         (_ZGVbN2v_cos): Removed.
18827         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
18828         ...
18829         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
18830         Don't include <sysdep.h> nor <init-arch.h>.
18831         (_ZGVdN4v_cos): Removed.
18832         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
18833         ...
18834         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
18835         Don't include <sysdep.h> nor <init-arch.h>.
18836         (_ZGVeN8v_cos): Removed.
18837         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
18838         ...
18839         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
18840         Don't include <sysdep.h> nor <init-arch.h>.
18841         (_ZGVbN2v_exp): Removed.
18842         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
18843         ...
18844         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
18845         Don't include <sysdep.h> nor <init-arch.h>.
18846         (_ZGVdN4v_exp): Removed.
18847         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
18848         ...
18849         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
18850         Don't include <sysdep.h> nor <init-arch.h>.
18851         (_ZGVeN8v_exp): Removed.
18852         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
18853         ...
18854         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
18855         Don't include <sysdep.h> nor <init-arch.h>.
18856         (_ZGVbN2v_log): Removed.
18857         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
18858         ...
18859         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
18860         Don't include <sysdep.h> nor <init-arch.h>.
18861         (_ZGVdN4v_log): Removed.
18862         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
18863         ...
18864         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
18865         Don't include <sysdep.h> nor <init-arch.h>.
18866         (_ZGVeN8v_log): Removed.
18867         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
18868         ...
18869         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
18870         Don't include <sysdep.h> nor <init-arch.h>.
18871         (_ZGVbN2vv_pow): Removed.
18872         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
18873         ...
18874         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
18875         Don't include <sysdep.h> nor <init-arch.h>.
18876         (_ZGVdN4vv_pow): Removed.
18877         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
18878         ...
18879         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
18880         Don't include <sysdep.h> nor <init-arch.h>.
18881         (_ZGVeN8vv_pow): Removed.
18882         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
18883         ...
18884         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
18885         Don't include <sysdep.h> nor <init-arch.h>.
18886         (_ZGVbN2v_sin): Removed.
18887         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
18888         ...
18889         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
18890         Don't include <sysdep.h> nor <init-arch.h>.
18891         (_ZGVbN4v_sin): Removed.
18892         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
18893         ...
18894         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
18895         Don't include <sysdep.h> nor <init-arch.h>.
18896         (_ZGVbN8v_sin): Removed.
18897         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
18898         ...
18899         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
18900         Don't include <sysdep.h> nor <init-arch.h>.
18901         (_ZGVbN2vvv_sincos): Removed.
18902         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
18903         ...
18904         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
18905         Don't include <sysdep.h> nor <init-arch.h>.
18906         (_ZGVdN4vvv_sincos): Removed.
18907         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
18908         ...
18909         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
18910         Don't include <sysdep.h> nor <init-arch.h>.
18911         (_ZGVeN8vvv_sincos): Removed.
18912         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
18913         ...
18914         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
18915         Don't include <sysdep.h> nor <init-arch.h>.
18916         (_ZGVeN16v_cosf): Removed.
18917         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
18918         ...
18919         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
18920         Don't include <sysdep.h> nor <init-arch.h>.
18921         (_ZGVbN4v_cosf): Removed.
18922         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
18923         ...
18924         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
18925         Don't include <sysdep.h> nor <init-arch.h>.
18926         (_ZGVdN8v_cosf): Removed.
18927         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
18928         ...
18929         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
18930         Don't include <sysdep.h> nor <init-arch.h>.
18931         (_ZGVeN16v_expf): Removed.
18932         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
18933         ...
18934         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
18935         Don't include <sysdep.h> nor <init-arch.h>.
18936         (_ZGVbN4v_expf): Removed.
18937         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
18938         ...
18939         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
18940         Don't include <sysdep.h> nor <init-arch.h>.
18941         (_ZGVdN8v_expf): Removed.
18942         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
18943         ...
18944         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
18945         Don't include <sysdep.h> nor <init-arch.h>.
18946         (_ZGVeN16v_logf): Removed.
18947         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
18948         ...
18949         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
18950         Don't include <sysdep.h> nor <init-arch.h>.
18951         (_ZGVbN4v_logf): Removed.
18952         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
18953         ...
18954         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
18955         Don't include <sysdep.h> nor <init-arch.h>.
18956         (_ZGVdN8v_logf): Removed.
18957         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
18958         ...
18959         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
18960         Don't include <sysdep.h> nor <init-arch.h>.
18961         (_ZGVeN16vv_powf): Removed.
18962         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
18963         ...
18964         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
18965         Don't include <sysdep.h> nor <init-arch.h>.
18966         (_ZGVbN4vv_powf): Removed.
18967         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
18968         ...
18969         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
18970         Don't include <sysdep.h> nor <init-arch.h>.
18971         (_ZGVdN8vv_powf): Removed.
18972         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
18973         ...
18974         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
18975         Don't include <sysdep.h> nor <init-arch.h>.
18976         (_ZGVeN16vvv_sincosf): Removed.
18977         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
18978         ...
18979         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
18980         Don't include <sysdep.h> nor <init-arch.h>.
18981         (_ZGVbN4vvv_sincosf): Removed.
18982         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
18983         ...
18984         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
18985         Don't include <sysdep.h> nor <init-arch.h>.
18986         (_ZGVdN8vvv_sincosf): Removed.
18987         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
18988         ...
18989         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
18990         Don't include <sysdep.h> nor <init-arch.h>.
18991         (_ZGVeN16v_sinf): Removed.
18992         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
18993         ...
18994         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
18995         Don't include <sysdep.h> nor <init-arch.h>.
18996         (_ZGVbN4v_sinf): Removed.
18997         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
18998         ...
18999         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
19000         Don't include <sysdep.h> nor <init-arch.h>.
19001         (_ZGVdN8v_sinf): Removed.
19003 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19005         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19006         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
19007         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
19008         s_rint-sse4_1 and s_rintf-sse4_1.
19009         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
19010         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
19011         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
19012         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
19013         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
19014         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
19015         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
19016         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
19017         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
19018         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
19019         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
19020         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19021         (__ceil): Removed.
19022         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
19023         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
19024         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19025         (__ceilf): Removed.
19026         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
19027         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
19028         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19029         (__floor): Removed.
19030         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
19031         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
19032         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19033         (__floorf): Removed.
19034         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
19035         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
19036         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19037         (__nearbyint): Removed.
19038         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
19039         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
19040         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19041         (__nearbyintf): Removed.
19042         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
19043         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
19044         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19045         (__rint): Removed.
19046         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
19047         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
19048         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19049         (__rintf): Removed.
19051 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19053         * sysdeps/i386/start.S (_start): Check Check PIC instead of
19054         SHARED.  Avoid dynamic relocation against main in static PIE.
19056 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19058         [BZ #21815]
19059         * elf/Makefile (CFLAGS-tst-prelink.c): New.
19060         (LDFLAGS-tst-prelink): Likewise.
19062 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19064         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
19065         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
19066         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
19067         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
19068         (INTERNAL_SYSCALL_NCS): Likewise.
19069         (LOADARGS_1): Likewise.
19070         (LOADARGS_5): Likewise.
19071         (RESTOREARGS_1): Likewise.
19072         (RESTOREARGS_5): Likewise.
19074 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19076         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
19077         (MEMPCPY_SYMBOL): Likewise.
19078         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
19079         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
19080         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
19081         in libc.a.
19082         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19083         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
19084         Likewise.
19085         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
19086         (__hidden_ver1): Don't use in libc.a.
19087         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
19088         (__mempcpy): Don't create a weak alias in libc.a.
19089         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
19090         libc.a.
19091         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
19092         (__hidden_ver1): Don't use in libc.a.
19094 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19096         * config.make.in (have-insert): New.
19097         * configure.ac (libc_cv_insert): New.  Set to yes if linker
19098         supports INSERT in linker script.
19099         (AC_SUBST(libc_cv_insert): New.
19100         * configure: Regenerated.
19101         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
19102         if $(have-insert) == yes.
19104 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19106         * elf/Makefile (tests): Add vismain only if
19107         $(have-protected-data) == yes.
19108         (tests-pie): Likewise.
19110 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19112         [BZ #21871]
19113         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
19114         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
19116 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19118         [BZ #21790]
19119         * sysdeps/i386/i586/memset.S
19120         (__memset_zero_constant_len_parameter): Removed.
19121         * sysdeps/i386/i686/memset.S
19122         (__memset_zero_constant_len_parameter): Likewise.
19123         * sysdeps/i386/i686/multiarch/memset_chk.S
19124         (__memset_zero_constant_len_parameter): Likewise.
19125         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
19126         Likewise.
19128 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
19130         * stdlib/getentropy.c (getentropy): Change return type to int.
19132 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
19134         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
19136 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
19138         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
19139         u_intN_t.
19140         * math/s_nexttowardf.c (__nexttowardf): Likewise.
19141         * sysdeps/generic/math_private.h (ieee_double_shape_type):
19142         Likewise.
19143         (ieee_float_shape_type): Likewise.
19144         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
19145         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
19146         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
19147         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
19148         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
19149         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
19150         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
19151         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
19152         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
19153         Likewise.
19154         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
19155         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
19156         (__ieee754_yn): Likewise.
19157         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
19158         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
19159         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
19160         Likewise.
19161         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
19162         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
19163         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
19164         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
19165         (__erfc): Likewise.
19166         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
19167         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
19168         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
19169         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
19170         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
19171         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
19172         Likewise.
19173         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
19174         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
19175         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
19176         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
19177         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
19178         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
19179         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
19180         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
19181         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
19182         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
19183         (__issignaling): Likewise.
19184         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
19185         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
19186         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
19187         Likewise.
19188         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
19189         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
19190         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
19191         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
19192         Likewise.
19193         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
19194         Likewise.
19195         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
19196         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
19197         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
19198         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
19199         (__erfcf): Likewise.
19200         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
19201         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
19202         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
19203         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
19204         Likewise.
19205         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
19206         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
19207         Likewise.
19208         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
19209         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
19210         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
19211         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
19212         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
19213         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19214         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
19215         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
19216         Likewise.
19217         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
19218         Likewise.
19219         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
19220         Likewise.
19221         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
19222         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
19223         Likewise.
19224         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
19225         Likewise.
19226         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
19227         (__ieee754_ynl): Likewise.
19228         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
19229         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
19230         Likewise.
19231         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
19232         Likewise.
19233         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
19234         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
19235         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
19236         Likewise.
19237         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
19238         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
19239         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
19240         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
19241         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
19242         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
19243         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
19244         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
19245         Likewise.
19246         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
19247         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
19248         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
19249         Likewise.
19250         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
19251         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
19252         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
19253         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
19254         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
19255         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
19256         Likewise.
19257         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
19258         Likewise.
19259         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
19260         Likewise.
19261         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
19262         Likewise.
19263         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
19264         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19265         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
19266         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
19267         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
19268         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
19269         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
19270         Likewise.
19271         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
19272         Likewise.
19273         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
19274         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
19275         Likewise.
19276         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
19277         (__ieee754_remainderl): Likewise.
19278         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
19279         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
19280         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
19281         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
19282         Likewise.
19283         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
19284         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
19285         Likewise.
19286         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19287         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
19288         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
19289         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
19290         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
19291         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
19292         Likewise.
19293         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
19294         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
19295         (__ieee754_y0l): Likewise.
19296         (pzero): Likewise.
19297         (qzero): Likewise.
19298         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
19299         (__ieee754_y1l): Likewise.
19300         (pone): Likewise.
19301         (qone): Likewise.
19302         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
19303         (__ieee754_ynl): Likewise.
19304         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
19305         (__ieee754_lgammal_r): Likewise.
19306         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
19307         Likewise.
19308         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
19309         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
19310         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
19311         (__erfcl): Likewise.
19312         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
19313         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
19314         Likewise.
19315         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
19316         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
19317         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
19318         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
19319         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
19320         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
19321         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
19322         Likewise.
19323         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
19324         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19325         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
19326         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
19327         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
19328         Likewise.
19329         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
19330         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
19331         Likewise.
19332         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
19333         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
19334         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
19335         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
19336         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
19338 2017-08-03  Florian Weimer  <fweimer@redhat.com>
19340         [BZ #21885]
19341         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
19342         on memory allocation failure.
19344 2017-08-03  Alan Modra  <amodra@gmail.com>
19346         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
19347         tst-tlsopt-powerpc.c with function name change and no test harness.
19348         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
19349         Call tls_get_addr_opt_test.
19350         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
19351         (modules-names): Add mod-tlsopt-powerpc.
19352         (mod-tlsopt-powerpc.so-no-z-defs): Define.
19353         (tst-tlsopt-powerpc): Depend on .so.
19354         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
19355         define.  Expand use in TLS_GD and TLS_LD.
19357 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19359         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
19360         function.
19361         * sysdeps/posix/shm_open.c: Include <pthread.h>.
19363 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
19365         [BZ #21686]
19366         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
19367         comparing size with that of double.
19368         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
19369         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
19370         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
19371         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
19372         (__TGMATH_BINARY_REAL_IMAG): Likewise.
19373         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
19374         unsigned __int128 types.
19376 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
19378         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
19379         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
19380         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
19381         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
19382         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
19384 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
19386         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
19388 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
19390         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
19391         of SHARED.
19392         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
19393         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
19394         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19395         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
19396         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
19397         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
19398         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
19400 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
19402         [BZ #21685]
19403         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
19404         bit-field expressions passed to sizeof or typeof.
19405         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19406         (__TGMATH_F128): Likewise.
19407         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19408         (__TGMATH_CF128): Likewise.
19409         (__TGMATH_UNARY_REAL_ONLY): Likewise.
19410         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
19411         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
19412         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
19413         (__TGMATH_BINARY_REAL_ONLY): Likewise.
19414         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
19415         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
19416         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
19417         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
19418         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
19419         (__TGMATH_UNARY_REAL_IMAG): Likewise.
19420         (__TGMATH_UNARY_IMAG): Likewise.
19421         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
19422         (__TGMATH_BINARY_REAL_IMAG): Likewise.
19423         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
19424         type.
19425         (define_vars_for_type): Handle bit_field type specially.
19426         (Tests.__init__): Declare structure with bit-field element.
19428 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
19430         [BZ #21791]
19431         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
19432         (MEMCPY_CHK): Define only if SHARED is defined.
19433         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
19434         Likewise.
19435         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
19436         Likewise.
19438 See ChangeLog.18 for earlier changes.